NEAR: Neighborhood-Aware Residuals for Memory Retrieval
Han Luo, Zhan Zhuang, Xu He, Jujia Zhao, Yu Li, Suqin Yuan, Dong Li, Lei Feng
Key points
From the paper's conclusion- We propose NEighborhood-Aware Residuals (NEAR), a training-free framework that uses these references to construct residual representations that complement the original embeddings.
Abstract
Memory retrieval aims to identify evidence from stored records to answer a query. Stored records with different factual details may share topics, entities, or events. Such shared contents would make records without the required evidence more likely to receive high similarity scores and outrank the correct evidence. In this paper, we use the information shared by these records to construct local references for query-memory matching. We propose NEighborhood-Aware Residuals (NEAR), a training-free framework that uses these references to construct residual representations that complement the original embeddings. Specifically, each memory derives a reference direction from its neighbors, and each query obtains its reference from a precomputed table. Using these references, NEAR constructs projection residuals for both queries and memories. These residuals are combined with the original embeddings for a single approximate nearest-neighbor search over a fixed memory index. Experiments on eight long-context retrieval benchmarks show consistent improvements across nine embedding models. Downstream evaluations show that NEAR improves question-answering performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Learning to Retrieve Missing Evidence for Long-Term Memory QAarXiv · 2026
- Beyond the Final Embedding: Retrieving Memories from Token-Level EvidencearXiv · 2026
- The Geometry of Agent Memory: Forecasting Retrieval-Bound Memory Failures, and Characterizing Its LimitsarXiv · 2026
- Relevance Is Not Sufficiency: What Actually Closes the Evidence Gap in Long-Term Memory QAarXiv · 2026
- BRAG: Bayesian Retrieval Augmented GenerationarXiv · 2026
- Is Complex Agentic Memory Always Needed? Naive RAG Is Stronger Than We ThoughtarXiv · 2026