NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Balanced Order Batching with Task-Oriented Graph Clustering

Lu Duan, Haoyuan Hu, Zili Wu, Guozheng Li, Xinhang Zhang, Yu Gong, Yinghui XuKDD 2020

Abstract

Order picking is a significant cost driver in e-commerce logistics. Efficient order batching—grouping multiple orders into a single picking trip—is critical for minimizing travel distance. We present the Balanced Task-oriented Graph Clustering Network (BTOGCN), a deep learning framework designed for the Balanced Order Batching Problem (BOBP). BTOGCN utilizes a heterogeneous graph neural network to learn order representations and a differentiable K-means layer for clustering. To overcome the non-differentiability of the Traveling Salesman Problem (TSP) objective, we introduce a task-oriented estimator that predicts picking distances. Experimental results on real-world warehouse data demonstrate that BTOGCN outperforms traditional heuristics and baseline models, offering significant reductions in picking distance and near-instant solution generation.

Introduction: The Challenge of Order Picking

In massive e-commerce warehouses, "order picking" is the most labor-intensive part of the operation, accounting for 50% to 70% of total operational costs. To optimize efficiency, warehouses employ order batching: instead of fulfilling one order at a time, a worker retrieves items for multiple orders in a single trip using a cart with fixed slots.

The authors focus on the Balanced Order Batching Problem (BOBP). In this scenario, every batch must contain an identical number of orders to match the fixed capacity of picking carts. Finding the optimal grouping to minimize total travel distance is an NP-hard combinatorial puzzle. Traditionally, this is solved using hand-crafted heuristics. However, these heuristics are difficult to design for complex warehouse layouts and often fail to provide high-quality solutions in the "quasi-real-time" required by modern logistics.

Illustration of the Balanced Order Batching Problem (BOBP), showing how different order groupings (A vs B) result in different total picking distances based on item locations.

Proposed Method: BTOGCN

The authors propose the Balanced Task-oriented Graph Clustering Network (BTOGCN). This framework treats order batching as a graph clustering task and consists of three main components:

  1. Type-aware Heterogeneous Graph Convolutional Network (HetGNN): The warehouse environment is modeled as a graph with two types of nodes (Orders and Items) and three types of edges (Order-to-Order, Order-to-Item, and Item-to-Item). The HetGNN learns rich embeddings for each order by analyzing item contents and spatial proximity.
  2. Differentiable K-Means Layer: To group orders into batches, the model uses a modified, differentiable version of the K-means clustering algorithm. This allows the network to calculate how changes in order representations affect the final batching outcome.
  3. Task-Oriented Estimator: The primary objective—minimizing the Traveling Salesman Problem (TSP) route distance—is non-differentiable. To address this, the authors trained a separate neural network to estimate the TSP distance. This estimator provides the necessary gradients to train the clustering components via backpropagation.
The BTOGCN architecture, featuring graph embedding extraction, a balanced K-means layer, and a task-oriented estimator to bridge the differentiability gap.

Experimental Evaluation

The study utilizes real-world logistics data from the Cainiao Warehouse Management System (WMS). Each test graph consists of 500 online orders to be grouped into 20 batches (25 orders per batch). The model was evaluated on both "single-graph" sets (static layout) and "multi-graph" sets to test generalization to unseen order patterns.

Key Results

BTOGCN was compared against expert-designed heuristics and several two-stage deep learning baselines.

  • Distance Reduction: BTOGCN reduced the average picking distance by 4.57 meters per batch compared to state-of-the-art heuristics in single-graph tests.
  • Generalization: On multi-graph datasets with unseen orders, it maintained superior performance, outperforming heuristics by 0.13 meters per batch.
  • Operational Efficiency: Unlike complex meta-heuristics, a trained BTOGCN produces batching solutions almost instantly through a single forward pass, making it ideal for high-velocity logistics environments.

Conclusion

The BTOGCN framework successfully bridges the gap between complex combinatorial optimization and deep learning. By using a "digital twin" estimator for the non-differentiable TSP objective and leveraging heterogeneous graph representations, the system achieves global optimization across large order pools. Future work may explore variable batch capacities and broader applications in vehicle routing and bin packing problems.

Summary updated

BibTeX
@inproceedings{duan2020balanced,
  author = {Lu Duan and Haoyuan Hu and Zili Wu and Guozheng Li and Xinhang Zhang and Yu Gong and Yinghui Xu},
  title = {{Balanced Order Batching with Task-Oriented Graph Clustering}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  doi = {10.1145/3394486.3403355},
}
Figure