← News

Models & toolsSources: arXiv · 1 Dec 2026

Same local code model, switched to reasoning mode after failed tests, solves more benchmark exercises

A preliminary arXiv report describes a single-model cascade for local code generation: fast tries first, then reasoning mode on the same model once a test run fails, solving more Aider Polyglot exercises than a matched baseline.

In plain words

A researcher tested a way to make one locally run code model more effective: it first attempts a coding task quickly, and if the tests fail, the same model retries in a slower reasoning mode. On a public benchmark of 225 exercises, this solved more tasks than repeated fast attempts alone, though each success took no less time.

What was announced

The arXiv preliminary report studies escalation on failure for locally served open-weight models. One coder model tries fast, and when a test run fails, the same model is switched to reasoning mode. On the 225 exercises of the public Aider Polyglot benchmark, each exercise received a fixed schedule of tries and stopped at the first passing test run. With stage boundaries tuned on the same exercises, escalation runs solved 215 to 222 exercises, against 205 (91.1 percent) for a settings-matched baseline of ten fast tries. A second model was not needed to reach these counts: a two-model cascade using a second model for the last two tries solved 219 in each of two runs, though the data neither show nor exclude a small benefit from it.

The report notes the gain is more exercises solved, not speed: median time to a passing solution was not lower (10.3 seconds for the baseline versus 10.9 to 14.8 seconds for escalation runs), and total wall clock was longer. Starting reasoning tries in a fresh conversation at a 4+4 schedule solved 222 and 219, versus 215 to 217 with the conversation kept, a benefit of unestablished size. Escalating earlier, after two or three fast tries, gave no accuracy gain distinguishable from run-to-run noise and took longer. The author cautions these in-sample, work-until-correct figures are not comparable with two-try leaderboard scores.

What it does not show

  • Stage boundaries were tuned on the same benchmark exercises, so the in-sample results may not generalize.
  • Run-to-run noise spans a few exercises (identical 4+4 runs differed on nine), a single baseline run and one to three runs per variant were used, and possible training-data overlap is listed as a limit; the excerpt is an abstract of a preliminary report.

For security and IT teams

Scope
The report covers locally served open-weight models on the 225-exercise Aider Polyglot benchmark and states its in-sample work-until-correct figures are not comparable with two-try leaderboard scores.

Sources

Source-support review completed 1 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 1 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.