Abstract
Simulating large scenes with many rigid objects is crucial for a variety of applications, such as robotics, engineering, film and video games. Rigid interactions are notoriously hard to model: small changes to the initial state or the simulation parameters can lead to large changes in the final state. Recently, learned simulators based on graph networks (GNNs) were developed as an alternative to hand-designed simulators like MuJoCo and PyBullet. They are able to accurately capture dynamics of real objects directly from real-world observations. However, current state-of-the-art learned simulators operate on meshes and scale poorly to scenes with many objects or detailed shapes. Here we present SDF-Sim, the first learned rigid-body simulator designed for scale. We use learned signed-distance functions (SDFs) to represent the object shapes and to speed up distance computation. We design the simulator to leverage SDFs and avoid the fundamental bottleneck of the previous simulators associated with collision detection. For the first time in literature, we demonstrate that we can scale the GNN-based simulators to scenes with hundreds of objects and up to 1.1 million nodes, where mesh-based approaches run out of memory. Finally, we show that SDF-Sim can be applied to real world scenes by extracting SDFs from multi-view images.
Introduction
Simulating complex real-world environments—such as a crowded bookshelf or a table laden with objects—presents a significant computational challenge. Traditional physics engines like MuJoCo or PyBullet rely on hand-crafted meshes, while modern learned simulators using Graph Neural Networks (GNNs) often fail to scale.
The primary obstacle is the collision detection bottleneck. In mesh-based GNN simulators, every node or triangle on one object must potentially be checked against every node on another. As scene complexity grows, the number of "collision edges" in the graph increases quadratically ($O(K^2)$). This leads to prohibitive memory consumption and slow runtimes, frequently causing high-end GPUs to run out of memory (OOM) even on moderately complex scenes.
Methodology: SDF-Sim
SDF-Sim addresses these limitations by representing object shapes using learned Signed Distance Functions (SDFs). These are small Multi-Layer Perceptrons (MLPs) that take a 3D coordinate as input and output the distance to the nearest surface.
Key Innovations
- Implicit Shape Representation: By defining objects through MLP weights rather than thousands of vertices, SDF-Sim achieves "infinite resolution" for distance queries with minimal memory overhead.
- Linear Graph Construction: Instead of point-to-point collision checks, SDF-Sim creates edges between a surface node on Object A and the center node of Object B. The simulator then queries Object B’s SDF to find the contact point. This reduces collision edge complexity from quadratic to linear ($O(I \cdot K)$), where $I$ is the number of objects and $K$ is the number of surface nodes.
- Vision Integration: The pipeline is compatible with computer vision techniques. Using VolSDF, the authors demonstrate the ability to reconstruct 3D scenes from multi-view RGB images and integrate these implicit shapes directly into the simulation.
Experimental Evaluation
The researchers evaluated SDF-Sim across several benchmarks, including Kubric (Movi-B and Movi-C) and custom stress tests like "Spheres-in-Bowl." To test the limits of the system, they created extra-large scenes such as "Heaps of Stuff" (380 objects, 1.1M nodes) and "Falling Shoes."
Key Results
- Unprecedented Scale: SDF-Sim successfully simulated scenes with 1.1 million nodes, whereas previous state-of-the-art models like FIGNet crashed at roughly 10% of that scale.
- Efficiency: On standard benchmarks, SDF-Sim utilized 42.8% less peak memory and achieved 43% faster simulation steps compared to efficient mesh-based baselines.
- Accuracy in Crowded Scenes: While mesh-based models perform slightly better on very small scenes, SDF-Sim demonstrated lower penetration errors as object counts increased, showing superior generalization to crowded environments.
Discussion and Future Work
SDF-Sim demonstrates that treating an entire object as a queryable field rather than a collection of points bypasses the fundamental scaling limits of previous GNN simulators. MLPs serve as highly compressed geometry representations, and their GPU-friendly nature allows for high parallelization.
However, some limitations remain. Currently, the system requires training a specific MLP for every new object shape. Future research may explore meta-learning to generate SDFs for arbitrary shapes on the fly. Additionally, while the current focus is on rigid-body interactions, extending this framework to deformable objects or fluids would be a significant next step. While there is a minor precision trade-off in low-object-count scenes, the scalability gains make SDF-Sim a powerful tool for large-scale simulation.
Summary updated