Efficient Reinforcement Learning of Task Planners for Robotic Palletization Through Iterative Action Masking Learning

Zheng Wu, Yichuan Li, Wei Zhan, Changliu Liu, Yun-Hui Liu, Masayoshi Tomizuka

Abstract

Robotic palletization is a challenging 3D Bin Packing Problem (BPP) characterized by massive action spaces and complex stability constraints. This paper proposes an iterative supervised learning approach to "mask" invalid actions within a Reinforcement Learning (RL) framework. By training a U-Net to predict stable placement locations and refining it through a DAgger-like process using physics-backed labeling, the method significantly prunes the action space. Experimental results in simulation and real-world deployments demonstrate faster training convergence and higher space utilization compared to traditional heuristics and unmasked RL agents.

Introduction

Robotic palletization—the task of stacking boxes efficiently and stably—is a complex variant of the 3D Bin Packing Problem. Applying Reinforcement Learning to this task faces three major hurdles: a massive action space (tens of thousands of possible actions per step), strict stability constraints where mathematically valid placements may be physically unstable, and the "buffer" challenge where robots must choose from several pending items. As shown in Figure 1, the task planner sits at the core of the robotic system, deciding "where" to place items before trajectory planning and control take over.

Figure 1: High-level architecture of the robotic palletization system, highlighting the role of the task planner.

Methods

The core contribution is Iterative Action Masking Learning. Instead of letting the RL agent explore every possible coordinate, the system "masks out" actions that would lead to unstable configurations.

Semantic Segmentation for Stability

The authors treat the pallet's top-down heightmap and the dimensions of the box-to-be-placed as a 4-channel image. They use a U-Net architecture to output a binary mask of the same resolution as the pallet. A "1" indicates a stable placement, and a "0" indicates an unstable one. To train this model, the MuJoCo physics engine serves as a ground-truth oracle to verify stability under gravity and noise.

Iterative Refinement (DAgger-like)

To address distribution shift as the RL agent improves, an iterative loop is employed:

  1. Train an RL policy (PPO) using the current mask.
  2. Collect new pallet states encountered by this policy.
  3. Label these new states using the physics engine.
  4. Retrain the U-Net on the aggregated dataset.
Figure 3: Overview of the iterative action masking framework, showing the integration of the masking model with the RL policy and the data collection loop.

Experimental Setup

The system was evaluated in a MuJoCo simulation featuring a 25x25 inch pallet and 80 boxes of 5 distinct sizes. Training data was generated procedurally, starting with a heuristic-based policy and expanding iteratively. Real-world validation was conducted using a Franka Panda robotic arm and an Intel RealSense RGB-D camera, testing against 5 different box sizes with varying weights to simulate real-world diversity.

Key Results and Insights

  • Learning vs. Heuristics: The learned U-Net mask achieved an 89.2% Intersection-over-Union (IoU) in predicting stability, significantly outperforming traditional geometric heuristics (76.6% IoU).
  • Space Utilization: In simulations with a buffer size of $N=5$, the LearnedMask approach achieved 76.2% space utilization, compared to 38.1% for an agent with no masking and 72.7% for one using standard heuristics.
  • Efficiency: The LearnedMask agent converged much faster than baselines, as it avoided exploring obviously unstable moves.
  • Real-World Success: The system successfully stacked 35 boxes on a physical pallet with 72.0% utilization, demonstrating effective sim-to-real transfer.

Conclusion

This work demonstrates that iterative action masking can effectively manage the complexity of robotic palletization by pruning massive action spaces. While the current system focuses on task planning, future work could integrate trajectory planning to avoid collisions and explore more granular rotations for irregular objects. Scaling to larger industrial buffers remains an area for further investigation.

Summary updated

BibTeX
@article{wu2024efficient,
  author = {Zheng Wu and Yichuan Li and Wei Zhan and Changliu Liu and Yun-Hui Liu and Masayoshi Tomizuka},
  title = {{Efficient Reinforcement Learning of Task Planners for Robotic Palletization Through Iterative Action Masking Learning}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2024},
  doi = {10.1109/lra.2024.3440731},
}
Figure