Skip to main content
All work
Preprint· September 2026

Let Execution Do the Teaching

How far can we push a coding model when execution does the grading?

Abhishek Mishra and Sandeep Srinivasa

Improving a coding model takes three decisions. Find the behaviour that limits it. Create useful practice. Decide which attempts to reward. This study grounds all three in execution. It starts from GLM-4.7-Flash and combines whole-file supervised fine-tuning, C++ repair exercises, group-relative RL, and verifiers that turn program behaviour into rewards.

The strongest setup reaches 45.2% success in the first test round and 61.5% within two rounds. The base model scores 1.9% and 17.3%. That setup uses a selected set of four eval trials and shares six tasks with the training set. The scope note below has the full caveats.

C++ tasks in Fixed26
26
Task-trial runs per setup
104
First-round success, strongest setup
45.2%
Finished within two rounds
61.5%

Results​

Mean tasks solved, out of 26. Each setup ran the full suite four times. First round counts tasks that pass on the first try. Two rounds counts tasks solved by the end of the second round, after test feedback.

GLM-4.7-Flash base · first round0.5
GLM-4.7-Flash base · two rounds4.5
Phone Number, iter 14 · first round11.25
Phone Number, iter 14 · two rounds15.25
Generalized C++, iter 14 · first round11.75
Generalized C++, iter 14 · two rounds16
Exhibit 1 — Figure 2 of the study. Generalized C++ is the selected best-four cohort.
SetupPrompt contractFirst roundTwo roundsRecovery
GLM-4.7-Flash baseoriginal prompts0.50 (1.9%)4.50 (17.3%)16/102 (15.7%)
Luna referenceoriginal prompts, hosted elsewhere6.25 (24.0%)16.75 (64.4%)42/79 (53.2%)
SFT v5fixed26-contract6.00 (23.1%)10.25 (39.4%)17/80 (21.2%)
Synth v1, epoch 50fixed26-contract-v29.50 (36.5%)12.00 (46.2%)10/66 (15.2%)
Execution-midband RL v1fixed26-contract-v28.25 (31.7%)13.00 (50.0%)19/71 (26.8%)
Execution-midband RL v2fixed26-contract-v210.50 (40.4%)14.50 (55.8%)16/62 (25.8%)
Phone Number, iter 14fixed26-contract-v211.25 (43.3%)15.25 (58.7%)16/59 (27.1%)
Generalized C++, iter 14 (selected cohort)fixed26-contract-v211.75 (45.2%)16.00 (61.5%)17/57 (29.8%)
Exhibit 2 — Reported means out of 26 and recovery (Table 4). Recovery is the share of first-round failures solved in round two. The selected cohort is the best four of the Generalized C++ trials; six of its training tasks are in Fixed26. 95% task-bootstrap intervals: Phone Number 7.5–15 first round and 11–19.25 two rounds; Generalized C++ 8–15.5 and 11.75–20.

Method​

Execution checks both the exercise and the answer. Take the phone-number exercise. The verifier compiles each candidate against the required C++17 interface. It then runs twelve Boolean checks in four groups: valid input, formatting and rejection rules, boundary cases, and combined interface checks. The twelve outcomes become one reward:

R = (1/12) · Σ (2bₖ − 1), k = 1 … 12

All twelve passing gives +1. Ten passing gives +2/3. None passing gives −1. The verifier writes the twelve outcomes to the test log. The reward parser accepts them only when the harness's completion marker follows them. That marker carries a fresh random token for the run.

  1. Construct. Compiler errors and failing tests name the failure. The task builder turns each one into a repair exercise. It checks the exercise with a reference solution and faulty controls before use.
  2. Train. A whole-file supervised warm start, then GRPO: sample candidate programs, compile and test them, score the behaviour, and update a LoRA adapter on the relative rewards.
  3. Evaluate. Saved checkpoints run the 26 C++ tasks of Fixed26 through Aider, four trials each. That is 104 task-trial runs per setup, scored on first-round success and finish within two rounds.

Training record​

The phone-number validation run, as recorded (Table 7).

SettingRecorded value
Base model and adaptationGLM-4.7-Flash; LoRA rank 16, alpha 32
Hardware8 × H100 80 GB; BF16; tensor parallel 4; expert parallel 8
Rollout and batch8 prompts × 32 samples; global batch 256; 20 GRPO updates
OptimizationLearning rate 3 × 10⁻⁵; warmup fraction 0.1; KL coefficient 0.1
Scored checkpointPhone Number adapter, iteration 14

Task-level outcomes​

First-round successes out of four trials (Table 5).

TaskSynth v1Phone Number
Phone Number1 / 44 / 4
Parallel Letter Frequency0 / 43 / 4
Gigasecond3 / 40 / 4
Sublist3 / 41 / 4
Exhibit 3 — Phone Number and Parallel Letter Frequency improve across the training line. Gigasecond and Sublist decline.
Scope of the results
  • These are dev-suite evals. Prompt contracts differ between setups, so the comparisons mix model updates with changes to the eval setup.
  • The Generalized C++ result uses a selected best-four cohort and has six training task IDs in common with Fixed26.
  • Luna is a reference eval hosted elsewhere under its own setup.
  • Task-level results include regressions as well as gains. The intervals above show the spread across this small suite.

Artifacts​

Adapters, datasets, and eval archives, hosted under WootzappLab on Hugging Face. The repositories are private at the time of writing; Appendix B.3 of the study lists them.

  • Phone-number validation adapter and run archive (model)
  • Multi-task C++ adapter and selected evals (model)
  • Supervised training dataset, Synth v1 (dataset)
  • Checkpoint eval archive, Synth v1 (dataset)

Run manifests name the datasets, adapters, eval archives, and launch configs behind each experiment. The repository includes audit scripts that recompute the SFT v5 and Phone Number results.

Citation

@misc{mishra2026execution,
  title  = {Let Execution Do the Teaching},
  author = {Mishra, Abhishek and Srinivasa, Sandeep},
  year   = {2026},
  month  = sep,
  note   = {Preprint},
  url    = {https://github.com/wootzapp/let-execution-do-the-teaching/blob/main/study.md}
}