跳到正文
arXiv cs.CL· Yijia Zheng, Marcel Worring·· 13 小时前AI 评分38

LatentRAG:用隐空间推理与检索实现高效 Agentic RAG

LatentRAG: Latent Reasoning and Retrieval for Efficient Agentic RAG

AI 导读

LatentRAG 将 Agentic RAG 的推理与检索从离散语言空间迁移到连续隐空间,单次前向传播即可从隐藏状态直接生成用于思考与子查询的 latent token,并与稠密检索模型在隐空间对齐、支持端到端联合优化。

正文 · 原文

View PDF HTML (experimental)

Abstract:Single-step retrieval-augmented generation (RAG) provides an efficient way to incorporate external information for simple question answering tasks but struggles with complex questions. Agentic RAG extends this paradigm by replacing single-step retrieval with a multi-step process, in which the large language model (LLM) acts as a search agent that generates intermediate thoughts and subqueries to iteratively interact with the retrieval system. This iterative process incurs substantial latency due to the autoregressive generation of lengthy thoughts and subqueries. To address this limitation, we propose LatentRAG, a novel framework that shifts both reasoning and retrieval from discrete language space to continuous latent space. Unlike existing explicit methods that generate natural language thoughts or subqueries token-by-token, LatentRAG produces latent tokens for thoughts and subqueries directly from the hidden states in a single forward pass. We align LLMs with dense retrieval models in the latent space, enabling retrieval over latent subquery tokens and supporting end-to-end joint optimization. To improve transparency and encourage semantically meaningful latent representations, we incorporate a parallel latent decoding mechanism that translates latent tokens back into natural language. Extensive experiments on seven benchmark datasets show that LatentRAG achieves performance comparable to explicit agentic RAG methods while reducing inference latency by approximately 90%, substantially narrowing the latency gap with traditional single-step RAG.
Comments: Neural Information Processing Systems (NeurIPS), 2026
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG)
Cite as: arXiv:2605.06285 [cs.CL]
  (or arXiv:2605.06285v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2605.06285

arXiv-issued DOI via DataCite

Submission history

From: Yijia Zheng [view email]
[v1] Thu, 7 May 2026 13:56:13 UTC (3,867 KB)
[v2] Sun, 25 Oct 2026 11:05:26 UTC (3,788 KB)

来源:arXiv cs.CL · arxiv.org