Large Language Model-Powered Evolutionary Code Optimization on a Phylogenetic Tree
Leyi Zhao, Weijie Huang, Yitong Guo, Jiang Bian, Chenghong Wang, Xuhong Zhang

TL;DR
This paper introduces PhyloEvolve, a novel LLM-based evolutionary system for GPU code optimization that leverages trajectory history and a phylogenetic tree structure to improve performance and reproducibility.
Contribution
It presents a new framework combining In-Context Reinforcement Learning, Algorithm Distillation, and phylogenetic trees for iterative, history-aware GPU code optimization.
Findings
Consistent improvements in runtime, memory efficiency, and correctness.
Effective reuse of optimization trajectories without retraining.
Enhanced exploration and exploitation through multi-island parallelism.
Abstract
Optimizing scientific computing algorithms for modern GPUs is a labor-intensive and iterative process involving repeated code modification, benchmarking, and tuning across complex hardware and software stacks. Recent work has explored large language model (LLM)-assisted evolutionary methods for automated code optimization, but these approaches primarily rely on outcome-based selection and random mutation, underutilizing the rich trajectory information generated during iterative optimization. We propose PhyloEvolve, an LLM-agent system that reframes GPU-oriented algorithm optimization as an In-Context Reinforcement Learning (ICRL) problem. This formulation enables trajectory-conditioned reuse of optimization experience without model retraining. PhyloEvolve integrates Algorithm Distillation and prompt-based Decision Transformers into an iterative workflow, treating sequences of algorithm…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEvolutionary Algorithms and Applications · Parallel Computing and Optimization Techniques · Machine Learning in Materials Science
