Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents

Yaoqi Chen, Haibin Lai, Yuru Feng, Chuyu Han, Qianxi Zhang +7 more
6/4/2026
8 citations
cs.AI

Official code: Komorebi660/MAGE (6 stars, Python, last commit 2026-10-26).

Abstract

LLM-based agents increasingly tackle long-horizon tasks with interdependent decisions, where each action reshapes future constraints and intermediate errors can cascade. Existing RAG and agent memory systems organize histories by semantic similarity, retrieving content-relevant entries at decision time.

Show full abstract

We argue that this design mismatches execution-state dependencies: it fragments decision trajectories and mixes valid and erroneous traces, hindering coherent state reconstruction and error isolation. We propose MAGE (Memory as Agent-Guided Exploration), an active execution-state manager that stores interactions in a hierarchical state tree. The agent derives its state from the active root-to-current path, combining subgoal summaries, recent traces, and hints from prior branches. Four coupled operations maintain the tree: Grow records new traces, Compress summarizes completed subgoals, Maintain validates summaries, and Revise restores a target boundary and resumes on a new branch. This design bounds context growth while preserving state integrity and isolating flawed segments from the active path. Experiments on MemoryArena show that MAGE improves the average task success rate by 7.8--20.4 pp over baselines, while reducing token consumption by 55.1%. Code is available at: https://github.com/Komorebi660/MAGE.

View on arXivView PDF

Code Implementations(1)

Komorebi660/MAGEOfficial100%

[EMNLP'26] Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents

61Python, HTMLAug 23, 20261 months ago
agentagent-memorylong-horizon-agents

Similar Papers

Cite this paper

@article{chen2026beyond,
  title  = {Beyond Semantic Organization: Memory as Execution State Management for Long-Horizon Agents},
  author = {Yaoqi Chen and Haibin Lai and Yuru Feng and Chuyu Han and Qianxi Zhang and Baotong Lu and Menghao Li and Xinjiang Wang and Zewen Jin and Hao Wu and Cheng Li and Qi Chen},
  year   = {2026},
  eprint = {2606.06090},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.06090v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.06090.svg)](https://codeofpaper.com/paper/2606.06090)

Discussion