arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09100cs.CL
收藏

GRC:统一推理驱动生成、检索与压缩

GRC: Unifying Reasoning-Driven Generation, Retrieval and Compression

The University of Tokyo(东京大学)

Zhongtao Miao, Qiyu Wu, Yoshimasa Tsuruoka

AI总结:

本文提出GRC框架,通过元潜在标记和统一训练方法,将推理驱动生成、文本表示和上下文压缩整合于单次前向传递中,提升部署效率与训练效果。

摘要:

如今,文本嵌入和生成任务通常基于大语言模型(LLMs)独立训练,导致大量训练成本和部署努力。上下文压缩也是具有挑战性的任务,对推理驱动生成和需要长上下文的代理任务至关重要。本文探讨如何在LLMs中统一推理驱动生成、推理增强的文本表示和上下文压缩任务。通过元潜在标记和统一生成、代表性及压缩训练方法,我们提出名为GRC的训练框架,将三项任务连接起来。训练后的模型可在单次前向传递中完成三个目标,同时在推理过程中保持模块化和LEGO式灵活性。此设计显著减少了检索增强生成(RAG)的部署努力,并在训练期间实现高效推理和三倍的数据利用。此外,该框架设计启新的文本嵌入范式:自推理潜在嵌入,以及新的生成范式:潜在记忆增强生成,其中压缩且内部化的KV缓存(O(1)长度)用作可更新的记忆。我们还提出了混合分页注意力以加速模型推理。在推理密集型检索基准、生成任务、文档压缩、延迟评估和RAG设置上的广泛实验验证了本方法的有效性,并可能为真正统一的模型铺平道路,该模型能无缝处理推理驱动生成、嵌入和压缩任务。

英文摘要:

Text embedding and generative tasks are usually trained separately based on large language models (LLMs) nowadays. This causes a large amount of training cost and deployment effort. Context compression is also a challenging and pressing task, which is vital to reasoning-driven generation, and agentic tasks requiring long context and continual learning. In this paper, we explore how to unify reasoning-driven generation, reasoning-enhanced text representation and context compression tasks in one forward pass for LLMs. Through meta latent tokens and a unified generative, representative and compressive tuning approach, we propose a training framework named GRC that bridges the three tasks. The trained models can accomplish three objectives in a single forward pass while maintaining modular, LEGO-style flexibility during inference. This design greatly reduces the deployment effort for retrieval-augmented generation (RAG) and achieves efficient inference and three times data utilization during training. Furthermore, this framework design enables a new paradigm for text embedding: self-reason-latent embeds, and a new generation paradigm, latent memory-augmented generation, where compressed and internalized KV cache with O(1) length is used as the updatable memory. We also propose hybrid paged attention to speed up the inference of our models. Extensive experiments on reasoning-intensive retrieval benchmarks, generative tasks, document compression, latency evaluation, and RAG settings demonstrate the effectiveness of our method and may shed light on the truly unified model that can handle reasoning-driven generation, embedding and compression tasks seamlessly.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑