Automated Algorithmic Discovery for Gravitational-Wave Detection Guided by LLM-Informed Evolutionary Monte Carlo Tree Search

He Wang, Liang ZengResearch Square 2025 · DOI

TL;DR

Researchers have introduced Evo-MCTS, a framework that uses Large Language Models (LLMs) to autonomously design and refine algorithms for detecting gravitational waves. By combining the strategic exploration of Monte Carlo Tree Search with the refinement power of evolutionary algorithms, the system discovered interpretable signal-processing pipelines that outperform state-of-the-art human-designed methods by over 20%.

What Problem Does This Paper Address?

Detecting gravitational waves (GW) is the ultimate "needle in a haystack" problem. These ripples in spacetime are incredibly faint and buried under dynamic, non-Gaussian noise from detectors like LIGO.

Currently, scientists use three main approaches, each with a "catch":

  1. Matched Filtering: Highly sensitive but requires "templates" (predefined theoretical models). If the signal doesn't match the template, you miss it.
  2. Deep Learning: Fast and flexible but acts as a "black box." It’s hard to know why a neural network flagged a signal, and they often carry hidden biases.
  3. Manual Engineering: Decades of human effort have created sophisticated pipelines, but humans are limited by cognitive biases and the sheer combinatorial explosion of possible signal-processing techniques.

The authors sought to bridge this gap by creating an automated system that can explore the vast space of algorithmic possibilities, discovering new, high-performance detection methods that are still written in human-readable code.

Methods

The authors propose Evolutionary Monte Carlo Tree Search (Evo-MCTS). This framework treats algorithm design as a search problem through a tree where every node is a complete, executable Python program.

The system relies on three pillars:

  • MCTS-Guided Exploration: It uses Monte Carlo Tree Search to decide which "algorithmic branches" are worth exploring, balancing the search for entirely new ideas (exploration) with the refinement of currently successful ones (exploitation).
  • Multi-Scale Evolutionary Operations: Instead of just random changes, the system uses LLMs to perform "crossovers" and "mutations." It can combine features from two successful parent algorithms or synthesize a new approach based on an entire "pathway" of previous discoveries.
  • Reflective Code Synthesis: This is the "aha" moment of the architecture. Using models like DeepSeek-R1, the system analyzes why an algorithm failed or succeeded and uses those insights to write the next, better version.

The framework integrates domain-specific knowledge (physics constraints) into the LLM prompts, ensuring the generated code respects the laws of signal processing while pushing the boundaries of traditional heuristics.

Datasets

The framework was evaluated using the MLGWSC-1 (Machine Learning Gravitational-Wave Search Mock Data Challenge) benchmark.

  • Dataset 4: The most realistic and challenging set, featuring actual detector noise from the LIGO O3a observing run.
  • Training/Test Split: The system "evolved" algorithms on a 7-day training corpus and was validated on an independent 1-day test set to ensure the discovered algorithms weren't just "memorizing" the noise.

Key Insights and Ideas

  • The Synergy Effect: The authors found that combining MCTS with Evolutionary algorithms was significantly more effective than using either alone. MCTS provides the structure, while Evolutionary operators provide the diversity needed to escape "local optima" (where a designer gets stuck on a mediocre idea).
  • Domain Knowledge is Non-Negotiable: Integrating physical constraints and signal processing templates into the LLM prompts improved performance by a staggering 115% compared to a "blind" search.
  • Interpretability as a Feature: Unlike a neural network, the output of Evo-MCTS is a Python script. The system discovered that techniques like Savitzky-Golay filtering and Continuous Wavelet Transforms were highly effective—strategies that are physically meaningful and can be audited by human physicists.
  • Model Selection Matters: The study found that reasoning-enhanced models like o3-mini and Claude 3.7 Sonnet were far superior at scientific code generation than general-purpose models, likely due to their ability to handle multi-step logical reasoning.

Key Results

  • Outperforming the State-of-the-Art: The best algorithm discovered by Evo-MCTS (labeled PT-4) achieved a 20.2% improvement in sensitivity over Sage, the previous top-performing benchmark algorithm.
  • Superiority in the "Critical Zone": In the regime of very low false-alarm rates (where astronomers need to be absolutely sure a signal is real), the improvement jumped to 23.4%.
  • Framework Efficiency: Evo-MCTS outperformed other LLM-based optimization frameworks (like ReEvo or MCTS-AHD) by 59.1%, proving that its specific hybrid architecture is uniquely suited for complex scientific discovery.

Limitations and Future Work

While groundbreaking, the authors acknowledge several hurdles:

  • Static vs. Dynamic: The current framework optimizes for static datasets. Future versions will need to adapt to real-time parameter estimation where the signal properties change rapidly.
  • Computational Cost: Running hundreds of LLM generations and evaluating them against massive physics datasets requires significant GPGPU resources.
  • Overfitting Risks: While the test results were strong, there is always a risk that an automated search finds "noise-specific" hacks. The authors suggest that expert validation modules will always be a necessary final step in the pipeline.

Ultimately, this work suggests a future where AI doesn't just process data, but actually designs the tools we use to understand the universe.

Summary updated

Abstract

<title>Abstract</title> Gravitational-wave signal detection with unknown source parameters buried in dynamic detector noise remains a formidable computational challenge. Existing approaches face core limitations from restrictive assumptions: traditional methods rely on predefined theoretical priors, while neural networks introduce hidden biases and lack interpretability. We propose Evolutionary Monte Carlo Tree Search (Evo-MCTS), the first integration of large language model (LLM) guidance with domain-aware physical constraints for automated gravitational wave detection. This framework systematically explores algorithmic solution spaces through tree-structured search enhanced by evolutionary optimization, combining MCTS for strategic exploration with evolutionary algorithms for solution refinement. The LLM component provides domain-aware heuristics while maintaining interpretability through explicit algorithmic pathway generation. Experimental validation demonstrates substantial performance improvements, achieving a 20.2% improvement over state-of-the-art gravitational wave detection algorithms on the MLGWSC-1 benchmark dataset and a remarkable 59.1% improvement over other LLM-based algorithm optimization frameworks. Beyond performance improvements, our framework establishes a transferable methodology for automated algorithmic discovery across computational science domains.
BibTeX
@inproceedings{wang2025automated,
  author = {He Wang and Liang Zeng},
  title = {{Automated Algorithmic Discovery for Gravitational-Wave Detection Guided by LLM-Informed Evolutionary Monte Carlo Tree Search}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-7478361/v1},
}
Figure