cs.AISep 23, 2026

Memory Control Signals Emerge Before Action in Long Horizon Agents

Authors: Mingxuan Wang, Guorun Yao, Fei Luo, Yinglong Guo, Chao Ning, Bo Wang, Hongyue Chen, Yanbiao Ma, 

Organizations: TierFlow Team · Gaoling School of Artificial Intelligence, Renmin University of China · Tsinghua University

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. 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.

Figures & tables

Appendix figures & tables16 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. StateComp: Learning When to Compress History in Long Horizon Agents

    Sep 23, 2026Mingxuan Wang, Hongyue Chen, Yinglong Guo +6Context CompressionLong-Horizon LLM Agents

  2. Memex(RL): Scaling Long-Horizon LLM Agents via Indexed Experience Memory

    Mar 4, 2026Zhenting Wang, Huancheng Chen, Jiayun Wang +1LLM Agent MemoryMemory Management for LLM Agents