Manuscript Offprint

arXiv:2610.13277

Beyond the Final Embedding: Retrieving Memories from Token-Level Evidence

Han Luo, Zhan Zhuang, Xu He, Jujia Zhao, Yu Li, Suqin Yuan, Dong Li, Lei Feng

ABSTRACT

Memory-augmented assistants retrieve evidence from stored conversations and documents to answer queries. Most embedding-based retrievers compare single-vector representations of queries and memories, even when relevance depends on a small part of the content. Such local evidence can be matched to queries using the contextual token representations already computed by the same embedding models. Our method uses sparse token matching to improve retrieval without additional training. Each query token retrieves a small set of matching tokens across candidate memories. The matching scores are aggregated for each memory and combined with whole-memory similarity to rank memories. An optional low-rank query adapter can be trained with supervision while keeping the encoder and stored memory representations fixed. Our method improves retrieval across eight benchmarks and multiple model families without additional training. Query adaptation further increases the gains to 13.3 and 14.3 percentage points in average Recall@10 and NDCG@10 on Qwen3-Embedding-4B. These retrieval gains translate into higher question-answering accuracy on long-term memory benchmarks.

1 INTRODUCTION

Memory retrieval enables assistants to answer questions using information from past conversations and stored documents (Maharana et al., 2024; Wu et al., 2025; Zhao et al., 2026). Existing retrieval approaches range from lexical methods that rely on word overlap (Robertson & Zaragoza, 2009) to semantic methods that compare learned representations of queries and memories (Wang et al., 2022). Among these, single-vector retrieval encodes each query and memory into a single embedding and uses embedding similarity to rank memories, supporting efficient indexing and search over large memory banks (Karpukhin et al., 2020; Zhang et al., 2025). The expressive limitations of single-vector retrieval have attracted both theoretical and empirical study (Weller et al., 2026).

In practice, the information needed to answer a question may occupy only a small part of a memory, and different questions may depend on different parts. Single-vector retrieval scores relevance through whole-memory similarity without explicitly matching queries to fine-grained information within each memory. However, the same encoder already computes contextual token representations that can be used to match queries to such local evidence. Figure 1 illustrates how combining the resulting local scores with whole-memory similarity improves retrieval.

These local matches illustrate the use of richer matching signals, a direction that existing work has explored alongside representation learning to improve retrieval. Context-aware representation learning methods, such as InSeNT and EvoEmbedding, incorporate surrounding information when learning retrieval representations (Conti et al., 2025; Nie et al., 2026). Search-Adaptor instead adapts the final embeddings produced by existing models (Yoon et al., 2024). On the matching side, multi-vector methods such as ColBERT score relevance through token-level matching (Khattab & Zaharia, 2020). Recent work further shows that existing single-vector models can support such matching by reusing their internal token representations (Zhang et al., 2026a).

We introduce a memory retrieval method that uses contextual token representations already computed by a frozen embedding model. Specifically, query tokens retrieve sparse matches across candidate memories, and their scores are aggregated by source memory. Combining these scores with whole-

∗^{*}Corresponding author.

Query What did Joanna find in old notebooks last week that prompted her to reflect on her progress as a writer?

(a) Original retrieval

(b) Local token evidence

(c) Top-10 recovery

Figure

Figure 1: Local evidence from existing token representations. Training-free fusion raises the relevant memory from rank 28 to 1 and yields a net gain of 523 Top-10 hits on LoCoMo.

memory similarity improves retrieval without additional training. With supervision, a lightweight query adapter further adjusts token-level matching while keeping the encoder and memory index fixed.

We evaluate our method across eight retrieval benchmarks and eight embedding backbones spanning multiple model families and sizes. The results show substantial retrieval improvements without additional training. Downstream evaluations further demonstrate higher question-answering accuracy on long-term memory benchmarks. Controlled comparisons and ablations examine sparse matching and whole-memory similarity, while efficiency experiments measure storage and query latency.

Our contributions are threefold:

• We show that existing token representations improve memory retrieval without additional training, revealing capabilities underutilized by single-vector scoring.

• We combine sparse token matching with whole-memory similarity and provide optional query adaptation that leaves the encoder and memory index unchanged.

• We evaluate eight backbones on eight retrieval benchmarks and downstream question answering, examining component contributions and quality-cost trade-offs.

References (47)