LatentRAG: Latent Reasoning and Retrieval for Efficient Agentic RAG
Yijia Zheng, Marcel Worring
NeurIPS page · Open on the map
Category: LLM Reasoning, Memory & RAG › Retrieval-Augmented Generation · Type: new method · Keywords: latent reasoning, retrieval augmentation, agentic RAG, latency reduction, joint optimization
Areas: LLM Reasoning › Language Model Reasoning › Retrieval-augmented reasoning; AI Agents › Agent Capabilities › Agentic RAG; Retrieval-Augmented Generation › Language Model Retrieval › Internal Retrieval Mechanisms
Summary
LatentRAG introduces a latent-space framework that jointly optimizes reasoning and retrieval, producing latent tokens in a single forward pass and achieving comparable performance to explicit agentic RAG while cutting inference latency by roughly 90%.
Explained to a 5-year-old
People use a tool called RAG to ask questions and get answers from lots of information. A newer version lets the computer think step by step, but it takes a long time because it writes many sentences. LatentRAG is a new idea that lets the computer think and look up information in a hidden space, so it does it all at once. This makes the answering faster while still giving good answers. It helps answer harder questions quickly without waiting.
Explained to a 5-year-old, longer
RAG is a tool that helps computers answer questions by looking at lots of information. Simple RAG works well for easy questions but struggles when the question is complex. Agentic RAG tries to solve harder questions by letting the computer think step by step. It does this by writing short thoughts and asking more questions, which takes a lot of time. The slow part is that the computer generates each thought one by one, like typing a long message. LatentRAG is a new method that changes how this thinking works. Instead of writing thoughts in normal language, it uses a hidden space where ideas are stored. This hidden space lets the computer generate many thoughts at once in a single step. It also connects the thinking to the information lookup, so searching is faster. To make the hidden ideas understandable, LatentRAG can translate them back into normal words. Experiments show that LatentRAG still gives good answers like the old method. But it is about ninety percent faster, making it useful for real-world applications.
For a technical reader
LatentRAG replaces the token-by-token generation of thoughts and subqueries in agentic RAG with a continuous latent representation that is produced in a single forward pass. It aligns the LLM’s hidden states with dense retrieval models so that subqueries can be retrieved directly from latent tokens, enabling end-to-end joint optimization. A parallel decoding module maps these latent tokens back to natural language for interpretability without sacrificing speed. Evaluations on seven benchmark datasets show that the approach matches the performance of explicit agentic RAG while cutting inference latency by roughly 90%. This latency reduction makes complex RAG pipelines feasible for production systems where low-latency responses are required.
Problem
Agentic RAG's multi-step reasoning process generates lengthy thoughts and subqueries token-by-token, causing high inference latency that limits practical deployment. This makes iterative retrieval too slow for efficient use.
Method
The approach shifts reasoning and retrieval from discrete language to continuous latent space, aligning LLMs with dense retrieval models to generate latent tokens in a single forward pass and using a parallel decoding mechanism to map them back to natural language for interpretability.
Results
The approach matches the performance of explicit agentic RAG methods while reducing inference latency by about 90%, substantially narrowing the gap with traditional single-step RAG.
Contributions
A latent-space framework that jointly optimizes reasoning and retrieval, produces latent tokens in a single forward pass, and decodes them for interpretability, along with extensive evaluation on multiple benchmarks.
Practical relevance
By drastically cutting inference latency, the framework enables efficient deployment of complex RAG systems in production environments.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction