Neural Combinatorial Optimization for Real-World Routing

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

Vehicle Routing Problems (VRPs) are fundamental to global logistics but remain computationally intensive NP-hard challenges. While Neural Combinatorial Optimization (NCO) has emerged as a promising learning-based alternative to traditional solvers, most existing research relies on "toy" settings—simplified Euclidean planes where distances are symmetric and paths are straight lines. In reality, urban environments are defined by one-way streets, traffic patterns, and geographic barriers that create significant asymmetries. This paper introduces RRNCO (Real Routing Neural Combinatorial Optimization), a framework designed to bridge the "sim-to-real" gap by leveraging massive real-world datasets and a novel architecture tailored for complex road topologies.

The Sim-to-Real Challenge

Standard NCO models often fail when deployed in actual cities because they assume $A \to B$ is identical to $B \to A$. In a city like Paris or Fez, this assumption is structurally flawed. A model trained on uniform, symmetric synthetic data cannot effectively process the rich, non-Euclidean edge features of a real road network. RRNCO addresses this by moving beyond coordinates to incorporate actual travel durations and distances derived from real-world maps.

The RRNCO Framework

The RRNCO framework rests on two pillars: a high-throughput data generation pipeline and a specialized model architecture.

1. Data Generation Pipeline

To provide the diversity needed for robust training, the authors developed a pipeline using OpenStreetMap (OSM) and the Open Source Routing Machine (OSRM). This system can generate $1000 \times 1000$ distance and duration matrices for 100 different global cities in seconds. By hosting a local OSRM server, the team achieved a 4x speedup over commercial APIs, making deep reinforcement learning on real-world maps feasible.

The RRNCO data generation pipeline extracts real-world road network data and subsamples VRP instances for training.

2. Model Architecture

The RRNCO architecture is designed to handle the inherent asymmetries of real-world routing through several key innovations:

  • Contextual Gating: The model uses a gating mechanism to fuse spatial coordinate features with actual distance matrix data, allowing it to dynamically weigh spatial layout against actual travel costs.
  • Adaptation Attention Free Module (AAFM) with Neural Adaptive Bias (NAB): To avoid the high computational cost of standard transformers, RRNCO uses an attention-free variant enhanced by NAB. Instead of a fixed mathematical heuristic, a small neural network learns the relationships between nodes based on distance and angular orientation.
  • Dual Embeddings: To manage asymmetry (where $A \to B \neq B \to A$), the model generates distinct "row" and "column" embeddings for every node.
The RRNCO architecture features an encoder with dual embeddings and Neural Adaptive Bias (NAB) to process asymmetric routing data.

Key Insights and Results

The model was trained using Reinforcement Learning (REINFORCE with a POMO baseline) on the RRNCO Dataset, which encompasses 100 cities across six continents. This dataset captures diverse urban morphologies, from the grid-based streets of Manhattan to the organic, winding paths of Fez.

  • Performance: RRNCO achieved the lowest error gap relative to best-known solutions among all NCO methods. In Capacitated VRP (ACVRP) tasks, RRNCO's gap was approximately 3.45%, significantly outperforming the next best neural method, MatNet (~7.25%).
  • The Importance of Angles: A critical finding was that incorporating the angular relationship between nodes into the neural bias (NAB) significantly improved performance, helping the model capture the natural "flow" of city layouts.
  • Efficiency and Generalization: While traditional solvers like LKH3 can take over an hour for complex instances, RRNCO provides high-quality solutions in 22 to 35 seconds. Furthermore, the model demonstrated strong "Out-of-Distribution" performance, successfully solving routing problems in cities it had never encountered during training.

Conclusion and Future Work

RRNCO demonstrates that the "sim-to-real" gap in routing is structural, requiring models that can ingest real-world cost matrices rather than just coordinates. While the current iteration uses static travel times, future work aims to integrate real-time traffic forecasting and scale the architecture to handle thousands of stops, moving closer to a truly universal real-world routing solver.

Summary updated

BibTeX
@inproceedings{son2026neural,
  author = {Jiwoo Son and Zhikai Zhao and Federico Berto and Chuanbo Hua and Changhyun Kwon and Jinkyoo Park},
  title = {{Neural Combinatorial Optimization for Real-World Routing}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=sKvo9ZZfpe},
}
Figure