TL;DR
Training reinforcement learning (RL) models to solve classic routing and scheduling puzzles is notoriously difficult: rewards only arrive at the very end, and random exploration quickly hits a wall in massive search spaces. CORectifier introduces a "Rectified RL" paradigm that periodically splices bite-sized, valid action segments from expert reference solutions directly into the model's own rollouts during training. This simple, plug-and-play mechanism drastically improves sample efficiency and allows RL solvers to scale to large, complex problems where they previously collapsed.
What Problem Does This Paper Address?
Combinatorial Optimization (CO)—like finding the shortest delivery route (TSP) or scheduling factory jobs—underpins modern logistics, yet is NP-hard. Neural Combinatorial Optimization (NCO) trains deep networks to learn fast heuristics directly from data, generally splitting into two camps:
- Supervised Learning (SL): Predicts global probability "heatmaps" of good edges/actions from pre-solved expert examples. SL is great at mimicking optimal patterns on simple graphs, but struggles when problems have intricate, dynamic rules (like vehicle capacities or time windows) because it requires brittle, handcrafted decoders to turn heatmaps into valid tours.
- Reinforcement Learning (RL): Builds solutions step-by-step, masking out illegal moves on the fly. This makes constraint satisfaction effortless! However, RL hits three major walls:
- Exploration plateaus: Once an RL agent gets decent, randomly stumbling upon an even better 100-stop tour is like winning the lottery. Without better-than-average samples, policy updates stall.
- Sparse rewards: You don't know if step 3 was a mistake until step 500 is finished, making action-level credit assignment weak.
- Poor scalability: Because of these bottlenecks, constructive RL solvers historically fall apart on graphs larger than ~100 nodes.
How do we give RL the optimality-awareness of supervised data without losing its sequential, constraint-preserving superpowers—or overfitting to rigid expert trajectories?
Methods
Instead of standard Imitation Learning (which forces a model to copy entire expert tours from start to finish and quickly overfits), the authors propose CORectifier, a plug-in training framework featuring an optional Imitation Learning warm-start followed by Hierarchical Rectified Reinforcement Learning (RRL).
As shown above, RRL blends free RL exploration with surgical expert nudges using three hierarchical probabilistic gates:
- 1. Batch Gate ($p_{\text{batch}}$): Most training batches are generated randomly on the fly from an infinite problem space (standard RL). With probability $p_{\text{batch}}$, the model pulls a batch from a fixed, limited pool of pre-solved reference instances.
- 2. Instance Gate ($p_{\text{inst}}$): Standard RL solvers (like POMO) sample $N$ parallel rollouts per problem instance and compare them against their average reward. CORectifier selects only a small fraction ($p_{\text{inst}}$) of those $N$ rollouts for rectification, ensuring rectified trajectories stand out against the batch-average baseline without drowning out policy-driven exploration.
- 3. Intra-Instance Segment Gate: For a chosen rollout, a binary mask activates for a contiguous, randomly positioned window of $k$ steps. During this window, the rectifier looks at the last node/action the policy just took, looks up what the expert reference did immediately after that action, and checks if that move is currently legal (e.g., hasn't already been visited). If feasible, it overrides the policy's choice; afterward, the policy resumes control from the new rectified state.
Finally, standard REINFORCE policy gradients update the network over this mixed batch of pure and rectified rollouts, reinforcing trajectories that beat the within-instance mean reward.
Datasets
The authors evaluate across 7 classic CO tasks:
- Routing: Traveling Salesman (TSP), Asymmetric TSP (ATSP), Prize-Collecting TSP (PCTSP), and Capacitated Vehicle Routing (CVRP).
- Packing & Scheduling: Knapsack (KP), Job-Shop Scheduling (JSSP), and Single Machine Total Weighted Tardiness (SMTWTP).
Models are trained and evaluated on standard synthetic uniform distributions (ranging from 20 up to 500 nodes/items, plus zero-shot CVRP tests up to 5,000 nodes) using reference data sourced from established benchmarks (like ML4CO-Bench-101) solved via Concorde, LKH-3, HGS, or OR-Tools. For out-of-distribution generalization, they test on real-world TSPLIB (50–200 nodes) and CVRPLIB-Set-X (100–1,000 clients). The authors also commit to releasing their reusable reference datasets.
Key Insights and Ideas
- One expert tour = hundreds of local lessons: Vanilla supervised learning treats an optimal tour as a single monolithic label. By slicing random contiguous windows out of a reference tour and stitching them into live policy states, CORectifier extracts diverse sub-trajectory guidance from a tiny dataset—holding up remarkably well even when expert data is cut by 99% (down to 1.28K instances) or corrupted with noise.
- Expert hints stay feasible surprisingly often: You might expect an expert's "next move" to frequently conflict with a half-built, imperfect policy tour. Yet empirically, the expert successor remains legal ~50% of the time in TSP/CVRP and >90% of the time in ATSP, completely independent of whether the graph has 50 or 500 nodes!
- Escaping the low-entropy trap: Visualizing training dynamics reveals that vanilla RL trajectories collapse into narrow, low-entropy clusters with tiny advantage differences. Injecting partial expert segments widens advantage separation andnearly triples trajectory entropy (from 5.7 to 17.4 on TSP-100), keeping exploration alive.
- Less is more with guidance: Removing any of the three probabilistic gates (setting probabilities to 1.0) hurts performance. Similarly, under matched intervention budgets, coherent contiguous segments beat scattered, independent single-step hints.
Key Results
Applied orthogonally onto popular RL backbones (AM, POMO, MatNet), CORectifier consistently outperforms both its vanilla RL counterparts and specialized SL solvers:
- Crushing the RL scalability barrier: On 50–100 node routing tasks, greedy CORectifier cuts optimality gaps relative to RL baselines by 32% to 60% on average. On TSP-500—where classic RL solvers suffer 16%–48% optimality drops—CORectifier brings the greedy gap down to 4.92% (and 2.98% with augmentations + 2-Opt), reducing RL performance degradation by up to 89.8%.
- Beating SL heatmap solvers on their home turf: Without any post-hoc local search or augmentations, greedy CORectifier beats state-of-the-art diffusion/heatmap SL methods (like Fast-T2T and COExpander) on 6 out of 7 TSP/ATSP benchmarks.
- Strong real-world & large-scale generalization: Zero-shot optimality gaps drop from 3.20% (POMO) to 1.05% on TSPLIB, and from 10.37% to 5.47% on CVRPLIB. On massive CVRP-1K/2K/5K instances, it achieves highly competitive 3.58%–7.02% gaps.
- Beyond graphs: On Knapsack (KP-200/500), it hits a 0.01% optimality gap, and on SMTWTP-50/100 scheduling, it actually outperforms the 10-second OR-Tools heuristic baseline (-2.82% and -4.37% gap).
Limitations and Future Work
- Detailed limitations deferred: The authors note that explicit methodological limitations (such as reliance on having a reference solver capable of beating the policy margin $\epsilon_\theta > 0$, and training memory/time overhead) are discussed in Appendices I and F.1, which lie beyond the main 10-page text. Within the main text, they acknowledge that SL heatmap solvers equipped with 2-Opt local search still retain an edge on the largest symmetric/asymmetric TSP-500 benchmarks (e.g., COExpander's 0.84% vs. CORectifier's 2.98% on TSP-500).
- Future directions: The authors plan to expand CORectifier to an even wider variety of combinatorial problems and pair this plug-in rectification mechanism with stronger, modern neural architectures and backbones.
Summary updated