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.
Large Language Models (LLMs) have already been widely adopted for automated algorithm design, demonstrating strong abilities in generating and evolving algorithms across various fields. Existing work has largely focused on examining their effectiveness in solving specific problems, with search strategies primarily guided by adaptive prompt designs. In this paper, through investigating the token-wise attribution of the prompts to LLM-generated algorithmic code, we show that the embedded code examples and their associated strategy instructions have the strongest influence on the generated algorithms. Building upon this insight, we propose leveraging existing benchmark algorithms as strong priors to guide LLM-driven optimization. We evaluate this approach with three LLMs on two black-box optimization benchmarks: the pseudo-Boolean optimization suite (pbo) and the black-box optimization suite (bbob). Despite relying on a simple (1+1) elitist search, it obtains the best average rank in five of six benchmark--LLM settings against six state-of-the-art LLM-driven methods, including more sophisticated search strategies. Our findings highlight the value of integrating benchmarking studies to enhance both efficiency and robustness of the LLM-driven black-box optimization methods.
Qi Huang, Furong Ye, Ananta Shahane +2
Leiden Institute of Advanced Computer Science (LIACS), Leiden University, 2333 CC Leiden, The Netherlands
LLMs now prove hard theorems in Lean. Can they also design algorithms and prove their correctness and efficiency? LLM-guided design of optimisation heuristics (such as AlphaEvolve) is purely empirical. Automated theorem provers with LLMs prove given statements. So far, there has been little evidence that LLMs can do both: design an algorithm and guarantee its efficiency by a mathematical proof. We present a staged pipeline modelled after research methodology in design and analysis of evolutionary algorithms. The agent proposes black-box optimisation algorithms, and Lean guards filter out flawed designs. The agent then defines a potential function and proves drift bounds that guarantee an expected runtime improvement over the baseline algorithm. At no point in the pipeline are the algorithms compared empirically. The agent generates a black-box optimisation algorithm with expected runtime O(n2) on a CycleUncover problem, where the classical (1+1) EA needs runtime eΩ(n). The pipeline also designs and analyses a black-box optimisation algorithm for integer-valued submodular minimisation with expected runtime O(n2+2c), and it matches the classical runtime O(n2) on LeadingOnes. Across 8 problem classes, 12 of 15 runs with frontier models complete the pipeline with a machine-checked expected-runtime bound. An ablation study shows that removing the staging and asking the agent to zero-shot an algorithmic design with a runtime guarantee leads to a copy of the seeded baseline algorithm (random search) or to incomplete proofs. Our study suggests that machine-checked specifications in Lean can replace empirical evaluation in open-ended algorithm discovery. To the best of our knowledge, this is the first example of an automated pipeline that designs efficient black-box optimisation algorithms with machine-checked runtime bounds in Lean.
Per Kristian Lehre
School of Computer Science, University of Birmingham, UK
Large language models (LLMs) now generate substantial production code, often for tasks with multiple valid algorithmic solutions. Incidental prompt cues, meaning contextual words or metadata outside the task specification, can steer which algorithm the model selects, even when all outputs pass the same tests. Prompt sensitivity is well studied as a tool to improve output quality. Here, output policy means algorithm choice under fixed correctness. We define algorithm steering as cue-induced shifts in algorithm-family distributions and run 46,535 controlled experiments across 11 tasks, 19 cue types (18 channels plus a memoization semantic-vs-surface ablation that preserves meaning while changing typography and punctuation), and 15 model configurations. We find large, systematic shifts in algorithm-family distributions (up to 100 pp), largely consistent with cue semantics, including in applied tasks such as rate limiting. Direct algorithm naming is the most reliable mitigation we tested. Accidental context therefore creates an "invisible lottery" over performance, security, and maintainability.