AgentSwing: Adaptive Parallel Context Management Routing for Long-Horizon Web Agents
As large language models (LLMs) evolve into autonomous agents for long-horizon information-seeking, managing finite context capacity has become a critical bottleneck. Existing context management methods typically commit to a single fixed strategy throughout the entire trajectory. Such static designs may work well in some states, but they cannot adapt as the usefulness and reliability of the accumulated context evolve during long-horizon search. To formalize this challenge, we introduce a probabilistic framework that characterizes long-horizon success through two complementary dimensions: search efficiency and terminal precision. Building on this perspective, we propose AgentSwing, a state-aware adaptive parallel context management routing framework. At each trigger point, AgentSwing expands multiple context-managed branches in parallel and uses lookahead routing to select the most promising continuation. Experiments across diverse benchmarks and agent backbones show that AgentSwing consistently outperforms strong static context management methods, often matching or exceeding their performance with up to 3times fewer interaction turns while also improving the ultimate performance ceiling of long-horizon web agents. Beyond the empirical gains, the proposed probabilistic framework provides a principled lens for analyzing and designing future context management strategies for long-horizon agents.
69dc69e52b6b8dc66ffeec29
Zhaopeng Feng
69dc69e52b6b8dc66ffeec2a
Liangcai Su
69dc69e52b6b8dc66ffeec2b
Zhen Zhang
69dc69e52b6b8dc66ffeec2c
Xinyu Wang
69dc69e52b6b8dc66ffeec2d
Xiaotian Zhang
69dc69e52b6b8dc66ffeec2e
Xiaobin Wang
69dc69e52b6b8dc66ffeec2f
Runnan Fang
69dc69e52b6b8dc66ffeec30
Qi Zhang
69dc69e52b6b8dc66ffeec31
Baixuan Li
69dc69e52b6b8dc66ffeec32
Shihao Cai
69dc69e52b6b8dc66ffeec33
Rui Ye
69dc69e52b6b8dc66ffeec34
Hui Chen
69dc69e52b6b8dc66ffeec35
Jiang Yong
69dc69e52b6b8dc66ffeec36
Joey Tianyi Zhou
69dc69e52b6b8dc66ffeec37
Chenxiong Qian
69dc69e52b6b8dc66ffeec38
Pengjun Xie
69dc69e52b6b8dc66ffeec39
Bryan Hooi
69dc69e52b6b8dc66ffeec3a
Zuozhu Liu
69dc69e52b6b8dc66ffeec3b
Jingren Zhou
AgentSwing: Adaptive Parallel Context Management Routing for Long-Horizon Web Agents
As large language models (LLMs) evolve into autonomous agents for long-horizon information-seeking, managing finite context capacity has become a critical bottleneck. Existing context management methods typically commit to a single fixed strategy throughout the entire trajectory. Such static designs may work well in some states, but they cannot adapt as the usefulness and reliability of the accumulated context evolve during long-horizon search. To formalize this challenge, we introduce a probabilistic framework that characterizes long-horizon success through two complementary dimensions: search efficiency and terminal precision. Building on this perspective, we propose AgentSwing, a state-aware adaptive parallel context management routing framework. At each trigger point, AgentSwing expands multiple context-managed branches in parallel and uses lookahead routing to select the most promising continuation. Experiments across diverse benchmarks and agent backbones show that AgentSwing consistently outperforms strong static context management methods, often matching or exceeding their performance with up to 3times fewer interaction turns while also improving the ultimate performance ceiling of long-horizon web agents. Beyond the empirical gains, the proposed probabilistic framework provides a principled lens for analyzing and designing future context management strategies for long-horizon agents.
AgentSwing is a state-aware adaptive framework that improves long-horizon information-seeking by dynamically managing context through parallel branching and lookahead routing, outperforming static methods while reducing interaction requirements.
large language models autonomous agents context management long-horizon information-seeking probabilistic framework parallel context management lookahead routing state-aware adaptive framework