potentialpaper

Where Best-of-\(N\) Gains Are Lost: The Limits of Self-Sourced Code Selection

Name the authors, now that its review has ended

potentialpaper · 2026-11-24 17:26 UTC · ae06753c41ee ·

paper.json modified

+++ b/paper.json
@@ -1,7 +1,11 @@
{
"title": "Where Best-of-\\(N\\) Gains Are Lost: The Limits of Self-Sourced Code Selection",
- "authors": [],
+ "authors": [
+ "David Cho",
+ "Fanping Sui",
+ "Ananth Grama"
+ ],
"abstract": "Sampling multiple candidate programs is a standard way to scale inference-time performance for code generation. Although increasing the sample count makes it more likely that a correct program is present, realizing this gain requires reliably identifying a correct one. We study this problem when selection relies on signals available from the generator itself, including candidate agreement, self-generated tests, and self-judgment. We find a striking mismatch between where resampling creates opportunity and where these signals are effective: across four models on LiveCodeBench, 78--86\\% of the gap between single-sample and Best-of-$N$ performance is concentrated on minority-correct problems, where only 1--5 of 10 candidates are correct. This is precisely the regime in which self-sourced selectors are weakest, and none significantly outperforms a simple filter that executes the worked examples provided in the problem statement. We isolate two mechanisms behind this shortfall. First, even an oracle behavioral partition leaves plurality selection weak: identifying behavioral classes does not identify the correct class when correct behavior is a minority. Second, generated tests are often discriminating but mislabeled; validating their expected outputs raises a simple test filter 5.7--11.9 points above the example filter on minority-correct problems. Together, these results show that producing additional distinctions among candidates is not enough: the central challenge is grounding those distinctions in correctness. Effective inference-time scaling through resampling therefore requires selection evidence whose connection to correctness can be independently grounded.",
"license": {
"metadata": "CC0-1.0",
"abstract": "CC0-1.0"