[Paper Review] Attend2Pack: Bin Packing through Deep Reinforcement Learning with Attention
Attend2Pack proposes an end-to-end deep reinforcement learning model for offline bin packing using self-attention mechanisms and prioritized oversampling to decompose the combinatorial action space. It achieves state-of-the-art performance on both 2D and 3D bin packing benchmarks, including strict online-BPP settings, with 67.0% utilization on average for 15.6 items packed per episode.
This paper seeks to tackle the bin packing problem (BPP) through a learning perspective. Building on self-attention-based encoding and deep reinforcement learning algorithms, we propose a new end-to-end learning model for this task of interest. By decomposing the combinatorial action space, as well as utilizing a new training technique denoted as prioritized oversampling, which is a general scheme to speed up on-policy learning, we achieve state-of-the-art performance in a range of experimental settings. Moreover, although the proposed approach attend2pack targets offline-BPP, we strip our method down to the strict online-BPP setting where it is also able to achieve state-of-the-art performance. With a set of ablation studies as well as comparisons against a range of previous works, we hope to offer as a valid baseline approach to this field of study.
Motivation & Objective
- Address the computational and generalization limitations of traditional heuristic and exact algorithms for bin packing.
- Develop a scalable, end-to-end deep reinforcement learning model that generalizes across diverse bin packing scenarios.
- Overcome challenges in on-policy learning for combinatorial action spaces through novel training techniques.
- Demonstrate strong performance not only in offline-BPP but also in strict online-BPP settings, where future items are unknown during packing.
Proposed method
- Employ a self-attention-based encoder to represent the state of the bin and remaining items, capturing long-range dependencies in item configurations.
- Decompose the combinatorial action space into sequence generation and placement decisions, enabling structured policy learning.
- Introduce prioritized oversampling—a training technique that accelerates on-policy learning by focusing on high-reward transitions.
- Use a two-stream policy network: one for generating item placement sequences (π^s), and another for predicting placement coordinates (π^p), with shared attention features.
- Apply a utility-based reward function r_u = (sum of item volumes) / (bin volume) to guide policy optimization via policy gradient.
- Adapt the model to strict online-BPP by removing leftover embeddings from the placement policy, ensuring no future item information leaks during inference.
Experimental results
Research questions
- RQ1Can an end-to-end attention-based deep reinforcement learning model outperform existing methods on offline bin packing with complex 3D item configurations?
- RQ2How effective is prioritized oversampling in accelerating on-policy training for combinatorial optimization with large action spaces?
- RQ3To what extent can a model pre-trained on offline-BPP generalize to strict online-BPP settings where item order is unknown in advance?
- RQ4How do architectural components like self-attention and sequence modeling contribute to performance gains in bin packing?
- RQ5Can the proposed method achieve state-of-the-art results across diverse data distributions, including cut-generated and randomly sampled boxes?
Key findings
- Attend2Pack achieves 67.0% bin utilization on average when packing 15.6 items in the strict online-BPP setting, outperforming prior work (Zhao et al., 2021) which reached only 54.7% under similar conditions.
- On cut-generated 3D bin packing instances, Attend2Pack achieves state-of-the-art performance, surpassing the prior SOTA method (Laterre et al., 2019) in both 2D and 3D settings.
- On randomly generated 3D boxes with bin size 100×100, Attend2Pack achieves SOTA results across all tested instance sizes (20, 30, 50, 100 items), with stable training curves and improved generalization.
- Ablation studies confirm that both the self-attention mechanism and the inclusion of leftover embeddings significantly improve performance, with the sequence policy (π^s) contributing to better item ordering.
- The prioritized oversampling technique effectively accelerates on-policy learning, reducing training instability and improving convergence speed.
- Despite a single catastrophic forgetting event during training on 100-item instances, the model’s performance remains robust with an additional training run confirming consistent SOTA results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.