COMPASS: Ordered Clustered Routing at 100K Scale

Ido Greenberg, Hugo Linsenmaier, Piotr Sielski, Shie Mannor, Alex Fender, Gal Chechik, Eli MeiromarXiv 2026

TL;DR

COMPASS is a new parallel, globally coordinated routing algorithm designed to solve the Ordered Clustered Traveling Salesman Problem (OCTSP) at a massive scale of up to 100K nodes. By framing the global cluster chain as a layered directed acyclic graph (DAG) and leveraging reinforcement learning-accelerated sub-solvers, COMPASS eliminates the "quality ceiling" of local heuristics and successfully handles complex, asymmetric real-world distance matrices.

What Problem Does This Paper Address?

Standard vehicle routing problems like the Traveling Salesman Problem (TSP) are notoriously NP-hard. However, real-world logistics often feature an inherent structure where locations are grouped into clusters that must be visited in a strict, predefined sequence—such as clearing specific delivery neighborhoods or prioritizing emergency triage sites. This is known as the Ordered Clustered TSP (OCTSP).

The core challenge of OCTSP is that intra-cluster routing and inter-cluster "bridges" (the edges connecting one cluster to the next) are deeply coupled. Optimizing each cluster independently leads to terrible bridge choices, while greedy bridge selection ruins intra-cluster paths. Furthermore, local "sliding window" heuristics fail because OCTSP contains global dependencies: changing the route in a later cluster can ripple backward and alter the optimal entry and exit points for the very first cluster.

Figure 2: An illustration of OCTSP and approaches to solve it. (a) A toy instance (top) and its optimal solution (bottom). Coupling between paths and bridges: (b) Committing to the shortest intra-cluster paths forces a long bridge; and (c) Committing to the shortest bridges forces long paths. Global coupling across clusters: (d) Changing cluster 3 affects the optimal path for cluster 1. Hence, to find the optimal solutions, a solver must consider all the clusters and their bridges simultaneously.

Existing large-scale solvers typically require 2D coordinate inputs and assume symmetric Euclidean distances, making them incapable of handling real-world routing problems defined by asymmetric road-network driving times.

Methods

The authors introduce COMPASS (Clustered Ordered Multi-endpoint Parallel Algorithm for the Scalable Salesman problem), which approaches the problem through a global, hierarchical decomposition:

  1. Global DAG Representation: COMPASS models the entire cluster chain as a layered Directed Acyclic Graph (DAG). Vertices represent candidate entry and exit nodes for each cluster. Red edges represent the optimized paths within a cluster, and blue edges represent the bridges between them.
  2. Candidate Endpoint Selection: To prevent a combinatorial explosion, COMPASS uses a mix of geometry-based, optimization-based (local triplets), and greedy heuristics to select a smart subset of $K$ candidate entry/exit pairs per cluster.
  3. Parallel Sub-Solvers: For the selected candidates, the fixed-endpoint sub-TSPs are solved independently and in parallel across GPUs using an extension of EARLI (a framework combining reinforcement learning with genetic algorithms via NVIDIA cuOpt).
  4. Dynamic Programming: A single forward dynamic programming pass over the DAG quickly finds the globally optimal sequence of endpoints.
COMPASS modeled as a layered directed acyclic graph (DAG)

To handle asymmetric road networks without coordinate data, the authors enhanced the RL sub-solver with an attention-augmented Graph Neural Network (GNN) capable of processing raw distance matrices directly.

Datasets

The paper evaluates COMPASS on two newly introduced large-scale benchmarks:

  • Synthetic Polyomino Benchmark: Divides a 2D plane into non-convex polyomino zones with uniformly sampled nodes and Euclidean distances, scaling across 10K and 100K node regimes.
  • Olist Benchmark (São Paulo): Based on real-world Brazilian e-commerce data, featuring 11K nodes and a maximal 28.5K node instance. The costs represent asymmetric road driving times computed via the Open Source Routing Machine (OSRM). To prevent data leakage, the RL agent was trained on a separate dataset from Rio de Janeiro.

Key Insights and Ideas

  • No Quality Ceiling: Traditional local heuristics plateau quickly; giving them more time or compute does not yield better results because their search space fundamentally excludes the global optimum. COMPASS translates increased compute (larger candidate pools $K$) directly into better solution costs, scaling naturally without a quality ceiling.
  • Complexity Reduction: By exploiting the cluster structure, COMPASS reduces the exponential time complexity of exact TSP solving from the total instance size ($N$) to the maximum cluster size ($n$). It can achieve exact solutions in $O(m \cdot n^4 \cdot 2^n)$ time.
  • Coordinate-Free Learning: Shifting from coordinate-based neural models to distance-matrix-based GNNs allows the model to remain invariant to coordinate shifts and generalize effectively across entirely different geographic regions (e.g., training on Rio and testing on São Paulo).

Key Results

  • SOTA Performance: COMPASS consistently achieved state-of-the-art results, outperforming strong baselines like LKH-3, NeuroLKH, and Hybrid Genetic Algorithms.
  • Unprecedented Scale: The algorithm successfully solved a massive 28.5K real-world asymmetric routing instance in roughly 20 minutes—marking a 9× scale increase over established asymmetric TSP benchmarks.
Figure 1: A sample OCTSP solution with 100K nodes, shown at 3 zoom levels. Clusters (in colors) must be visited in a prescribed order defined by the problem. Bridges (in black) connect the clusters in locations chosen by the solver. Each red box marks the region enlarged in the preceding panel.
  • Optimality Certification: When tested on a small-scale benchmark (Ahmed 2014), an exact configuration of COMPASS reproduced and certified the optimal solution for all 23 instances in just 3.3 seconds. This included certifying 9 instances that had never been solved to provable optimality before.

Limitations and Future Work

While the sub-TSPs are highly parallelizable across multiple GPUs, the candidate selection phase and the final dynamic programming pass still introduce minor sequential bottlenecks. Additionally, COMPASS relies on a strictly predefined, fixed cluster order. The authors note that extending this global DAG framework to handle relaxed cluster orderings (where clusters can be slightly reordered to save travel time) remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{greenberg2026compass,
  author = {Ido Greenberg and Hugo Linsenmaier and Piotr Sielski and Shie Mannor and Alex Fender and Gal Chechik and Eli Meirom},
  title = {{COMPASS: Ordered Clustered Routing at 100K Scale}},
  year = {2026},
  eprint = {2609.20352},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.20352},
}
Figure