Memory Control Signals Emerge Before Action in Long Horizon Agents

Mingxuan Wang, Guorun Yao, Fei Luo, Yinglong Guo, Chao Ning +4 more
9/23/2026
cs.AI

No confident code implementation found for this paper.

Abstract

Long horizon language model agents continuously accumulate interaction history, increasing computational cost while making relevant information harder to preserve and reuse. Existing context management methods mainly focus on how to compress or retrieve history, but largely leave open whether the model itself already represents the need for these memory operations before they occur.

Show full abstract

We study the hidden state immediately before each agent action and find that compression and recall needs are already encoded in the model's internal representations. These signals cannot be explained by simple context length or interaction progress, and they exhibit distinct formation patterns across model depth. We further show that most memory decision information is preserved in a compact recent context, while selectively restored historical evidence complements the long range dependencies that recent context misses. Based on these findings, we propose Preaction Memory with Evidence Retrieval (PaMER), which combines state guided compression with external evidence retrieval. PaMER+ further introduces step level evidence selection to recover only the historical information required by the current task. Experiments on WorkBuddyBench, across multiple context management baselines and model backbones, show that our framework substantially reduces context consumption while maintaining competitive task performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026memory,
  title  = {Memory Control Signals Emerge Before Action in Long Horizon Agents},
  author = {Mingxuan Wang and Guorun Yao and Fei Luo and Yinglong Guo and Chao Ning and Bo Wang and Hongyue Chen and Yanbiao Ma and Jungong Han},
  year   = {2026},
  eprint = {2609.27286},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.27286v1}
}

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/2609.27286.svg)](https://codeofpaper.com/paper/2609.27286)

Discussion