Learning to Solve Compositional Geometry Routing Problems
About
We study the Compositional Geometry Routing Problem (CGRP), a unified superclass of traditional routing problems that covers point-only, line-only, area-only, and arbitrary hybrid task geometries, providing a broad abstraction for real-world routing scenarios. Beyond standard point-based routing, CGRP with non-point tasks can be inherently asymmetric, tightly coupled travel routes with the intrinsic path, and enlarges the action space with numerous feasible yet often irrelevant options, thereby posing significant challenges for both representation learning and decision-making. To address these challenges, we propose DiCon, a differential attention-assisted solver with contrastive learning, as a plug-and-play framework that tackles the problem from two complementary angles. First, we introduce a differential attention mechanism that actively suppresses the probability mass on less competitive candidate actions. Second, we design a double-level contrastive learning objective to promote robust global instance representations and regularize geometry-aware task representations. Extensive experiments demonstrate that DiCon achieves strong performance, broad versatility, and superior generalization across diverse CGRP instances with different compositions.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Traveling Salesman Problem | TSP N=20 | Optimality Gap0.00e+0 | 45 | |
| Capacitated General Routing Problem | CGRP size 100 generalization (test) | Objective Value8.363 | 12 | |
| Capacitated General Routing Problem | CGRP size 200 generalization (test) | Objective Value13.755 | 12 | |
| Capacitated General Routing Problem | CGRP size 300 generalization (test) | Objective Value15.595 | 12 | |
| Traveling Salesperson Problem | Point100 TSP | Objective Value7.822 | 12 | |
| Capacitated General Routing Problem | CGRP size 20 in-distribution (test) | Objective Value6.065 | 12 | |
| Compositional Geometry Routing | Area20 | Obj Score9.459 | 12 | |
| Compositional Geometry Routing | Area100 | Obj Score24.483 | 12 | |
| Compositional Geometry Routing | Line20 | Object Score4.343 | 12 | |
| Compositional Geometry Routing | Area20+Line30 | Obj Score12.47 | 12 |