A Multi-task Selected Learning Approach for Solving 3D Flexible Bin Packing Problem

Lu Duan, Haoyuan Hu, Yu Qian, Yu Gong, Xiaodong Zhang, Jiangwen Wei, Yinghui Xu

TL;DR

This paper tackles the complex 3D Flexible Bin Packing Problem (3D-FBPP) in e-commerce logistics by proposing a novel multi-task learning framework. Their approach learns a heuristic-like policy to simultaneously determine item packing sequences and orientations, achieving significant cost reductions compared to existing methods and a well-established greedy algorithm.

What Problem Does This Paper Address?

The paper addresses the real-world challenge of efficiently packing diverse items into flexible bins for e-commerce deliveries. This is a variant of the classic 3D Bin Packing Problem (3D-BPP), where the goal is to minimize the surface area of the outer packaging (the "bin") to reduce material costs. Traditional methods for 3D-BPP struggle with the "flexible" aspect and the sheer scale of e-commerce orders, which often contain many different items. The authors highlight that existing heuristic methods are non-trivial to design for this NP-hard problem, motivating the use of machine learning to learn effective packing strategies.

Methods

The core of the paper is a Multi-task Selected Learning (MTSL) framework. This approach frames the 3D-FBPP as a sequential decision-making problem, focusing on two key tasks:

  1. Sequence Generation: Determining the order in which items are packed.
  2. Orientation Generation: Deciding how each item is rotated within the bin.

A novel intra-attention mechanism is employed to handle the issue of repeated item packing, allowing the model to consider previously decoded items. The framework uses a shared encoder-decoder architecture, but crucially, it dynamically selects which task (sequence, orientation, or both) to train on in each batch. This "selected learning" strategy is designed to balance the difficulty and leverage the correlations between the sequence and orientation tasks. For spatial location, they rely on a greedy heuristic (LWSC) to keep the focus on the sequence and orientation learning.

Datasets

The authors introduce and utilize a newly collected Large-scale Real-world Transaction Order Dataset (LRTOD). This dataset is derived from e-commerce customer orders and corresponding item size data from Taobao's supermarket warehouse management system. They also created specific subsets for testing: BIN8, BIN10, and BIN12, representing orders with 8, 10, and 12 items, respectively.

Key Insights and Ideas

  • Multi-task learning is crucial for complex packing problems: The inherent correlation between item sequence and orientation makes a multi-task approach more effective than single-task learning.
  • Selected learning balances task difficulty: The dynamic selection of training tasks in MTSL helps to mitigate imbalances between the sequence and orientation generation sub-problems, leading to better overall performance.
  • Intra-attention for item repetition: The intra-attention mechanism is a key innovation for preventing the model from attempting to pack the same item multiple times, a common issue in sequential decision-making for packing.
  • Learning heuristics is viable: The paper demonstrates that machine learning can effectively learn packing heuristics that outperform traditional, hand-designed ones.

Key Results

  • Offline Performance: MTSL achieved significant cost reductions (average surface area reduction) compared to the well-designed greedy algorithm LWSC: 6.16% for BIN8, 9.66% for BIN10, and 8.25% for BIN12. It also outperformed single-task Pointer Networks and multi-task networks without selected learning.
  • Online Performance: In real-world A/B tests on Taobao's online production system, MTSL achieved an average cost reduction of 5.47% across four cities, leading to its deployment in over 20 major cities.
  • Qualitative Results: Visualizations of packing results showed MTSL producing more "reasonable" packing policies compared to other methods.

Limitations and Future Work

  • Spatial Location: The paper acknowledges that they disregard the spatial location selection strategy and rely on a greedy heuristic (LWSC). This is a simplification, and a more integrated approach to spatial location could potentially yield further improvements.
  • Future Research: The authors suggest investigating more effective network architectures and learning algorithms. They also express interest in applying their methods to other combinatorial optimization problems within the logistics domain.

Summary updated

BibTeX
@inproceedings{duan2019multi,
  author = {Lu Duan and Haoyuan Hu and Yu Qian and Yu Gong and Xiaodong Zhang and Jiangwen Wei and Yinghui Xu},
  title = {{A Multi-task Selected Learning Approach for Solving 3D Flexible Bin Packing Problem}},
  booktitle = {AAMAS},
  year = {2019},
}
Figure