NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Reinforcement learning for combinatorial optimization: A survey

Nina Mazyavkina, Sergey Sviridov, Sergei Ivanov, Evgeny Burnaev

TL;DR

This survey explores the transition from hand-crafted heuristics to automated Reinforcement Learning (RL) for solving NP-hard combinatorial optimization problems like the Traveling Salesman Problem. It provides a comprehensive taxonomy of how RL agents can either construct solutions from scratch or iteratively improve them, often matching the performance of traditional solvers while offering significant speedups during inference.

What Problem Does This Paper Address?

Combinatorial Optimization (CO) is fundamental to industries ranging from logistics to chip design. However, most CO problems are NP-hard, meaning finding an exact solution is computationally prohibitive for large instances.

Traditionally, the world has relied on two paths:

  1. Exact Solvers: Guaranteed optimal but extremely slow.
  2. Hand-crafted Heuristics: Fast rules-of-thumb designed by domain experts.

The "gap" is that these heuristics are often suboptimal and require immense manual effort to design for every new problem variant. This paper investigates whether we can use RL to learn these heuristics automatically, creating agents that "understand" the underlying structure of a problem and can solve new, unseen instances efficiently.

Methods

The authors categorize the RL-CO landscape based on three main pillars:

  • Encoders (The "Eyes"): To process graph-based or sequence-based problems, models use specialized architectures. These include Recurrent Neural Networks (RNNs) for sequences, Pointer Networks (which use attention to "point" to input elements), and Graph Neural Networks (GNNs) like GCNs or GATs that capture the spatial relationships between nodes.
  • RL Algorithms (The "Brain"): The survey covers Value-based methods (like DQN) that estimate the worth of an action, Policy-based methods (like REINFORCE or PPO) that directly learn the best move, and Model-based methods (like MCTS/AlphaZero) that plan several steps ahead.
  • Integration Strategies:
    • In Principal: The RL agent makes all the decisions to build or fix a solution.
  • Joint Training: The RL agent works alongside a classical solver (e.g., learning which variable to "branch" on in a Branch & Bound algorithm).

Datasets

The research primarily utilizes synthetic benchmarks to allow for controlled experimentation:

  • Erdős–Rényi (ER) Graphs: Used extensively for Traveling Salesman Problem (TSP), Max-Cut, and Minimum Vertex Cover evaluations.
  • Standard CO Benchmarks: Instances of TSP (N=20, 50, 100 nodes), Capacitated Vehicle Routing (CVRP), and 3D Bin Packing.
  • MILP Instances: Mixed-Integer Linear Programming problems used to test "joint" RL-solver approaches.

Key Insights and Ideas

  • The Power of Attention: Pointer Networks and Attention mechanisms are game-changers for CO. They allow the model to focus on relevant parts of the problem (like the nearest unvisited city in TSP) regardless of the input size or order.
  • Invariance Matters: Graph Neural Networks (GNNs) are increasingly preferred over RNNs because they are "permutation invariant"—they don't care about the arbitrary order in which nodes are listed in a file, only how they are connected.
  • Construction vs. Improvement: While early work focused on constructing solutions (adding one node at a time), improvement heuristics (starting with a random solution and iteratively "rewiring" it) are showing great promise for reaching higher solution quality.
  • The "Forward Pass" Advantage: The biggest "aha" moment is the speed. While training an RL agent is slow, using it (inference) is nearly instantaneous compared to running a complex metaheuristic, making it ideal for real-time applications.

Key Results

  • Competitive Quality: On TSP instances with 20 to 100 nodes, state-of-the-art RL models (e.g., Kool et al., 2019) achieve tour lengths nearly identical to the industry-standard LK-H heuristic and OR-Tools.
  • Speedups: Several studies reported that RL-based solvers are 10x to 100x faster than traditional heuristics for large-scale problems once the model is trained.
  • Generalization: Models trained on small graphs (e.g., 50 nodes) can often generalize to solve larger graphs (up to 100-200 nodes) with only a small drop in solution quality, though scaling to thousands of nodes remains difficult.

Limitations and Future Work

  • Scaling: Most current RL-CO research hits a wall at around 1,000 nodes. The memory requirements for the encoders (GNNs/Attention) grow too quickly for very large-scale industrial problems.
  • Generalization Gaps: A model trained on random "synthetic" graphs often struggles when applied to real-world data with different distributions (e.g., a road network vs. a random cluster of points).
  • Lack of Standardization: The authors note that the field lacks a unified "ImageNet-style" benchmark, making it hard to compare different RL approaches fairly.
  • Future Direction: The most promising path forward is Hybridization—not replacing classical solvers, but using RL to optimize the internal "magic numbers" and decision rules inside established tools like Gurobi or CPLEX.

Summary updated

BibTeX
@inproceedings{mazyavkina2021reinforcement,
  author = {Nina Mazyavkina and Sergey Sviridov and Sergei Ivanov and Evgeny Burnaev},
  title = {{Reinforcement learning for combinatorial optimization: A survey}},
  booktitle = {Comput. Oper. Res},
  year = {2021},
  url = {https://openreview.net/forum?id=zu0VLYHn9ZF},
}
Figure