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

Neural Combinatorial Optimization with Reinforcement Learning

Irwan Bello, Hieu Pham, Quoc V. Le, Mohammad Norouzi, Samy Bengio

Overview

This paper introduces Neural Combinatorial Optimization (NCO), a framework that leverages Reinforcement Learning (RL) to train Pointer Networks for solving complex combinatorial problems like the Traveling Salesman Problem (TSP). By utilizing the negative tour length as a direct reward signal, the model learns to discover its own heuristics without requiring expensive, "optimal" labeled data for training.

The Challenge of Combinatorial Optimization

Combinatorial optimization—finding the optimal object from a finite set of objects—is a cornerstone of computer science. Classic examples, such as the TSP, are NP-hard, meaning their difficulty scales exponentially as the problem size grows.

Traditionally, researchers have relied on handcrafted heuristics: expert-designed rules of thumb that find "good enough" solutions quickly. However, these heuristics are notoriously rigid; a slight change in problem constraints often necessitates a complete redesign of the heuristic.

While deep learning offers a flexible alternative, previous "supervised" approaches required massive datasets of optimal solutions to learn from. For NP-hard problems, generating these "ground truth" labels is computationally prohibitive, creating a significant bottleneck.

Methods: A Shift to Reinforcement Learning

To bypass the need for optimal labels, the authors propose shifting from supervised learning to Reinforcement Learning. The NCO framework consists of several key components:

  1. Architecture: The model utilizes Pointer Networks, a type of Recurrent Neural Network (RNN) equipped with an attention mechanism. Instead of translating a sequence, the attention mechanism "points" to elements of the input sequence (e.g., cities) to determine the order of the tour.
  2. Training (REINFORCE): Instead of forcing the network to predict the "correct" next city based on a label, the network generates a complete tour and receives a reward based on the negative tour length. The REINFORCE policy gradient algorithm updates the network's parameters, encouraging shorter tours over time.
  3. The Critic: To stabilize training and reduce the high variance typical of RL, a "critic" network is employed. This auxiliary network estimates the expected tour length for a given set of cities, serving as a baseline to judge whether a specific tour generated by the "actor" was better or worse than average.
  4. Search Strategies at Inference:
    • Sampling: Generating multiple tours from the trained model and selecting the shortest one.
  5. Active Search: A novel approach where the model's parameters are fine-tuned on a single test instance at inference time to find the best possible solution for that specific graph.
Visual comparison of TSP tours generated by different NCO strategies versus the optimal solution.

Datasets and Baselines

The researchers evaluated their framework on the 2D Euclidean TSP, focusing on graphs with 20, 50, and 100 nodes (TSP20, TSP50, and TSP100). Data points were drawn uniformly at random within a unit square.

The NCO models were benchmarked against supervised learning baselines, the Christofides algorithm, Google’s OR-Tools, and state-of-the-art exact solvers like Concorde and LK-H.

Key Insights and Results

The NCO framework achieved results remarkably close to highly optimized, traditional solvers, demonstrating several key advantages:

  • RL Outperforms Supervised Learning: Training with RL yielded better results than supervised learning. RL allows the model to explore the solution space broadly, whereas supervised learning artificially caps the model's performance at the quality of its training labels.
  • Neural Networks as Heuristic Generators: The NCO framework does not rely on TSP-specific domain knowledge (like "2-opt" moves). It learns the underlying geometry and logic of the problem purely from the reward signal.
  • Active Search as Optimization: Treating the neural network as a flexible search procedure that can be optimized on-the-fly for a specific instance bridges the gap between traditional optimization and machine learning.
Performance comparison of NCO against baselines and optimal solvers.

Quantitatively, the RL-sampling approach achieved an average tour length of 7.88 on TSP100, coming very close to the optimal 7.77 provided by Concorde. This significantly outperformed the supervised learning baseline (10.81) and the Christofides heuristic (9.18). Furthermore, many of the RL-based strategies outperformed Google’s OR-Tools in terms of solution quality for larger graphs.

Limitations and Future Work

While promising, the NCO framework has limitations:

  • Computational Speed: Although the neural network generates a single tour quickly, the "Active Search" and "Sampling" strategies are significantly slower than highly optimized C++ solvers (like LK-H) when running on CPUs.
  • Scaling: The study focused on graphs up to 100 nodes. Real-world combinatorial problems often involve thousands of variables, and the scalability of RNN-based architectures to these dimensions remains an open question.
  • Problem Variety: The evaluation focuses almost exclusively on TSP. Future research is needed to determine if this framework translates effectively to other combinatorial challenges, such as job-shop scheduling or graph coloring.

Summary updated

BibTeX
@inproceedings{bello2017neural,
  author = {Irwan Bello and Hieu Pham and Quoc V. Le and Mohammad Norouzi and Samy Bengio},
  title = {{Neural Combinatorial Optimization with Reinforcement Learning}},
  booktitle = {Workshops @ ICLR},
  year = {2017},
  url = {https://openreview.net/forum?id=Q7z16MEsAs},
}
Figure