TL;DR
Self-evolving LLM agents often suffer from "exploration collapse," getting trapped in familiar, sub-optimal routines as their memory grows. To fix this, the authors introduce APEX (Autonomous Policy Exploration), a framework that builds an explicit, graph-based strategy map of milestones and dependencies. By systematically tracking what has been tried and mining trajectories for untried paths, APEX significantly outperforms state-of-the-art agent baselines on complex text games and web navigation benchmarks.
What Problem Does This Paper Address?
Recent advances have paved the way for self-evolving LLM agents—systems that learn on the fly across episodes by accumulating text-based memory and reflections rather than updating model weights. While promising, these agents face a hidden trap: exploration collapse.
As an agent's memory grows, its behavior tends to concentrate around familiar, moderately high-reward routines. Because LLM agents operate in an implicit, unbounded strategy space (unlike traditional Reinforcement Learning, there is no predefined menu of primitive actions), the agent literally "does not know what choices it is missing." It optimizes for what it knows, missing out on qualitatively superior strategies.
Methods
APEX tackles exploration collapse by turning the open-ended strategy space into an explicit, structured map.
The framework relies on four core components:
- The Strategy Map: A Directed Acyclic Graph (DAG) where each node represents a natural language milestone (a discrete sub-goal and its key actions, e.g., "collect the brass lantern"), and edges encode prerequisite dependencies. Each node tracks statistics like visit counts, average rewards, and variance.
- Fork Discovery: The engine for map expansion. Every $N$ episodes, an LLM reviews past trajectories to identify actions or directions the agent observed but never pursued (e.g., noticing a locked door but never trying to unlock it), adding them as new frontier milestones.
- Policy Selection: During an episode, instead of generating actions completely from scratch, the agent uses a multi-armed bandit algorithm (defaulting to Thompson Sampling) to choose which eligible milestone to target next, naturally balancing exploration and exploitation based on uncertainty.
- Map Refinement & Return Propagation: A periodic reflection cycle that corrects edge dependencies, prunes duplicate nodes, and recursively propagates credit backward along the DAG edges. This ensures that "enabling milestones" (like finding a key) receive proper credit for unlocking high-reward successors.
Datasets
The authors evaluated APEX across two distinct interactive environments:
- Jericho: A benchmark suite for interactive fiction text-adventure games. The authors tested on nine diverse games: Zork1, Balances, Zork3, Temple, Pentari, Ludicorp, Deephome, Detective, and Ztuu.
- WebArena: A highly realistic web environment consisting of functional websites. The evaluation spanned 812 tasks across five categories: Shopping, Reddit, GitLab, CMS, and Map.
Key Insights and Ideas
- The Unbounded Action Space Paradigm: Traditional RL exploration methods focus on which known option to try next in a fixed action space. LLM agents need to figure out what options should exist in the first place. APEX shifts the focus to active strategy-space construction.
- DAG-based Credit Assignment: Chronological credit assignment (sequential discounting) often conflates parallel or unrelated actions within an episode. Propagating rewards strictly along prerequisite DAG edges yields much more accurate value estimates for planning.
- The Illusion of Stability: Reflection-based agents (like Reflexion) often achieve higher average early scores but lower maximum scores than purely static, memoryless agents. They refine familiar paths so effectively that they mask their failure to discover superior alternatives.
Key Results
- Jericho Superiority: APEX achieved the highest performance (Final-5 mean score) across all nine text games. For instance, on Deephome, APEX scored 103.4, vastly outperforming Reflexion (29.6) and the evolutionary baseline EvoTest (56.8).
- WebArena Success: APEX led across all five web domains, showing the largest gains on complex, multi-step sites like Reddit (68.2 vs. the next best baseline at 53.8).
- Cross-Task Generalization: When evaluated on WebArena tasks without task-specific prior experience, APEX maintained its lead, proving that the structured knowledge encoded in its strategy map successfully transfers to unseen tasks.
- Ablation Validations: Replacing the DAG structure with a "Flat List" of milestones caused a severe drop in performance, confirming that capturing multi-prerequisite dependencies is critical for effective agent planning.
Limitations and Future Work
- LLM Capability Bounds: The quality of the strategy map is inherently limited by the backbone LLM's capacity to extract milestones and infer subtle or deeply hidden game mechanics.
- Grounded Constraints: Fork Discovery can only expand the map based on directions or objects observed in past trajectories; it cannot discover strategies that lie entirely outside the agent's historical context.
- Discrete Assumption: APEX assumes tasks can be naturally broken down into discrete milestones. Adapting the framework to continuous environments or tasks with less structured progress signals remains an open challenge for future research.
Summary updated