The LLM Proposes, the Benchmark Disposes: Centre Bias in LLM-Driven Automated Algorithm Design
Authors: Yuefeng Xu, Rui Zhong, Jun Yu
Organizations: Graduate School of Science and Technology, Niigata University, Niigata, Japan · Information Initiative Center, Hokkaido University, Sapporo, Japan · Institute of Science and Technology, Niigata University, Niigata, Japan
Large language models (LLMs) are increasingly used to design black-box optimisation algorithms automatically (LLM-driven automated algorithm design, LLM-AAD). Selected by scores on training benchmarks, many of which place optima at or near the search-box centre, do LLM-AAD optimisers develop a centre or origin bias? Using Kůdela's shift-ratio test and the BIAS toolbox, we screen 330 published LLM-generated algorithms from six sources, flagging 1.9% (6/312) at D=5 and 1.8% (5/276) at D=10. A controlled LLaMEA experiment then varies only the training benchmark: with unshifted functions (optima near the origin), 5/20 final algorithms are flagged at D=10 vs. 0/20 with randomly shifted functions (exploratory; Holm-corrected p=0.094). On independent test instances, centre-trained algorithms lose more performance when the optimum moves (AOCC gap: median 0.024 vs. 0.005, mean 0.092 vs. 0.005; Mann-Whitney p=0.003, r=0.52), driven by four losing 0.30-0.36. Across all 497 best-so-far algorithms, biased code reaches the top under both regimes (6/20 vs. 3/20 runs) but persists to the end more often under unshifted training (5/6 vs. 0/3). A single code edit removes the flag for all ten examined biased algorithms, uncovering unreported LLM-optimiser mechanisms including a velocity clamp equal to box half-width (landing particles on the centre) and origin-trapping bugs. For four of five centre-trained algorithms this edit causes no detectable loss on shifted instances, unlike CMA-ES initialised at the box centre. Randomly shifting training functions offers a simple safeguard.
Figures & tables
Fig. 1: Shift ratio of every screened algorithm, sorted (log scale). The dashed line is Kůdela’s threshold of 10.
Fig. 2: Share of algorithms with centre/origin bias, with Wilson 95% intervals. Hatched: value cited from Kůdela [ 7 ] under a different protocol.
Fig. 3: Controlled evolution, 20 runs per group. (a) Final algorithms flagged as biased (one shifted-group verdict at D=5 is invalid). (b) AOCC gap of each final algorithm between unshifted and shifted instances, on independent test instances shared by all algorithms; bars are medians.
Fig. 4: Best training AOCC over generations for the nine runs in which a biased best-so-far algorithm appeared. Crosses mark new best algorithms with shift ratio above 10.
Fig. 5: Single-line ablations: shift ratio of the original algorithm and of the version with one change (dimension at which the original is most biased).
Fig. 6: Two cases from the centred group (code simplified). Left: the responsible code and the single change. Right: AOCC before and after the change on the same independent test instances; Δ : paired mean difference on the shifted instances with 95% bootstrap interval (60 paired runs).
Source
Algorithms
Distinct
Selection
BLADE, SBOX-COST runs [ 5 ]
199
199
run best
BLADE, MA-BBOB runs [ 5 ]
50
50
run best
LLaMEA paper runs [ 1 ]
45
45
run best
LLaMEA paper, EoH baseline [ 1 , 2 ]
5
5
run best
LLaMEA-BO [ 8 ]
20
17
5 named, 15 run best
LLaMEA-HPO
8
8
3 named, 5 run best
TABLE S1: Sources of the LLM-generated algorithms (Section III ). “Run best”: the best algorithm of a published LLM-AAD run; “named”: an algorithm presented in the publication.
Algorithm
LLM
D=5
D=10
Type
Mechanism
ATRKTEIBO_VAD_SuccessAware (BO)
see [ 8 ]
299,202
–
origin or centre
zero trust-region centre + unscrambled Sobol †
AHTRBO_EI_DBS (BO)
see [ 8 ]
172,112
–
origin or centre
unscrambled Sobol (second point = centre) †
EnhancedAdaptiveDE_CMA
Gemini 2.0 Flash
23,151
14,736
origin
CMA mean starts at the origin †
SimplifiedAdaptiveGaussSearch
Codestral
450
2,029
origin or centre
starting point at the origin †
CoordinateCMAES
Gemini 2.0 Flash
48.7
4.6
centre
not identified
SimpleCMAES
Gemini 2.0 Flash
12.0
24.1
origin
mean starts at the origin †
TABLE S2: All LLM-generated algorithms with a geometric-mean shift ratio above 10 (standard protocol, and the BO protocol at D=5 ). “Origin or centre”: the algorithm ignores the given bounds, so the asymmetric box cannot separate the two. Mechanisms marked † are confirmed by the single-line ablations of Section VI and Table S3 .
Algorithm
Change
D=5
D=10
Conclusion
Exp. B centred run 9 (PSO)
one particle at the origin → random
4,347 → 2.1
3,673 → 1.6
cause
initialisation concentrated near the origin → uniform
4,347 → 6,692
3,673 → 4,476
not the cause
velocity clamp 5 → 4.7
4,347 → 2,687
3,673 → 3,124
not the cause
all three
4,347 → 1.1
3,673 → 1.2
Exp. B centred run 13 (GA)
unfilled population rows (zeros) → random
1,797 → 0.9
3,120 → 1.1
cause (bug)
Exp. B centred run 4 (PSO)
velocity clamp ±5→±4.7
986 → 1.7
149 → 1.8
cause
TABLE S3: Every single-line variant and its shift ratio (original → changed), with the same seeds as the original. “All”: every change listed for that algorithm at once. BO algorithms are tested at D=5 only.
Algorithm
Change
Unshifted test
Shifted test
Δ shifted [95% CI]
Δ gap [95% CI]
run 13
unfilled rows → random
0.796 → 0.442
0.434 → 0.441
+0.007 [ − 0.003, +0.016]
− 0.360 [ − 0.434, − 0.286]
run 4
velocity clamp 4.7
0.738 → 0.416
0.388 → 0.394
+0.005 [ − 0.014, +0.025]
− 0.328 [ − 0.397, − 0.256]
run 4
velocity clamp 1
0.738 → 0.531
0.388 → 0.508
+0.120 [+0.091, +0.150]
− 0.327 [ − 0.406, − 0.250]
run 6 (unflagged)
velocity clamp 4.7
0.776 → 0.511
0.476 → 0.488
+0.012 [ − 0.008, +0.033]
− 0.277 [ − 0.354, − 0.202]
run 1
global best reset → random
0.674 → 0.616
0.587 → 0.573
− 0.014 [ − 0.031, +0.001]
− 0.044 [ − 0.089, − 0.003]
run 1
perturbation ∝∣x∣→ constant
0.674 → 0.672
0.587 → 0.584
− 0.003 [ − 0.019, +0.014]
+0.001 [ − 0.020, +0.022]
TABLE S4: AOCC of the experiment-B algorithms before and after each change on the same independent test instances (12 training functions × 5 runs, unshifted and shifted; Supplementary Material S5). Δ : paired mean difference (changed − original) over the 60 paired runs, with 95% bootstrap interval; “gap” = unshifted − shifted.