Abstract
Rigid body interactions are fundamental to numerous scientific disciplines, but remain challenging to simulate due to their abrupt nonlinear nature and sensitivity to complex, often unknown environmental factors. These challenges call for adaptable learning-based methods capable of capturing complex interactions beyond explicit physical models and simulations. While graph neural networks can handle simple scenarios, they struggle with complex scenes and long-term predictions. We introduce a novel framework for modeling rigid body dynamics and learning collision interactions, addressing key limitations of existing graph-based methods. Our approach extends the traditional representation of meshes by incorporating higher-order topology complexes, offering a physically consistent representation. Additionally, we propose a physics-informed message-passing neural architecture, embedding physical laws directly in the model. Our method demonstrates superior accuracy, even during long rollouts, and exhibits strong generalization to unseen scenarios. Importantly, this work addresses the challenge of multi-entity dynamic interactions, with applications spanning diverse scientific and engineering domains.
Introduction
Simulating the dynamics of rigid objects—from industrial robotics to biomechanical modeling—requires capturing intricate interactions like friction, collisions, and structural integrity. Traditional physics engines like MuJoCo or PhysX provide robust simulations but often falter when environmental parameters are unknown or when dealing with highly complex geometries. Recently, Graph Neural Networks (GNNs) have emerged as a promising data-driven alternative. However, standard GNNs often fail to maintain the structural cohesion of objects over time, leading to "drift" or unrealistic deformations in long-term predictions. This "identity crisis" stems from treating objects as flat collections of nodes rather than unified physical entities.
Methodology: Higher-Order Topological Physics-informed Network (HOPNet)
To address these limitations, we propose HOPNet, which integrates higher-order topology and Newtonian principles directly into the neural architecture.
Combinatorial Complexes
Instead of a simple graph, we represent 3D objects using a Combinatorial Complex (CC). This hierarchical structure captures the multi-scale nature of rigid bodies across different ranks, from individual vertices to the entire object body.
As shown in the figure above, the CC hierarchy includes:
- Rank 0-2: Representing local geometry through nodes ($X^{(0)}$), edges ($X^{(1)}$), and mesh faces ($X^{(2)}$).
- Rank 3: Modeling dynamic collision contacts ($X^{(3)}$) between objects.
- Rank 4: Representing the object as a single, cohesive entity ($X^{(4)}$).
Physics-Informed Message Passing
The core of HOPNet is a message-passing scheme structured to mirror physical laws. Unlike standard GNNs where information flows arbitrarily, HOPNet follows a sequence of updates that enforce physical consistency through four distinct parts (A-D) and seven steps.
- Intra-object Enhancement (Part A): Local features (nodes, edges, faces) are updated with data from the parent object to maintain rigidity.
- Inter-object Collision Processing (Part B): When objects approach each other, collision cells calculate momentum and energy exchange based on specific contact triangles.
- Global Object Update (Part C): Forces and torques are propagated to the object level to compute new accelerations and orientations.
- Prediction (Part D): The model predicts the next state using shape matching and quaternions for 3D rotations, avoiding mathematical singularities like gimbal lock.
Experimental Evaluation
We evaluated HOPNet using the MOVi (Multi-Object Video) dataset suite, ranging from simple spheres to high-resolution 3D scans of household items (MOVi-C) containing up to 50,000 nodes per object.
Key Findings
- Generalization through Topology: A model trained exclusively on spheres demonstrated remarkable performance on complex, unseen shapes like teapots. By learning the fundamental physics of contact at any angle (as spheres do), the model captures universal collision laws rather than memorizing specific vertex patterns.
- Long-term Stability: HOPNet maintains physical realism over significantly longer "rollouts" than state-of-the-art baselines. While models like FIGNet show rapid error accumulation, HOPNet's topological constraints prevent the "jello-like" deformations typical of particle-based GNNs.
- Robustness to Complexity: When transitioning from basic shapes to complex environments, HOPNet showed minimal error increase (1.85%), whereas competing models saw errors jump by over 100%.
Conclusion and Future Work
HOPNet demonstrates that integrating topological structure with physics-informed inductive biases is critical for learning robust rigid body dynamics. By treating objects as cohesive units rather than disconnected graphs, we achieve superior generalization and long-term stability.
Future research will focus on scaling these combinatorial complexes to handle millions of faces through adaptive mesh refinement and exploring "system identification" to learn hidden properties like mass and friction directly from visual data. Additionally, extending this framework to deformable "soft" bodies remains a compelling frontier for topological deep learning.
Citation: Wei, A., & Fink, O. (2025). Integrating physics and topology in neural networks for learning rigid body dynamics. Nature Communications, 16:6867. https://doi.org/10.1038/s41467-025-62250-7
Summary updated