MTL-KD: Multi-Task Learning Via Knowledge Distillation for Generalizable Neural Vehicle Routing Solver

Yuepeng Zheng, Fu Luo, Zhenkun Wang, Yaoxin Wu, Yu Zhou

Introduction

The Vehicle Routing Problem (VRP) is a fundamental optimization challenge in logistics, delivery, and scheduling. While traditional solvers rely on hand-crafted heuristics, recent advances in Neural Combinatorial Optimization (NCO) have enabled models to learn routing strategies automatically. However, existing NCO approaches face a significant trade-off: they are typically specialized for a single VRP variant and struggle to generalize to large-scale problems or unseen constraints.

This paper introduces MTL-KD (Multi-Task Learning via Knowledge Distillation), a framework designed to bridge the gap between multi-task flexibility and large-scale performance. By transferring expertise from multiple single-task "teacher" models into a unified "heavy decoder" student, the authors achieve state-of-the-art generalization across 16 VRP variants and scales of up to 1,000 nodes, all without requiring labeled training data.

The Architectural Dilemma: Light vs. Heavy Decoders

In the context of NCO, the architecture of the decoder significantly impacts performance:

  1. Light Decoders: These models (e.g., POMO) are computationally efficient and easy to train using Reinforcement Learning (RL) on small-scale maps (e.g., 100 nodes). However, their performance often degrades sharply when applied to larger maps.
  2. Heavy Decoders: These architectures re-evaluate the relationships between all unvisited nodes at every decoding step. They exhibit superior generalization to large-scale problems but are prohibitively expensive to train via RL. Furthermore, training them via Supervised Learning is difficult because massive, high-quality labeled datasets for complex VRP variants do not exist.

MTL-KD addresses this bottleneck by using Knowledge Distillation to train a heavy decoder student using the outputs of light decoder teachers, effectively bypassing the need for labeled data or direct RL training on the complex student architecture.

The MTL-KD Framework

The MTL-KD framework consists of two primary components: a label-free training pipeline and a novel inference strategy.

Knowledge Distillation for Label-Free Training

Instead of training the heavy decoder directly on the environment, the authors first train six separate "light decoder" models (using the POMO architecture) via RL. Each teacher is an expert in one of six specific VRP variants at a scale of 100 nodes.

The student model—a single heavy decoder—is then trained on mixed batches of these six tasks. For any given task, the corresponding expert teacher generates a probability distribution for the next routing step. The student learns by minimizing the Kullback–Leibler (KL) divergence between its own predictions and those of the teacher. This allows the student to absorb the underlying routing logic from the experts without the computational instability of RL.

Random Reordering Re-Construction (R3C)

To further improve performance during inference, the authors introduce Random Reordering Re-Construction (R3C). Traditional inference refinement often uses random reversing of route segments to explore new solutions. However, reversing a route can easily violate constraints like time windows or backhauls. R3C instead breaks the route into subtours, shuffles the order of those subtours, and then re-optimizes a sampled segment. This approach maintains feasibility while significantly increasing the diversity of the explored solution space.

Experimental Results

The authors evaluated MTL-KD against several multi-task baselines, including MT-POMO, MVMoE, and RouteFinder, using both synthetic and real-world datasets.

Scale and Zero-Shot Generalization

On the six tasks seen during training, MTL-KD significantly outperformed baselines, with the performance gap widening as the problem scale increased from 100 to 1,000 nodes. Remarkably, the student model demonstrated better large-scale generalization than the teachers it learned from, suggesting that the heavy decoder architecture successfully internalizes a more robust routing logic.

Furthermore, the model was tested on 10 "unseen" VRP variants—combinations of constraints it was never explicitly trained to solve. MTL-KD achieved superior zero-shot generalization across almost all scales, proving its versatility as a general-purpose solver.

Real-World Benchmarks

MTL-KD was also validated on standard real-world benchmarks:

  • CVRPLIB (Set-X): On this large-scale CVRP benchmark, MTL-KD achieved an average optimality gap of 6.65%, vastly outperforming MVMoE (19.6%) and POMO (29.6%).
  • Solomon Dataset: The model also showed strong performance on VRP with Time Windows (VRPTW), demonstrating its ability to handle complex temporal constraints.

Conclusion and Future Work

MTL-KD demonstrates that Knowledge Distillation is a powerful tool for training complex NCO architectures. By decoupling the architecture from the training paradigm, the authors created a model that is both multi-task capable and scale-resilient.

The primary limitation of the approach is the computational cost of the heavy decoder, which requires more memory and time during inference than its lighter counterparts. Future research will likely focus on optimizing these architectures to maintain high generalization performance while reducing the computational overhead, making these advanced neural solvers even more practical for real-time logistics applications.

Summary updated

BibTeX
@inproceedings{zheng2025mtl,
  author = {Yuepeng Zheng and Fu Luo and Zhenkun Wang and Yaoxin Wu and Yu Zhou},
  title = {{MTL-KD: Multi-Task Learning Via Knowledge Distillation for Generalizable Neural Vehicle Routing Solver}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rlH3e7VlY8},
}
Figure