cs.AISep 27, 2026

ActiveMem: Dynamic Latent Memory Trees for Long-Horizon Agents

Authors: Song-Li Wu, Jingyi Wang, Zhaocheng Du, Weinan Gan

Organizations: Tsinghua University · Huawei Noah’s Ark Lab

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.

Figures & tables

Explore similar work

CardsList
  1. ActiveMem: Distributed Active Memory for Long-Horizon LLM Reasoning

    Jun 9, 2026Yunhan Jiang, Wenbin Duan, Shasha Guo +3Long-Horizon LLM AgentsAgent Memory Management

  2. Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents

    Aug 21, 2026Quang Dao, Purvi Kathalkar, Kenneth EatonLLM Agent MemoryMemory Management for LLM Agents

  3. AdMem: Advanced Memory for Task-solving Agents

    Jun 5, 2026Runzhe Wang, Huilin Lu, Shengjie Liu +2Continual Learning for LLM AgentsLLM Agent Memory