Neural solvers for very large routing problems usually split the work in two. A "divider" network sketches a rough tour of all the cities, the tour is cut into fixed-length pieces, and a smaller "conqueror" network re-solves each piece on its own. We think this design has a specific weakness when cities cluster, as they do in real delivery networks. A fixed-length cut is blind to density, so it can slice a dense cluster in half or produce a piece that straddles an empty gap between clusters. The conqueror then sees its piece in isolation, with coordinates rescaled, and cannot tell a necessary bridge between clusters from a wasteful detour. Our claim is that under clustered spatial shift, most of the extra optimality gap in divide-and-conquer solvers comes from the seams between pieces, not from the conqueror's routing inside them. If that is right, the fix should target the seams directly: place cuts where the density structure says they belong, and give each conqueror a small summary of what lies just outside its window.
This matters because the fix introduces a new coupling. Once a shared context encoder feeds both the divider and the conquerors, their training signals meet in the same weights, and they may pull in opposite directions. The literature offers two answers. One is to freeze the upstream module, which risks locking in its errors. The other is to train everything jointly, which risks destructive interference between the two objectives. We treat this as something to measure, not assume, and resolve it only as far as the measurements demand.
Core Claim and What Is New
The closest existing system is UDC. It trains an anisotropic graph neural network (AGNN) divider jointly with local conquerors via REINFORCE, cuts the rough tour into fixed-length segments, and repairs seams with a "Divide-Conquer-Reunion" pass. That pass shifts the cut points by half a segment and re-solves, so first-pass seams land in the middle of the new segments. UDC reports a 4.05% gap on 100,000-node TSP and roughly 2.5% relative to LKH3 on 2,000-node TSP, under uniform sampling and on TSPLib/CVRPLib. The research file contains no UDC result on clustered or Gaussian-mixture instances. UDC's conquerors also see nothing outside their window.
Our proposal differs in three ways. First, it decomposes UDC's out-of-distribution gap into seam and interior components using oracle substitutions. Second, it replaces fixed-length cuts and half-shift repair with density-aware seam placement plus a learned seam-context input to each conqueror. Third, it measures whether the shared context encoder suffers gradient conflict and, only if it does, compares ways of handling it.
The spatial-shift motivation comes from Hardness-Adaptive Curriculum. That work shows neural TSP solvers trained on uniform points exploit homogeneous nearest-neighbor distances as a shortcut, and that their gap grows by over 80x on Gaussian mixtures. Their work fixes the training distribution of a single-stage solver, whereas we study how shift propagates through a two-stage pipeline. MVGCL pre-trains separate local-subgraph and global-layout views for POMO and reaches a 1.58% TSPLib gap. It never partitions instances, so its local and global views never have to agree across a cut, which is exactly our setting.
Research Program
The first stage is diagnostic. On clustered TSP and CVRP instances from 1,000 to 10,000 nodes, we run UDC as released and decompose its gap into three parts. We define edges within $w$ positions of a seam as "seam edges" and all others as interior edges.
The first substitution replaces each conqueror's sub-tour with an LKH3 solution of the same segment with fixed endpoints. The gap that remains measures partition error. The second substitution keeps the conqueror but orders segments by an LKH3 global tour. The gap that remains measures conqueror error. Comparing the two, stratified by cluster count and cluster spread, tells us which component grows with shift.
The second stage builds two seam interventions and tests each alone before combining them.
Density-aware placement is parameter-free. We cut the rough tour at its longest edges and at points where the divider's heatmap confidence is low, subject to minimum and maximum segment lengths. This choice is informed by Beyond the Heatmap, which found that a training-free $k$-nearest-neighbor prior rivals learned heatmaps under shift.
The seam-context token is learned. A light encoder summarizes the nodes just outside each segment's endpoints: their relative positions, local density, and divider edge scores. This summary is appended to the conqueror's input, borrowing the broadcast-global-into-local pattern of Broadcasting Convolutional Network. It also uses relative rather than absolute coordinates, following the "Vector Context" in Graph Pointer Networks, because relative coordinates are what let that model generalize from TSP-50 to TSP-1000.
The third stage asks whether sharing the context encoder between divider and conqueror causes conflict. During joint training we log the cosine similarity between the divider's REINFORCE gradient and the conquerors' gradient on the shared encoder weights. Persistent negative cosine would show the two objectives pulling apart.
If conflict appears, we compare four ways of handling it. The first is plain summation. The second freezes the encoder after divider training, following the staged recipe of Chaitanya et al., who found joint global and local contrastive losses interfered in a shared encoder. The third is filter-group gradient masking adapted from GradSplit. The fourth is CAGrad, which picks the update that maximizes the worst task's improvement while staying within radius $c\|g_0\|$ of the average gradient $g_0$.
This stage speaks to a tension in the file: freezing prevents interference but reintroduces cascading error, while joint training does the reverse. If cosine stays near zero or positive, we report that plainly. The shared encoder then needs no special optimizer, and the proposal's value lies in the first two stages.
Baselines
The naive reference is UDC exactly as released: trained on uniform instances, evaluated on clustered ones, with default segment length and Reunion pass. It shows how much clustered shift costs a divide-and-conquer pipeline. The file reports no clustered number for it, so we produce that number ourselves.
The strongest competitor is UDC retrained on a mixture of clustered distributions. We generate these with the cluster-count and scale parameters used in On the Generalization of NCO Heuristics, and give it the same number of training instances, GPU hours, and hyperparameter search budget as our method. This is the most serious threat because data diversity alone could teach the divider to produce cluster-respecting tours. Our method must beat it on held-out cluster configurations, meaning cluster counts and spreads absent from training, not merely match it in-distribution.
We add two reference points from the file. PromptVRP is the strongest shift-robust single-stage solver, with a reported 2.5% average CVRPLib gap. The GT-Prior heatmap with MCTS search tuned by SMAC3 Bayesian optimization, run from rethink_mcts_tsp, reports 2.14% on TSP-10000 against 2.37% for DIFUSCO. On TSP we must beat this 2.14% with comparable wall-clock time, or at least come within it at lower runtime, for the neural pipeline to be justified. LKH3 run to a matched time budget anchors all gaps.
Four ablations isolate the key ingredients. The first uses density-aware placement alone. The second uses the seam token alone. The third gives the seam token raw neighboring coordinates instead of learned features. The fourth keeps both interventions but removes the Reunion pass, to test whether seam placement makes the repair pass redundant. The claim holds if the combined method closes at least half of the seam component identified in stage one, relative to the clustered-trained UDC, on held-out cluster configurations.
Why not just…?
Why not just train UDC on clustered data? This is the most likely way the proposal fails, and we treat it as the main comparison. Fixed-length segmentation is set at inference time and does not change with training data, so even a well-trained divider has its tour cut at arbitrary positions. If the oracle decomposition shows that clustered-trained UDC has a small seam component, the structural argument is wrong. In that case we would report that data diversity suffices.
Why not just cut at the longest edges and skip learning? This heuristic is our own density-aware placement ablation, so if it closes the gap alone we will say so. There are reasons to expect it may not suffice. Long edges are a weak signal inside dense but internally structured clusters. For CVRP, capacity rather than geometry often decides where a route should break, and Beyond the Heatmap validated its parameter-free prior only on Euclidean TSP. The comparison between the placement-only and token-only ablations settles this.
Why not just drop the neural divider and use GT-Prior with tuned MCTS? On Euclidean TSP this may well be competitive, and we include it for exactly that reason. The case for a learned pipeline rests on CVRP, where UDC reportedly beats LKH3 at 2,000 nodes and where no parameter-free prior exists in the file. If GT-Prior with MCTS wins on clustered TSP at matched time, we would narrow the claim to capacitated problems.
Why not just freeze the context encoder after divider training? Freezing avoids interference by construction, and in medical segmentation it worked for Chaitanya et al.. But UDC reports that separately trained dividers and conquerors become mismatched, with the divider producing sub-problems the conqueror handles poorly. The frozen variant is one of the four stage-three arms. It either matches joint training, in which case gradient methods are unnecessary, or it loses accuracy on seam edges specifically.
Decisive Checks
The oracle decomposition is the first go or no-go point. If seam edges account for less than a third of clustered UDC's excess gap, the seam hypothesis is wrong. We would then redirect the work toward conqueror robustness.
The second check is held-out generalization on TSPLib and CVRPLib instances above 1,000 nodes, compared against clustered-trained UDC under equal budgets. The third is the gradient-cosine trace. CAGrad is adopted only if the cosine is persistently negative and CAGrad improves seam-edge cost over summation. For reference, CAGrad's reported results are a 0.20% per-task drop against 5.59% for MTAN on NYU-v2, and a 0.52 against 0.36 success rate on Meta-World MT50. Neither result was on combinatorial problems, so they motivate the test but do not predict its outcome.
References
- UDC: A Unified Neural Divide-and-Conquer Framework for Large-Scale Combinatorial Optimization Problems
- Learning to Solve Travelling Salesman Problem with Hardness-Adaptive Curriculum
- Multi-view graph contrastive learning for solving vehicle routing problems
- Beyond the Heatmap: A Rigorous Evaluation of Component Impact in MCTS-Based TSP Solvers
- Broadcasting Convolutional Network for Visual Relational Reasoning
- Combinatorial Optimization by Graph Pointer Networks and Hierarchical Reinforcement Learning
- Contrastive learning of global and local features for medical image segmentation with limited annotations
- Split to Learn: Gradient Split for Multi-Task Human Image Analysis
- Conflict-Averse Gradient Descent for Multi-task learning
- On the Generalization of Neural Combinatorial Optimization Heuristics
- Prompt Learning for Generalized Vehicle Routing