Executable Chain-of-Thought Symbolic Regression with Large Language Models for Automated Physical Discovery
This paper introduces \ours, a verification-carrying framework that transforms large language model-based symbolic regression into a rigorous process by executing chain-of-thought reasoning as a typed Symbolic Derivation Graph, enforcing hard constraints and soft verification signals to produce compact, machine-checkable physical laws with executable derivation traces.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Science often feels like a process of compression. A scientist observes a vast collection of events—planets moving across the sky, chemicals reacting in a flask, or water flowing through a pipe—and seeks to distill that chaos into a single, compact mathematical law. This law is not merely a tool for predicting the next data point; it is a statement of how the world works, one that can be inspected, understood, and extended to new situations. For centuries, finding these laws has required human intuition, but the sheer volume of modern data has made the search for them increasingly difficult. The space of possible equations is so vast that even powerful computers struggle to find the right one without getting lost in a sea of incorrect possibilities. The challenge is not just to find a formula that fits the data we have, but to find the specific formula that remains true when the conditions change, when the data is noisy, or when we look at a part of the system we have never seen before.
In recent years, researchers have turned to large language models—systems trained on massive amounts of text and code—to help with this search. These models are excellent at recalling familiar patterns and suggesting plausible structures for equations. However, a significant gap has remained between what these models can propose and what they can prove. A model might suggest a formula that looks correct on the surface, but the steps it took to get there might be logically flawed, physically impossible, or mathematically unstable. It is like a student who writes down the right answer on a test but cannot show the work, or worse, shows work that contains hidden errors that only become apparent when the problem is slightly changed. The existing methods often treated the reasoning process as a free-form conversation, where the final equation was the only thing that mattered, leaving the path to that equation unverified and potentially unreliable.
To address this, the author of this study have developed a new framework called CoT-SR. This system changes the way computers search for scientific laws by treating the reasoning process itself as a rigorous, step-by-step construction rather than a guess-and-check game. Instead of letting a language model write a paragraph of text to justify an equation, the system forces the model to propose specific, executable actions that transform a simple starting expression into a more complex one. Each step is a typed action, such as adding a new term, changing a variable, or applying a known physical rule. Crucially, every single step is immediately checked by a separate, independent system to ensure it is valid. The system verifies that the math is syntactically correct, that the physical units make sense (for example, ensuring you are not adding meters to seconds), and that the equation behaves reasonably under extreme conditions.
The core innovation of this work is the creation of a "symbolic derivation graph." Imagine a map where every path represents a different way to build an equation. In previous methods, the computer might jump from one idea to another based on a vague hunch. In this new approach, the computer can only move along a path if the next step passes a strict set of rules. If a proposed step violates the laws of physics or the rules of algebra, the path is immediately closed off, and the system never wastes time exploring that dead end. This process turns the search for a law into a journey through a landscape of valid possibilities, where every move is documented and verified. The system keeps a record of every successful step and every failed attempt, creating a complete, auditable trail that explains exactly how the final equation was derived and why alternative paths were rejected.
The researchers tested this system on a wide variety of challenges, ranging from classic physics problems involving planetary motion and thermodynamics to complex, synthetic datasets designed to trick artificial intelligence. They found that CoT-SR was significantly better at finding the correct equations than previous methods. In tests where the goal was to recover a known physical law exactly, the new system achieved the highest exact-recovery rate among the compared methods, as detailed in the benchmark results, outperforming the next best approach. More importantly, the system proved much more robust when faced with noisy data or when asked to predict behavior outside the range of the original measurements. While other methods often failed when the data was slightly distorted or when the input variables were stretched to new extremes, CoT-SR maintained its accuracy. This is because the system prioritizes equations that are structurally sound and physically consistent, rather than just those that happen to fit the current numbers perfectly.
A key feature of the new framework is its ability to actively test its own hypotheses. When the system is unsure between two competing equations, it does not simply pick the one that looks better on paper. Instead, it calculates where the two equations would disagree the most and asks for a new measurement at that specific point. This is similar to a scientist designing a critical experiment to distinguish between two theories. By focusing its limited resources on the most informative data points, the system can quickly rule out incorrect possibilities and zero in on the true law. In simulations, this active approach allowed the system to eliminate wrong answers much faster than if it had just collected data randomly. The result is not just a final equation, but a complete package that includes the equation, the step-by-step derivation, and a record of the evidence that supports it.
The study also highlights the limitations of relying solely on the memory of a language model. Many previous systems struggled when presented with equations that had been slightly altered or disguised, because they were simply recalling patterns from their training data rather than truly understanding the underlying logic. CoT-SR, by contrast, relies on the validity of the derivation steps. Even if the model has never seen a specific equation before, it can construct it correctly if the logical steps are sound. This suggests that for scientific discovery, the ability to verify the process is more important than the ability to recall the answer. The researchers found that when they removed the strict verification steps, the system's performance dropped significantly, confirming that the rigorous checking of every step is what makes the approach effective.
Ultimately, this work represents a shift in how artificial intelligence can assist in scientific discovery. It moves away from the idea of a black box that outputs a prediction and toward a transparent system that builds knowledge step-by-step, with every claim backed by evidence. The final output is not just a formula, but a verified story of how that formula was found. This distinction is vital for science, where understanding the "why" is often as important as the "what." By ensuring that every intermediate step is executable and checkable, the researchers have created a tool that can help scientists navigate the complex search for new laws, offering a level of reliability and clarity that was previously out of reach. The system does not claim to be infallible, and it still requires human oversight, but it provides a powerful new way to combine the pattern-recognition strength of language models with the rigorous demands of physical science.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.