Generating key points…
Answers are grounded in this paper and cite their sources.
Cascades that answer with a cheap language model and escalate to a stronger one only when a check fails promise large savings for code generation, where programs can be executed against tests. We study when such test-verified cascades fail. On HumanEval+ and MBPP+, a three-tier cascade (Gemini 2.5 Flash-Lite -> GPT-4o-mini -> Claude Haiku 4.5) that escalates when a program fails the original benchmark tests reaches accuracy comparable to always using the strongest model (91.1% vs. 89.1% and 80.4% vs. 78.8%; no significant difference) at 6.2x and 4.6x lower cost, and the conclusion holds under greedy decoding. Its weakness is verification: it accepts a program that passes the weak original tests but fails the expanded tests in 6.0% and 15.1% of runs. A controlled experiment that varies only the verifier's tests confirms the cause: a few extra correct tests per task cut MBPP+ false accepts from 14.1% to 6.2% (mostly by turning silent errors into detected failures) and make the cascade significantly more accurate than the strongest model on both benchmarks. Self-consistency does not repair false accepts at reasonable cost, consistent with errors being correlated within a model: two wrong programs from the same model behave identically on our probe inputs in 72-81% of cases on MBPP+, versus 54-59% across models, also on a task-matched subset. Behavioural agreement with a different model therefore detects more errors than agreement among a model's own samples, whereas LLM judges and model-written tests show no consistent cross-model gain. Because most programs these checks reject are in fact correct, better detection does not improve end-to-end accuracy. Verifier precision under correlated errors is the main open problem for cost-efficient code cascades.
No takes yet. Share an insight, caveat, or question.
Hruthik Vurukonda (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: