TL;DR
This paper introduces LLM-Meta-SR, a novel framework that leverages Large Language Models (LLMs) to automatically design selection operators for symbolic regression (SR). By addressing limitations like a lack of semantic guidance and code bloat, the LLM-evolved operators achieve state-of-the-art performance, surpassing human-designed baselines and even enhancing existing SR algorithms.
What Problem Does This Paper Address?
Symbolic regression (SR) aims to discover mathematical expressions that accurately model data, offering interpretable models. Evolutionary algorithms, particularly genetic programming (GP), are a popular approach for SR. However, a critical component, the selection operator (which determines which candidate solutions are carried forward), is typically manually designed by experts. This process is time-consuming and requires significant expertise. Furthermore, existing methods for using LLMs to evolve algorithms often suffer from a lack of semantic understanding (leading to ineffective component reuse) and code bloat (resulting in overly complex and uninterpretable code). This paper tackles the challenge of automating the design of effective selection operators by addressing these limitations.
Methods
The core of the proposed method, LLM-Meta-SR, is a meta-evolutionary framework. Instead of evolving symbolic expressions for an SR problem, it evolves selection operators themselves. Here's a breakdown of the key techniques:
- LLM-Driven Meta-Evolution: LLMs (specifically GPT-4.1 Mini and GPT-5 Mini) are prompted to generate Python code for selection operators. This process is guided by historical design and evaluation data.
- Semantics-Aware Evolution: To overcome the limitation of generic performance metrics, the framework incorporates fine-grained, per-task performance scores. This allows the LLM to understand nuanced behavioral differences across datasets and generate operators that combine complementary strengths.
- Bloat Control: Two strategies are employed to combat code bloat:
- Prompt-based Length Limit: LLMs are instructed to generate code within a specified line limit.
- Multi-Objective Survival Selection: A selection mechanism that considers both operator fitness (performance) and code length (interpretability) is used to favor more concise operators.
- Domain Knowledge Integration: To further guide the LLM, specific desired properties of selection operators (diversity, interpretability, dynamic pressure, complementarity, efficiency, simplicity) are embedded directly into the prompts.
- Synthetic Evaluation: A lightweight screening process is used to quickly filter out operators with syntax errors, runtime failures, or pathological behavior before expensive SR-based evaluations.
Datasets
The experiments utilize datasets from the SRBench benchmark suite.
- Meta-Training: Four high-dimensional datasets from SRBench were used to train the selection operators.
- Meta-Testing/Evaluation: 116 out of 120 SRBench datasets were used for evaluating the performance of the evolved operators.
Key Insights and Ideas
- LLMs as Algorithm Designers: The paper strongly demonstrates that LLMs can go beyond generating solutions to designing the algorithms that find those solutions, specifically by evolving selection operators.
- Semantic Information is Crucial: Simply averaging performance across tasks is insufficient. Fine-grained, per-task performance data is essential for LLMs to learn how to combine complementary algorithmic components effectively.
- Bloat is a Real Problem for LLM Code Generation: LLMs tend to generate verbose code. Explicit bloat control mechanisms are vital for producing interpretable and efficient operators.
- Domain Knowledge Accelerates Discovery: Embedding expert knowledge into prompts significantly improves the LLM's ability to generate high-quality, relevant selection operators.
- Evolved Operators Enhance Existing Systems: The LLM-designed "Omni" operator not only outperforms baselines but can also be integrated into state-of-the-art SR algorithms (like RAG-SR) to boost their performance.
Key Results
- State-of-the-Art Performance: The LLM-evolved selection operators consistently outperformed nine expert-designed baselines on SRBench, achieving state-of-the-art results.
- Improved SR Algorithms: When integrated into RAG-SR, the evolved operator led to the best performance among 28 SR and machine learning algorithms across 116 regression datasets.
- Reduced Code Bloat: Bloat control mechanisms resulted in operators that were significantly more concise (around 50 lines) compared to those without control (over 200 lines).
- Efficiency Gains: While the evolved operators might have slightly higher selection time, they contribute to smaller and more interpretable symbolic models, leading to overall efficiency benefits.
- Generalizability: The effectiveness of the proposed framework and its components (semantics, bloat control, domain knowledge) was shown to generalize across different LLM models (GPT-4.1 Mini and GPT-5 Mini).
Limitations and Future Work
- Small Dataset Bug: A logical bug was identified in the Omni operator when applied to small datasets, leading to a repaired version (Omni-R). This highlights the importance of thorough testing and diverse training data for LLM-generated code.
- Computational Cost: While synthetic evaluation helps, the meta-evolution process still involves significant computational cost due to repeated SR evaluations.
- Future Work:
- Automating the design of other algorithmic components (crossover, mutation).
- Adapting the meta-evolution evaluation to use a fixed computational budget instead of a fixed number of generations.
- Extending the framework to other domains beyond symbolic regression.
Summary updated