Evolutionary Architecture Search Through Grammar-Based Sequence Alignment
Abstract
Neural architecture search (NAS) in expressive search spaces is a computationally hard problem, but it also holds the potential to automatically discover completely novel and performant architectures. Effective recombination first requires establishing correspondence between related substructures in the parent architectures so that architectural components can be reused in new candidates. We formulate this correspondence as a grammar-constrained sequence-alignment problem and introduce two adaptations of the Smith-Waterman dynamic-programming framework. The resulting grammar-valid edit paths define an architecture distance and generate hybrid offspring from two parent models, supporting crossover based search, architectural loss-landscape analysis, and population-diversity tracking. We highlight how our method vastly improves computational complexity over previous work and enables us to efficiently compute shortest paths between architectures. When instantiating the crossover in evolutionary searches, we obtain competitive results relative to the evaluated baselines while enabling substantially richer analysis and control of the evolution. Future work can build upon this new tool, discovering novel components that can be used more broadly across neural architecture design, and broadening its applications beyond NAS. Our code can be found at: https://github.com/linusericsson/einsearch.
BibTeX
@inproceedings{gomez2026evolutionary,
author = {Adri Gómez and Felix Möller and Steven McDonagh and Monica Abella and Manuel Desco and Elliot J. Crowley and Aaron Klein and Linus Ericsson},
title = {{Evolutionary Architecture Search Through Grammar-Based Sequence Alignment}},
booktitle = {AutoML 2026 Methods Track OralPoster},
year = {2026},
url = {https://openreview.net/forum?id=YK8HlgLJd7},
}Ask Althea to put this paper to the test.