1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →
What is late interaction (ColBERT), and how does it compare to bi-encoders and cross-encoders?
30-second answerSay your answer out loud first, then reveal.
Bi-encoder vs late interaction vs cross-encoder
| Bi-encoder | Late interaction (ColBERT) | Cross-encoder | |
|---|---|---|---|
| Representation | 1 vector per chunk | 1 vector per token | No stored vectors; joint encoding |
| Precompute docs | Yes | Yes | No |
| Query-time cost | Lowest | Medium | Highest |
| Quality | Good | Better | Best |
| Index size | Small | Large (tens of times bigger) | None |
| Typical use | First-stage retrieval | First stage or reranking | Reranking top-N |
MaxSim scoring
score(q, d) = Σ over query tokens i of max over doc tokens j of (q_i · d_j)Practical notes
- ColBERTv2 / PLAID reduce index size with compression and centroids.
- Often used as a reranker over BM25 or dense candidates, which avoids the full index cost.
- The same idea extends to images: ColPali applies late interaction over image patches of document pages (Q34).
When to mention it: when asked how to improve precision beyond a bi-encoder without paying full cross-encoder latency.
Related
Slow is fine. Stopping is the only problem.