opensi·si

XTR (ConteXtualized Token Retriever) is a late-interaction training objective that changes how token matches are scored: instead of ColBERT-style MaxSim over all document…

XTR

XTR (ConteXtualized Token Retriever) is a late-interaction training objective that changes how token matches are scored: instead of ColBERT-style MaxSim over all document tokens, each query token retrieves its top-k matches globally across all in-batch document tokens, simulating retrieval from a token index. This trains the model to produce tokens that are retrievable on their own, allowing (in the original paper's setup) retrieval without the full MaxSim gathering stage.

Training code: training_contrastive.py

Source and license

Source: Sentence Transformers documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.