Late Interaction
Definition
Late Interaction — a search architecture in which the query and document are encoded separately (as in bi-encoders), but the relevance score is calculated through pairwise token embedding matching (as in cross-encoders). Proposed in the ColBERT model.
Approach Comparison
| Approach | Encoding | Matching | Cost |
|---|---|---|---|
| Bi-encoder | separate | vector | low |
| Cross-encoder | joint | full | high |
| Late interaction | separate | token (MaxSim) | medium |
MaxSim
The relevance score is calculated as the sum over query tokens of the maximum cosine similarity with document tokens:
score(q, d) = Σ_i max_j cos(E_q[i], E_d[j])
Document embeddings are precomputed, allowing the use of Vector Search during the candidate selection phase.
Application
Used as an intermediate step between primary search and Re-ranking, as well as part of Hybrid Search.