Large Language Model Critics for Execution-Free Evaluation of Code Changes

Aashish Yadavally, Hoan Nguyen, Laurent Callot, Gauthier Guinet · DOI

Evaluating the performance of AI coding agents is currently a slow and resource-intensive process. To determine if an agent's code fix is functional, developers typically must set up complex environments, install dependencies, and execute extensive test suites. Researchers from AWS AI Labs and the University of Texas at Dallas have introduced a novel approach to bypass this "build and run" cycle by using Large Language Models (LLMs) as "critics" to predict test outcomes and build status without executing a single line of code.

The Bottleneck of Execution-Based Evaluation

As the industry moves toward "agentic workflows"—where LLMs autonomously fix bugs or implement features—evaluation has become a significant bottleneck. Traditional metrics like build status (whether code compiles and passes tests) suffer from three primary issues:

  1. Expense: They require dedicated, scalable execution environments that are time-consuming to configure.
  2. Sparsity: Binary "Pass/Fail" results do not indicate incremental progress (e.g., whether an agent is 10% or 90% toward a solution).
  3. Opacity: Execution logs are often messy and fail to provide actionable feedback for agent improvement.

The proposed execution-free proxy aims to provide high-fidelity, granular feedback, making it easier to rank agents and track their progress incrementally.

Methodology: A Test-Centric Framework

The core innovation of this research is a test-centric framework that shifts evaluation from "macro-evaluation" (assessing the entire patch) to "micro-evaluation" (assessing how a patch affects individual tests). Key components include:

  • Reference-Aware Critics: The system utilizes the "gold test patch" (human-written verification tests) as a reference. The LLM critic compares the agent's code against these specific tests.
  • Context Enhancement: Rather than viewing a standard code diff, the context is expanded to include the entire function or method being modified, providing the LLM with necessary structural information.
  • Micro-to-Macro Aggregation: The LLM predicts the outcome of every individual test. If any single test is predicted to fail, the overall build status is marked as a failure.
  • Verbalized Confidence: Critics provide a confidence score (0–100). The researchers found that low-confidence predictions on complex tests are often reliable indicators of failure.

Key Results and Insights

The framework was evaluated using SWE-bench-Lite, a subset of 300 real-world software engineering tasks. The results demonstrate that granularity is essential; evaluating a patch against one test at a time allows the model to focus its reasoning more effectively than holistic checks.

LLM-Predicted vs True Test-Pass Rate for instances in SWE-BENCH_LITE, showing the high correlation between the execution-free proxy and ground truth.

As shown in the figure above, the LLM-predicted pass rates correlate strongly with true test-pass rates. Specifically, the framework achieved:

  • Test Prediction: A 91.6% F1-score for individual test outcomes.
  • Build Status Prediction: An 82.1% F1-score for overall success/failure.
  • Agent Ranking: The proxy aligned with ground-truth agent rankings in 68.8% of cases, significantly outperforming reference-free baselines.

The Utility of Verbalized Confidence

A significant finding of the study is that LLM self-reported confidence is a reliable signal for evaluation accuracy. By automatically marking "low-confidence" predictions on complex tests as failures, the researchers improved the model's bug-catching specificity by 24.1%.

Distribution of verbalized confidence measures for correct vs. incorrect predictions, illustrating the model's ability to self-assess its accuracy.

The distribution above highlights that correct predictions tend to cluster at higher confidence levels, while incorrect predictions often occur when the model expresses lower certainty. This signal allows for more conservative and accurate automated evaluations.

Conclusion and Future Directions

While the current framework relies on "gold" test patches—making it most suitable for benchmarking and offline evaluation—it represents a major step toward efficient AI agent development. Future work will focus on expanding the framework to other languages like Java, relaxing the requirement for reference test patches, and integrating these critics directly into agent loops for real-time self-reflection and error correction.

Summary updated

BibTeX
@misc{yadavally2025large,
  author = {Aashish Yadavally and Hoan Nguyen and Laurent Callot and Gauthier Guinet},
  title = {{Large Language Model Critics for Execution-Free Evaluation of Code Changes}},
  year = {2025},
  eprint = {2501.16655},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.16655},
}
Figure