Abstract
Simulating interactions between deformable bodies is vital in fields like material science, mechanical design, and robotics. While learning-based methods with Graph Neural Networks (GNNs) are effective at solving complex physical systems, they encounter scalability issues when modeling deformable body interactions. To model interactions between objects, pairwise global edges have to be created dynamically, which is computationally intensive and impractical for large-scale meshes. To overcome these challenges, drawing on insights from geometric representations, we propose an Adaptive Spatial Tokenization (AST) method for efficient representation of physical states. By dividing the simulation space into a grid of cells and mapping unstructured meshes onto this structured grid, our approach naturally groups adjacent mesh nodes. We then apply a cross-attention module to map the sparse cells into a compact, fixed-length embedding, serving as tokens for the entire physical state. Self-attention modules are employed to predict the next state over these tokens in latent space. This framework leverages the efficiency of tokenization and the expressive power of attention mechanisms to achieve accurate and scalable simulation results. Extensive experiments demonstrate that our method significantly outperforms state-of-the-art approaches in modeling deformable body interactions. Notably, it remains effective on large-scale simulations with meshes exceeding 100,000 nodes, where existing methods are hindered by computational limitations. Additionally, we contribute a novel large-scale dataset encompassing a wide range of deformable body interactions to support future research in this area.
Introduction: The Scalability Wall in Deformable Simulation
Simulating the collision and deformation of soft objects—such as cloth, rubber, or biological tissue—is a cornerstone of modern robotics and computer-aided design. While traditional Finite Element Methods (FEM) provide high accuracy, their computational cost is often prohibitive. Graph Neural Networks (GNNs) have emerged as a promising, faster alternative, but they face a significant "scalability wall."
The primary bottleneck lies in modeling interactions between distinct objects. In a graph-based approach, dynamic "world edges" must be established between nearby nodes of different meshes to detect collisions. As the number of nodes ($n$) grows, calculating these pairwise interactions leads to a memory complexity of $O(n^2)$, making large-scale simulations (e.g., >100k nodes) practically impossible for standard GNN architectures.
Methodology: Adaptive Spatial Tokenization (AST)
To address these limitations, we introduce Adaptive Spatial Tokenization (AST). This framework bridges the gap between the flexibility of unstructured graphs and the computational efficiency of Transformers by mapping physical states into a structured, compressed latent space.
The AST pipeline consists of five key stages:
- Graph Embedding: Raw mesh features, including node positions and material properties, are encoded into a latent space.
- Mesh-to-Cell Aggregation: The 3D simulation space is partitioned into a structured grid using an Octree. Mesh nodes are grouped into these spatial cells, naturally handling proximity without explicit edge creation.
- Adaptive Tokenization: Using Farthest Point Sampling (FPS), the model selects a representative subset of cells. A Cross-Attention module then compresses this sparse spatial data into a fixed-length set of "latent tokens."
- Latent Processing: A Transformer evolves these tokens in latent space to predict the next physical state. Because the token count is fixed, the complexity of physics reasoning is decoupled from the mesh resolution.
- Decoding: Updated tokens are mapped back to spatial cells and finally projected onto the original high-resolution mesh.
Datasets and Experimental Setup
We evaluated AST across four benchmarks, including a newly introduced large-scale dataset:
- DeformingPlate: Rigid body compression of a deformable plate (~1.3k nodes).
- SphereSimple: Cloth-like mesh interacting with a kinematic sphere (~2k nodes).
- ABCD (A Big CAD Deformation): A new dataset featuring 400 diverse geometries from the ABC dataset, simulating complex two-object interactions (~4k nodes).
- ABCD-XL: A high-density version of ABCD reaching 100,000 nodes, designed to test the limits of scalability.
Results and Discussion
AST demonstrates significant improvements in both accuracy and scalability over state-of-the-art baselines like MeshGraphNet (MGN) and Hierarchical Contact Mesh Transformer (HCMT).
- Accuracy: On the DeformingPlate task, AST achieved a displacement RMSE of 1.1, compared to 5.5 for MGN and 2.9 for HCMT.
- Scalability: AST was the only model capable of handling the ABCD-XL dataset. All baseline models suffered from Out-of-Memory (OOM) errors at 100k nodes, whereas AST maintained stable performance with linear scaling.
- Implicit Interaction and Volume Meshes: AST handles 3D volume meshes gracefully. Unlike methods that struggle as internal edges explode, AST treats 3D space as a grid. Interactions emerge naturally as nodes from different objects are mapped into the same spatial cells.
- Quantization Resolution: We found that the spatial grid resolution ($L_{cell}$) is a critical hyperparameter. A "sweet spot" exists where the grid is fine enough to capture detail but coarse enough for tokens to represent interactions between neighboring nodes effectively.
Conclusion
Adaptive Spatial Tokenization offers a robust solution to the scalability challenges of learning-based physical simulations. By decoupling mesh resolution from computational complexity through tokenization, AST enables the simulation of high-fidelity deformable body interactions that were previously computationally inaccessible. Future work will explore non-uniform grid controls and the integration of physics-informed constraints to further enhance robustness and accuracy.
Summary updated