Abstract
We propose a Deep Reinforcement Learning (Deep RL) algorithm for solving the online 3D bin packing problem for an arbitrary number of bins and any bin size. The focus is on producing decisions that can be physically implemented by a robotic loading arm. Unlike traditional offline versions, we assume the entire set of objects is not known a priori; instead, a small look-ahead window is available. The goal is to maximize overall packing efficiency while adhering to real-world physical constraints. Our model generalizes to problem instances of arbitrary size without retraining and outperforms state-of-the-art heuristics in simulation and laboratory tests.
Introduction
Bin-packing is a classic NP-hard optimization problem with significant implications for logistics and warehousing. In real-world scenarios, this often takes the form of the Real-Time 3D Bin-Packing Problem (RT-3D-BPP), where items arrive sequentially on a conveyor belt and must be placed immediately. This paper introduces PackMan, a generalized Deep Reinforcement Learning (RL) approach designed to handle these dynamic conditions while ensuring solutions are robot-implementable.
Real-World Physical Constraints
A key challenge in robotic bin-packing is adhering to physical constraints that ensure stability and reachability. The PackMan system accounts for several critical factors:
- Bottom-up ordering: Items cannot be suspended in mid-air and must be placed on the floor or atop other items.
- Flat bases: To maintain stability, an item must be placed on a level surface.
- Limited rotations: To simplify robotic manipulation, the system only considers 90-degree rotations along the vertical axis.
- Round-off errors: The system must account for small discrepancies between ideal grid positions and physical placement.
Methodology: The PackMan Algorithm
The proposed algorithm combines a selective search heuristic with a Deep Q-Network (DQN) to manage the vast action space of 3D packing.
Selective Search
Evaluating every possible position in a 3D bin is computationally prohibitive. PackMan uses a heuristic to identify a "shortlist" of approximately 12 eligible locations, typically corners or edges of previously placed items. This reduces the action space from thousands of grid points to a manageable set of high-quality candidates.
Deep Q-Network (DQN) and Generalization
A DQN evaluates the shortlisted candidates. The state of the bin is represented as a 2D height map. To ensure the model is generalized—meaning it can work on bins of different sizes without retraining—the height map is compressed into a fixed-size vector using pooling functions (average, max, and difference). This allows the same trained policy to be applied to various container dimensions.
Experimental Evaluation
The system was trained in a physics-enabled simulator and validated using a laboratory prototype consisting of a robotic arm and a conveyor system.
Key Results
PackMan outperformed standard baselines and a custom expert-designed heuristic called "WallE":
- Competitive Ratio: Achieved 1.29 (where 1.0 is optimal), outperforming WallE (1.41) and First Fit (~1.50).
- Volume Efficiency: Reached an average packing fraction of 82.8%.
- Real-Time Performance: Inference takes under 40ms, well within the requirements for real-time robotic control.
Conclusion and Future Work
PackMan demonstrates that RL can effectively solve online 3D bin-packing problems while respecting robotic constraints. While successful, challenges remain regarding sensor noise and the limitations of fixed rotations. Future research will explore direct policy-based outputs to further enhance packing density and robustness in noisy environments.
Summary updated