← Latest papers
🤖 machine learning

InsightSR: Refining Symbolic Regression Search Spaces via Parallel Semantic and Structural LLM Guidance

InsightSR is a novel symbolic regression framework that enhances the PySR genetic programming engine by leveraging Large Language Models to iteratively refine the search space through semantic and structural guidance, achieving state-of-the-art accuracy and generalization by transforming deep expression tree construction into the assembly of shallow trees over semantically informed features.

Original authors: Yating Ling, Wenjing Cun, Zhitang Chen

Published 2026-08-27
📖 5 min read🧠 Deep dive

Original authors: Yating Ling, Wenjing Cun, Zhitang Chen

Original paper licensed under CC BY 4.0 (http://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 has always relied on a simple, powerful idea: that the complex behavior of the natural world can be described by concise mathematical laws. When a physicist looks at a falling apple or a planetary orbit, they are not just seeing motion; they are looking for the hidden equation that governs it. This search for the underlying formula is called symbolic regression. Unlike standard computer models that learn patterns by adjusting millions of internal knobs to fit data, symbolic regression attempts to write out the actual equation itself, using familiar mathematical building blocks like addition, multiplication, and trigonometric functions. The goal is to find a rule that is not only accurate but also simple enough for a human to read and understand. However, finding these rules is incredibly difficult. The number of possible mathematical combinations grows so fast that it becomes a vast, chaotic ocean of possibilities. Most computer searches get lost in this ocean, producing formulas that fit the data perfectly but make no physical sense, or they simply fail to find the true law because the search space is too huge to explore completely.

A team of researchers has developed a new approach to navigate this chaos, combining the raw searching power of evolutionary algorithms with the reasoning ability of large language models. Their system, named InsightSR, does not ask the computer to guess the final answer directly. Instead, it uses the language model as a guide to reshape the search itself. Imagine a team of explorers trying to find a specific path through a dense, uncharted forest. In the old method, the explorers would wander randomly, hoping to stumble upon the right trail. In this new method, the language model acts as a seasoned guide who knows the general terrain. It does not walk the path for them, but it tells them which directions are physically impossible to take and suggests which tools might be useful for the journey.

The system works by splitting the guidance into two complementary streams. The first stream focuses on the "skeleton" of the equation. The language model looks at the physical units of the data—such as whether a variable represents time, distance, or mass—and proposes basic structures that must be dimensionally consistent. This means it rules out any mathematical combination that would violate the laws of physics, such as adding a time measurement to a distance. By seeding the search with these physically plausible starting points, the system avoids wasting time on billions of impossible formulas. The second stream focuses on the ingredients themselves. The language model suggests new ways to transform the raw data, such as squaring a variable or taking its sine, based on patterns it has seen in previous attempts. These new features are added to the pool of ingredients available to the search engine. Over time, the pool of ingredients grows richer, allowing the system to build complex relationships using simple, shallow combinations rather than trying to construct deep, tangled trees of raw data.

This process is not a one-time guess but a continuous loop of refinement. After the computer generates a set of candidate equations, the language model evaluates them. It checks not just how well they fit the numbers, but also how useful the new features were and whether the structure makes sense. This feedback is stored in a dynamic knowledge base that informs the next round of searching. The system learns from its own successes and failures, gradually narrowing the search toward the most promising solutions. This creates a self-correcting cycle where the search becomes more focused and efficient with every iteration.

The researchers tested this method on three distinct sets of challenges. First, they used a benchmark of 100 famous physics equations, ranging from classical mechanics to quantum theory. In this test, the system successfully recovered the exact original formula 95% of the time, a significant improvement over previous methods. It also performed exceptionally well on a broader set of scientific problems spanning chemistry, biology, and material science, achieving an accuracy of over 80% on tasks involving complex transformations. Finally, the team tested the system on real-world data, such as the vibrations of an oscillator and the growth patterns of bacteria. In these scenarios, the system not only found accurate formulas but also maintained its performance when tested on data it had never seen before, demonstrating a strong ability to generalize.

The results suggest that by embedding a language model as a guiding layer around a traditional search engine, it is possible to overcome the twin challenges of the vast search space and the need for physical consistency. The system does not replace the evolutionary search; it refines it, turning a blind, random exploration into a purposeful, guided discovery. By shifting the burden from constructing deep, complex trees of raw variables to assembling simple combinations from a rich, pre-enriched set of features, the method makes the discovery of scientific laws more efficient and reliable. This approach offers a practical path forward for automated scientific discovery, showing that the combination of human-like reasoning and machine-based searching can reveal the hidden mathematical laws that govern our world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →