Pixel2Phys: Distilling Governing Laws from Visual Dynamics

Ruikun Li, Jun Yao, Yingfan Hua, Shixiang Tang, Biqing Qi, Bin Liu, Wanli Ouyang, Yan Lu

TL;DR

Pixel2Phys is a novel multi-agent framework that leverages Multimodal Large Language Models (MLLMs) to discover explicit, symbolic physical laws directly from raw video data. By establishing an iterative co-optimization loop between visual variable extraction and symbolic regression, it successfully strips away visual noise to uncover interpretable governing equations. This scientific AI workflow improves long-term prediction accuracy by over 45% compared to standard black-box baselines.

What Problem Does This Paper Address?

Visual equation discovery—inferring the underlying mathematical laws of a physical system purely from watching a video—is a grand challenge for scientific AI. While human scientists can watch a pendulum or fluid flow and distill the motion into compact equations, machines struggle because raw video is high-dimensional and flooded with irrelevant data like lighting changes, textures, and background motion.

Prior approaches typically fall into three traps:

  1. Supervised models can predict equations but require clean, pre-extracted state variables, which are incredibly difficult to obtain from complex visual scenes.
  2. Unsupervised latent models (like autoencoders) learn "black-box" representations optimized for image reconstruction rather than physical structure, entangling physical laws with visual artifacts.
  3. Direct MLLM prompting tends to regurgitate or recombine prior knowledge from the training corpus rather than reasoning about entirely new visual dynamics.

Crucially, visual equation discovery suffers from a circular dependency: to extract clean physical variables, you need to understand the underlying dynamics; but to discover those dynamics, you need clean variables.

Methods

Pixel2Phys breaks this circular dependency by mimicking a collaborative human scientific team. Coordinated by a central MLLM planner (such as GPT-4o), the framework splits the task among four specialized agents:

  • Plan Agent: The central coordinator. It analyzes reports from other agents, diagnoses bottlenecks (e.g., "the variables contain too many outliers"), and issues targeted instructions ($I_{plan}$) for the next iteration.
  • Variable Agent: Extracts low-dimensional physical variables $z(t)$ from raw video frames using a multi-granularity toolbox. It can track object centroids (using Segment Anything), compute pixel-level spatial derivatives for PDEs (using fixed convolutional kernels), or compress complex scenes using a physics-informed autoencoder.
  • Equation Agent: Performs dynamic symbolic regression using the Sequential Thresholded Least-Squares (STLSQ) algorithm on a library of candidate terms (polynomials, trigonometric functions, etc.) to discover sparse, interpretable equations.
  • Experiment Agent: Validates the proposed equations by running numerical simulations, calculating metrics ($R^2$, complexity, RMSE), and generating phase portraits.

The core innovation is the iterative feedback loop. When a candidate equation is generated, the Plan Agent feeds it back to the Variable Agent to act as a physics-informed regularization loss. This forces the visual encoder to ignore irrelevant textures and focus purely on the dynamics that fit the law, refining the variables for the next round of symbolic regression.

Figure 2. The multi-agent collaboration framework of Pixel2Phys.

Datasets

The authors evaluated Pixel2Phys across three distinct granularities of physical videos:

  • Object Motion (Simulated & Real): Five classic dynamical systems including Linear, Cubic, Circular, Van Der Pol (VDP), and Glider systems, alongside real-world gravitational tracking videos.
  • Physics Fields (PDEs): Four representative reaction-diffusion systems: Lambda-Omega, Brusselator, FitzHugh-Nagumo, and Swift-Hohenberg equations, as well as real-world Particle Image Velocimetry (PIV) fluid data.
  • Representation-level Dynamics (Noisy Real-World): Highly challenging real-world scientific recordings, specifically Kármán vortex streets (fluid dynamics) and Belousov-Zhabotinsky reactions (chemical oscillators).

Key Insights and Ideas

  • Co-Optimization Beats Pipelines: Instead of treating vision and physics as a sequential pipeline (extract variables $\rightarrow$ find equations), treating them as an iterative dialogue allows preliminary physics hypotheses to actively "clean" the visual perception.
  • Parsimony as a Visual Filter: Enforcing sparsity in the equation space (seeking the simplest mathematical expression) acts as an inductive bias that naturally compels the vision encoder to discard visually salient but physically irrelevant details like lighting shifts.
  • Agentic Scale vs. Model Scale: By structuring the scientific method into mechanical, multi-step agent interactions, the framework allows smaller or standard MLLMs to perform complex scientific reasoning that they couldn't achieve via single-hop prompting.

Key Results

  • Massive Extrapolation Gains: Pixel2Phys improves long-term extrapolation accuracy (measured by Root Mean Square Error) by 45.35% over state-of-the-art baselines.
  • Immunity to Extrapolation Collapse: Purely data-driven, black-box forecasting models (like Latent-ODE or Fourier Neural Operators) suffer from rapid error accumulation and collapse when predicting far into the future. Because Pixel2Phys uncovers the true symbolic law, its long-term rollouts remain stable and physically consistent.
  • Real-World Fidelity: In tests on noisy real-world water flow videos, Pixel2Phys successfully extracted the exact underlying fluid attractors, significantly outperforming advanced video generation models like Wan2.2, which generated realistic textures but suffered from severe physical drift over time.
Figure 1. Distill governing laws from videos. (a) Trajectory dynamics of moving objects. (b) Spatiotemporal dynamics of time-varying physical fields. (c) Intrinsic dynamics of physical phenomena.

Limitations and Future Work

While highly effective, the paper hints at a few areas for improvement:

  • Computational Overhead: Running an iterative loop that requires multiple MLLM calls and repeated numerical simulations per video can be computationally expensive and slow.
  • Library Constraints: The Equation Agent relies on a predefined library of mathematical operators. If a novel physical phenomenon relies on an exotic mathematical function not included in the library, the framework may only find a suboptimal polynomial approximation.

Future work will likely focus on dynamically expanding the operator library and optimizing the framework to reduce the number of iterations required for convergence.

Summary updated

BibTeX
@inproceedings{li2026pixel,
  author = {Ruikun Li and Jun Yao and Yingfan Hua and Shixiang Tang and Biqing Qi and Bin Liu and Wanli Ouyang and Yan Lu},
  title = {{Pixel2Phys: Distilling Governing Laws from Visual Dynamics}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=2RedAvA1Qt},
}
Figure