Graph-based Reinforcement Learning meets Mixed Integer Programs: An application to 3D robot assembly discovery

Niklas Funk, Svenja Menzenbach, Georgia Chalvatzaki, Jan Peters · DOI

Introduction

Robot Assembly Discovery (RAD) represents a significant challenge in the field of robotics, requiring an agent to autonomously determine how to construct a target 3D structure from a set of available components. Unlike traditional robotic assembly, which often relies on pre-defined instructions, RAD necessitates solving two distinct but interconnected problems: a combinatorial resource allocation problem (determining which blocks to use and where) and a sequential decision-making problem (determining the order of placement to ensure structural stability and avoid collisions).

Traditional approaches often fall short in this domain. End-to-end Reinforcement Learning (RL) typically struggles with the massive search space inherent in 3D construction, while classical Task and Motion Planning (TAMP) methods can be computationally expensive and lack the reactivity needed for dynamic environments. This paper proposes a hybrid, tri-level hierarchical framework that combines the global optimization capabilities of Mixed Integer Linear Programming (MILP) with the sequential reasoning of Graph-based Reinforcement Learning.

Methodology

The proposed framework decomposes the RAD problem into three specialized levels, each addressing a different aspect of the assembly process:

1. High-Level: The Architect (MILP)

The high-level module utilizes a Mixed-Integer Linear Program (MILP) to solve the global geometric problem. By analyzing the target shape and available blocks, the MILP identifies an optimal "blueprint"—a subset of blocks and their final poses that best match the target. This step is crucial because it effectively prunes the action space, allowing the subsequent RL agent to focus only on actions that contribute to a valid geometric solution.

2. Medium-Level: The Foreman (GNN + RL)

The medium-level module is responsible for sequential planning. It uses a Graph Neural Network (GNN) trained via Q-learning to decide the order in which blocks should be placed. By representing blocks and grid cells as nodes in a graph, the policy becomes invariant to the number of objects, which is key for generalization. This level accounts for physical constraints, such as structural stability and robotic reachability, ensuring that the MILP's blueprint is executed in a physically viable sequence. At inference time, Monte Carlo Tree Search (MCTS) is employed to further refine long-term planning.

3. Low-Level: The Worker (GAMP)

The low-level Grasp and Motion Planning (GAMP) module translates high-level placement commands into specific robotic joint movements. It ensures that the robot can physically pick up and place each block without colliding with the environment or the evolving structure.

Experimental Setup

The researchers evaluated the framework using a custom dataset of 50,000 simulated RAD scenes generated in the PyBullet physics engine. Training was conducted on structures within $3 \times 3$ or $4 \times 4$ grids. To test the system's robustness, the authors performed "out-of-distribution" evaluations on larger $5 \times 5$ grids and complex target shapes requiring more blocks than those seen during training. Finally, the system was validated in a real-world setting using a Franka Emika Panda robot equipped with an OptiTrack system for object localization.

Key Results and Insights

The hierarchical approach demonstrated significant improvements over standard end-to-end RL baselines:

  • Performance and Efficiency: The MILP-DQN approach achieved a 2x increase in success rates and discounted rewards compared to standard DQN models. The use of MILP as an inductive bias proved highly effective in guiding the RL agent's exploration.
  • Generalization: The GNN-based policy showed remarkable ability to scale. When moved from a $3 \times 3$ training environment to a $5 \times 5$ test grid, the agent maintained a target coverage of 85-87%.
  • Stability and Safety: The integration of MCTS significantly reduced failures related to collisions or structural collapses, improving reliability by factors of 5 to 12 in certain scenarios.
  • Sim-to-Real Transfer: The successful real-world demonstration confirmed that the hierarchical decomposition helps bridge the gap between simulation and reality, as the high-level geometric and sequential logic remains consistent across both domains.

Conclusion and Future Work

By combining the strengths of MILP and Graph RL, this research provides a robust blueprint for autonomous robot assembly. While the current system focuses on rectilinear blocks, it establishes a foundation for more complex RAD tasks. Future work will aim to expand the system's capabilities to include non-convex or deformable objects and to optimize the MILP component for even larger-scale assembly tasks where computational overhead may become a factor.

Summary updated

BibTeX
@inproceedings{funk2022graph,
  author = {Niklas Funk and Svenja Menzenbach and Georgia Chalvatzaki and Jan Peters},
  title = {{Graph-based Reinforcement Learning meets Mixed Integer Programs: An application to 3D robot assembly discovery}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=W59BHjEDfz},
}
Figure