Can External Validation Tools Improve Annotation Quality for LLM-as-a-Judge?

Arduin Findeis, Floris Weers, Guoli Yin, Ke Ye, Ruoming Pang, Tom Gunter · Submission to ICLR 2025 · Rejected

Introduction

"LLM-as-a-Judge" has rapidly become the standard paradigm for evaluating AI responses, especially in reinforcement learning from human feedback (RLHF). However, these AI judges often fall for stylistic flourishes while missing underlying factual or logical errors. This paper introduces an Evaluation Agent that leverages external tools—such as web search and code execution—to ground its judgments in reality, significantly boosting accuracy in technical domains like coding and long-form fact-checking.

Overview of the Evaluation Agent approach and key performance improvements across fact-checking, coding, and math domains.

The Problem: Style Over Substance

Evaluating Large Language Models (LLMs) typically involves "pairwise preference": an annotator (human or AI) reviews two responses to the same prompt and decides which is better. While this works reasonably well for creative writing or general chat, it frequently fails in technical domains.

AI judges are notoriously susceptible to length bias (preferring longer answers) and style over substance. For instance, if a model generates a confident-sounding but buggy code snippet, a standard LLM judge might rank it higher than a correct but shorter response. Humans struggle here too; fact-checking 50 claims in a long-form essay is exhausting and highly error-prone. To address this, the authors propose giving the AI judge a "fact-checking kit" to verify claims before rendering a verdict.

Methods: The Evaluation Agent Framework

The authors propose a structured, three-step framework for their Evaluation Agent:

Detailed workflow of the Evaluation Agent, showing the initial assessment, specific tool usage pipelines, and final decision logic.
  1. Initial Domain Assessment: An LLM first analyzes the prompt and responses to determine if they contain facts, code, or math. If the task is just a general conversation, it skips the tools to save compute and reverts to a baseline annotator.
  2. Tool Usage:
    • Fact-checking: Based on the SAFE (Search Augmented Factuality Evaluator) method, the agent breaks responses into atomic facts and uses web search to verify each one independently.
  3. Code/Math Execution: The agent uses a code interpreter to write and run unit tests for code snippets or to verify complex arithmetic.
  4. Final Decision: The LLM receives the original responses alongside the "evidence" gathered by the tools. It then makes a final preference judgment using Chain-of-Thought reasoning.

Crucially, the authors found that agentic scaffolding—the structured process of planning and verifying—is essential. Simply giving an LLM access to tools via a standard API without this step-by-step structure actually decreased reliability.

Datasets and Evaluation

The researchers evaluated their agent on several benchmarks, including RewardBench, a standard superset for evaluating reward models and judges. Because many existing datasets are "saturated" (current models already achieve near-perfect accuracy), the authors introduced three challenging new pairwise datasets:

  • LongFact pairwise: Long-form factual responses with manually introduced subtle errors.
  • APPS competition pairwise: High-level coding problems where the judge must distinguish between functional and non-functional code.
  • GSM8k hard pairwise: Math problems that GPT-4o originally failed to solve.

Key Results and Insights

  • Coding (The Biggest Win): On the APPS dataset, baseline LLM judges performed worse than random, preferring incorrect code ~70% of the time. The tool-augmented agent flipped this entirely, achieving over 71% agreement with ground truth.
  • Fact-Checking: On the LongFact dataset, the agent improved GPT-4o’s accuracy from 63% to over 80%. In fact, the Evaluation Agent achieved higher agreement with ground-truth labels than non-expert human annotators, who often missed factual errors that the web-search tool caught.
  • Breaking Self-Enhancement Bias: LLMs often prefer responses that mirror their own internal biases or training data patterns. By forcing the judge to look at objective execution results (e.g., "Did the code actually run?"), the agent successfully overcomes this internal echo chamber.
  • Math Remains a Challenge: Results in math were mixed. While the agent improved on simpler baselines, it only reached about 56% agreement on the hardest problems, suggesting that translating complex math into executable code is still a frontier.
  • Out-of-Domain Safety: The agent showed minimal regression on non-target tasks (like general chat), proving that the Domain Assessment step successfully filters out prompts that don't require external tools.

Limitations and Future Work

The authors acknowledge that this approach is computationally expensive and increases latency, requiring multiple LLM calls and external API hits per evaluation.

A notable failure mode occurred in safety-related tasks. Occasionally, the agent would prioritize a "factually correct" answer over a "safe refusal" (e.g., correctly answering a dangerous prompt rather than praising the model that refused to answer). The authors suggest that a dedicated safety tool or classifier should be integrated into the framework to handle these ethical nuances. Future work will also focus on improving the math checker to better handle symbolic reasoning that doesn't map cleanly to Python code.

Summary updated

BibTeX
@misc{findeis2025can,
  author = {Arduin Findeis and Floris Weers and Guoli Yin and Ke Ye and Ruoming Pang and Tom Gunter},
  title = {{Can External Validation Tools Improve Annotation Quality for LLM-as-a-Judge?}},
  year = {2025},
  eprint = {2507.17015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.17015},
}
Figure