arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08429cs.CLcs.AIcs.IR
收藏

一个模型就足够:从LLM代理隐藏状态中获取原生检索嵌入

One Model Is Enough: Native Retrieval Embeddings from LLM Agent Hidden States

Temple University(特拉华大学)

Bo Jiang

AI总结:

本文提出通过轻量级投影头使LLM代理具备原生检索能力,无需额外嵌入模型,保留97%检索质量并在QReCC基准测试中表现优异。

摘要:

LLM代理在检索外部知识时通常会生成一个文本搜索查询,然后运行一个单独的嵌入模型将其编码为向量。这种双模型流水线增加了基础设施复杂性和延迟,但却是冗余的:LLM已经在其隐藏状态中编码了完整的对话上下文。我们提出通过添加一个轻量级的投影头,使LLM代理具备原生检索能力,将隐藏状态直接映射到嵌入空间,从而消除对单独嵌入模型的需要。通过结合对齐、对比和排名蒸馏损失进行训练,我们的方法在保留97%的基线检索质量的同时,使LLM代理能够使用自身表示进行检索。在QReCC对话检索基准测试中,实验结果表明,与标准的生成后再编码流水线相比,Recall@10和MRR@10表现相当,系统性的消融实验确认了每个损失组件的贡献。

英文摘要:

LLM agents that retrieve external knowledge typically generate a search query as text, then run a separate embedding model to encode it into a vector. This two-model pipeline adds infrastructure complexity and latency, yet is redundant: the LLM already encodes the full conversational context in its hidden states. We propose equipping LLM agents with native retrieval capability by adding a lightweight projection head that maps hidden states directly into the embedding space, eliminating the need for a separate embedding model. Trained with a combination of alignment, contrastive, and rank distillation losses, our method retains 97\% of baseline retrieval quality while enabling the LLM agent to search with its own representations. Experiments on the QReCC conversational search benchmark show competitive Recall@10 and MRR@10 compared to the standard generate-then-encode pipeline, with systematic ablations confirming the contribution of each loss component.

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

↑