Structured deep generative models for sampling on constraint manifolds in sequential manipulation

Joaquim Ortiz de Haro, Jung-Su Ha, Danny Driess, Marc ToussaintCoRL 2021

Abstract

Sampling efficiently on constraint manifolds is a core problem in robotics. We propose Deep Generative Constraint Sampling (DGCS), which combines a deep generative model for sampling close to a constraint manifold with a classical nonlinear optimizer to project these samples onto the manifold. By leveraging problem factorization and a novel analytical constraint loss, DGCS generates high-quality seeds that allow optimizers to find valid solutions significantly faster than traditional heuristic methods.

Introduction

In robotics, "sequential manipulation" tasks—such as picking up a box, handing it to another robot, and placing it on a shelf—require finding configurations that satisfy a strict set of geometric and kinematic constraints. These valid configurations live on a constraint manifold, a specific and often disconnected subset of the high-dimensional space of all possible robot poses.

Sequential handover task involving two robotic arms.

Finding points on this manifold is notoriously difficult. Standard local optimization algorithms, such as those used for Inverse Kinematics, are effective at refining a near-miss into a perfect solution but frequently get stuck in local optima if they start too far from the manifold. Conversely, simple random sampling is unlikely to ever hit a valid configuration in a complex, cluttered scene. The challenge lies in generating diverse, "near-valid" starting points (seeds) conditioned on the specific scene geometry so the optimizer can succeed quickly.

Methodology

The researchers propose a hybrid approach called Deep Generative Constraint Sampling (DGCS), which integrates deep learning with classical optimization through three key components:

  1. Conditional GAN with Analytical Loss: A Generator is trained to map scene images (depth maps and object masks) and noise vectors to robot configurations. Crucially, the training process includes an analytical constraint term that penalizes the network for violating known physical constraints, such as collisions or joint limits.
  2. Problem Factorization: Instead of predicting an entire complex sequence at once, DGCS exploits the task's "constraint graph." It breaks the problem into a sequence of conditional models (e.g., sampling object placement first, then sampling the grasp). This structured approach handles multi-modal distributions far better than a monolithic network.
  3. Optimization-based Projection: The neural network's output is treated as a "seed." This seed is fed into a nonlinear optimizer that performs a projection to move the seed onto the actual constraint manifold, ensuring the final solution is mathematically valid.

Experimental Setup and Datasets

The authors evaluated DGCS on three simulated robotic manipulation scenarios:

  • Pick-and-Place: A single robot moving an object to a target region.
  • Assembly: Two mobile robots joining two different parts.
  • Handover: Two robots collaborating to pass an object from one to the other.
Pick-and-place task visualization.

The training data consisted of 4,000 problem-solution pairs per scenario, generated offline. The input to the networks was a $64 \times 128 \times 4$ image representing the scene's depth and object masks, allowing the model to handle variable obstacle layouts without manual feature engineering.

Key Results and Discussion

DGCS demonstrates significant improvements in both success rate and efficiency:

  • Success Rate: In the Pick-and-Place task, the structured model with analytical loss achieved a 78% success rate, compared to 46% for a standard non-factorized neural network.
  • Efficiency: In Assembly and Handover tasks, DGCS reduced the number of optimization attempts required. On average, it needed only 2.07 to 2.77 trials, whereas the strongest baseline required nearly 4 trials.
  • Speed: The neural network generates 10 samples in just 8ms on a GPU. While the majority of computation time is spent in the optimization phase, the high quality of the seeds ensures fewer runs are needed overall.

Conclusion and Future Work

DGCS plays to the strengths of both deep learning (pattern recognition and generalization) and classical optimization (precision). While the method currently requires large pre-computed datasets for each task class, it shows a clear path toward more robust sequential manipulation. Future work may explore "differentiable optimization" to embed the projection step directly into the neural network's training loop, potentially further increasing robustness and generalization.

Summary updated

BibTeX
@inproceedings{haro2021structured,
  author = {Joaquim Ortiz de Haro and Jung-Su Ha and Danny Driess and Marc Toussaint},
  title = {{Structured deep generative models for sampling on constraint manifolds in sequential manipulation}},
  booktitle = {Conference on Robot Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=FI4a2xZw3Hv},
}
Figure