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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteur principal: Jiang, Bo
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918380046385152
author Jiang, Bo
author_facet Jiang, Bo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2603_08429
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle One Model Is Enough: Native Retrieval Embeddings from LLM Agent Hidden States
Jiang, Bo
Computation and Language
Artificial Intelligence
Information Retrieval
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.
title One Model Is Enough: Native Retrieval Embeddings from LLM Agent Hidden States
topic Computation and Language
Artificial Intelligence
Information Retrieval
url https://arxiv.org/abs/2603.08429