Tevatron: An Efficient and Flexible Toolkit for Dense Retrieval

Luyu Gao, Xueguang Ma, Jimmy Lin, Jamie Callan
3/11/2022
cs.IRcs.CL

Official code: texttron/tevatron (752 stars, Python, Apache-2.0, PyTorch, last commit 2026-10-24).

Abstract

Recent rapid advancements in deep pre-trained language models and the introductions of large datasets have powered research in embedding-based dense retrieval. While several good research papers have emerged, many of them come with their own software stacks.

Show full abstract

These stacks are typically optimized for some particular research goals instead of efficiency or code structure. In this paper, we present Tevatron, a dense retrieval toolkit optimized for efficiency, flexibility, and code simplicity. Tevatron provides a standardized pipeline for dense retrieval including text processing, model training, corpus/query encoding, and search. This paper presents an overview of Tevatron and demonstrates its effectiveness and efficiency across several IR and QA data sets. We also show how Tevatron's flexible design enables easy generalization across datasets, model architectures, and accelerator platforms(GPU/TPU). We believe Tevatron can serve as an effective software foundation for dense retrieval system research including design, modeling, and optimization.

View on arXivView PDF

Code Implementations(1)

texttron/tevatronOfficial100%
PyTorchApache-2.0

Tevatron - Unified Document Retrieval Toolkit across Scale, Language, and Modality. Demo in SIGIR 2023, SIGIR 2025.

752132Python, ShellSep 9, 20211 months agoApache-2.0
dense-retrievaldprflaxinformation-retrievaljax+3 more

Similar Papers

Cite this paper

@article{gao2022tevatron,
  title  = {Tevatron: An Efficient and Flexible Toolkit for Dense Retrieval},
  author = {Luyu Gao and Xueguang Ma and Jimmy Lin and Jamie Callan},
  year   = {2022},
  eprint = {2203.05765},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.05765}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.05765.svg)](https://codeofpaper.com/paper/2203.05765)

Discussion