[2607.20064] PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
Abstract:Long-horizon tasks require sustained perception, reasoning, and exploration, and are a persistent challenge for large language model (LLM) agents. This gap is reflected in their limited performance on continual learning benchmarks such as ARC-AGI-3, especially when models are evaluated out of the box. Various agent harnesses have been proposed to close this gap, and each commits to a strategy for handling long sequences of observations, i.e., what information to save from the environment and how to load it into model context, a choice we argue is particularly consequential. Existing methods for context management face a significant tradeoff, as preserving more information makes retrieving relevant details less tractable. We propose PRO-LONG, a minimal context management framework built around programmatic memory for LLM agents in long-horizon, exploratory settings. PRO-LONG addresses the tradeoff by keeping a complete, structured interaction log and capitalizing on recent progress in coding agents to search this history efficiently. On the full ARC-AGI-3 public game set, PRO-LONG improves over a base coding agent by an average of 18.0 percentage points across frontier models, and matches or exceeds state-of-the-art specialized harnesses (up to 76.1% pass@1) while using 4.2-5.8x fewer tokens. With Fable 5, PRO-LONG achieves 97.4% best@2 at a total cost of \$1,750. Relevant code and logs are available at this https URL.
PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning Alexis Fox1 , Junlin Wang1 , Paul Rosu1 , Bhuwan Dhingra1 1 Duke University alexis.fox@duke.edu, bdhingra@cs.duke.edu Long-horizon tasks require sustained perception, reasoning, and exploration, and are a persistent challenge for large language model (LLM) agents. This gap is reflected…
saved by
related reading
- LLM Powered Autonomous Agents | Lil'Loglilianweng.github.io
- Recursive Language Models | Alex L. Zhangalexzhang13.github.io
- [2603.21972] Demystifying Reinforcement Learning for Long-Horizon Tool-Using Agents: A Comprehensive Recipearxiv.org
- Prime Agent: A Self-Improving RLM Harnessarxiv.org
- [2602.09514] EcoGym: Evaluating LLMs for Long-Horizon Plan-and-Execute in Interactive Economiesarxiv.org
- Effective harnesses for long-running agents \ Anthropicanthropic.com
- [2201.11903] Chain of Thought Prompting Elicits Reasoning in Large Language Modelsarxiv.org
- [2304.13343] Unleashing Infinite-Length Input Capacity for Large-scale Language Models with Self-Controlled Memory Systemarxiv.org
- [2606.10346] Reasoning or Memorization? Direction-Aware Diversity Exploration in LLM Reinforcement Learningarxiv.org
- Engramme – Remember Everythingengramme.com
- Chronos: Temporal-Aware Conversational Agents with Structured Event Retrieval for Long-Term Memoryarxiv.org
- [2603.05923] Learning Next Action Predictors from Human-Computer Interactionarxiv.org