[Paper Review] Logic Guided Genetic Algorithms
This paper introduces Logic Guided Genetic Algorithms (LGGA), a method that enhances symbolic regression by integrating domain-specific auxiliary truths (ATs) into genetic algorithms for both loss computation and data augmentation. By iteratively generating counterexample data points from violated ATs, LGGA boosts data efficiency and accuracy, enabling SR tools like Eureqa and TuringBot to solve up to 30.0% more equations and achieve 61.9% better data efficiency on physics equations from The Feynman Lectures on Physics.
We present a novel Auxiliary Truth enhanced Genetic Algorithm (GA) that uses logical or mathematical constraints as a means of data augmentation as well as to compute loss (in conjunction with the traditional MSE), with the aim of increasing both data efficiency and accuracy of symbolic regression (SR) algorithms. Our method, logic-guided genetic algorithm (LGGA), takes as input a set of labelled data points and auxiliary truths (ATs) (mathematical facts known a priori about the unknown function the regressor aims to learn) and outputs a specially generated and curated dataset that can be used with any SR method. Three key insights underpin our method: first, SR users often know simple ATs about the function they are trying to learn. Second, whenever an SR system produces a candidate equation inconsistent with these ATs, we can compute a counterexample to prove the inconsistency, and further, this counterexample may be used to augment the dataset and fed back to the SR system in a corrective feedback loop. Third, the value addition of these ATs is that their use in both the loss function and the data augmentation process leads to better rates of convergence, accuracy, and data efficiency. We evaluate LGGA against state-of-the-art SR tools, namely, Eureqa and TuringBot on 16 physics equations from "The Feynman Lectures on Physics" book. We find that using these SR tools in conjunction with LGGA results in them solving up to 30.0% more equations, needing only a fraction of the amount of data compared to the same tool without LGGA, i.e., resulting in up to a 61.9% improvement in data efficiency.
Motivation & Objective
- To improve data efficiency and accuracy in symbolic regression (SR) by incorporating domain-specific auxiliary truths (ATs) known a priori.
- To develop a feedback loop that uses violated ATs to generate informative counterexample data points for dataset curation.
- To enhance traditional genetic algorithms (GAs) by combining mean squared error (MSE) loss with logical constraints derived from ATs.
- To reduce reliance on large training datasets by leveraging mathematical properties of target functions.
- To evaluate the method on real-world physics equations from The Feynman Lectures on Physics, demonstrating practical gains in SR performance.
Proposed method
- LGGA takes labeled data points and auxiliary truths (ATs)—mathematical facts like symmetry, zero conditions, or functional identities—as input.
- It uses a genetic algorithm to evolve candidate symbolic expressions and checks for consistency with ATs using formula evaluation on existing data points.
- When a candidate violates an AT, LGGA generates a counterexample data point by transforming existing inputs using the violated AT.
- These new data points are added to the training set, creating a feedback loop that improves model convergence and accuracy.
- The method combines traditional MSE loss with a constraint-based loss derived from ATs to guide the search toward mathematically valid and accurate equations.
- The process is iterative: new data is generated only when a candidate equation fails to satisfy any AT, ensuring targeted and efficient data augmentation.
Experimental results
Research questions
- RQ1Can integrating auxiliary truths (ATs) into symbolic regression improve data efficiency and convergence speed?
- RQ2How effective is an online, feedback-driven data augmentation strategy based on violated ATs compared to static data generation?
- RQ3To what extent can LGGA enhance the performance of existing SR tools like Eureqa and TuringBot?
- RQ4Does combining AT-based loss with data augmentation lead to better accuracy and robustness in symbolic regression?
- RQ5How does LGGA compare to oracle-based or SMT-solver-driven methods in terms of scalability and practicality?
Key findings
- LGGA enabled Eureqa and TuringBot to solve up to 30.0% more equations from The Feynman Lectures on Physics compared to baseline SR without LGGA.
- The method achieved up to a 61.9% improvement in data efficiency, meaning significantly fewer training data points were needed to reach similar or better performance.
- Using LGGA-generated datasets outperformed manually generated data from ATs, demonstrating the effectiveness of the online feedback loop in selecting high-utility counterexamples.
- The combination of AT-based loss and dynamic data augmentation led to faster convergence and higher accuracy in symbolic regression tasks.
- The approach is effective even with simple genetic algorithms, suggesting further gains are possible when integrated with advanced SR tools like TuringBot or Eureqa.
- LGGA does not require access to an oracle or SMT solver for counterexample generation, making it practical and scalable for real-world applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.