Exploration and Exploitation Errors Are Measurable for Language Model Agents

Jaden Park, Jungtaek Kim, Jongwon Jeong, Robert D. Nowak, Kangwook Lee, Yong Jae LeearXiv 2026

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:

  1. 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.
  2. 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.
Figure 2: Illustration of the LM agent traversing the 2D grid map to achieve the goal given by the task DAG. In each timestep, the environment returns the set of admissible moves and the information about the task node, if discovered. The LM agent must retain relevant information about the map geometry, the task DAG structure and the states of the discovered nodes to achieve the goal node.

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.
Comparison of exploration behaviors between Claude Opus 4.6 and Gemini 3.1 Pro over the course of an episode.
  • 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.
Plots showing the strong negative correlation between success rate and exploration error, contrasted with the weak correlation for exploitation error.
  • 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

BibTeX
@misc{park2026exploration,
  author = {Jaden Park and Jungtaek Kim and Jongwon Jeong and Robert D. Nowak and Kangwook Lee and Yong Jae Lee},
  title = {{Exploration and Exploitation Errors Are Measurable for Language Model Agents}},
  year = {2026},
  eprint = {2604.13151},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.13151},
}
Figure