Learning visual-based deformable object rearrangement with local graph neural networks

Yuhong Deng, Xueqian Wang, Lipeng Chen

TL;DR

Researchers have developed a "local-GNN" framework that rearranges deformable objects like ropes and cloths by representing them as dynamic graphs of keypoints. By decoupling visual perception from structural reasoning, the model achieves a 96.3% success rate in simulation and transfers to real-world robots with 95% accuracy, all while being significantly lighter and faster than previous state-of-the-art methods.

What Problem Does This Paper Address?

Manipulating deformable objects—think straightening a tangled rope or folding a messy pile of laundry—is a nightmare for traditional robotics. Unlike rigid objects, which can be described by simple 6-degree-of-freedom poses, deformable objects have an effectively infinite-dimensional configuration space.

Current approaches usually fall into two camps:

  1. Dense Visual Methods: These use Convolutional Neural Networks (CNNs) to process entire images. While powerful, they are computationally heavy and struggle with "sim-to-real" transfer because the model gets bogged down in the specific "look" of the simulation (lighting, textures) rather than the underlying physics.
  2. Handcrafted Graph Methods: These represent objects as a set of points (keypoints) connected by fixed rules (e.g., "connect to the nearest neighbor"). However, these rigid rules often fail to capture the complex, non-linear dynamics of a cloth folding or a rope twisting.

The authors aim to bridge this gap by creating a representation that is sparse enough to be efficient but dynamic enough to learn the complex interactions between different parts of a deformable object.

Methods

The authors propose a two-stage learning framework:

  1. Keypoint Detection: A CNN-based detector extracts a set of 2D keypoints from both the current observation and the goal image. By using a spatial softmax layer, the network produces coordinates that are fully differentiable, allowing for end-to-end training.
  2. Local-Graph Neural Network (Local-GNN): This is the core innovation. Instead of using fixed edges, the model constructs two dynamic graphs (Current and Goal).
  3. Self-Attention Layers: These layers allow the nodes within a single graph to "talk" to each other, modeling the internal structural constraints and dynamics of the object.
  4. Cross-Attention Layers: These layers perform "keypoint matching" between the current and goal graphs. This allows the model to reason about which part of the current rope needs to move to which part of the goal configuration.
  5. Action Generation: The final updated nodes are passed through a softmax layer to output the probability of a "pick" location and a "place" location.

By focusing on keypoint coordinates rather than raw pixels, the "planning" part of the brain (the GNN) is isolated from the "visual" part (the CNN), making the system much easier to port from simulation to reality.

Datasets

The researchers evaluated their method on a custom-built dataset using the PyBullet physics engine.

  • Tasks: 8 distinct rearrangement tasks, including rope straightening, forming L/V/N shapes, rope-ring squaring, cloth flattening, and cloth folding (standard and diagonal).
  • Scale: 1,100 stochastic expert demonstrations per task.
  • Baselines: They compared their work against five established methods, including GCTN (Goal-Conditioned Transporter Networks) and standard Graph Convolutional Networks (GCN).

Key Insights and Ideas

  • Learned Dynamics > Handcrafted Rules: The "local" in Local-GNN refers to the model's ability to learn which interactions matter. Unlike previous graph methods that used fixed connections, this model learns the "edges" dynamically, allowing it to capture the non-linear behavior of fabric and rope more effectively.
  • Efficiency through Sparsity: Because the GNN operates on a small set of keypoints (e.g., 10-20 points) rather than a high-resolution feature map, it is incredibly lightweight. The authors report it is two orders of magnitude lighter in terms of FLOPs and parameters than the leading baseline (GCTN).
  • Sim-to-Real via Decoupling: To move to a real UR5 robot, the authors only had to fine-tune the keypoint detector on 500 real-world images. The GNN, having learned the "logic" of rearrangement in simulation, required no further training to work in the real world.

Key Results

  • High Success Rates: The model achieved an average success rate of 96.3% across all simulation tasks, significantly outperforming GCTN (which averaged around 50-60% on complex tasks like the "N-shape").
  • Speed: The inference time is 60% shorter than state-of-the-art methods, making it highly suitable for real-time closed-loop control.
  • Real-World Performance: In physical experiments with a UR5 robot, the system achieved a 100% success rate for rope tasks and 95% for cloth tasks.
  • Multi-Task Mastery: A single model trained on all tasks simultaneously performed nearly as well as specialized models, proving the representation's generalizability.

Limitations and Future Work

The primary limitation acknowledged is the reliance on RGB-based keypoint detection. In scenarios with heavy self-occlusion (e.g., a crumpled cloth or a knotted rope), 2D keypoints struggle to capture the full state.

The authors suggest that future work should explore 3D point clouds to better handle occlusions and broaden the application to even more complex 3D manipulation tasks. Additionally, while the current action space is "pick-and-place," extending this to continuous motions like "dragging" or "pushing" could further improve efficiency.

Summary updated

Abstract

Goal-conditioned rearrangement of deformable objects (e.g. straightening a rope and folding a cloth) is one of the most common deformable manipulation tasks, where the robot needs to rearrange a deformable object into a prescribed goal configuration with only visual observations. These tasks are typically confronted with two main challenges: the high dimensionality of deformable configuration space and the underlying complexity, nonlinearity and uncertainty inherent in deformable dynamics. To address these challenges, we propose a novel representation strategy that can efficiently model the deformable object states with a set of keypoints and their interactions. We further propose local-graph neural network (GNN), a light local GNN learning to jointly model the deformable rearrangement dynamics and infer the optimal manipulation actions (e.g. pick and place) by constructing and updating two dynamic graphs. Both simulated and real experiments have been conducted to demonstrate that the proposed dynamic graph representation shows superior expressiveness in modeling deformable rearrangement dynamics. Our method reaches much higher success rates on a variety of deformable rearrangement tasks (96.3% on average) than state-of-the-art method in simulation experiments. Besides, our method is much more lighter and has a 60% shorter inference time than state-of-the-art methods. We also demonstrate that our method performs well in the multi-task learning scenario and can be transferred to real-world applications with an average success rate of 95% by solely fine tuning a keypoint detector.
BibTeX
@inproceedings{deng2023learning,
  author = {Yuhong Deng and Xueqian Wang and Lipeng Chen},
  title = {{Learning visual-based deformable object rearrangement with local graph neural networks}},
  booktitle = {Complex},
  year = {2023},
}
Figure