The advancement of large language models (LLMs) has significantly enhanced the capabilities of agents across various tasks. Recursive self-improvement (RSI) loops, in which a language model repeatedly rewrites a program and builds on its previous version, now perform well in machine-learning tasks, but they rely on frontier models and hundreds of calls per run. Small open-weight models are far cheaper, yet when used alone, their programs often crash and their improvements stall. We propose DiVE (diverse models evolve), an ensemble method for RSI that aims to improve creativity and diversity of generated solutions. DiVE uses three components: a shared memory, a failure log, and best-idea-wins rounds. This allows models to write candidate solutions from the same context and retain the best idea at each iteration. On 22 MLE-bench Lite competitions, an ensemble of five 8-12B open-weight models has 25.4% less test error than its average member and 16.7% less than Llama 3.3 70B, and comes within 7.1% of Qwen 3.5 122B-A10B at 75% of its cost. Diversity among small models can thus stand in for part of the scale that RSI relies on.
Figures & tables
Figure 1: DiVE matches the best small model at 63% of its cost and ends 25% above the average of five individual runs. Mean improvement over the shared start on the test set against money spent, over 22 MLE-bench Lite competitions; costs include the zero-shot rounds that chose the start.
Figure 2: A comparison of simplified OpenEvolve and DiVE. (a) OpenEvolve, the standard RSI loop, draws one model per iteration by a fixed weight and adds every scored child to a program database from which the next parent is drawn. (b) DiVE adds three components. (1) Shared memory , (2) Failure log , and (3) Best idea wins : all K models write a candidate from the same prompt, and the best-scoring one replaces the memory if it beats it. Components 1 and 2 are part of every run in our study, single-model or ensemble. Scores are from a real ML evaluator at each round.
Model
Developer
Params
In ensemble
Qwen 3.5 9B ( Team, 2026 )
Alibaba
9B
Y
Ministral 8B (2512) ( Liu et al., 2026 )
Mistral AI
8B
Y
Granite 4.2 8B ( IBM Research, 2026 )
IBM
8B
Y
Gemma 3 12B ( Team et al., 2025 )
Google
12B
Y
Llama 3.1 8B ( Grattafiori et al., 2024 )
Meta
8B
Y
Llama 3.3 70B
Meta
70B
N
Table 1: Models. In ensemble: whether the model is one of the ensemble’s five members.
Improvement over the start (%)
Test vs.
Leaderboard (test)
All-in cost
Run
Practice split
Test set
own ZS (%)
Medals
≥ Median
Teams beaten
Valid
per comp.
Ensemble (5 small)
41.7
38.1
–
4
9
45
38
$1.42
Qwen 3.5 9B
28.5
27.6
35.5
3
5
38
27
$0.41
Ministral 8B
13.9
7.8
21.6
3
4
29
8
$0.39
Granite 4.2 8B
15.4
13.7
25.1
3
3
31
70
$0.25
Gemma 3 12B
3.6
3.5
19.9
2
2
26
69
$0.24
Table 2: Results of each run, averaged over 22 MLE-bench Lite competitions. Improvement over the start: the share of the start program’s error that the final program removes, on the practice split and the test set. Test vs. own ZS: the same, measured from the model’s own zero-shot program. Medals and ≥ Median: competitions with a medal, or with a medal or a place above the median team. Valid: share of the run’s programs that ran. All-in cost: API cost per competition.
Figure 3: Improvement over the start program, round by round, on the practice split (left) and the test set (right), averaged over 22 competitions. Each curve follows the program its run would return at that round; an ensemble round writes five programs.
Share (%)
Competitions
Member
New bests
Gain
Final
Alone
Granite 8B
26
31
4
3
Ministral 8B
8
21
1
3
Qwen 9B
14
21
3
12
Gemma 12B
26
16
5
1
Llama 8B
25
12
9
3
Table 3: What each small model contributes inside the ensemble. New bests: % of the ensemble’s new best programs that it wrote. Gain: its share of the ensemble’s total improvement (%). Final: competitions where it wrote the ensemble’s final program. Alone: competitions where it was the best of small models.
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
Run (ours, CPU only)
Any medal (%)
Valid submission (%)
≥ Median (%)
Gold (%)
API cost / comp.
Ensemble (5 small)
18.2
95.5
40.9
4.5
$1.42
Qwen 3.5 9B
13.6
90.9
22.7
4.5
$0.41
Ministral 8B
13.6
95.5
18.2
4.5
$0.39
Granite 4.2 8B
13.6
100.0
13.6
4.5
$0.25
Gemma 3 12B
9.1
100.0
9.1
4.5
$0.24
Llama 3.1 8B
9.1
95.5
9.1
4.5
$0.39
Appendix
Table 4: MLE-bench Lite, for context. Top: any-medal rates on the Lite (low-complexity) split from the official MLE-bench leaderboard ( Chan et al., 2025 ) , with each agent’s model and running time per competition; frontier models and 12–24 hours, so not comparable with our runs. Bottom: our runs over the 22 Lite competitions, CPU only.
Run
RSI cost / comp.
Jumps / comp.
Jumps / 100 programs
Cost / jump
Cost / test point
Stalled
Ensemble (5 small)
$1.34
14.1
1.4
$0.095
$0.035
66
Qwen 3.5 9B
$0.33
5.4
2.7
$0.062
$0.012
86
Ministral 8B
$0.31
0.8
0.4
$0.404
$0.040
99
Granite 4.2 8B
$0.18
4.6
2.3
$0.039
$0.013
88
Gemma 3 12B
$0.16
1.5
0.8
$0.105
$0.046
97
Llama 3.1 8B
$0.31
2.4
1.2
$0.129
$0.038
95
Appendix
Table 5: Cost per improvement. RSI cost: the run’s own calls (shared zero-shot rounds excluded). Jumps: how often the returned program changed. Cost per test point: RSI cost per competition over the mean improvement in percentage points. Stalled: share of rounds inside a stretch of at least 20 without a jump.
Inside the ensemble
Per competition
Member
Programs
Valid
New bests
Final program
Best alone
Tokens (M)
Cost
Qwen 3.5 9B
4,400
19
43 (14)
3 of 22
12 of 22
2.54
$0.32
Ministral 8B
4,400
9
26 (8)
1 of 22
3 of 22
2.50
$0.27
Granite 4.2 8B
4,400
49
80 (26)
4 of 22
3 of 22
2.53
$0.19
Gemma 3 12B
4,400
51
82 (26)
5 of 22
1 of 22
2.65
$0.19
Llama 3.1 8B
4,400
38
79 (25)
9 of 22
3 of 22
2.21
$0.37
Appendix
Table 6: Members inside the ensemble over 22 competitions. Programs and new bests are totals; tokens and cost are per competition. New bests: programs that became the ensemble’s new best. Final program: competitions where the member wrote the program the ensemble returned. Best alone: competitions where the member’s own run ended best among the five members alone.
Competition
Metric
Teams
Start (test)
Start from
Aerial Cactus
auc-roc
↑
1221
0.9739
Qwen 9B
Denoising Documents
root_mean_squared_error
↓
162
0.2029
Granite 8B
Spooky Author
multi-class-log-loss
↓
1242
0.5833
Gemma 12B
Random Acts of Pizza
auc-roc
↑
462
0.5694
Granite 8B
Nomad2018
mean-column-wise-rmsle
↓
879
0.0640
Qwen 9B
Leaf
multi-class-log-loss
↓
1596
0.9310
Gemma 12B
Appendix
Table 7: The competitions: metric and direction; Kaggle teams on MLE-bench’s leaderboard copy; the shared start program’s test score and whose zero-shot program it is ( ∗ : no member wrote a runnable one in 30 calls).
Competition
Ensemble
Qwen 9B
Ministral 8B
Granite 8B
Gemma 12B
Llama 8B
Llama 70B
Qwen 122B
Aerial Cactus
97.2 M
98.3 M
60.5
70.2
3.4
49.0
66.0
98.5 M
Denoising Documents
70.5 M
8.1
64.1 M
24.9
0.0
24.9
0.0
93.0 G
Spooky Author
39.3 M
35.8 M
0.0
16.8
12.9
19.1
0.0
33.6 M
Random Acts of Pizza
36.8 B
− 3.6
32.7 B
− 1.5
− 9.7
0.0
1.8
0.0
Nomad2018
4.8 S
5.1 S
0.0 B
3.5 S
2.6 B
7.1 S
4.9 S
4.9 S
Leaf
94.5 M
78.7
− 79.7
58.3
0.0
15.1
30.2
21.2
Appendix
Table 8: Improvement over the start on the test set, per competition and run (%). Superscripts: MLE-bench’s grade ( G gold, S silver, B bronze, M above the median team). “–”: no test score. On 2 competitions the shared start alone already medals.
Figure 4: Model families in the final programs: share of final programs whose code fits each family (a program can fit several). Small models alone: 110 programs (five models, 22 competitions); ensemble: 22; large models: 44. Grey: the shared start.
Small alone
Ensemble
Large
Final program is still the start (%)
30
0
18
Model families per final program (mean; start 0.82)
0.97
1.14
1.48
Two or more model families (%)
9
18
36
Length of the final program (median characters)
5,846
6,822
7,522
Appendix
Table 9: The final programs by kind of model, over 22 competitions.
Figure 5: How the ensemble’s standout programs were built: test score of each new best over the 200 rounds, with each dot coloured by the member that wrote it. Axes are flipped where lower is better, so up is always better. Dashed lines: the final programs of the runs it beats.
Bare feedback
Debug feedback
Run
Cycles
Impr. (%)
Valid
Cost
Cycles
Impr. (%)
Valid
Cost
Ensemble (5 small)
131,338
11.1
25
$1.96
135,445
8.3
25
$2.28
Qwen 3.5 9B
147,734
0.0
2
$0.61
147,734
0.0
2
$0.62
Ministral 8B
147,734
0.0
0
$0.21
147,734
0.0
0
$0.22
Granite 4.2 8B
147,724
0.0
2
$0.26
147,734
0.0
2
$0.27
Gemma 3 12B
147,732
0.0
19
$0.20
147,732
0.0
16
$0.20
Appendix
Table 10: Kernel optimization. Final kernel’s cycles on the nine-input test (the same as on the two practice inputs), improvement over the start (147,734 cycles), share of the run’s programs that built a correct kernel, and API cost.