English

Kozax: Flexible and Scalable Genetic Programming in JAX

Neural and Evolutionary Computing 2025-04-16 v2 Artificial Intelligence

Abstract

Genetic programming is an optimization algorithm inspired by evolution which automatically evolves the structure of interpretable computer programs. The fitness evaluation in genetic programming suffers from high computational requirements, limiting the performance on difficult problems. Consequently, there is no efficient genetic programming framework that is usable for a wide range of tasks. To this end, we developed Kozax, a genetic programming framework that evolves symbolic expressions for arbitrary problems. We implemented Kozax using JAX, a framework for high-performance and scalable machine learning, which allows the fitness evaluation to scale efficiently to large populations or datasets on GPU. Furthermore, Kozax offers constant optimization, custom operator definition and simultaneous evolution of multiple trees. We demonstrate successful applications of Kozax to discover equations of natural laws, recover equations of hidden dynamic variables, evolve a control policy and optimize an objective function. Overall, Kozax provides a general, fast, and scalable library to optimize white-box solutions in the realm of scientific computing.

Keywords

Cite

@article{arxiv.2502.03047,
  title  = {Kozax: Flexible and Scalable Genetic Programming in JAX},
  author = {Sigur de Vries and Sander W. Keemink and Marcel A. J. van Gerven},
  journal= {arXiv preprint arXiv:2502.03047},
  year   = {2025}
}

Comments

6 figures, 3 tables, 1 algorithm, 13 pages

R2 v1 2026-06-28T21:33:15.951Z