# Runtime Analysis of Cartesian Genetic Programming on Max: A Proven Exponential Speedup

arXiv: https://arxiv.org/abs/2611.16013 · HTML: https://mlsanity.com/paper/2611.16013/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 25 of its 80 references that are in the map.
- Submitted 11 Nov 2026.

## Builds on (most cited first, 25 of 25)

- [How Powerful are Graph Neural Networks?](https://mlsanity.com/paper/1810.00826/) (2018)
- [Evolving Code with A Large Language Model](https://mlsanity.com/paper/2401.07102/) (2024)
- [The Computational Complexity of ReLU Network Training Parameterized by Data Dimensionality](https://mlsanity.com/paper/2105.08675/) (2021)
- [Provably Good Solutions to the Knapsack Problem via Neural Networks of Bounded Size](https://mlsanity.com/paper/2005.14105/) (2020)
- [Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning](https://mlsanity.com/paper/2405.16435/) (2024)
- [Evolving simple programs for playing Atari games](https://mlsanity.com/paper/1806.05695/) (2018)
- [Stochastic Population Update Can Provably Be Helpful in Multi-Objective Evolutionary Algorithms](https://mlsanity.com/paper/2306.02611/) (2023)
- [Kartezio: Evolutionary Design of Explainable Pipelines for Biomedical Image Analysis](https://mlsanity.com/paper/2302.14762/) (2023)
- [Transformer Semantic Genetic Programming for Symbolic Regression](https://mlsanity.com/paper/2501.18479/) (2025)
- [A Survey on Recent Progress in the Theory of Evolutionary Algorithms for Discrete Optimization](https://mlsanity.com/paper/2006.16709/) (2020)
- [Computational Complexity Analysis of Genetic Programming](https://mlsanity.com/paper/1811.04465/) (2018)
- [Many Objective Problems Where Crossover is Provably Essential](https://mlsanity.com/paper/2412.18375/) (2024)
- [Solving Problems with Unknown Solution Length at (Almost) No Extra Cost](https://mlsanity.com/paper/1506.05913/) (2015)
- [Evolving Boolean Functions with Conjunctions and Disjunctions via Genetic Programming](https://mlsanity.com/paper/1903.11936/) (2019)
- [TinyverseGP: Towards a Modular Cross-domain Benchmarking Framework for Genetic Programming](https://mlsanity.com/paper/2504.10253/) (2025)
- [Destructiveness of Lexicographic Parsimony Pressure and Alleviation by a Concatenation Crossover in Genetic Programming](https://mlsanity.com/paper/1805.10169/) (2018)
- [First Steps Towards a Runtime Analysis of Neuroevolution](https://mlsanity.com/paper/2307.00799/) (2023)
- [Runtime Analysis for Multi-Objective Evolutionary Algorithms in Unbounded Integer Spaces](https://mlsanity.com/paper/2412.11684/) (2024)
- [Scalable Speed-ups for the SMS-EMOA from a Simple Aging Strategy](https://mlsanity.com/paper/2505.01647/) (2025)
- [Runtime Analysis of Evolutionary NAS for Multiclass Classification](https://mlsanity.com/paper/2506.06019/) (2025)
- [Bounding Bloat in Genetic Programming](https://mlsanity.com/paper/1806.02112/) (2018)
- [Time Complexity Analysis of Randomized Search Heuristics for the Dynamic Graph Coloring Problem](https://mlsanity.com/paper/2105.12525/) (2021)
- [Analyzing the Expected Hitting Time of Evolutionary Computation-based Neural Architecture Search Algorithms](https://mlsanity.com/paper/2210.05397/) (2022)
- [Superior Genetic Algorithms for the Target Set Selection Problem Based on Power-Law Parameter Choices and Simple Greedy Heuristics](https://mlsanity.com/paper/2404.04018/) (2024)
- [Diversity-Preserving Exploitation of Crossover](https://mlsanity.com/paper/2507.01524/) (2025)

## Abstract (arXiv)

Genetic Programming (GP) is a search paradigm inspired from natural evolution for the automated discovery of expressions, functions, and computer programs. Cartesian GP (CGP) is a flavor of GP that uses a graph-based model to encode candidate programs, as contrasted to the conventional Tree-based GP (TGP). Since its inception two decades ago, CGP has predominantly been analyzed empirically, thus little is known regarding its theoretical performance guarantees. This paper analyzes CGP for the Max problem, which has been only rigorously studied for TGP with a proven expected runtime superlinear in the optimal program length n. We prove that the expected time for the (1+1) CGP employing common mutation operators to evolve an equivalent optimal of the same output is polylogarithmic in n, specifically at most O(log9n). This is remarkable, as it shows an exponential speedup by switching to CGP. Our results shed light on the benefit and the compactness of the graph-based representation for programs, and on how CGP can navigate its search and fitness spaces efficiently. This is a first proven performance guarantee for CGP on an established benchmark problem. Experiments complement our theoretical findings.
