LLM-Driven Evolutionary Discovery of Algorithms for Science
An open-source framework that uses Large Language Models and evolutionary search to automatically discover and optimize scientific algorithms.
MadEvolve is a lightweight, open-source framework that combines Large Language Models (LLMs) with evolutionary search to automatically discover and optimize scientific algorithms.
Traditional algorithm development relies on human expertise and manual tuning. MadEvolve automates this process by treating algorithms as code that can be iteratively improved through LLM-guided mutations and physics-based fitness evaluation.
Human-designed algorithm
Code mutations & innovations
Autodiff or grid search
Physics-based metrics
Keep best solutions
We demonstrate MadEvolve on three important tasks in physics, achieving substantial improvements over human-designed baselines.
Reconstructing initial cosmological density fields from observed galaxy distributions by removing non-linear gravitational evolution effects.
Recovering large-scale modes lost to foreground contamination in 21cm intensity mapping by exploiting tidal field correlations.
Predicting thermal Sunyaev-Zeldovich signals from dark matter simulations using learned particle displacements.
Detailed analysis reports generated by MadEvolve for each application, including algorithm comparisons, performance metrics, and discovered innovations.
Complete analysis of evolved BAO reconstruction algorithms with performance comparisons and physical interpretations.
Download PDFDetailed breakdown of tidal reconstruction innovations and wedge-contamination recovery strategies.
Download PDFAnalysis of Lagrangian Deep Learning improvements for thermal Sunyaev-Zeldovich effect prediction.
Download PDFAnalysis of iterative reconstruction algorithms evolved by MadEvolve with performance benchmarks.
Download PDFComplete research paper: "LLM-Driven Evolutionary Discovery of Algorithms for Computational Cosmology"
View on arXivView the evolved algorithm codes discovered by MadEvolve for cosmology applications.
View Evolved Codes on GitHubWe're excited to announce the public release of MadEvolve! The framework is now available on GitHub with complete documentation, three cosmology applications, and automated report generation.
Our paper "LLM-Driven Evolutionary Discovery of Algorithms for Computational Cosmology" has been submitted. Check out the full results on all three cosmological applications!
MadEvolve discovered a novel split-weight tensor projection algorithm that achieves r̄₂D = 0.973 on wedge-contaminated 21cm data, substantially outperforming human-designed methods.