Abstract
The Profiled Vehicle Routing Problem (PVRP) extends the classical VRP by incorporating vehicle–client-specific preferences and constraints, reflecting real‑world requirements such as zone restrictions and service‑level preferences. While recent reinforcement‑learning solvers have shown promising performance, they require retraining for each new profile distribution, suffer from poor representation ability, and struggle to generalize to out‑of‑distribution instances. In this paper, we address these limitations by introducing Unified Solver for Profiled Routing (USPR), a novel framework that natively handles arbitrary profile types. USPR introduces three key innovations: (i) Profile Embeddings (PE) to encode any combination of profile types; (ii) Multi‑Head Profiled Attention (MHPA), an attention mechanism that models rich interactions between vehicles and clients; (iii) Profile‑aware Score Reshaping (PSR), which dynamically adjusts decoder logits using profile scores to improve generalization. Empirical results on diverse PVRP benchmarks demonstrate that USPR achieves state‑of‑the‑art results among learning‑based methods while offering significant gains in flexibility and computational efficiency.
Introduction
In logistics, the classical Vehicle Routing Problem (VRP) often fails to capture the complexity of real-world operations. Drivers may have specific neighborhood familiarity, certain trucks may face weight-restricted zones, and clients often have service-level agreements with preferred carriers. These nuances define the Profiled Vehicle Routing Problem (PVRP).
Existing Reinforcement Learning (RL) solvers for PVRP are typically brittle, requiring retraining whenever preference distributions change. They also struggle to scale to large-scale, out-of-distribution (OOD) instances. USPR addresses these challenges with a single, transformer-based policy capable of handling arbitrary vehicle-client profiles without retraining.
The USPR Framework
USPR utilizes an encoder-decoder architecture trained via the REINFORCE algorithm. Its effectiveness stems from three primary architectural innovations designed to unify and generalize profiled routing.
1. Profile Embeddings (PE)
Rather than treating profiles as static constraints, USPR projects client features, vehicle features, and profile scores (including hard constraints like $\pm\infty$) into a shared latent space. Crucially, it embeds the profile weight ($\alpha$), allowing the model to dynamically adjust its strategy based on the user's priority between travel distance and preference satisfaction.
2. Multi-Head Profiled Attention (MHPA)
Standard attention mechanisms are often insufficient for the two-way relationships in PVRP. MHPA introduces four distinct types of information exchange: Client-Client (spatial/demand), Vehicle-Vehicle (capacity/speed), Vehicle-Client (vehicles seeking preferred nodes), and Client-Vehicle (nodes seeking suitable carriers). This bidirectional context ensures the model captures how well a vehicle and a destination "fit" together.
3. Profile-aware Score Reshaping (PSR)
To improve generalization, USPR includes a learned heuristic layer in the decoder. PSR explicitly adjusts output logits by incorporating distance and profile scores ($Z \approx \text{Attention} - \log(\text{dist} + \text{pref})$). This ensures the model maintains "common sense" penalties for distant or low-preference nodes, even in scenarios far removed from its training data.
Experimental Evaluation
The researchers evaluated USPR against synthetic benchmarks, a new real-world-inspired benchmark called PVRPLib, and large-scale OOD instances with up to 1,000 nodes.
- Efficiency: USPR is highly efficient, using only 1.5M parameters (compared to 17.6M for previous SOTA models like CAMP) and training in just 11 hours—a 10x improvement in both size and speed.
- Performance: On standard benchmarks, USPR achieved a gap of only 4.02% relative to the high-performance HGS-PyVRP solver, consistently outperforming other neural baselines.
- Generalization: In 1,000-node stress tests, USPR maintained a significantly lower gap (14.15%) than the previous best neural solver (23.44%), demonstrating superior scalability.
Conclusion
USPR represents a significant step toward practical neural solvers for logistics. By unifying diverse constraints into a single, efficient model, it eliminates the need for costly retraining and provides a robust framework for real-world routing. Future work will focus on optimizing the memory footprint for even larger instances and exploring automated heuristic design for the score reshaping layer.
Paper Citation: Hua, C., et al. (2026). USPR: Learning a Unified Solver for Profiled Routing. The Fortieth AAAI Conference on Artificial Intelligence (AAAI-26).
Summary updated