Grounding Agent Memory in Contextual Intent
Ruozhen Yang, Yucheng Jiang, Yueqi Jiang, Priyanka Kargupta, Yunyi Zhang, Jiawei Han
TL;DR
The paper tackles memory for long-horizon, goal-driven agents by introducing STITCH, a memory system that grounds recall via contextual intent structured as thematic scope, event type, and key entity types. STITCH constructs online cues and disambiguates memory through coreference-aware structural alignment, then retrieves past snippets using intent-compatible filters and label-density ranking. The authors validate STITCH on a new Context-Aware Agent Memory Evaluation Benchmark (CAME-Bench) and LongMemEval, showing state-of-the-art performance and particularly strong gains as trajectories lengthen; ablations show thematic scope and coreference resolution as critical factors. This approach offers improved robustness for robust long-horizon reasoning and better interpretability by grounding memory in explicit intents, with practical impact for multi-domain, goal-directed AI systems.
Abstract
Deploying large language models in long-horizon, goal-oriented interactions remains challenging because similar entities and facts recur under different latent goals and constraints, causing memory systems to retrieve context-mismatched evidence. We propose STITCH (Structured Intent Tracking in Contextual History), an agentic memory system that indexes each trajectory step with a structured retrieval cue, contextual intent, and retrieves history by matching the current step's intent. Contextual intent provides compact signals that disambiguate repeated mentions and reduce interference: (1) the current latent goal defining a thematic segment, (2) the action type, and (3) the salient entity types anchoring which attributes matter. During inference, STITCH filters and prioritizes memory snippets by intent compatibility, suppressing semantically similar but context-incompatible history. For evaluation, we introduce CAME-Bench, a benchmark for context-aware retrieval in realistic, dynamic, goal-oriented trajectories. Across CAME-Bench and LongMemEval, STITCH achieves state-of-the-art performance, outperforming the strongest baseline by 35.6%, with the largest gains as trajectory length increases. Our analysis shows that intent indexing substantially reduces retrieval noise, supporting intent-aware memory for robust long-horizon reasoning.
