TL;DR
When human physicists discover new laws of nature, they don't just stare at giant spreadsheets of numbers—they sketch graphs, look at spirals in phase space, and let visual intuition guide their math. Current AI equation-discoverers are essentially "blind," relying purely on text or raw numerical tables. This paper introduces VIPER-R1, a Vision-Language Model that actually looks at plots of physical motion to hypothesize governing equations, and then uses a symbolic math tool to fine-tune the exact details—outperforming massive frontier models despite having only a fraction of their parameters.
What Problem Does This Paper Address?
Automating the discovery of physical laws from raw data is one of AI's grandest challenges. Historically, we’ve tackled this in two ways: Symbolic Regression (SR), which uses evolutionary algorithms to brute-force combinations of math symbols until an equation fits the data, and Large Language Models (LLMs), which use text-based reasoning to guess formulas.
Both suffer from what the authors call "sensory deprivation." SR gets lost in an infinite haystack of mathematical possibilities, often spitting out grotesque, overfitted equations that fit the numbers but miss the physics. LLMs, meanwhile, are blind to visual patterns—and it’s hard to tell if an LLM is genuinely discovering a law from data or just reciting a famous textbook equation from memory.
Human physicists bridge raw data and abstract math with their eyes. A decaying wave envelope immediately whispers "damping force" ($-cv$); a closed loop in a velocity-position plot shouts "conservation of energy." By ignoring this visual channel, AI models miss the intuitive shortcuts that make human scientific breakthroughs possible.
Methods
To build a "computational phenomenologist," the authors built VIPER-R1 (based on 3B and 7B Qwen-VL-2.5 architectures) using a two-stage training pipeline followed by an agentic inference step.
- Motion Structure Induction (MSI): First, the model undergoes a two-step Supervised Fine-Tuning (SFT) curriculum. In Step 1, given trajectory plots, phase-space portraits, and numerical data, it learns to jointly output a Causal Chain of Thought (C-CoT)—explaining how visual features map to math terms—and an initial equation guess (ansatz). In Step 2, it is given the ideal reasoning chain and trained exclusively to nail the symbolic syntax of the formula, decoupling qualitative reasoning from syntactic precision.
- Reward-Guided Symbolic Calibration (RGSC): Next, the authors apply reinforcement learning via Group Relative Policy Optimization (GRPO)—a standard, efficient RL algorithm—paired with a novel Parameter-Agnostic Structural Reward. Instead of penalizing the model if it guesses $2.5x$ when the answer is $2.8x$, this reward uses Jaccard similarity on the "structural skeletons" of the equations. It trains the VLM to get the topology of the physics right (e.g., $c_1 x - c_2 x^3$), leaving exact numbers for later.
- Symbolic Residual Realignment ($\text{SR}^2$): At test time, VIPER-R1 becomes an agent. It looks at the plots and proposes a solid first-order equation. It then calculates the residual—the leftover error between its guess and the empirical data—and calls an external symbolic regression tool (PySR) to model only that tiny discrepancy. Just like a physicist doing perturbation analysis, it combines its theoretical ansatz with the empirical correction.
Datasets
Because existing physics benchmarks risk data contamination (LLMs having memorized $F=ma$ during pre-training), the authors built PhysSymbol, a brand-new synthetic corpus of 10,000 distinct physical systems.
Unlike purely numerical datasets, PhysSymbol pairs raw kinematic time-series data ($t, x, v, a$) with dual visualizations—time-domain trajectories and phase-space portraits—alongside expert-verified Causal CoT traces. It is split evenly into 5,000 classical mechanics ODEs for training and 5,000 out-of-distribution PDEs (spanning electromagnetism, fluids, thermodynamics, and quantum physics) for broader research.
Key Insights and Ideas
- A low error doesn't mean good physics: Pure symbolic regression (PySR) achieved a tiny numerical Mean Squared Error ($0.0056$), yet failed miserably at finding the actual structure of the governing law (scoring $0.352$ on structural similarity). Without visual priors, SR overfits noise with Frankenstein math; visual grounding keeps equations physically plausible.
- Divide and conquer between neural intuition and symbolic search: Asking a VLM to guess exact floating-point constants is a fool's errand; asking an SR algorithm to search all of mathematics from scratch is NP-hard. Letting the VLM sketch the equation's skeleton and letting SR clean up the residual error plays to the exact strengths of both paradigms.
- Small specialists crush giant generalists: Domain-specific visual reasoning isn't something general frontier models naturally grasp out of the box—targeted structural RL makes a 3B model vastly superior at physics discovery than models orders of magnitude larger.
Key Results
Evaluated on the PhysSymbol test set against 11 frontier VLMs (including GPT-5, GPT-o3, Claude-4-Sonnet, and Gemini 2.5 Pro) and standalone PySR, VIPER-R1 dominated across interpretability and accuracy:
- Structural Score ($S_{\text{struct}}$): VIPER-R1-7B hit 0.812, a 56.7% improvement over the best frontier baseline, Claude-4-Sonnet ($0.518$), and more than double standalone PySR ($0.352$).
- Exact Symbolic Accuracy ($S_{\text{acc}}$): Both VIPER-R1-3B (0.488) and 7B (0.487) outperformed the strongest generalist competitor, GPT-5 ($0.363$), by over 12 percentage points.
- End-to-End Precision (Post-$\text{SR}^2$ MSE): Among interpretable VLM-guided approaches, VIPER-R1-7B achieved a state-of-the-art MSE of 0.032—nearly $3\times$ lower error than Claude-4-Sonnet ($0.091$).
Limitations and Future Work
Currently, VIPER-R1 operates in a clean, simulated sandbox: its training focuses on classical mechanics ODEs (2–5 terms) and clean analytical plots generated from synthetic data. The authors note that real-world science is much messier. For future work, they aim to scale the framework to chaotic systems and complex partial differential equations (PDEs), and eventually move beyond pre-rendered graphs to ingest raw, noisy experimental videos directly.
Summary updated