Fitness Landscape of Large Language Model-Assisted Automated Algorithm Search

Large Language Models (LLMs) have demonstrated significant potential in algorithm design. However, when integrated into search frameworks for iterative algorithm search, the underlying fitness landscape--critical for understanding search behaviou--remains underexplored. In this paper, we illustrate and analyze the fitness landscape of LLM-assisted Algorithm Search (LAS) using a graph-based approach, where nodes represent algorithms and edges denote transitions between them. We conduct extensive evaluations across six algorithm design tasks and six commonly used LLMs. Our findings reveal that LAS landscapes are highly multimodal and rugged, particularly in combinatorial optimization tasks, with distinct structural variations across tasks and LLMs. For instance, heuristic design tasks exhibit dense clusters of high-performing algorithms, while symbolic regression tasks show sparse, scattered distributions. Additionally, we demonstrate how population size influences exploration-exploitation trade-offs and the evolving trajectory of elite algorithms. These insights not only advance our understanding of LAS landscapes but also provide practical guidance for designing more effective LAS methods.
View on arXiv@article{liu2025_2504.19636, title={ Fitness Landscape of Large Language Model-Assisted Automated Algorithm Search }, author={ Fei Liu and Qingfu Zhang and Xialiang Tong and Mingxuan Yuan and Kun Mao }, journal={arXiv preprint arXiv:2504.19636}, year={ 2025 } }