USPR: Learning a Unified Solver for Profiled Routing

Chuanbo Hua, Federico Berto, Zhikai Zhao, Jiwoo Son, Changhyun Kwon, Jinkyoo Park

TL;DR

USPR (Unified Solver for Profiled Routing) is a novel reinforcement learning framework designed to solve the Profiled Vehicle Routing Problem (PVRP) using a single, unified model. By integrating flexible profile embeddings, bidirectional vehicle-client attention, and explicit score reshaping, USPR handles arbitrary routing constraints and preferences without requiring retraining, slashing training time from days to hours while outperforming state-of-the-art neural baselines.

What Problem Does This Paper Address?

The classical Vehicle Routing Problem (VRP) optimizes delivery routes for a fleet of vehicles serving a set of clients. However, real-world logistics are rarely uniform. Vehicles have distinct characteristics, and clients have specific demands—leading to the Profiled Vehicle Routing Problem (PVRP).

As shown in Figure 1, PVRP accounts for real-world complexities like weight-restricted zones, driver familiarity with certain neighborhoods, or terrain difficulties (e.g., steep slopes).

Figure 1: An illustrative example of the PVRP. The profiles are derived from real-world settings. Intuitively, zone con- straints represent impassable regions; preference values in- dicate the “desirability” of an area for agents to visit.

While deep reinforcement learning (RL) has emerged as a powerful tool for solving VRPs, existing neural solvers suffer from a major flaw: they are rigid. They require retraining a completely separate model from scratch whenever profile distributions or preference weights change. Furthermore, they struggle to scale up to larger, unseen problem sizes (poor out-of-distribution generalization).

Methods

The authors introduce USPR, an encoder-decoder architecture trained via the REINFORCE algorithm. It introduces three core innovations to achieve a unified, highly adaptable solver:

  1. Profile Embeddings (PE): Instead of training separate models for different objective trade-offs, PE maps client features, vehicle features, raw profile matrices (including hard $\pm\infty$ constraints), and the objective trade-off weight ($\alpha$) into a single, shared latent space. This allows one model to dynamically adapt to any combination of soft preferences and hard constraints.
  2. Multi-Head Profiled Attention (MHPA): Standard attention mechanisms treat all nodes uniformly. MHPA splits information exchange into four distinct, bidirectional streams: Client-Client, Vehicle-Vehicle, Vehicle-Client, and Client-Vehicle. This captures the complex interplay of how vehicles "view" clients and vice versa.
  3. Profile-aware Score Reshaping (PSR): To ensure the model doesn't fail when encountering larger problem sizes, PSR injects explicit geometric distance and profile scores directly into the decoder's logit computation. This acts as a built-in heuristic penalty, naturally discouraging the model from picking nodes that are too far away or have low preference scores.
Figure 2: An overview of USPR. Our framework follows an encoder-decoder architecture and introduces three key components to handle diverse problem profiles within a single model. (i) PE firstly encode arbitrary instance inputs, including client-vehicle profiles and profile weights, into a unified latent representation. (ii) MHPA then captures rich, bidirectional interactions between all entities to produce powerful, context-aware embeddings. (iii) PSR adaptively integrates profile and distance distribution and scale information to adjust the policy output logits, ensuring the robust generalization ability.

Datasets

The model was evaluated using two primary data sources:

  • Synthetic PVRP Instances: Generated following standard VRP benchmarks (Kool et al., 2018), augmented with profile scores drawn from a uniform distribution and randomly assigned hard constraints ($\pm\infty$).
  • PVRPLib: A new benchmark introduced by the authors. It adapts the well-known, real-world location distributions, demands, and vehicle counts from CVRPLib, overlaying them with generated profile constraints to test real-world applicability.

Key Insights and Ideas

  • Heuristic Injection Anchors Neural Solvers: Purely data-driven neural networks often struggle to generalize to larger scales. By explicitly subtracting a distance/preference log-penalty in the decoder (via PSR), the authors anchor the model's decisions in mathematical reality, drastically boosting zero-shot generalization.
  • Bidirectional Context is Crucial: Modeling vehicle-to-client and client-to-vehicle relationships separately via MHPA prevents the representation degradation common in simpler, unidirectional aggregation methods.
  • One Model to Rule Them All: Training the network by randomly sampling the preference weight ($\alpha$) during the RL training loop allows a single network to master the entire trade-off spectrum seamlessly.

Key Results

USPR achieves state-of-the-art results among learning-based methods while being vastly more efficient than its closest competitor, CAMP:

  • Massive Efficiency Gains: As shown in Table 2, while CAMP requires training 10 separate models (taking 4.6 days and 17.6M parameters), USPR uses a single model with just 1.5M parameters and trains in 11 hours—a massive reduction in computational overhead.
Comparison of model parameters and training times between CAMP and USPR.
  • Superior Generalization: On large-scale out-of-distribution instances ($N=1000$ nodes), USPR consistently achieves the lowest solution costs and slashes the performance gap to classical exact/heuristic solvers (like HGS-PyVRP) compared to other neural methods.
  • Dynamic Trade-offs: Figure 3 demonstrates how adjusting $\alpha$ within the same model smoothly transitions the routing focus from minimizing travel duration ($\alpha=0$) to maximizing profile preferences ($\alpha=1$).
Figure 3: USPR’s PVRP solutions to the same instance with different α processed through the profile embeddings. A higher α favors adherence to profile values, while α = 0 converts the problem to a classical VRP.

Limitations and Future Work

The primary limitation acknowledged by the authors is memory usage. Because USPR embeds vehicle-client profiles in a matrix format, the memory footprint scales quadratically with the number of clients and vehicles. If the problem scale increases to an extremely large size ($\ge 10,000$ nodes), the matrix representation will suffer from memory explosion.

Future research directions include exploring sparser profile representations and leveraging automatic algorithm design to further optimize the attention reshaping mechanisms.

Summary updated

BibTeX
@inproceedings{hua2026uspr,
  author = {Chuanbo Hua and Federico Berto and Zhikai Zhao and Jiwoo Son and Changhyun Kwon and Jinkyoo Park},
  title = {{USPR: Learning a Unified Solver for Profiled Routing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i43.41025},
}
Figure