Abstract: Lifelike visualizations in design, cinematography, and gaming rely on precise physics simulations, typically requiring extensive computational resources and detailed physical input. This paper presents a method that can infer a system's physical properties from a short video, eliminating the need for explicit parameter input, provided it is close to the training condition. The learned representation is then used within a Graph Network-based Simulator to emulate the trajectories of physical systems. We demonstrate that the video-derived encodings effectively capture the physical properties of the system and showcase a linear dependence between some of the encodings and the system's motion.
Introduction
Simulating how different materials behave—a field known as physical animation—is computationally expensive and usually requires precise "recipes." To simulate sand versus snow, an engineer typically has to manually input specific physical parameters such as mass, friction, and stiffness.
While Graph Neural Networks (GNNs) have recently revolutionized this by learning to simulate particles (the GNS framework), they still generally require these physical properties to be provided as explicit inputs. In real-world scenarios, we often lack these numbers and only have visual observations. This research addresses the "vision-to-simulation" gap: Can a model infer the underlying physics of a system just by looking at a video and then use that knowledge to predict future movement?
The VDGNS Architecture
The authors propose an architecture called Video-Driven Graph Network-Based Simulator (VDGNS), which combines two main modules:
- The Video Encoder: This module takes a sequence of video frames. Each frame is processed through a Multi-Layer Perceptron (MLP), and the resulting sequence is handled by a Long Short-Term Memory (LSTM) network. The final output is a 4-dimensional "physical encoding" ($P$) that represents the material's properties.
- The Graph Network-Based Simulator (GNS): This engine represents the physical system as a graph where nodes are particles and edges represent spatial relationships. The physical encoding $P$ from the video is appended to each particle's state. The GNS then uses message-passing to predict the particles' accelerations for the next time step.
To ensure the model learns general material properties rather than specific motion paths, the authors employed a clever training strategy: pairing a physical state from one trajectory with a video of the same material but from a different random trajectory.
Experimental Setup and Datasets
The researchers used the Taichi-MPM simulator to generate a dataset of four distinct material classes: Water (fluid dispersion), Sand (granular flow), Snow (clumping), and Elastic (stiff, bouncy behavior). They generated 30 trajectories per class, each 4 seconds long. To increase realism, simulations were overlaid on random indoor background images with varied particle colors and transparencies.
Results and Insights
Latent Physics Clustering
When the 4D physical encodings were visualized, the model naturally grouped similar materials. Interestingly, water and sand encodings clustered near each other as both disperse laterally, while snow and elastic materials formed a separate cluster due to their clumping or bouncing behaviors.
Performance and Robustness
The VDGNS performed remarkably close to a "perfect information" baseline provided with actual material labels. For example, in the "Snow" category, the VDGNS achieved a one-step Mean Squared Error (MSE) of $4.65 \times 10^{-8}$, compared to the baseline's $3.36 \times 10^{-8}$. The system also maintained stable performance when noise was added to particle velocities, proving it is not overly sensitive to small data fluctuations.
Key Observations
- The "One Second" Rule: The quality of the physical encoding improves as the input video gets longer, but gains plateau after approximately one second of footage.
- Linearity of Motion: A strong linear relationship was found between the latent video encodings and predicted accelerations, suggesting the GNS uses video data predictably to scale physical forces.
- Zero-Shot Interpolation: The model can interpolate between classes. By sliding the encoding between "water" and "sand," the simulator produces intermediate behaviors matching ground-truth simulations of varying friction levels.
Conclusion and Future Work
VDGNS demonstrates that physical properties can be effectively inferred from visual data to drive accurate particle-based simulations. However, the current model requires prior knowledge of system classes during training. Future directions include moving toward unsupervised learning—where the model discovers physical properties without labels—and testing the framework on real-world video data for applications in robotics and computer vision.
Summary updated