English

Pareto Optimal Code Generation

Software Engineering 2026-02-26 v2 Programming Languages

Abstract

Generate-then-rank is the dominant test-time scaling (TTS) paradigm for code generation, but scaling accuracy by sampling and executing more candidates makes comprehensive verification a major computational bottleneck. This creates an inherent trade-off between accuracy and compute that, despite its importance to TTS, is often ignored. Specifically, faster but noisier signals, such as outcome reward models (ORMs), are dismissed as suboptimal. We frame verifier selection as a Pareto optimization problem and empirically map the accuracy-throughput frontier across signals, including the full test suite, heuristics for selective execution, and ORMs, across four Python benchmarks. We show that ORMs are most effective at optimizing the Pareto curve when pruning is used in the generate-then-rank pipeline--known as staged verification--where lightweight filters remove obviously incorrect solutions, including candidates with small syntactic or character-level bugs, before expensive verification. Our pruning analysis shows that eliminating incorrect yet highly ranked candidates (often character-level bugs) prevents wasted compute on incorrect tokens. We find that ORMs with staged verification shift the Pareto frontier outward, achieving 11.64x higher throughput at a cost of 8.26% accuracy relative to full test-suite verification.

Keywords

Cite

@article{arxiv.2506.10056,
  title  = {Pareto Optimal Code Generation},
  author = {Gabriel Orlanski and Nicholas Roberts and Aws Albarghouthi and Frederic Sala},
  journal= {arXiv preprint arXiv:2506.10056},
  year   = {2026}
}

Comments

29 pages, 6 figures, code released here: https://github.com/SprocketLab/orm-code-verifier

R2 v1 2026-07-01T03:11:54.173Z