# ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation

Source: [ACES: Who Tests the Tests? Leave-One-Out AUC Consistency for Code Generation](<https://www.sota2.com/research/paper/69d48f777d0172140ec74260>)

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

Data updated: 2026-07-15T05:00:05.882Z

Authors: Hui Sun, Yun-Ji Zhang, Zheng Xie, Ren-Biao Liu, Yali Du, Xin-Ye Li, Ming Li

Published: 2026-04-05T01:15:57.000Z

## Abstract

Selecting LLM-generated code candidates using LLM-generated tests is challenging because the tests themselves may be incorrect. Existing methods either treat all tests equally or rely on ad-hoc heuristics to filter unreliable tests. Yet determining test correctness requires knowing which codes are correct, creating a \\emph{circular dependency}. Our key insight is that we need not determine test correctness at all: \\emph{test votes should rank, not merely count}. What matters is not how many codes pass a test, but whether the test can \\emph{distinguish} correct from incorrect code. We break the circular dependency via leave-one-out evaluation: hold out one test, rank codes by their aggregate scores on all remaining tests, and measure whether the held-out test's pass/fail pattern agrees with this ranking. We formalize this agreement as the leave-one-out AUC~(LOO-AUC) and prove that the expected LOO-AUC is proportional to each test's ability to separate correct code from incorrect code. Building on this, we propose \\textbf{ACES}~(\\textbf{A}UC \\textbf{C}onsist\\textbf{E}ncy \\textbf{S}coring) with two complementary variants: ACES-C provides closed-form weights that provably approximate the oracle in expectation under a mild assumption on average test quality; ACES-O drops this assumption and iteratively optimizes a differentiable LOO-AUC objective. Both operate solely on the binary pass matrix with negligible overhead, and achieve state-of-the-art Pass@$k$ on multiple code generation benchmarks.

## 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 Generation on LeetCodeDataset (all tasks)](<https://www.sota2.com/research/sota/code-generation-on-leetcodedataset-all-tasks.md>): Code Generation; LeetCodeDataset (all tasks); Pass@1: 25.44.

- [Code Generation on HumanEval+ (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-plus-test.md>): Code Generation; HumanEval+ (test); Pass@1: 84.76.

- [Code Generation on HumanEval (test)](<https://www.sota2.com/research/sota/code-generation-on-humaneval-test.md>): Code Generation; HumanEval (test); Pass@1: 85.37.

- [Code Generation on HumanEval](<https://www.sota2.com/research/sota/code-generation-on-humaneval.md>): Code Generation; HumanEval; Pass@1: 92.68.

## Original sources and implementation

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

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