RigidFormer: Learning Rigid Dynamics using Transformers

Zhiyang Dou, Minghao Guo, Haixu Wu, Doug Roble, Tuur Stuyck, Wojciech Matusik

TL;DR

RigidFormer is a mesh-free, object-centric Transformer model that learns multi-object rigid dynamics directly from point clouds. By shifting reasoning from individual vertices to object-level tokens and compact "anchors," it achieves state-of-the-art accuracy with up to 100x speedups over existing mesh-based simulators while maintaining physical rigidity.

What Problem Does This Paper Address?

Simulating how multiple rigid objects interact—bouncing, sliding, and colliding—is a cornerstone of robotics and computer graphics. Traditional physics engines are reliable but require perfect 3D meshes and hand-tuned contact models, which are rarely available in real-world perception tasks.

Recent "learned simulators" try to solve this using Graph Neural Networks (GNNs), but they typically operate at the vertex level. This creates two major bottlenecks:

  1. Computational Cost: Vertex-level message passing scales quadratically ($O(N_V^2)$) with the number of points, making high-resolution simulation painfully slow.
  2. Mesh Dependency: Many models require explicit edge and face connectivity, making them incompatible with raw, "mesh-free" data like point clouds from LiDAR or depth cameras.

RigidFormer aims to break these dependencies, providing a fast, stable, and mesh-free way to predict long-horizon dynamics.

Methods

The core philosophy of RigidFormer is that a rigid body responds to forces as a single, coherent unit. Instead of modeling every vertex, the authors introduce an object-centric Transformer pipeline:

  • Object-Level Tokens: Each object in a scene is encoded into a single compact token. This reduces interaction complexity from vertex-level $O(N_V^2)$ to object-level $O(N_O^2)$, where the number of objects is much smaller than the number of points.
  • Anchor-based State Advance: To capture geometry without the cost of full vertex attention, the model selects a small set of "anchors" (e.g., 4 per object). An Anchor-Vertex Pooling (AVP) module aggregates local vertex features around these anchors to supply contact-relevant geometry.
  • Anchor-based Rotary Positional Embedding (ARoPE): A novel embedding that injects 3D anchor geometry into the Transformer's attention mechanism. It is designed to be invariant to how anchors are indexed but sensitive to the object's actual shape and extent.
  • Differentiable Rigid Projection: Rather than directly regressing new positions (which can lead to objects "melting" or deforming over time), the model predicts anchor motions and then uses a differentiable Kabsch alignment to project those updates back onto the rigid-body manifold. This ensures objects stay perfectly rigid by construction.
  • Step-size Conditioning: Using FiLM (Feature-wise Linear Modulation), the model is conditioned on the integration step size ($\Delta t$), allowing a single trained network to operate at different temporal resolutions.
Figure 2: RigidFormer Pipeline. Inputs include two recent point-level states, the time-step size, and optional control signals. At time t, we encode each object point cloud into an object token. Object-Level Interaction models direct object–object effects, while Anchor-Object Interaction lets anchors attend to multi-scale object features and cross-object context. Each object’s state is advanced efficiently using a compact set of anchors. We integrate anchor dynamics using Verlet integration followed by differentiable Kabsch alignment to enforce rigidity and obtain the state at t+1. Anchor- based RoPE is used to improve generalization across object counts and geometries.

Datasets

The authors evaluated RigidFormer on several challenging benchmarks:

  • MOVi (Multi-Object Video): Includes MOVi-A (basic shapes), MOVi-B (complex geometric shapes), and MOVi-Sphere.
  • WreckingBall: A new large-scale dataset introduced by the authors featuring dense multi-object collisions with up to 217 objects to test scalability.
  • Articulated Bodies: Preliminary tests were conducted on the ASE Humanoid (17 parts) and Unitree G1 robot (31 parts) datasets to show the model can handle command-conditioned articulated motion.

Key Insights and Ideas

  • Rigidity as a Constraint, Not a Suggestion: By using the Kabsch algorithm as a differentiable layer, the model doesn't have to "learn" to be rigid; it is physically forced to be. This significantly reduces the "drift" that plagues other neural simulators over long time horizons.
  • Complexity Reduction: Shifting from vertex-level to object-level reasoning provides a massive efficiency gain. As shown in Figure 1, the number of interaction pairs drops from millions to just a few dozen for a typical scene.
  • Geometry-Aware Attention: Standard Transformers are permutation-invariant, which is good for sets of objects but bad for spatial reasoning. ARoPE provides a "spatial map" for the attention mechanism that respects the unordered nature of point clouds while capturing the 3D extent of objects.
Object-level interactions drastically reduce computational complexity compared to vertex-level methods.

Key Results

  • Speed: RigidFormer runs at 23.9 FPS, making it roughly 8x faster than FIGNet and 100x faster than HopNet, the previous state-of-the-art mesh-based simulators.
  • Accuracy: On the MOVi-B benchmark, it outperformed all mesh-based baselines in orientation error and matched them in translation error, despite not having access to mesh connectivity.
  • Scalability: The model remained stable in the "WreckingBall" scenario, handling over 200 objects simultaneously with low drift.
  • Robustness: It generalizes to unseen point resolutions (e.g., trained on 1024 points, tested on 768) and handles partial point clouds (where 25% of points are masked) without needing specialized completion modules.
Figure 3: Qualitative results from RigidFormer. Meshes are shown only for visualization; our model operates on point inputs. Additional visualization results on the MOVi datasets, including partial point-cloud inputs, are provided in Appendix A.

Limitations and Future Work

While powerful, RigidFormer has a few key limitations:

  • Object Segmentation: It currently relies on pre-provided object labels to know which points belong to which object. Integrating an online segmentation module would be a natural next step for raw sensor data.
  • Severe Occlusion: While it handles 25% masking well, performance degrades if too little of an object's shape is visible to determine its orientation.
  • Rigid-Only: The current formulation is strictly for rigid bodies. The authors suggest that extending this representation to mixed rigid-deformable scenes is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{dou2026rigidformer,
  author = {Zhiyang Dou and Minghao Guo and Haixu Wu and Doug Roble and Tuur Stuyck and Wojciech Matusik},
  title = {{RigidFormer: Learning Rigid Dynamics using Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=QWRZoUcNGH},
}
Figure