Dashboard
0%
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 →

Q33IntermediateConcept

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-encoderLate interaction (ColBERT)Cross-encoder
Representation1 vector per chunk1 vector per tokenNo stored vectors; joint encoding
Precompute docsYesYesNo
Query-time costLowestMediumHighest
QualityGoodBetterBest
Index sizeSmallLarge (tens of times bigger)None
Typical useFirst-stage retrievalFirst stage or rerankingReranking top-N

MaxSim scoring

text
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.

Slow is fine. Stopping is the only problem.