Code World Models for Parameter Control in Evolutionary Algorithms

Read full text
Authors: Camilo Chacón Sartori, Guillem Rodríguez Corominas
Cited by: 0

Abstract

Can an LLM learn how an optimizer behaves -- and use that knowledge to control it? We extend Code World Models (CWMs), LLM-synthesized Python programs that predict environment dynamics, from deterministic games to stochastic combinatorial optimization. Given suboptimal trajectories of $(1{+}1)$-$\text{RLS}_k$, the LLM synthesizes a simulator of the optimizer's dynamics; greedy planning over this simulator then selects the mutation strength $k$ at each step. On \lo{} and \onemax{}, CWM-greedy performs within 6\% of the theoretically optimal policy -- without ever seeing optimal-policy trajectories. On \jump{$_k$}, where a deceptive valley causes all adaptive baselines to fail (0\% success rate), CWM-greedy achieves 100\% success rate -- without any collection policy using oracle knowledge of the gap parameter. On the NK-Landscape, where no closed-form model exists, CWM-greedy outperforms all baselines across fifteen independently generated instances ($36.94$ vs.\ $36.32$; $p

Fields of Study & Subjects

Metaheuristic Optimization Algorithms Research Evolutionary Algorithms and Applications Artificial Immune Systems Applications

Publication details

Journal / source
arXiv (Cornell University)
Publication date
1 January 2026
Language
EN
Document type
Preprint