Reproduce “Selective Memory Retention for Long-Horizon LLM Agents” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Pranath Reddy

Investigating memory management for long-horizon LLM agents, this research addresses "memory pollution" by implementing selective retention policies for bounded external memory. The study shows that learned retention methods maintain performance under noisy conditions and achieve comparable task success to unbounded memory while significantly reducing memory footprint and inference costs.

Key insights

  • Memory pollution can significantly degrade retrieval precision and agent performance, especially when failed or irrelevant experiences become highly similar to queries in the embedding space.
  • Bounded memory with selective retention can match the task success of unbounded memory while drastically reducing memory footprint and improving step efficiency.
  • Simple cache heuristics often suffice in "clean" benchmark conditions, but learned retention policies (like TraceRetain) become critical for maintaining performance under "noisy-write stress" conditions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.