
Apple researchers have developed CLaRa, a framework that compresses documents into dense vectors to improve how language models retrieve and use external knowledge. By training retrieval and generation components together in a unified system, CLaRa reduces the amount of text models need to process while maintaining answer quality—a significant step toward making retrieval-augmented systems more practical for deployment.
Summaries like this, in your inbox every morning.
Sign up free →What happened
Apple researchers introduced CLaRa (Continuous Latent Reasoning), a framework that compresses documents into dense vectors before feeding them to language models, reducing the length of text the model must process. The system uses a data synthesis method called SCP and trains the retrieval and generation components together using a shared language modeling loss.
Why it matters
Retrieval-augmented generation (RAG) helps language models access external knowledge, but long documents slow down processing and make it hard to optimize retrieval and generation together. CLaRa's unified approach addresses this by compressing documents while maintaining semantic richness, potentially making RAG systems more efficient for on-device deployment and practical applications.
What to watch
CLaRa achieved state-of-the-art compression and reranking performance across multiple question-answering benchmarks, even at a text compression rate of 16, outperforming existing fine-tuned baselines. The paper was accepted at the UncertaiNLP workshop at EACL 2024.
Retrieval-augmented generation (RAG) enhances large language models with access to external knowledge by retrieving relevant documents for a given query, but the approach faces practical challenges: long document contexts slow down inference, and the retrieval and generation steps are often optimized separately, creating misalignment between which documents the retriever selects and which would actually help the generator produce better answers. Apple researchers—including Jie He, Richard He Bai, Sinead Williamson, Jeff Z. Pan, Navdeep Jaitly, and Yizhe Zhang—propose CLaRa (Continuous Latent Reasoning) to solve both problems. The framework compresses documents into dense vectors using embedding-based compression, which reduces the text length fed to the generator while preserving semantic information. To ensure compressed vectors remain retrievable and semantically rich, the team introduces SCP (a key-preserving data synthesis framework based on question-answering and paraphrase supervision), which generates training data that teaches the system how to compress while retaining answers and meaning. CLaRa then trains the reranker (which selects relevant documents) and the generator (which produces answers) end-to-end via a single language modeling loss, with gradients flowing through both modules using a differentiable top-k estimator. This unified optimization theoretically aligns retrieval relevance with answer quality—meaning the retriever learns to pick documents that actually help generate correct answers, not just documents that seem semantically similar to the query. Experiments across multiple question-answering benchmarks demonstrate that CLaRa achieves state-of-the-art compression and reranking performance, even at a text compression rate of 16, outperforming text-based fine-tuned baselines. The work was accepted at the UncertaiNLP workshop at EACL 2024.
Retrieval-augmented generation has become a standard technique for enhancing language models with external knowledge, but the approach carries two significant limitations: the need to process long document contexts slows inference, and the retrieval step and generation step are typically optimized separately rather than as a unified system. Apple's CLaRa framework addresses both constraints by compressing documents into dense vectors before they reach the language model, thereby reducing computational overhead, while also training retrieval and generation components end-to-end with shared gradients. The key innovation is the SCP data synthesis method, which creates compressed vectors that remain semantically rich enough to support high-quality question-answering—a balance that prior approaches struggled to maintain at high compression rates. By demonstrating state-of-the-art results even at a compression rate of 16, CLaRa suggests that the unified optimization approach can recover performance while significantly shrinking the effective context length, which is relevant for practitioners deploying models on-device or in resource-constrained environments where inference speed and memory footprint are critical.
No comments yet. Be the first to share your thoughts!
Log in to join the discussion




Get curated AI news from 200+ sources delivered daily to your inbox. Free to use.
Get Started FreeFree · takes 30 seconds · unsubscribe anytime
1 minute a day. The AI essentials.
200+ sources · Email / LINE / Slack