ARC: Leveraging Compositional Representations for Cross-Problem Learning on VRPs

Han-Seul Jeong, Youngjoon Park, Hyungseok Song, Woohyung Lim

TL;DR

ARC (Attribute Representation via Compositional Learning) is a cross-problem neural solver for Vehicle Routing Problems (VRPs) that disentangles an attribute’s core meaning from its problem context. By enforcing analogical consistency in the embedding space (treating constraint transformations like word-vector arithmetic), ARC learns reusable attribute semantics that yield state-of-the-art results across standard benchmarks, zero-shot generalization to unseen constraint combinations, and rapid few-shot adaptation to new constraints.

What Problem Does This Paper Address?

Real-world logistics rarely adheres to standard Capacitated VRP (CVRP). Instead, vehicles face diverse, overlapping constraints: delivery time windows (TW), open routes where vehicles don't return to the depot (O), vehicle duration limits (L), or backhaul pickups (B). Combining these features yields dozens of distinct VRP variants.

While recent Neural Combinatorial Optimization (NCO) efforts attempt to train a single cross-problem model rather than dozens of specialized solvers, existing approaches (such as MVMoE, RouteFinder, and CaDA) conflate invariant attribute definitions with contextual interactions between constraints. This creates entangled representations that struggle to share knowledge cleanly across tasks and fail when confronted with unfamiliar constraint combinations.

Methods

ARC addresses this by integrating a modular attribute representation into a standard Transformer-based encoder-decoder policy, optimized via reinforcement learning (REINFORCE with POMO):

  1. Representation Disentanglement: The node embedding $f_\theta(x)$ is decomposed into two additive parts: $$f_\theta(x) = h_\theta(x) + m_\theta(x)$$
  2. Intrinsic Attribute Embedding (IAE, $h_\theta(x)$): Encodes the invariant definition of constraints (e.g., a duration limit imposes the same physical restriction regardless of whether depot return is required).
  3. Contextual Interaction Embedding (CIE, $m_\theta(x)$): An attention-based module (MixerBlocks) conditioned on the IAE, attribute indicator vectors, and global attributes to capture cross-attribute interactions (e.g., open routes substantially relax duration limits).
  4. Analogical Compositional Learning: To teach the IAE invariant semantics, the authors apply the principle of analogies ($A : B :: C : D$) to routing constraints. For instance: $$\text{VRPL} : \text{CVRP} :: \text{OVRPL} : \text{OVRP}$$ In the latent space, adding an attribute $A$ should induce a parallel transformation: $$h_\theta(x + A) - h_\theta(x) \approx h_\theta(y + A) - h_\theta(y)$$

  5. Contrastive Loss ($\mathcal{L}_{\text{CompAttr}}$): By selectively masking attribute features from problem instances, the model extracts attribute transformation vectors $\alpha_A$. It then optimizes an InfoNCE objective, pulling transformations of the same attribute together while pushing different attributes apart.

Datasets

The authors trained and evaluated models on synthetic graphs and established benchmarks:

  • Synthetic Graph Instances ($N = 50, 100$): Generated following RouteFinder’s protocol (100,000 instances/epoch).
  • In-Distribution: All 16 combinations of 4 attributes (Backhaul, Open, Duration Limit, Time Window).
  • Zero-Shot Generalization: Trained on 7 base variants (CVRP, OVRP, VRPB, VRPL, VRPTW, OVRPTW, VRPBL) and tested on the 9 remaining unseen combinations.
  • Few-Shot Adaptation: Models pre-trained on in-distribution variants were fitted with Efficient Adapter Layers (EAL) and fine-tuned on 10,000 instances containing a new constraint: Mixed Backhaul (MB).
  • CVRPLib (Real-World Benchmark): 115 classic real-world benchmark instances ranging from 16 to 200 nodes (and extended evaluation on Set-X up to $N \ge 500$).

Key Insights and Ideas

  • Analogies Hold in NCO Embeddings: Borrowing from representation learning in NLP (e.g., $\vec{\text{king}} - \vec{\text{man}} + \vec{\text{woman}} \approx \vec{\text{queen}}$), vector arithmetic can model combinatorial constraints ($\vec{h}_{\text{CVRP}} + \vec{\alpha}_L \approx \vec{h}_{\text{VRPL}}$).
  • Disentangling Meaning from Side Effects: An attribute's rule is fixed, but its practical impact varies. Separating intrinsic rules (IAE) from cross-attribute dynamics (CIE) prevents attributes from "corrupting" each other during training.
  • Visual Separation in Embedding Space: t-SNE visualizations show that ARC maps distinct VRP variants into clearly separated, structured clusters, whereas prior dual-attention solvers (CaDA) produce blurry, overlapping representations.

Key Results

All gaps are reported relative to the state-of-the-art hybrid genetic search solver PyVRP (lower is better):

  • In-Distribution Superiority: ARC achieves average gaps of 1.828% ($N=50$) and 2.861% ($N=100$) across 16 variants, consistently outperforming RouteFinder (1.933% / 3.192%) and CaDA (1.927% / 3.025%).
  • Robust Zero-Shot Generalization: When evaluated on unseen variants, ARC leads with an average gap of 4.078% ($N=50$) and 6.422% ($N=100$), compared to 4.613% / 7.524% for MVMoE and 6.740% / 8.044% for CaDA. Improvements were dramatic on complex variants like OVRPBL (ARC: 6.090% vs. CaDA: 10.984%).
  • Rapid Few-Shot Adaptation: Adapting to the new MB constraint required only 10 epochs to achieve significant leads over baselines (e.g., 1.475% on OVRPMB vs. 4.453% for RouteFinder and 6.440% for CaDA).
  • Inference Efficiency: Because the contrastive loss operates solely during training, ARC adds zero test-time overhead relative to standard encoders (~1s for 1,000 $N=50$ instances; ~11s for $N=100$).
  • Real-World Generalization: On CVRPLib instances ($N \le 200$), ARC achieved the lowest average gap (4.26%) across baseline models (RF-TE: 5.06%, CaDA: 5.32%).

Limitations and Future Work

  • Extreme Scale Degradation: On very large CVRPLib instances ($N \ge 500$), ARC’s advantage diminished, yielding an average gap of 12.506% compared to RF-TE's 12.319%, indicating that raw graph scale remains an open challenge.
  • Capacity vs. Generalization Trade-Off: Increasing the number of ARC interaction layers beyond $N_A = 3$ improved in-distribution performance but degraded zero-shot generalization, showing that deeper cross-attention can overfit to seen constraint combinations.
  • Future Directions: Expanding compositional analogical representations to massive-scale instances and non-Euclidean routing settings.

Summary updated

BibTeX
@inproceedings{jeong2025arc,
  author = {Han-Seul Jeong and Youngjoon Park and Hyungseok Song and Woohyung Lim},
  title = {{ARC: Leveraging Compositional Representations for Cross-Problem Learning on VRPs}},
  booktitle = {DiffCoALG @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=OFY6wTzQZh},
}
Figure