Long-Context Retrieval Models with Monarch Mixer · Hazy Research
Text embeddings are a critical piece of many pipelines, from search, to RAG, to vector databases and more. Most embedding models are BERT/Transformer-based and typically have short context lengths (e.g., 512). That’s only about two pages of text, but documents can be very long – books, legal cases, TV screenplays, code repositories, etc can be tens of thousands of tokens long (or more). Here, we’re taking a first step towards developing long-context retrieval models. We build on Monarch Mixer (M2), a recent model family developing attention- and MLP-free BERT models, which are enabling long-context BERT models. Today, we’re releasing a preview of a few models: long-context versions of M2-BERT up to 32K context length, as well as embedding versions fine-tuned for long-context retrieval. In this blog, you’ll hear about the changes to data mixture and loss function we needed to enable these new models. We’re also releasing the V0 of a long-context retrieval benchmark called LoCo, that we’
Long-Context Retrieval Models with Monarch Mixer · Hazy Research Jan 11, 2024 · 17 min read Long-Context Retrieval Models with Monarch Mixer Jon Saad-Falcon , Dan Fu , Simran Arora Text embeddings are a critical piece of many pipelines, from search, to RAG, to vector databases and more. Most embedding models are BERT/Transformer-based and typically have short context lengths (e.g., 512). That’s only about two pages of text, but documents can be very long – books, legal cases, TV screenplays, code repositories, etc can be tens of thousands of tokens long (or more). Here, we’re taking a first st
related reading
- Recursive Language Models | Alex L. Zhangalexzhang13.github.io
- Extending Context is Hard | kaiokendevkaiokendev.github.io
- [2506.06266] Cartridges: Lightweight and general-purpose long context representations via self-studyarxiv.org
- [2512.23675] End-to-End Test-Time Training for Long Contextarxiv.org
- [2011.04006] Long Range Arena: A Benchmark for Efficient Transformersarxiv.org
- [2005.11401] Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasksarxiv.org
- Subquadratic — How SSA Makes Long Context Practicalsubq.ai
- A short note on some aspects of long context attention | nor's blognor-blog.pages.dev
- Extending the Context of Pretrained LLMs by Dropping their Positional Embeddingspub.sakana.ai
- GLM-5.2: Built for Long-Horizon Tasksz.ai
- From Deep to Long Learning? · Hazy Researchhazyresearch.stanford.edu
- Long Context RAG Performance of LLMs | Databricks Blogdatabricks.com