AI summaryⓘ
The authors investigated whether applying extra checks or fixes after a small code-generating model produces answers can improve its accuracy without retraining. They tested 26 different post-processing methods to select or repair outputs, but none improved results beyond just choosing the best from many tries. They found fundamental limits: sometimes harder tasks can't be fixed by more sampling or choosing, and correct programs are hard to identify without extra information. However, two methods helped in other ways—one rescued correct programs that standard tools missed, and another saved compute time without errors. Overall, the authors suggest improving the evaluation setup first before expecting post-hoc fixes to boost performance.
small code modelspost-hoc operatorsBest-of-N (BoN)semantic verificationexecution oraclecoverage wallrobust extractionleakage-free selectorHumanEvalcompute-saving
Abstract
Frozen small code models (<=1.5B parameters, run locally without fine-tuning) suit offline and privacy-constrained use, but often emit plausible-but-wrong programs. A natural remedy is a post-hoc operator that selects, verifies, repairs, or re-processes the model's samples without retraining; in principled form it is Popperian: attack each candidate with a severe test, keep what survives. We measure whether such operators help. Under one deterministic execution oracle and a leakage-free, matched-compute protocol, 26 semantic post-hoc operators (selection, verification, repair, elimination, portfolios, sound vetoes, generation conditioning) are evaluated against Best-of-N (BoN); on the cells and benchmarks tested, none improves held-out accuracy over BoN. The negative is mechanistic: a coverage wall (systematic hard-task failures deeper sampling does not rescue), a capability scissors (a competent generator leaves almost no discriminable error among visible-test passers), and a near-empty consensus trap (the visible-pass-but-hidden-wrong majority a leakage-free selector needs rarely co-occurs with a correct alternative). A distribution-free do-no-harm bound cannot certify a harm rate <=alpha at zero observed harm unless n>=45. Two operators help on a different axis, outside the semantic output space. An expression-layer recovery (M1), the only accuracy gain here, recovers correct programs the standard extractor discards (robust extraction and public-test signature alignment); it does no harm (b10=0), is leakage-free, and lifts DeepSeek-Coder-1.3B by +12 tasks on HumanEval+ (p=2.4e-4). An adaptive consensus early-stop (ACE) is a calibrated compute-saving control (~19% saving, zero harm). M1 and the selection negative replicate on HumanEval+ and MBPP+ across three model cells. The lesson: fix the harness and measure coverage before blaming semantic post-hoc reasoning.