TL;DR
This paper introduces a policy-agnostic framework to separate and measure exploration and exploitation errors in Language Model (LM) agents using only their observed action trajectories. By testing frontier models in a custom symbolic grid-world environment, the authors reveal that an agent's ability to explore effectively is the primary predictor of its overall success, and that simple "harness engineering" (providing structured memory summaries) can drastically reduce behavioral errors.
What Problem Does This Paper Address?
When humans or reinforcement learning agents tackle complex tasks, they constantly balance exploration (searching for new information) and exploitation (using what they already know). Evaluating this balance in LLM agents is notoriously difficult. Because researchers typically lack access to an agent's internal policy or value functions, they must judge the agent entirely by its external actions.
Furthermore, existing benchmarks often rely on natural language descriptions that allow models to cheat using "semantic shortcuts" (e.g., inferring that a "key" opens a "door" based on pre-training data rather than actual in-environment reasoning). To truly understand how well LM agents plan, navigate, and learn, we need a way to isolate and quantify exploration and exploitation errors purely from behavior, without relying on semantic clues.
Methods
The authors designed a policy-agnostic framework consisting of two main components:
- The Environment: A partially observable 2D grid map paired with an unknown task Directed Acyclic Graph (DAG). To eliminate semantic shortcuts, all tasks and items are replaced with random symbolic tokens (e.g., node "D7UX" must be achieved before node "9J7T"). The agent must explore the grid to discover these nodes and exploit its knowledge to fulfill their structural prerequisites.
- The Metric: Instead of comparing an agent to an "optimal" reference trajectory, the authors developed a graph-theoretic error metric. It tracks "no-progress trajectories" and flags structurally redundant actions—such as closing unnecessary loops or repeatedly backtracking over the same edges beyond a reasonable budget—categorizing them as exploration or exploitation errors based on the map's state.
Additionally, the authors evaluated Harness Engineering: introducing a rule-based external memory manager that aggregates past observations into a structured summary (tracking visited cells, traversable frontiers, and activated states) and appends it to the prompt.
Datasets
The evaluation relies on a procedurally generated dataset featuring:
- 9 distinct map configurations generated by varying exploitation demands (low, medium, high density/corridor widths) and task DAG sizes (small, medium, large).
- A custom semantic dataset based on simple pasta-cooking scenarios (e.g., mixing pasta and tomato sauce) used specifically to ablate and analyze the impact of semantic priors versus symbolic abstractions.
Key Insights and Ideas
- Exploration is the bottleneck: An agent's success is heavily dictated by its exploration efficiency. Models that fail usually do so because they cannot systematically search unvisited space.
- Identical success rates can hide vastly different behaviors: Claude Opus 4.6 and Gemini 3.1 Pro both achieved a 100% success rate on certain tasks, but their trajectories diverged mid-episode. Claude preferred direct, myopic exploitation of known paths, while Gemini continued to proactively explore unvisited frontier cells on its way to the goal.
- Strategic prompting works, but only to a point: Adding a single sentence instructing the model to "prioritize exploration" or "prioritize exploitation" successfully shifts the error metrics in the intended direction.
- Semantic priors are a double-edged sword: Reintroducing natural language names (like "Pasta") caused GPT-4.1's success rate to triple by helping it guide its exploration. However, it actually degraded Gemini 3.1 Flash Lite's performance by biasing it toward myopic exploitation.
Key Results
- Strong Correlation with Exploration Error: The authors found a powerful negative linear relationship ($R^2 = 0.947$) between log exploration error and success rate. Conversely, exploitation error showed virtually no correlation ($R^2 = 0.006$) with overall success.
- Impact of Harness Engineering: Providing a structured memory summary dramatically boosted performance across the board. For Gemini 3.1 Flash Lite, success jumped from 51.9% to 88.9%, while its exploration error plummeted from 0.172 to 0.030. Similarly, GPT-4.1 saw its success rate rise from 63.0% to 92.6%.
Limitations and Future Work
The authors note that their error metrics are inherently trajectory-dependent; because the normalization depends on how many timesteps a model spends in a given state, the metrics serve better as behavioral summaries rather than absolute standalone qualities. Additionally, the purely symbolic, semantics-free grid world is an intentional abstraction; real-world agents will eventually need to balance raw structural reasoning with domain-specific semantic knowledge. Future work includes extending this framework to richer, non-grid environments and more complex task dependencies.
Summary updated