ActiveMem: Dynamic Latent Memory Trees for Long-Horizon Agents
Abstract
Large Language Model (LLM) agents increasingly rely on external memory to support long-horizon reasoning and decision making. Existing memory systems typically retrieve historical trajectories or summaries as independent context fragments, overlooking the procedural dependencies underlying multi-step execution. As memory scales, such flat retrieval introduces context fragmentation and cross-task interference, leading to structurally inconsistent reasoning trajectories. We propose ActiveMem, a hierarchical memory framework that recursively organizes agent experiences into dependency-aware latent execution trees. ActiveMem abstracts trajectories into reusable subtask nodes while explicitly preserving execution transitions, enabling coherent reasoning-path retrieval conditioned on the current execution state. To support continual adaptation, ActiveMem further learns dynamic memory expansion, retrieval, and pruning policies through reinforcement learning. Experiments across various agent benchmarks demonstrate that ActiveMem consistently improves task completion, reasoning stability, and memory efficiency over existing memory-based agents. Moreover, ActiveMem enables compact open-weight models to achieve competitive performance with substantially larger proprietary systems.
Create a lesson
Related papers
FlowState: Execution State as Memory for Long-Horizon LLM Agents
Shared title terminologycs.AIMinghao Li, Bangyan Li, Zifan Wang et al.
Self-Designed Evaluators and Warm Memory for Long-Horizon Agents
Shared title terminologycs.AISaeid Asgari, Emre Kiciman, Leonardo de Oliveira Nunes et al.
CodeSkill: Latent Skill Abstraction for Long-Horizon Code Agents
Shared title terminologycs.AISong-Li Wu, Jingyi Wang, Zhaocheng Du et al.
The Epistemics of Agent Memory: Measuring, and Governing, the Consolidation Decision in Long-Horizon LLM Agents
Shared title terminologycs.AISasank Annapureddy, Anjaneya Prasad Thamatani
DMC-5: Dual-Model Collaboration with Cache-aware Context Compression for Long-horizon Agents
Shared title terminologycs.AIHaochen Li, Xiaobing Tu, Yinggui Wang et al.
FromPitch2Board: Benchmarking LLM Agents in Long-Horizon Football Management
Shared title terminologycs.AIPeiyu Zang