Neural Combinatorial Optimization: a New Player in the Field

Andoni I. Garmendia, Josu Ceberio, Alexander MendiburuarXiv 2022 · DOI

Abstract

Neural Combinatorial Optimization (NCO) leverages deep learning to solve NP-hard combinatorial problems. While much research focuses on the Traveling Salesman Problem, this work provides a critical evaluation of NCO using the Linear Ordering Problem (LOP). By benchmarking an end-to-end Graph Neural Network (GNN) against classical metaheuristics, we identify a significant trade-off: NCO offers near-instant inference and strong generalization but currently lags behind state-of-the-art heuristics in raw solution quality. We also highlight memory bottlenecks as a primary obstacle for scaling NCO training.

Introduction

Combinatorial Optimization Problems (COPs), such as routing and scheduling, are ubiquitous in industry but remain computationally daunting due to their NP-hard nature. Traditional approaches rely on exact solvers, which are slow, or metaheuristics, which require significant manual tuning. Recently, NCO has proposed a third way: learning the optimization logic directly from data. However, the field has been heavily centered on the Traveling Salesman Problem (TSP). This study expands the scope to the Linear Ordering Problem (LOP), evaluating whether NCO can truly compete with decades of research in classical optimization.

Methodology

The core of the approach is an end-to-end autoregressive model designed specifically for the LOP. The architecture consists of two primary components:

  1. Encoder: An anisotropic Message Passing GNN. Unlike isotropic GNNs, this model explicitly incorporates edge features—representing the weights in the LOP cost matrix—to generate rich node embeddings.
  2. Decoder: A Multi-Head Attention (MHA) mechanism that iteratively constructs a solution by selecting the next node in the sequence based on the current context and the learned embeddings.

The model is trained using the REINFORCE algorithm, a reinforcement learning technique, supplemented by a "Self-Critical Sequence Training" baseline to stabilize the learning process.

The proposed end-to-end architecture featuring an anisotropic GNN encoder and a Multi-Head Attention decoder for iterative solution construction.

Experimental Setup

The model was evaluated using two distinct data sources: synthetic random generators (sampling matrix elements uniformly) and the Linear Ordering Library (LOLIB), which contains real-world economic and sports ranking instances. Training was primarily conducted on synthetic data to leverage large-scale supervision.

Results and Analysis

The GNN model achieved a solution gap of 0.3% to 0.5% relative to the optimum on random instances. While this significantly outperforms basic constructive heuristics, it remains slightly behind top-tier metaheuristics like Memetic Algorithms, which often achieve a 0.0% gap.

However, the primary advantage of NCO lies in its efficiency. For instances of size $n=1000$, the GNN produces solutions in approximately 3.4 minutes, compared to over 2 hours for state-of-the-art classical methods. Furthermore, the model exhibits remarkable generalization; a model trained on instances of size $n=50$ can be applied to problems as large as $n=1000$ with minimal degradation in solution quality. This suggests that the GNN learns fundamental structural properties of the LOP rather than simple instance-specific patterns.

Limitations and Future Work

Despite its promise, NCO faces a critical bottleneck in training scalability. The memory requirements for GNNs and attention mechanisms grow polynomially with problem size. As shown in the figure below, training on instances larger than $n=50$ becomes computationally prohibitive on standard consumer hardware.

GPU memory usage during training scales sharply with instance size and batch size, highlighting a major constraint for scaling NCO models.

Future research should explore hybrid methods that integrate NCO's rapid "intuition" with the rigorous search capabilities of classical metaheuristics. Using neural networks to guide low-level decisions within a broader optimization framework may provide the best of both worlds.

Conclusion

NCO is indeed a "new player" in combinatorial optimization, offering unprecedented speed and generalization. While it does not yet replace specialized metaheuristics for peak performance, its potential as a fast, general-purpose solver and a component in hybrid systems is significant.

Summary updated

BibTeX
@misc{garmendia2022neural,
  author = {Andoni I. Garmendia and Josu Ceberio and Alexander Mendiburu},
  title = {{Neural Combinatorial Optimization: a New Player in the Field}},
  year = {2022},
  eprint = {2205.01356},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.01356},
}
Figure