Overview
This paper introduces a novel framework to automatically discover mathematical formulas for physical systems that are naturally represented as graphs, such as electrical circuits or particle systems. By equating the "skeleton" of a physical law to the message-passing flow of a Graph Neural Network (GNN), the authors can search for both the structure and the specific equations of a mechanism without requiring prior expert knowledge.
The Challenge: Beyond Simple Input-Output Pairs
For centuries, scientists have sought "symbolic models"—elegant, readable mathematical formulas—to describe the physical world. Symbolic Regression (SR) is the field of AI dedicated to automating this discovery. However, traditional SR is designed for simple input-output pairs ($y = f(x)$).
The real world is rarely that simple. Many physical mechanisms are graph-structured: think of masses (nodes) connected by springs (edges), or voltages (nodes) and resistors (edges) in a circuit. In these cases, the "law" isn't just one equation; it's a sequence of interactions across the graph.
Previous attempts to solve this required humans to manually design the "formula skeleton" (the order of operations), which defeats the purpose of automated discovery in unknown scientific domains. This paper aims to learn both the skeleton (how variables interact) and the formulas (the specific math) simultaneously.
A Two-Stage Methodology
The authors propose a two-stage approach that leverages the structural similarity between physical laws and Graph Neural Networks (GNNs).
1. Message-Passing Flow Searching
The researchers treat the architecture of a GNN as a proxy for the formula's skeleton. They use a bi-level optimization strategy with a hierarchical pruning method. Starting with a "super-structure" (a complex GNN), they systematically prune away blocks, layers, and inputs. They use a scoring function that balances accuracy (RMSE) with simplicity (complexity), searching for a Pareto-optimal structure—one that is as simple as possible without losing predictive power.
2. Symbolic Distillation
Once the optimal GNN structure is found, the individual components (the neural network's internal functions) are "symbolized." The authors use standard symbolic regression tools (like PySR) to turn these trained neural layers into interpretable mathematical expressions. Finally, they fine-tune the constants in the resulting global formula to ensure high precision.
Experimental Validation and Results
The model was rigorously evaluated across five diverse domains, including synthetic physics (mechanics, electricity, and thermology) and real-world dynamics (pedestrian trajectories in corridors).
- Superior Accuracy: In complex mechanics and thermology tasks, the proposed method achieved $R^2$ scores of 0.917 to 0.993, while baselines relying on fixed, human-designed skeletons failed significantly (scoring as low as 0.189).
- Exact Recovery: For synthetic datasets where the laws of physics are known, the model successfully identified the exact ground-truth formulas.
- Real-World Improvement: On pedestrian dynamics—a challenging domain with no "ground-truth" formula—the discovered formulas outperformed the standard, manually-designed "Social Force Model" by approximately 10% in predictive accuracy, while remaining fully interpretable. It successfully rediscovered known concepts like "repulsion" and "herding" purely from data.
Key Insights
- The Skeleton-GNN Analogy: The core breakthrough is mapping physical concepts to GNN components. Intermediate variables correspond to embedding sizes, and the independent action of forces corresponds to the aggregation functions in a GNN.
- The Pruning Heuristic: The authors observed that if a GNN structure is a "super-set" of the true physical law, performance remains stable. However, if it is a "sub-set" (missing a key interaction), performance drops drastically. This makes pruning a highly efficient search strategy.
Limitations and Future Work
While the pruning strategy is efficient, the discrete search space for graph structures remains large, and the initial "super-structure" must be comprehensive enough to contain the true mechanism. Additionally, the method currently relies on existing SR tools for the second stage, inheriting their limitations (e.g., difficulty with very high-dimensional component functions). Future work may involve extending this framework to more complex, non-stationary physical systems or integrating advanced Neural Architecture Search (NAS) techniques to further automate the initial stage.
Summary updated