MVMoE: Multi-Task Vehicle Routing Solver with Mixture-of-Experts

Jianan Zhou, Zhiguang Cao, Yaoxin Wu, Wen Song, Yining Ma, Jie Zhang, Xu Chi

Abstract

Traditional neural solvers for the Vehicle Routing Problem (VRP) often struggle with generalization, typically requiring separate models for each problem variant. We present MVMoE, a unified multi-task neural solver that leverages a Mixture-of-Experts (MoE) architecture to address diverse VRP constraints within a single framework. By introducing a novel hierarchical gating mechanism, MVMoE achieves superior zero-shot generalization on unseen problem variants while significantly reducing computational overhead compared to standard MoE implementations. Our results demonstrate that MVMoE outperforms existing multi-task models across 16 VRP variants and exhibits robust performance on real-world benchmarks.

Introduction

The Vehicle Routing Problem (VRP) is a fundamental challenge in logistics and transportation, involving the optimization of delivery routes under various constraints. While classical heuristic solvers are effective, they often require extensive manual tuning for specific constraints, such as capacity limits, time windows, or open routes.

Recent advances in deep learning have led to the development of neural solvers that learn routing policies automatically. However, these models are frequently "one-trick ponies," optimized for a single VRP variant and failing to generalize when new constraints are introduced. Training specialized models for every possible combination of constraints is computationally expensive and impractical for dynamic real-world environments. MVMoE addresses this by providing a unified architecture capable of handling multiple VRP variants simultaneously and generalizing to entirely new constraint sets without further training.

Methodology

Mixture-of-Experts (MoE) Architecture

MVMoE replaces standard feed-forward layers with Mixture-of-Experts layers. Instead of a single dense layer, an MoE layer consists of multiple sub-networks, or "experts." A gating network dynamically determines which experts are best suited to process a specific input. This allows the model to significantly increase its parameter capacity—enabling it to learn specialized logic for different routing constraints—without a linear increase in the computational cost per inference step.

Hierarchical Gating Mechanism

A primary challenge in applying MoE to VRP solvers is the iterative nature of the decoder, which selects the next node in a route. Applying complex MoE logic at every decoding step is computationally taxing. To mitigate this, MVMoE introduces a two-stage hierarchical gating mechanism:

  1. Problem-level Gating (Stage 1): The model first evaluates the complexity of the problem batch. It decides whether to route the input through a standard dense layer or the more complex sparse MoE layer.
  2. Node-level Gating (Stage 2): If the MoE layer is selected, a second gate routes individual nodes to specific experts based on their local features.

This hierarchy allows the model to bypass expensive computations for simpler problem states, optimizing the balance between performance and efficiency.

Training Framework

The model is built upon the Policy Optimization with Multiple Optima (POMO) framework, a state-of-the-art reinforcement learning approach for routing. By integrating MoE into the POMO backbone, MVMoE learns to navigate the solution space across multiple tasks effectively.

Experimental Evaluation

Datasets and Constraints

The researchers evaluated MVMoE on 16 distinct VRP variants derived from five fundamental constraints:

  • Capacity (C): Vehicle load limitations.
  • Open Route (O): Vehicles are not required to return to the starting depot.
  • Backhaul (B): Integration of both pickups and deliveries.
  • Duration Limit (L): Maximum allowable route length.
  • Time Window (TW): Specific arrival time requirements for customers.

To test generalization, the model was trained on only 6 variants and evaluated on 10 unseen "zero-shot" variants. Additionally, the model was tested against real-world benchmarks from CVRPLIB (Set-X and Set-Solomon).

Key Insights and Results

Zero-Shot Generalization

MVMoE demonstrated remarkable adaptability, significantly outperforming standard multi-task models like POMO-MTL on all 10 unseen VRP variants. This suggests that the MoE structure allows the model to learn modular "skills" that can be recombined to solve novel constraint combinations.

Computational Efficiency

The hierarchical gating mechanism proved highly effective, reducing training overhead by approximately 23% compared to a standard MoE approach. This efficiency gain was achieved with negligible impact on the quality of the solutions generated.

Robustness and Scaling

MVMoE showed improved robustness to distribution shifts, particularly when faced with problems larger or different than those encountered during training. On the CVRPLIB benchmarks, the "light" version of the model (MVMoE/4E-L) exhibited better generalization on large-scale instances than denser models, indicating that sparse architectures may be inherently more adaptable to varying problem scales.

Limitations and Future Directions

Despite its successes, MVMoE faces challenges when scaling to very large instances (exceeding 500 nodes), where performance begins to decline. Furthermore, while MoE reduces active computation (FLOPs), the model's memory footprint remains high because all experts must reside in GPU memory during inference.

Future research will focus on improving the interpretability of the gating mechanism to understand exactly how experts specialize. Additionally, the authors aim to explore techniques to further scale sparse MoEs to handle massive, thousand-node routing problems efficiently.

Conclusion

MVMoE represents a significant step toward a universal neural solver for logistics. By combining the capacity of Mixture-of-Experts with an efficient hierarchical gating strategy, the model provides a scalable, high-performance solution for multi-task vehicle routing, paving the way for more flexible and automated logistics systems.

Summary updated

BibTeX
@inproceedings{zhou2024mvmoe,
  author = {Jianan Zhou and Zhiguang Cao and Yaoxin Wu and Wen Song and Yining Ma and Jie Zhang and Xu Chi},
  title = {{MVMoE: Multi-Task Vehicle Routing Solver with Mixture-of-Experts}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=lsQnneYa8p},
}
Figure