Solving a New 3D Bin Packing Problem with Deep Reinforcement Learning Method

Haoyuan Hu, Xiaodong Zhang, Xiaowei Yan, Longfei Wang, Yinghui XuarXiv 2017

Abstract

In modern e-commerce logistics, flexible packaging materials often replace standard fixed-size cartons. This shift necessitates a new approach to the 3D Bin Packing Problem (BPP): minimizing the total surface area of the packed items rather than the number of bins. This paper presents a Deep Reinforcement Learning (DRL) framework that utilizes a Pointer Network to determine optimal packing sequences. By combining neural combinatorial optimization with geometric heuristics, the proposed method achieves significant improvements over traditional rule-based approaches on real-world datasets.

Introduction

The classical 3D BPP focuses on maximizing space utilization within fixed containers. However, for cross-border shipping and flexible packaging, the cost is driven by the surface area of the final package. Minimizing this area is an NP-hard problem involving three interdependent decisions: the sequence of items, their orientations, and their spatial coordinates. While heuristics are commonly used, they often fail to generalize across diverse item distributions. This research addresses these challenges by leveraging DRL to optimize the high-level packing sequence.

Methodology: The Pointer Network Approach

The researchers identify the packing sequence as the most critical factor in surface area optimization. To handle the variable input sizes inherent in packing tasks, they employ a Pointer Network (Ptr-Net).

The Pointer Network architecture used for sequence optimization.

The architecture consists of an encoder-decoder structure with an attention mechanism. The encoder processes item dimensions, while the decoder "points" to input items to generate a permutation representing the packing order.

Once the sequence is determined, a constructive heuristic handles the low-level geometry. For each item in the sequence, the heuristic evaluates six possible orientations and multiple "empty maximal spaces," selecting the configuration that results in the minimum increase in total surface area. The model is trained using the REINFORCE policy gradient algorithm, with a baseline iteration strategy to stabilize learning.

Experimental Evaluation

The model was trained and tested on a massive dataset of 300,000 real-world customer orders from Alibaba’s Cainiao Supply Chain. The data was categorized by the number of items per order (8, 10, and 12) to assess scalability and performance consistency. This real-world grounding ensures the model learns the actual distributions of item sizes encountered in global logistics.

Key Results

The DRL-based method, particularly when combined with Beam Search (RL BS), consistently outperformed baseline heuristics and random sequencing.

Comparison of average surface area across different packing methods.

As shown in the results table, the RL BS approach achieved an average surface area reduction of approximately 5% compared to the best-performing traditional heuristic. Notably, for smaller batches (8 items), the DRL method approached the mathematical optimum found through exhaustive search. The improvements remained stable as the number of items increased, demonstrating the model's robustness and its potential for real-time production environments due to fast inference speeds.

Conclusion

By decoupling high-level combinatorial sequencing from low-level geometric placement, this DRL approach provides an efficient and effective solution for the surface-area-minimizing 3D BPP. Future work aims to further integrate orientation and spatial decisions directly into the neural framework and explore the model's performance on larger, more complex industrial packing tasks.

Summary updated

BibTeX
@misc{hu2017solving,
  author = {Haoyuan Hu and Xiaodong Zhang and Xiaowei Yan and Longfei Wang and Yinghui Xu},
  title = {{Solving a New 3D Bin Packing Problem with Deep Reinforcement Learning Method}},
  year = {2017},
  eprint = {1708.05930},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.05930},
}
Figure