ColBERT
A BERT ranking model that encodes queries and passages separately and scores them by token-level late interaction.
Language · 661 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Language
- Parameters
- 109.6M
- Operations
- 661
- Framework
- PyTorch
- Recurrent
- No
- Published
- SIGIR 2020
- Cited by
- 204 (as of 28 October 2026)
- Authors
- Omar Khattab, Matei Zaharia
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15373
- Graph hash
- 8b43b41c91e677da29aa1bf90c3722523c5ffc29d89a2ba3eb8226b72e216740
- Skeleton hash
- f3681be9ac9281dad7afea5bb626db5efdd17126201f7406b09ca64ec3bab95a
- Architecture hash
- 1c63a6dcd884fbb354395e5af76b5ed0458643d4e25156309d0f1b745998b553
- Diagram SHA-256
- 55508d475fc2e162499564f4e2fc183a67db3846a16301c8f79db7d206bcaa2d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
ColBERT is a BERT-based ranking model for passage search, built to keep most of the accuracy of BERT rankers while being far cheaper to run. Earlier BERT rankers fed every query and document pair through the network together to get one relevance score, which the paper identifies as the main cost. ColBERT instead encodes the query and the document separately with BERT and only compares them at the end, an approach the paper calls late interaction.
Each text becomes a bag of token embeddings, and the score sums, over the query's tokens, the maximum cosine similarity each one finds among the document's tokens (the MaxSim operator). Short queries are padded with BERT's [mask] tokens, a step the paper calls query augmentation, which lets the model learn extra query terms or reweight existing ones. The interaction step itself has no trainable parameters.
Because documents are encoded on their own, their embeddings can be computed offline ahead of time. The paper evaluates ColBERT on MS MARCO and TREC CAR. It reports effectiveness competitive with existing BERT-based models while running two orders of magnitude faster and using four orders of magnitude fewer FLOPs per query.
Key idea. ColBERT showed that encoding queries and documents separately with BERT and comparing them by late interaction keeps BERT's expressiveness while letting document representations be computed offline.
- colbert
- colbert-ai
- late interaction
- maxsim
- passage search
- neural retrieval
- bert ranking
- dense retrieval
- ms marco
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{khattab2020colbertefficienteffectivepassage,
title={ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT},
author={Omar Khattab and Matei Zaharia},
year={2020},
eprint={2004.12832},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2004.12832},
}