Abstract
UniPhy is a unified neural framework designed to simulate the physics of diverse materials—ranging from splashing liquids to crumbling sand—within a single, differentiable model. By optimizing a latent code through a differentiable simulator, UniPhy can infer material properties from short observations and predict behavior in novel, unseen scenarios.
Introduction
In computer graphics and robotics, "inverse physics" involves observing an object's motion to infer its underlying material properties. Traditionally, this is treated as a system identification problem where a human must pre-define the material category (e.g., "this is a fluid"). If the initial guess is incorrect, the simulation fails. While recent neural approaches have attempted to learn these rules from data, they typically require training separate models for each material type, failing to capture a universal understanding of physics. UniPhy addresses this by providing a unified model that understands the spectrum of material behaviors without requiring prior category labels.
Methods
UniPhy integrates deep learning with the Material Point Method (MPM), a hybrid simulator capable of handling complex material interactions. The framework replaces traditional, hand-coded physics equations with two latent-conditioned neural networks:
- Deformation Gradient Projection Network ($g_\phi$): Predicts structural changes under strain, distinguishing between elastic recovery and permanent plastic deformation.
- Constitutive Law Network ($f_\theta$): Predicts internal stress forces generated during motion.
Both networks are conditioned on a shared latent vector ($z$). During inference, the model uses gradient descent to find the specific latent vector that matches a target trajectory. Because the simulator is differentiable, gradients flow from the motion error back to the latent code, enabling category-agnostic material identification.
Results and Discussion
UniPhy was evaluated on a synthetic dataset featuring five material classes: elastic solids, plasticine, sand, and both Newtonian and non-Newtonian fluids. The model was tested across various geometries and motion types, including falling under gravity and diagonal throws.
Performance and Generalization
The model significantly outperformed baselines like NCLaw and Graph Neural Networks (GNNs). For Newtonian fluids, UniPhy achieved a reconstruction error of $1.1 \times 10^{-6}$, compared to $2.0 \times 10^{-5}$ for NCLaw. Beyond accuracy, UniPhy demonstrated strong generalization; a model that observed sand falling could accurately predict its behavior when thrown against a wall or simulated over a much longer time horizon.
Qualitative Fidelity
Visually, UniPhy captures complex physical phenomena that other models often miss, such as the specific folding patterns of sand upon impact and the realistic separation of fluid particles. Unlike many existing models, UniPhy maintains stability over long-term simulations without requiring "teacher forcing" (periodic resets to ground truth), which is vital for real-world applications where internal states are not directly observable.
Conclusion
UniPhy represents a significant step toward a universal physics simulator. While currently limited to homogeneous materials and requiring 3D particle data, its ability to learn a continuous latent space of physical properties offers a robust path forward for robotics and computer vision. Future work will focus on handling multi-material interactions and inferring physics directly from raw 2D video pixels.
Summary updated