SEAFormer: A Spatial Proximity and Edge-Aware Transformer for Real-World Vehicle Routing Problems
About
Real-world Vehicle Routing Problems (RWVRPs) require solving complex, sequence-dependent challenges at scale with constraints such as delivery time window, replenishment or recharging stops, asymmetric travel cost, etc. While recent neural methods achieve strong results on large-scale classical VRP benchmarks, they struggle to address RWVRPs because their strategies overlook sequence dependencies and underutilize edge-level information, which are precisely the characteristics that define the complexity of RWVRPs. We present SEAFormer, a novel transformer that incorporates both node-level and edge-level information in decision-making through two key innovations. First, our Clustered Proximity Attention (CPA) exploits locality-aware clustering to reduce the complexity of attention from $O(n^2)$ to $O(n)$ while preserving global perspective, allowing SEAFormer to efficiently train on large instances. Second, our lightweight edge-aware module captures pairwise features through residual fusion, enabling effective incorporation of edge-based information and faster convergence. Extensive experiments across four RWVRP variants with various scales demonstrate that SEAFormer achieves superior results over state-of-the-art methods. Notably, SEAFormer is the first neural method to solve 1,000+ node RWVRPs effectively, while also achieving superior performance on classic VRPs, making it a versatile solution for both research benchmarks and real-world applications.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Vehicle Routing Problem | VRP 100 Customers (100 instances) | Objective Value15.72 | 28 | |
| Vehicle Routing Problem | VRP 500 Customers (100 instances) | Objective Value37.94 | 16 | |
| Capacitated Vehicle Routing Problem | CVRPLib Set-XXL (1000, 10000) | Optimality Gap (%)13.3 | 13 | |
| Asymmetric Vehicle Routing Problem | AVRP 500 customers | Objective Value38.97 | 9 | |
| Asymmetric Vehicle Routing Problem | AVRP 1K customers | Objective Value44.07 | 9 | |
| Vehicle Routing Problem with Time Windows | VRPTW 500 customers | Objective Value85 | 8 | |
| Vehicle Routing Problem with Time Windows | VRPTW 1K customers | Objective Value145.2 | 8 | |
| Vehicle Routing Problem with Time Windows | VRPTW 100 customers | Objective Value26.5 | 8 | |
| Asymmetric Vehicle Routing Problem | AVRP 100 customers | Obj. Value19.04 | 7 | |
| Capacitated Vehicle Routing Problem | CVRP Rotation distribution | Objective Value34.51 | 7 |