Abstract
Combinatorial optimization (CO) is the fundamental problem at the intersection of computer science, applied mathematics, etc. The inherent hardness in CO problems brings up challenge for solving CO exactly, making deep-neural-network-based solvers a research frontier. In this paper, we design a family of non-autoregressive neural networks to solve CO problems under positive linear constraints with the following merits. First, the positive linear constraint covers a wide range of CO problems, indicating that our approach breaks the generality bottleneck of existing non-autoregressive networks. Second, compared to existing autoregressive neural network solvers, our non-autoregressive networks have the advantages of higher efficiency and preserving permutation invariance. Third, our offline unsupervised learning has lower demand on high-quality labels, getting rid of the demand of optimal labels in supervised learning. Fourth, our online differentiable search method significantly improves the generalizability of our neural network solver to unseen problems. We validate the effectiveness of this framework in solving representative CO problems including facility location, max-set covering, and traveling salesman problem. Our non-autoregressive neural solvers are competitive to and can be even superior to state-of-the-art solvers such as SCIP and Gurobi, especially when both efficiency and efficacy are considered.
Introduction
Combinatorial Optimization (CO) involves finding the optimal solution from a finite set of possibilities, a task central to logistics, finance, and artificial intelligence. Most CO problems are NP-hard, making exact solutions computationally expensive. While traditional solvers like Gurobi or SCIP are robust, they can be slow for large-scale instances.
Recent "Neural CO" solvers often rely on autoregressive (AR) architectures, which construct solutions step-by-step. However, AR models face efficiency bottlenecks, requiring $O(l)$ forward passes for $l$ variables, and suffer from error accumulation and difficulties maintaining permutation invariance. This paper introduces a non-autoregressive (NAR) paradigm that generates the entire solution in a single pass while strictly adhering to problem constraints.
Methodology
The proposed framework transforms CO problems into a graph-based representation processed by Graph Neural Networks (GNNs).
The pipeline consists of several key components:
- Graph Modeling & GNNs: The problem is encoded as a graph, and a GNN processes this to produce a "latent code"—a continuous representation of the potential solution.
- Gumbel Reparameterization: To bridge the gap between continuous neural network outputs and the discrete nature of CO (0s and 1s), the authors use Gumbel sampling. This allows the model to sample discrete-like solutions while remaining differentiable for training.
- LinSAT Constraint Layer: This core innovation projects raw outputs into a feasible domain defined by positive linear constraints ($Ax \le b, Cx \ge d, Ex = f$). Using Sinkhorn-like iterations, it ensures feasibility without blocking the gradients necessary for learning.
Learning and Inference Strategy
The framework employs a hybrid approach to maximize both efficiency and solution quality, moving beyond static predictions.
- Offline Unsupervised Pretraining: The model is trained to minimize the objective function directly, bypassing the need for expensive optimal labels required by supervised learning.
- Online Differentiable Search: During inference, the model performs a "differentiable search" in the latent space. By using the gradients of the objective function to fine-tune the latent code for a specific instance, the solver adapts to unseen problems and refines solution quality beyond the initial prediction.
Experimental Evaluation
The framework was evaluated on three representative CO problems:
- Facility Location Problem (FLP): Tested on synthetic data and a real-world dataset of Starbucks locations in major global cities. The model demonstrated zero-shot generalization, effectively solving real-world geographic problems after training on synthetic data.
- Max-Set Covering Problem (MCP): Evaluated on distributions from the ORLIB benchmark. The NAR solver outperformed Gurobi in both speed and quality on many instances.
- Traveling Salesman Problem (TSP): Tested on standard benchmarks (TSP-50 to TSP-500). The framework performed competitively with state-of-the-art neural solvers like DIMES and DIFUSCO.
Conclusion
This work demonstrates that non-autoregressive neural networks, when combined with differentiable constraint layers and online search, offer a powerful alternative to traditional and autoregressive CO solvers. While currently optimized for positive linear constraints, future work will explore broader constraint types and more advanced GNN architectures to further enhance performance and scalability.
Reference: Wang, R., Li, Y., Yan, J., & Yang, X. (2024). Learning to Solve Combinatorial Optimization under Positive Linear Constraints via Non-Autoregressive Neural Networks. arXiv:2409.04495v1.
Summary updated