Lune

ACL Findings2026

QueryLink: Leveraging Query-Memory Alignment for Long-Term Reasoning in LLM Agents

Xuxian Hu, Zhu Teng, Wei Zhang, Ming He, Jianping Fan

Abstract

Retrieval-Augmented Generation (RAG) systems are widely used to mitigate the stateless nature of Large Language Models (LLMs) in long-term and personalized interactions by incorporating external memory. However, existing approaches often prioritize memory organization, such as knowledge graphs, while overlooking a critical semantic gap between implicit, intent-driven queries and explicit, narrative-based memories. To bridge this gap, we propose QueryLink, a novel framework that leverages Query-Memory Alignment to project both queries and memories into a shared semantic space. It significantly boosts recall by facilitating multi-grained retrieval of semantically relevant information. To further enhance memory retrieval, we leverage Coherent Memory Chunking, a mechanism that processes memories in multi-turn dialogue units, preserving semantic integrity, rather than relying on fixed-size segments. Extensive experiments on the LoCoMo and LongMemEval benchmark demonstrate that QueryLink significantly outperforms SOTA methods, achieving at least a 7% improvement in reasoning accuracy (measured by LLM). Additionally, QueryLink can be integrated as a plug-and-play component to boost existing vector-based systems like A-MEM, leading to improvements of over 6% in both F1 and B1 scores. The code is available at https://github.com/ Dontplay0112/querylink. Has Andrew moved into a new apartment for his dogs?

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LightMem: Lightweight and Efficient Memory-Augmented Generation cites MemoryBank: Enhancing Large Language Models with Long-Term Memory
  • LightMem: Lightweight and Efficient Memory-Augmented Generation cites Generative Agents: Interactive Simulacra of Human Behavior
  • LightMem: Lightweight and Efficient Memory-Augmented Generation cites G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems
  • G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems cites MemoryBank: Enhancing Large Language Models with Long-Term Memory
  • G-Memory: Tracing Hierarchical Memory for Multi-Agent Systems cites Generative Agents: Interactive Simulacra of Human Behavior
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on13

  1. Generative Agents: Interactive Simulacra of Human BehaviorJoon Sung Park, Joseph C. O'Brien, Carrie Jun Cai, Meredith Ringel Morris et al.UIST 2023 · 1,882 citations
  2. MemoryBank: Enhancing Large Language Models with Long-Term MemoryWanjun Zhong, Lianghong Guo, Qiqi Gao, He Ye et al.AAAI 2024 · 394 citations
  3. Augmenting Language Models with Long-Term MemoryWeizhi Wang, Li Dong, Hao Cheng, Xiaodong Liu et al.NeurIPS 2023 · 256 citations
  4. LightMem: Lightweight and Efficient Memory-Augmented GenerationJizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang et al.ICLR 2026 · 162 citations
  5. G-Memory: Tracing Hierarchical Memory for Multi-Agent SystemsGuibin Zhang, Muxin Fu, Kun Wang, Frank Wan et al.NeurIPS 2025 · 108 citations

Related papers

  1. MemGraphRAG: Memory-based Multi-Agent System for Graph Retrieval-Augmented GenerationChuanjie Wu, Zhishang Xiang, Yunbo Tang, Zerui Chen et al.KDD 2026 · 1 citation
  2. Query-Driven Multimodal GraphRAG: Dynamic Local Knowledge Graph Construction for Online ReasoningChenyang Bu, Guojie Chang, Zihao Chen, CunYuan Dang et al.ACL Findings 2025 · 12 citations
  3. Query-Aware Graph Attention for Precise Subgraph Retrieval in Knowledge-Augmented ReasoningYuanye Xu, Linyi Guo, Yue Zhang, Fu NingACL Findings 2026
  4. Cog-RAG: Cognitive-Inspired Dual-Hypergraph with Theme Alignment Retrieval-Augmented GenerationHao Hu, Yifan Feng, Ruoxue Li, Rundong Xue et al.AAAI 2026 · 5 citations
  5. Reasoning with Memory: Adaptive Information Management for Retrieval-Augmented GenerationHieu Man, Ro-ee Tal, Abhishek Kumar, Jaejin Cho et al.ACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines