LINC: Decoupling Local Consequence Scoring from Hidden Matching in Constructive Neural Routing

ShaoFeng Qin, Li WangNeurIPS 2026

TL;DR

Why force a neural network to hallucinate basic arithmetic when a simulator can hand it the exact numbers for free? LINC upgrades neural routing solvers by separating exact, step-by-step physical calculations (like travel time, waiting, and remaining capacity) from the neural network’s true job: learning global strategy. The result is a fast, lightweight architecture that dramatically outperforms existing neural baselines, especially when scaling up to massive, heavily constrained routing problems it was never trained on.

What Problem Does This Paper Address?

Imagine planning a complex delivery route—the Capacitated Vehicle Routing Problem with Time Windows (CVRPTW). Every time a driver picks a next stop, deterministic physics kick in: travel distance dictates arrival time, arriving early forces waiting time, customer demand eats into truck capacity, and tight time windows shrink future flexibility.

Standard "constructive" neural solvers build routes one stop at a time using an encoder-decoder setup. To stay fast, the encoder runs once per problem instance, compressing static node info (coordinates, demands, time windows) into cached embeddings. At each step, the decoder matches its current context against those frozen embeddings to pick the next stop.

Here is the catch: those cached embeddings don't explicitly contain the dynamic, one-step consequences of choosing a customer right now (e.g., "If I go to Node B, I'll have to wait 20 minutes"). Conventional models force latent attention weights to implicitly guess exact transition math on the fly. Just as large language models famously stumble over simple comparisons like "Is 9.8 larger than 9.11?" without a calculator tool, neural routers struggle to infer exact state-dependent arithmetic—a bottleneck that breaks down badly when test problems look different or grow larger than the training data.

Figure 1: Even very large language mod- els can fail at a one-step exact compari- son; such computations are usually dele- gated to an external program.

Methods

The authors propose LINC, a decoder-side architecture that decouples computing local consequences from learning how much they matter—all without re-running the expensive encoder at every step.

Figure 2: LINC decoder architecture: explicit local-consequence computation is separated from learned state-dependent scoring, with feasible-set summaries modulating the comparator and the retained global matching path.

At each decision step, LINC keeps the standard attention score (global matching against cached static keys) and adds two lightweight, dynamic pathways:

  1. Candidate-Level Consequence Comparator: For every feasible next stop, the environment explicitly calculates exact one-step transition features—such as normalized travel time, waiting time, time-window slack, or capacity ratios. Instead of passing these through a heavy network per candidate, LINC scores them using a single, state-conditioned shared linear weight vector ($v_t$).
  2. Feasible-Set Summary & Modulation: What matters early in a route differs from what matters when a truck is nearly full or running late. LINC computes quick summary statistics across all currently feasible stops (e.g., feasible customer ratio, mean wait, minimum slack). Feeding this summary and the decoder context into tiny MLPs produces FiLM-style modulation parameters that gate the base attention score and adaptively tune the linear comparator weights $v_t$ for the current step.

For training with reinforcement learning from scratch on CVRPTW, the authors also introduce a smooth "soft top-1" advantage baseline, alongside "score morphing" to smoothly fine-tune LINC from pre-trained baseline checkpoints on simpler tasks.

Datasets

Models are trained on synthetic Euclidean instances of size $n=100$ following standard literature setups across three tasks: CVRPTW, CVRP (capacity constraints only), and TSP (Traveling Salesman Problem).

Evaluation spans:

  • Synthetic Generalization: In-distribution ($n=100$), cross-scale ($n=150$), and zero-shot large-scale transfer ($n=400$ to $1,000$).
  • Standard External Benchmarks: Solomon-100 and Homberger-200/400/600/1000 (for CVRPTW), CVRPXML100 (for CVRP), and TSPLIB50–200 (for TSP). No new benchmark datasets are introduced, though a custom synthetic generator is used for CVRPTW training and testing.

Key Insights and Ideas

  • Don't Re-encode, Just Append: Updating node embeddings inside the encoder at every step would destroy computational efficiency. LINC mathematically acts like extending the cached static key with a tiny dynamic block recomputed by the environment, keeping encoder overhead unchanged.
  • Exact Equations Scale for Free: Neural embeddings warp when stretched from 100 nodes to 1,000 nodes. Deterministic transition equations (like wait = max(earliest - arrival, 0)) are exact at any scale. Giving the policy direct access to these numbers acts as an anchor under massive distribution shifts.
  • Structure Beats Brute-Force Capacity: In ablations, shoving consequence features into a naive multi-layer perceptron actually performed worse (by 2.31%) than LINC's factorized design of a shared linear comparator paired with global summary modulation.

Key Results

LINC consistently improves upon strong neural baselines (POMO and PolyNet) in both unguided rollouts and guided search (SGBS), with the biggest leaps appearing where constraints are tightest:

  • CVRPTW External Benchmarks: Compared to unguided PolyNet, LINC slashes the optimality gap from 13.8% to 7.3% on Solomon-100, and from 38.14% to 14.71% on Homberger-200. With SGBS guided search, Homberger-200 drops further to 7.82% (vs. PolyNet's 22.42%).
  • Zero-Shot Scale Transfer: Trained only on $n=100$ nodes and tested without retraining on $n=1,000$, LINC reduces mean tour distance relative to PolyNet by 2.44% on TSP, 47.07% on CVRP, and a massive 51.11% on Homberger CVRPTW.
  • Simpler Variants & Efficiency: On TSPLIB and CVRPXML100, unguided gaps drop from 3.27% to 2.03% and 3.87% to 3.20%, respectively. While computing explicit consequences roughly doubles per-rollout wall-clock time, halving LINC's rollout budget matches PolyNet's runtime while still preserving its benchmark victories. Furthermore, LINC converges with substantially fewer training instances than PolyNet.

Limitations and Future Work

  • Sequential Myopia Across Vehicles: Like POMO and PolyNet, LINC builds one vehicle route completely before starting the next. Once a truck returns to the depot, its stops are locked in, leaving no explicit mechanism to coordinate or swap customers across multiple vehicles.
  • Early Training Collapse: Because explicit consequence signals are so clean and immediate, they can overpower logits early in training, tempting the policy into a greedy, short-sighted trap ("always pick the closest stop") that hurts long-term exploration.
  • Future Directions: The authors suggest extending LINC beyond one-step physics to include cheap, short-horizon lookahead summaries, as well as exploring parallel multi-route construction.

Summary updated

Abstract

Constructive neural routing solvers usually score the next action by matching a decoder context against candidate embeddings computed once per instance from static node features such as coordinates, demands, and time windows; deterministic one-step consequences such as travel, waiting, slack, and capacity changes are not provided as inputs and must be inferred implicitly by the model. We propose LINC, a decoder-side candidate decision architecture that decouples computing these consequences from learning how much they matter. The environment computes the consequences explicitly at each step; candidate-level consequences are scored by a state-conditioned shared linear comparator, while feasible-set summaries modulate the decoder context. This keeps the cached embeddings and standard global matching while giving the scoring function direct access to deterministic transition quantities. The Capacitated Vehicle Routing Problem with Time Windows (CVRPTW) serves as the main constrained-routing testbed, and the same interface extends to the Capacitated Vehicle Routing Problem (CVRP) and Traveling Salesman Problem (TSP). Across external benchmarks and no-retraining scale-transfer settings, LINC consistently improves strong neural baselines, with the advantage becoming more pronounced as test size moves further beyond the training scale, especially on constrained routing problems.
BibTeX
@inproceedings{qin2026linc,
  author = {ShaoFeng Qin and Li Wang},
  title = {{LINC: Decoupling Local Consequence Scoring from Hidden Matching in Constructive Neural Routing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=w4PVSNcTNB},
}
Figure