Learning Particle Dynamics Subject to Rigid Body Manipulations Using Graph Neural Networks

Niteesh Midlagajni, Constantin A. Rothkopf

TL;DR

This paper introduces a novel Graph Neural Network (GNN) framework capable of simulating complex liquid dynamics interacting with moving rigid bodies. By employing a unique graph representation and efficient collision handling, their model achieves state-of-the-art performance and generalizes to unseen objects and manipulation tasks, paving the way for more realistic and controllable simulations.

What Problem Does This Paper Address?

Accurately simulating how liquids interact with solid objects is fundamental for fields like robotics, computer graphics, and design. Traditional physics simulators, while precise, are often computationally expensive and struggle with complex, dynamic scenarios. Existing data-driven approaches, particularly those using GNNs, have shown promise but are typically limited to simpler situations like liquids in free-fall or interacting with static, basic shapes. They often fail when rigid bodies are actively moving and manipulating the liquid, which is crucial for real-world applications. This paper aims to bridge this gap by developing a GNN-based simulator that can handle dynamic interactions between liquids and arbitrarily shaped, moving rigid bodies.

Methods

The core of this work is a unified GNN-based framework designed for simulating liquid dynamics under rigid body manipulation. Key methodological innovations include:

  • Multi-Graph Representation: The system uses a graph where liquid particles and rigid bodies are distinct node sets. This modularity allows for specialized handling of different entities.
  • Efficient Collision Handling: Instead of relying solely on particle-to-particle or particle-to-mesh-vertex interactions, they introduce a novel approach for liquid-object collisions. This involves using a Bounding Volume Hierarchy (BVH) algorithm to efficiently find the closest point on an object's surface to a liquid particle. This allows for more accurate and robust collision detection, especially with complex geometries.
  • Separated Interaction Types: The framework explicitly models liquid-liquid interactions (based on proximity) and liquid-object interactions (using the BVH-based surface representation) with distinct edge sets. This separation is crucial for capturing the nuances of each interaction.
  • Encode-Process-Decode Architecture: Similar to prior GNN-based simulators, they employ an encoder to build the graph, a processor with message-passing layers to update node and edge features, and a decoder to predict the next state.
  • Node and Edge Features: They utilize historical velocity information for node features and relative displacement and distance for edge features, with specialized features for liquid-object edges to capture spatial relationships.

Datasets

The authors generated their primary dataset using NVIDIA Isaac Sim, a robotics simulation platform. The dataset consists of three main simulation scenarios:

  • Translation-Motion-Sim: Simulates purely translational motion of a jug.
  • Rotation-Motion-Sim: Simulates rotational motion of a jug.
  • Full-Body-Motion-Sim: Simulates combined translational and rotational motion (6-DOF).

These scenarios were trained with a Martini cup and Vase jug. For generalization evaluation, they created novel jug shapes (WineBottle, Beaker) and a Wine cup, which were not part of the training set.

Key Insights and Ideas

  • Surface-based collision is key for complex objects: The paper strongly suggests that accurately modeling liquid-object interactions requires going beyond simple vertex-based collision detection. Using BVH to find the closest surface point allows the model to better handle intricate object geometries and prevent "tunneling" (particles passing through objects).
  • Generalization to unseen shapes and tasks is achievable: Despite being trained on relatively simple object shapes and pouring tasks, the model demonstrates impressive generalization capabilities to novel object geometries and even entirely new manipulation tasks like stirring and scooping, without additional training.
  • Modular graph design aids extensibility: Separating liquid particles and rigid bodies into distinct node sets, and defining specific edge types for their interactions, makes the architecture more modular and potentially easier to extend to more complex scenarios (e.g., rigid body dynamics influencing fluid).

Key Results

  • Superior performance on novel geometries: The proposed "Full-model" significantly outperforms baseline GNN models (GNS, MGN, MGN*) on challenging novel object shapes like the Wine-Beaker and Martini-Bottle, achieving lower mean Chamfer distances (e.g., 0.091±0.02 for Full-model vs. 0.156±0.01 for GNS on Wine-Beaker).
  • Effective generalization to new tasks: The model successfully simulates novel manipulation tasks like stirring and scooping, demonstrating its ability to learn diverse fluid behaviors.
  • Efficient control integration: The learned dynamics are directly usable with gradient-based optimization, enabling tasks like precise pouring control using Model Predictive Control (MPC).
  • Faster inference: The proposed method achieves faster inference times compared to baseline GNN models, being approximately twice as fast as the fastest baseline.

Limitations and Future Work

  • Limited material property simulation: The current framework is primarily designed for simulating water-like fluids and does not account for properties like viscosity. Future work could incorporate richer material representations.
  • One-way coupling: The model currently simulates how rigid bodies affect liquids, but not vice-versa (e.g., a flowing liquid displacing a rigid object). The authors propose extending the framework with trainable non-kinematic rigid-body nodes and object-object edges to enable this two-way coupling.
  • Tunneling with high velocities: The model can exhibit "tunneling" when object velocities are significantly higher than those seen during training, a common issue in fixed time-step simulations. Integrating sub-stepping or continuous collision detection methods could be a future direction.
  • Shear stress limitations: The model struggles with simulating liquid motion driven by shear stress and centrifugal effects (e.g., liquid in a rotating drum) due to its distance-based liquid-object connectivity.

Summary updated

Abstract

Simulating particle dynamics with high fidelity is crucial for solving real-world interaction and control tasks involving liquids in design, graphics, and robotics. Recently, data-driven approaches, particularly those based on graph neural networks (GNNs), have shown progress in tackling such problems. However, these approaches are often limited to learning fluid behavior in static free-fall environments or simple manipulation settings involving primitive objects, often overlooking complex interactions with dynamically moving kinematic rigid bodies. Here, we propose a GNN-based framework designed from the ground up to learn the dynamics of liquids under rigid body interactions and active manipulations, where particles are represented as graph nodes and particle-object collisions are handled using surface representations with the bounding volume hierarchy (BVH) algorithm. Our approach accurately captures fluid behavior in dynamic settings and can also function as a simulator in static free-fall environments. Despite being trained on single-object manipulation tasks, our model generalizes effectively to environments with novel objects and novel manipulation tasks. Finally, we show that the learned dynamics can be leveraged to solve control and manipulation tasks using gradient-based optimization methods.
BibTeX
@inproceedings{midlagajni2025learning,
  author = {Niteesh Midlagajni and Constantin A. Rothkopf},
  title = {{Learning Particle Dynamics Subject to Rigid Body Manipulations Using Graph Neural Networks}},
  booktitle = {LOG},
  year = {2025},
  url = {https://openreview.net/forum?id=vGjFGfHR42},
}

Loading related content...

Figure