InfiAgent: An Infinite-Horizon Framework for General-Purpose Autonomous Agents
Chenglin Yu, Yuchen Wang, Songmiao Wang, Hongxia Yang, Ming Li
TL;DR
InfiAgent addresses the brittleness of long-horizon LLM agents by decoupling long-term task memory from the bounded reasoning context. It externalizes persistent state into a file-centric workspace and reconstructs a fixed-size reasoning context at each step, ensuring the context length remains $\mathcal{O}(1)$ regardless of task duration. The framework employs a hierarchical, DAG-based agent architecture and an external attention pipeline to manage large information sources without inflating internal reasoning load. Experimental results on the DeepResearch benchmark and an 80-paper literature review task show that a 20B open-source model can rival larger proprietary systems and maintain high long-horizon coverage, supporting explicit state externalization as a practical foundation for stable autonomous research agents. The work demonstrates that persistent state management, when combined with structured task decomposition and external attention, enables scalable,Explainable, and robust long-horizon AI agents suitable for broad knowledge-work applications.
Abstract
LLM agents can reason and use tools, but they often break down on long-horizon tasks due to unbounded context growth and accumulated errors. Common remedies such as context compression or retrieval-augmented prompting introduce trade-offs between information fidelity and reasoning stability. We present InfiAgent, a general-purpose framework that keeps the agent's reasoning context strictly bounded regardless of task duration by externalizing persistent state into a file-centric state abstraction. At each step, the agent reconstructs context from a workspace state snapshot plus a fixed window of recent actions. Experiments on DeepResearch and an 80-paper literature review task show that, without task-specific fine-tuning, InfiAgent with a 20B open-source model is competitive with larger proprietary systems and maintains substantially higher long-horizon coverage than context-centric baselines. These results support explicit state externalization as a practical foundation for stable long-horizon agents. Github Repo:https://github.com/ChenglinPoly/infiAgent
