Learning Generalizable Models for Vehicle Routing Problems via Knowledge Distillation

Jieyi Bi, Yining Ma, Jiahai Wang, Zhiguang Cao, Jinbiao Chen, Yuan Sun, Yeow Meng Chee

Introduction

Vehicle Routing Problems (VRPs) are fundamental challenges in logistics, requiring the determination of optimal paths for vehicle fleets to visit sets of customers. While traditional heuristics are effective, they often rely on slow, hand-crafted rules. Deep Reinforcement Learning (DRL) has emerged as a promising alternative for automatically learning these heuristics. However, neural solvers frequently suffer from "distribution shift," where models trained on uniform data fail when applied to clustered or real-world layouts.

Methodology: Adaptive Multi-Distribution Knowledge Distillation (AMDKD)

To address this brittleness, we introduce Adaptive Multi-Distribution Knowledge Distillation (AMDKD). This framework employs a "specialist teacher" approach to train a single, robust student model.

The AMDKD framework: Teachers provide specialized knowledge, while an adaptive strategy focuses the student on difficult distributions.

The framework consists of three core components:

  1. Multi-Teacher Distillation: A lightweight student model (e.g., reducing embedding dimensions from 128 to 64) learns sequentially from specialists pre-trained on specific exemplar distributions, such as Uniform, Cluster, or Mixed layouts.
  2. Adaptive Strategy: Rather than uniform sampling, the framework adaptively adjusts the probability of selecting a teacher based on the student's current performance gap on a validation set for each distribution. This ensures the student focuses on "hard-to-learn" distributions.
  3. Dual Loss Function: Training optimizes a combination of Task Loss (standard RL for path minimization) and KD Loss (Kullback-Leibler divergence to mimic teacher action distributions).

Experimental Setup

Models were trained on exemplar distributions and evaluated on unseen synthetic distributions (e.g., Expansion, Grid) and real-world benchmarks (TSPLIB, CVRPLIB). The student models were designed to be significantly smaller than the backbone architectures, such as the Attention Model (AM) and POMO.

Results and Discussion

The AMDKD approach demonstrates significant improvements in both efficiency and generalization:

  • Model Compression: Student models achieved a ~60% reduction in parameters compared to backbones, facilitating faster inference times.
  • Generalization Performance: The student model consistently outperformed its larger teachers and standard baselines on out-of-distribution (OoD) tasks. As shown in the performance comparison, AMDKD-enhanced models showed a markedly lower optimality gap across various problem sizes.
  • State-of-the-Art Results: When integrated with Efficient Active Search (EAS), the model achieved new state-of-the-art performance for neural VRP solvers, occasionally surpassing the powerful LKH3 heuristic on benchmark instances.
Comparison of generalization performance across different models and problem sizes.

Conclusion

AMDKD provides a robust framework for training generalizable and efficient neural VRP solvers. By distilling knowledge from multiple specialists and employing an adaptive training strategy, the resulting models are better equipped for real-world deployment. Future research will focus on scaling these methods to larger problem instances and extending the framework to iterative improvement models.

Summary updated

BibTeX
@inproceedings{bi2022learning,
  author = {Jieyi Bi and Yining Ma and Jiahai Wang and Zhiguang Cao and Jinbiao Chen and Yuan Sun and Yeow Meng Chee},
  title = {{Learning Generalizable Models for Vehicle Routing Problems via Knowledge Distillation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure