# MCTS-Judge: Test-Time Scaling in LLM-as-a-Judge for Code Correctness Evaluation

Source: [MCTS-Judge: Test-Time Scaling in LLM-as-a-Judge for Code Correctness Evaluation](<https://www.sota2.com/research/paper/68fa77021e209131cea70721>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-05-29T05:00:05.519Z

Authors: Yutong Wang, Pengliang Ji, Chaoqun Yang, Kaixin Li, Ming Hu, Jiaoyang Li, Guillaume Sartoretti

Published: 2025-02-18T02:55:48.000Z

## Abstract

The LLM-as-a-Judge paradigm shows promise for evaluating generative content but lacks reliability in reasoning-intensive scenarios, such as programming. Inspired by recent advances in reasoning models and shifts in scaling laws, we pioneer bringing test-time computation into LLM-as-a-Judge, proposing MCTS-Judge, a resource-efficient, System-2 thinking framework for code correctness evaluation. MCTS-Judge leverages Monte Carlo Tree Search (MCTS) to decompose problems into simpler, multi-perspective evaluations. Through a node-selection strategy that combines self-assessment based on historical actions in the current trajectory and the Upper Confidence Bound for Trees based on prior rollouts, MCTS-Judge balances global optimization and refinement of the current trajectory. We further designed a high-precision, unit-test-level reward mechanism to encourage the Large Language Model (LLM) to perform line-by-line analysis. Extensive experiments on three benchmarks and five LLMs demonstrate the effectiveness of MCTS-Judge, which improves the base model's accuracy from 41% to 80%, surpassing the o1-series models with 3x fewer tokens. Further evaluations validate the superiority of its reasoning trajectory in logic, analytics, thoroughness, and overall quality, while revealing the test-time scaling law of the LLM-as-a-Judge paradigm.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Code Correctness Evaluation on APPS](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-apps.md>): Code Correctness Evaluation; APPS; Accuracy: 80.

- [Meta-reasoning quality assessment on APPS](<https://www.sota2.com/research/sota/meta-reasoning-quality-assessment-on-apps.md>): Meta-reasoning quality assessment; APPS; Thoroughness: 85.6.

- [Multilingual Code Evaluation on HumanEval-X](<https://www.sota2.com/research/sota/multilingual-code-evaluation-on-humaneval-x.md>): Multilingual Code Evaluation; HumanEval-X; Python Score: 90.15.

- [Code Evaluation on BigCodeBench](<https://www.sota2.com/research/sota/code-evaluation-on-bigcodebench.md>): Code evaluation; BigCodeBench; Accuracy: 79.12.

- [Code Correctness Evaluation on BCB](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-bcb.md>): Code Correctness Evaluation; BCB; F1 Score: 42.5.

- [Code Correctness Evaluation on HE-PY](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-he-py.md>): Code Correctness Evaluation; HE-PY; F1 Score: 46.4.

- [Code Correctness Evaluation on HE-CPP](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-he-cpp.md>): Code Correctness Evaluation; HE-CPP; F1 Score: 30.

- [Code Correctness Evaluation on HE-Go](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-he-go.md>): Code Correctness Evaluation; HE-Go; F1 Score: 38.4.

- [Code Correctness Evaluation on HE-JS](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-he-js.md>): Code Correctness Evaluation; HE-JS; F1 Score: 35.2.

- [Code Correctness Evaluation on HE-JA](<https://www.sota2.com/research/sota/code-correctness-evaluation-on-he-ja.md>): Code Correctness Evaluation; HE-JA; F1 Score: 34.5.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2502.12468>)

[PDF](<https://arxiv.org/pdf/2502.12468.pdf>)
