Tool Sensitivity in LLM Agent Evaluation: Capability or Post-Training Overfitting?

    This article examines how changing only the tool exposure in an agent evaluation harness can move a flagship model's benchmark score from about 91 to 96-99. It also explains how an anchoring experiment points to overfitting from post-training. The article covers the likely mechanisms, how to distinguish real capability from overfitting, and practical ways evaluators and users can test for environment sensitivity.

    Tool Sensitivity in LLM Evaluation: Capability or Overfitting?

    1. A Puzzling Experimental Result

    A set of controlled experiments circulating in the community has raised questions about how much LLM benchmark results can be trusted. The subject was a vendor’s latest flagship model. On the same agent benchmark, only the way tools were exposed in the evaluation harness changed, yet the scores shifted sharply:

    • Standard mode: The full set of 25 tools, with detailed descriptions, was exposed. The model scored about 91.
    • Enhanced function-calling mode: The score was about 92, roughly the same as standard mode.
    • Minimal mode: Only shell execution and file reading tools were exposed. The score rose to 96 to 99.

    On its own, this result could be explained by a simple idea: fewer tools mean a smaller choice space and a lighter decision load for the model. The more puzzling result comes from a variant experiment, Anchored Standard. In the first round, the experimenters deliberately exposed only two tools, so the model believed it was in a minimal environment. After the model made its first tool call, all 25 tools were restored. If performance depended on tool count, the score should have dropped back to about 91. Instead, it stayed at 98 to 99.

    The tool count changed and the environment complexity changed, but one thing stayed the same: the form of the opening step. This result contradicts the simple intuition and points to a deeper explanation.

    2. Mechanisms Behind the Phenomenon

    1. “Opening move” memory from behavior cloning

    Post-training for modern LLMs usually includes supervised fine-tuning (SFT) and reinforcement learning based on preference or reward signals. If the training corpus contains many successful trajectories collected in minimal tool environments, such as coding or automation tasks with only shell and read tools, the model learns a strong prior:

    When the environment is described as “two tools plus a concise system prompt,” switch immediately to a problem-solving pattern that was repeatedly rewarded.

    That pattern may include using shell to explore the directory structure, using read to open key files, and breaking complex operations into scripts instead of calling specialized tools one by one. Because these trajectories were tied to high rewards during training, once the model recognizes the opening form, it can reproduce the whole chain of behavior.

    2. First-round anchoring: once the context is set, it is hard to reverse

    The anchoring experiment reveals a key property of autoregressive models: their behavior depends largely on the context prefix. After the first round, the conversation history already contains a trajectory in “minimal mode style,” including the model’s reasoning phrasing, tool call format, and task decomposition. In later rounds, the model continues generating while conditioned strongly on this history. Even when the environment description is updated to 25 tools, the momentum of the history still dominates behavior.

    This works much like few-shot demonstration in prompt engineering. The interaction history acts as a sample the model wrote for itself, and its influence often exceeds that of static instructions in the system prompt.

    3. Why a complex environment can drag down performance

    The lower score in standard mode may not mean the model cannot use tools. Several factors may combine:

    • Attention dilution: The schema descriptions for 25 tools use a large share of the context, which lowers the relative weight of key task information.
    • Choice paralysis: Tools with overlapping functions, such as “run command” and “run script,” force the model to make extra decisions at each step, which raises the chance of an error path.
    • Distribution shift: Training data may cover successful trajectories in complex tool sets poorly. Under this distribution, the model lacks a stable pattern and may hesitate in tool selection.

    3. Does This Count as Evaluation-Specific Overfitting?

    Strictly speaking, two cases need to be distinguished.

    Benign case: Minimal mode may simply match the model’s true capability ceiling. A small tool set reduces irrelevant distractions, so the model can use its reasoning and planning abilities more fully. Here a high score is a better measurement of real capability, not cheating.

    Concerning case: The model’s familiarity with minimal environments does not come from general ability. Instead, post-training used a large amount of trajectory data highly similar to this evaluation harness. In that case, the high score reflects memorized answer structure rather than transferable problem-solving ability. If the model is given a different minimal harness with a different style, its performance may drop sharply.

    The anchoring result points more toward the second case. If high scores came from “fewer tools, so simpler decisions,” restoring 25 tools would bring back the decision complexity, and performance should fall. It did not fall. This suggests the opening environment triggered the model’s “work mode,” not the tool count itself. This is a typical signal of overfitting to specific environment features. The model learns not how to complete tasks in any environment, but how to reproduce rewarded behavior in environments that look like the training environment.

    From an engineering standpoint, this problem is not rare. The cost of collecting post-training data leads teams to reuse a few mature execution environments. If an evaluator happens to use a similar environment, the training distribution and the evaluation distribution may overlap by accident. This is not necessarily an intentional attempt to game leaderboards, but it weakens the external validity of the evaluation.

    4. Implications for Evaluation Methodology

    1. Evaluation side: break up environment uniformity

    • Diversify harnesses: Run the same benchmark under several harnesses with different styles, including different tool names, schema formats, and system prompt structures. Examine the variance of scores rather than a single number.
    • Dynamic tool sets: Add or remove tools in the middle of a task and observe whether the model adapts smoothly instead of relying on the opening anchor.
    • Adversarial rewriting: Paraphrase tool descriptions and change parameter order to test whether the model depends on surface-level feature matching.
    • Cross-validation: Include anchoring-style experiments in the standard evaluation process to probe environment sensitivity directly.

    2. Training side: widen environment distribution coverage

    • Collect post-training trajectories from heterogeneous execution environments that deliberately vary the number of tools, their names, and the level of documentation detail.
    • Apply environment perturbation augmentation: sample several trajectories for the same task under multiple tool sets, so the model learns the essence of the task rather than the surface of the environment.
    • Watch for strong binding between an opening form and behavior patterns. Weaken this conditional dependence by shuffling system prompt templates or randomizing the order of tool descriptions.

    3. User side: read benchmark scores with caution

    For teams choosing or integrating models, a high score on a single benchmark has limited value. A more reliable approach is to run small-scale tests under tool configurations close to your own production environment, observe how the model handles unfamiliar tool schemas from a cold start, and treat evaluation scores as one sample point in a capability range rather than an absolute ranking.

    5. Conclusion

    The large score swings caused by tool exposure, and the finding that the opening step sets the outcome in the anchoring experiment, together show that a considerable part of current LLM agent capability depends on the environment. This shows the model can recognize useful patterns from context and reuse them. It also exposes the risk that post-training overfits to particular trajectory distributions. For the industry, evaluation infrastructure is part of what is being measured. Benchmark scores point to transferable general capability only when evaluation environments are diverse and training data is heterogeneous. As agent applications move quickly into production, understanding environment sensitivity systematically is worth more than chasing any single high score.