Manuscript Offprint

arXiv:2610.29121

Recursive Self-Improvement on a Budget: Scoring Code Edits Before They Run

Erfan Darzi, Sree Bhargavi Balija, Sheng He

ABSTRACT

A coding agent that rewrites its own scaffold has to choose which proposed edit to expand before that edit has been evaluated, and the search then has to return one agent. Each run fits one linear readout on the parent's steering-split solve rate and eight coordinates of the proposed diff, from 96 scaffold edits labeled by four evaluations of a 16-instance fit split, and then freezes the coefficients. HumanEval+ reserves 48 instances as the steering split and Polyglot reserves 64. That split scores parents and keeps an archive of four nodes. Huxley–Gödel Machine selection draws a parent by Thompson sampling on the steering counts of nodes that have already been evaluated, and it expands the child that parent proposes. Every method then returns the earliest evaluated node whose steering-split solve count is maximal. The tables report the held-out score of that node on the other 100 HumanEval+ instances and the other 145 Polyglot instances, next to the root scaffold and the calibration edit with the highest fit-split label. Twelve runs of GPT-4o return a node at 87.0% on held-out HumanEval+, against 84.2% for the parent-rate ablation. On that split Huxley–Gödel Machine selection returns 85.1%, the root is at 81.2%, and the calibration-best edit is at 82.8%. On the same split Claude Sonnet 4.5 returns 86.6%, beside 86.5% for Huxley–Gödel Machine selection, 85.3% for the parent-rate ablation, and 85.1% for the calibration-best edit.

1 INTRODUCTION

A coding agent that rewrites its own scaffold has to rank the edits it proposes before any of them has been evaluated, because the checker runs on one child per keep step and the child that is kept becomes a parent of the edits that follow. The Darwin Gödel Machine adds a child to its archive only after that child has been evaluated, and it samples parents from observed scores (Zhang et al., 2026). The Huxley–Gödel Machine draws a parent by Thompson sampling on the success and failure counts of evaluated nodes and expands the child that parent proposes (Wang et al., 2026). AIDE scores a candidate after the evaluator has run it (Jiang et al., 2025). Surrogate-assisted evolution fits a predictor of fitness from earlier evaluations of similar individuals (Jin, 2011). The readout is that kind of predictor, applied to the diff before the child is expanded. It is a linear score on the parent's steering-split solve rate and eight coordinates of the diff. The ablation uses the same archive and expands by the parent's steering rate alone. When the keep steps end, the readout, the parent-rate ablation, and Huxley–Gödel Machine selection each return the earliest evaluated node whose steering-split solve count is maximal. The held-out score of that node is the comparison, together with the root and the calibration edit whose fit-split label is highest. Huxley–Gödel Machine selection draws θ\theta from Beta(1+ns,1+nf)\text{Beta}(1 + n_s, 1 + n_f) for each evaluated node, using that node's steering counts, and expands the child of the parent with the largest draw. Every run of every method spends the same number of checker evaluations: the readout and the ablation label 96 calibration edits and then expand 24 children, and Huxley–Gödel Machine selection expands 144 children on Polyglot and 176 on HumanEval+. Claude Sonnet 4.5 and GPT-4o (gpt-4o-2024-08-06) are fit separately (OpenAI, 2024). The held-out splits are 100 HumanEval+ instances and 145 Polyglot instances (Liu et al., 2023; Gauthier, 2024). Table 1 is the held-out score of the returned node for the readout, the parent-rate ablation, and Huxley–Gödel Machine selection. Table 2 is the child the readout and the parent-rate ablation expand at the first keep step, and Figure 1 plots the returned node. Theorem 1 gives the mean of that parent draw, (1+ns)/(2+ns+nf)(1 + n_s)/(2 + n_s + n_f), on the steering counts of an evaluated node. The proof is in Appendix A.

Root Calibration best HGM Parent-rate Full readout

Figure

Claude Sonnet 4.5, Polyglot

GPT-4o, Polyglot

Figure 1: Held-out solve rate of the returned node, twelve runs. Points are means and bars are run standard deviations. For the readout, the parent-rate ablation, and Huxley–Gödel Machine selection, the node is the earliest evaluated node whose steering-split solve count is maximal. The root is the starting scaffold, and calibration best is the edit with the highest fit-split label. On HumanEval+ with GPT-4o the readout is the highest mean. On HumanEval+ with Claude Sonnet 4.5 the readout sits with Huxley–Gödel Machine selection, the parent-rate node, and the calibration-best edit. Table 1 reports these means.

• The readout ranks eight scaffold diffs at each keep step, and every method returns the earliest evaluated node whose steering-split solve count is maximal (Algorithm 1, Figures 2 and 3).

• Huxley–Gödel Machine selection draws a parent from Beta(1+ns,1+nf)\text{Beta}(1+n_s, 1+n_f) on the steering counts of evaluated nodes and expands that parent’s child (Theorem 1, Figure 3).

• On held-out HumanEval+, GPT-4o’s returned node leads the parent-rate ablation, and the same table reports Huxley–Gödel Machine selection, the root, and the calibration-best edit (Table 1, Figure 1).

References (23)