Benchmarking and Building Long-Context Retrieval Models with LoCo and M2-BERT
Not on the map. Why?
Abstract (arXiv)
Retrieval pipelines-an integral component of many machine learning systems-perform poorly in domains where documents are long (e.g., 10K tokens or more) and where identifying the relevant document requires synthesizing information across the entire text. Developing long-context retrieval encoders suitable for these domains raises three challenges: (1) how to evaluate long-context retrieval performance, (2) how to pretrain a base language model to represent both short contexts (corresponding to queries) and long contexts (corresponding to documents), and (3) how to fine-tune this model for retrieval under the batch size limitations imposed by GPU memory constraints. To address these challenges, we first introduce LoCoV1, a novel 12 task benchmark constructed to measure long-context retrieval where chunking is not possible or not effective. We next present the M2-BERT retrieval encoder, an 80M parameter state-space encoder model built from the Monarch Mixer architecture, capable of scaling to documents up to 32K tokens long. We describe a pretraining data mixture which allows this encoder to process both short and long context sequences, and a finetuning approach that adapts this base model to retrieval with only single-sample batches. Finally, we validate the M2-BERT retrieval encoder on LoCoV1, finding that it outperforms competitive Transformer-based models by at least 23.3 points, despite containing upwards of 90x fewer parameters.
Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 35 of its 58 references that are in the map. First posted on arXiv 12 Feb 2024.
Builds on
35 of 58 references.
References · 35
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,538
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,225
23 more
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2022Simplified State Space Layers for Sequence Modelingcited by 776
- 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
- 2022MTEB: Massive Text Embedding Benchmarkcited by 623
- 2020KILT: a Benchmark for Knowledge Intensive Language Taskscited by 571
- 2018Wizard of Wikipedia: Knowledge-Powered Conversational agentscited by 530
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 495
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
- 2021ColBERTv2: Effective and Efficient Retrieval via Lightweight Late Interactioncited by 464
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 388
- 2023Improving Text Embeddings with Large Language Modelscited by 295
- 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 255
- 2017Efficient Natural Language Response Suggestion for Smart Replycited by 228
- 2022Liquid Structural State-Space Modelscited by 134
- 2021Scaling Deep Contrastive Learning Batch Size under Memory Limited Setupcited by 123
- 2013A Theoretical Analysis of NDCG Type Ranking Measurescited by 119
- 2023Monarch Mixer: A Simple Sub-Quadratic GEMM-Based Architecturecited by 62
- 2022Pretraining Without Attentioncited by 51
- 2021Orthogonal Projection Losscited by 44
- 2022Perfectly Balanced: Improving Transfer and Robustness of Supervised Contrastive Learningcited by 40
- 2023UDAPDR: Unsupervised Domain Adaptation via LLM Prompting and Distillation of Rerankerscited by 37
- 2022An Efficiency Study for SPLADE Modelscited by 26
Built on by
Citing papers per year: 2024: 9; 2025: 5; 2026: 7.
21 papers.
Sort:
By area:
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrievalcited by 233
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrievalcited by 153
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 104
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
- 2024CLERC: A Dataset for Legal Case Retrieval and Retrieval-Augmented Analysis Generationcited by 18
- 2024Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrievalcited by 13
- 2024Length-Induced Embedding Collapse in PLM-based Modelscited by 9
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2024RARe: Retrieval Augmented Retrieval with In-Context Examplescited by 2
9 more
- 2025CliniBench: A Clinical Outcome Prediction Benchmark for Generative and Encoder-Based Language Modelscited by 1
- 2026STAIR (STructure Aware Information Retriever): A novel dataset and LLM based retriever for document structure augmentationcited by 1
- 2026KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMscited by 0
- 2025LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retrievercited by 0
- 2026RubiConv -- Efficient Boundary-Respecting Convolutionscited by 0
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answeringcited by 0
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scalingcited by 0
- 2026Quasi Linear Kernel Attention with Infinite Capacitycited by 0
- 2026Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddingscited by 0
- 2026Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddings29 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026STAIR (STructure Aware Information Retriever): A novel dataset and LLM based retriever for document structure augmentation3 Sep 2026
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling30 Aug 2026
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answering5 Jun 2026
- 2026RubiConv -- Efficient Boundary-Respecting Convolutions8 May 2026
- 2026KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs3 Jan 2026
- 2025LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retriever31 Oct 2025
- 2025CliniBench: A Clinical Outcome Prediction Benchmark for Generative and Encoder-Based Language Models30 Sep 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystack1 Mar 2025
9 more
- 2024Length-Induced Embedding Collapse in PLM-based Models31 Oct 2024
- 2024RARe: Retrieval Augmented Retrieval with In-Context Examples26 Oct 2024
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval29 Jul 2024
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrieval16 Jul 2024
- 2024CLERC: A Dataset for Legal Case Retrieval and Retrieval-Augmented Analysis Generation24 Jun 2024
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMs21 Jun 2024
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Models8 May 2024
- 2024LongEmbed: Extending Embedding Models for Long Context Retrieval18 Apr 2024
- 2024Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrieval5 Apr 2024
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 104
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
- 2024CLERC: A Dataset for Legal Case Retrieval and Retrieval-Augmented Analysis Generationcited by 18
- 2024RARe: Retrieval Augmented Retrieval with In-Context Examplescited by 2
- 2026STAIR (STructure Aware Information Retriever): A novel dataset and LLM based retriever for document structure augmentationcited by 1
- 2026STAIR (STructure Aware Information Retriever): A novel dataset and LLM based retriever for document structure augmentation3 Sep 2026
- 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystack1 Mar 2025
- 2024RARe: Retrieval Augmented Retrieval with In-Context Examples26 Oct 2024
- 2024CLERC: A Dataset for Legal Case Retrieval and Retrieval-Augmented Analysis Generation24 Jun 2024
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMs21 Jun 2024
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrievalcited by 233
- 2024BRIGHT: A Realistic and Challenging Benchmark for Reasoning-Intensive Retrievalcited by 153
- 2024Arctic-Embed: Scalable, Efficient, and Accurate Text Embedding Modelscited by 60
- 2024LongEmbed: Extending Embedding Models for Long Context Retrievalcited by 47
- 2024Dwell in the Beginning: How Language Models Embed Long Documents for Dense Retrievalcited by 13
- 2024Length-Induced Embedding Collapse in PLM-based Modelscited by 9
- 2025Single-Pass Document Scanning for Question Answeringcited by 6
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2025CliniBench: A Clinical Outcome Prediction Benchmark for Generative and Encoder-Based Language Modelscited by 1
- 2026KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMscited by 0
- 2025LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retrievercited by 0
- 2026RubiConv -- Efficient Boundary-Respecting Convolutionscited by 0
12 most cited of 16 All 16 (JSON)
- 2026Selecting What Matters: Semantic Compression-Guided Selective Pooling for Long-Context Embeddings29 Sep 2026
- 2026Quasi Linear Kernel Attention with Infinite Capacity28 Sep 2026
- 2026REIGN: Refurbished Embeddings with Integrated Guidance Networks for Efficient Context-Length Scaling30 Aug 2026
- 2026EASE-TTT: Evidence-Aligned Selective Test-Time Training for Long-Context Question Answering5 Jun 2026
- 2026RubiConv -- Efficient Boundary-Respecting Convolutions8 May 2026
- 2026KV-Embedding: Training-free Text Embedding via Internal KV Re-routing in Decoder-only LLMs3 Jan 2026
- 2025LLM2IR: simple unsupervised contrastive learning makes long-context LLM great retriever31 Oct 2025
- 2025CliniBench: A Clinical Outcome Prediction Benchmark for Generative and Encoder-Based Language Models30 Sep 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Single-Pass Document Scanning for Question Answering4 Apr 2025
- 2024Length-Induced Embedding Collapse in PLM-based Models31 Oct 2024
- 2024mGTE: Generalized Long-Context Text Representation and Reranking Models for Multilingual Text Retrieval29 Jul 2024
12 newest of 16 All 16 (JSON)