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

Self-Supervised Combinatorial Optimization with Constraints via Frank-Wolfe

Akbar Rafiey, Yifei Xu, Nikolaos KaraliasarXiv 2026

TL;DR

This paper introduces a projection-free, self-supervised learning framework for solving constrained combinatorial optimization problems using neural networks. By leveraging a Frank-Wolfe-based geometric decomposition layer, the model can map unconstrained continuous predictions to a sparse combination of feasible solutions. This approach enables end-to-end, gradient-based training without problem-specific projection steps and provides automatic rounding guarantees during inference.

What Problem Does This Paper Address?

Combinatorial Optimization (CO) problems—such as routing, scheduling, and resource allocation—are fundamental to science and engineering but are notoriously difficult to solve due to their discrete nature and hard constraints. Recently, deep learning has emerged as a tool to solve CO problems, often by relaxing discrete constraints into continuous domains so gradients can flow during training.

However, a major bottleneck remains: ensuring that the neural network's continuous outputs actually satisfy the hard constraints of the problem. Existing methods typically force network predictions to lie inside a feasible "polytope" (the geometric space of valid solutions) using complex, problem-specific mathematical projections. These projections are computationally expensive to compute and difficult to generalize across different types of problems.

Methods

The authors propose FWNCO (Frank-Wolfe Neural Combinatorial Optimization), a unified framework that eliminates the need for strict projection steps. Instead of forcing the neural network's output ($x_\theta$) to stay inside the feasible polytope ($\mathcal{P}$), the network is free to predict any arbitrary continuous vector—even ones far outside the valid space.

Figure 1: Overview of our framework. During training, the model with parameters θ outputs a point xθ, which may lie outside P, the convex hull of feasible solutions. Our Frank–Wolfe decomposition layer constructs a feasible proxy u as a convex combination of at most T feasible vertices vt, with weights αt(xθ). The self-supervised loss LSSL is computed from the expected discrete objective f and a reconstruction term weighted by λ ≥0. The weights αt(xθ) are a.e. differentiable w.r.t xθ, allowing gradients from the loss to propagate through the decomposition layer back to the neural network. During inference (green box), the same procedure generates feasible candidates, and the best solution v∗is selected. Solid arrows indicate the forward pass, and the dashed arrow indicates backpropagation.

To handle constraints, the framework introduces a geometric decomposition layer based on the classical Frank-Wolfe algorithm. This layer takes the unconstrained prediction and finds a feasible proxy point ($u$) by expressing it as a sparse convex combination of actual, valid discrete solutions (vertices $v_t$) with associated weights ($\alpha_t$).

Crucially, these weights are almost everywhere differentiable, meaning gradients can backpropagate through the decomposition layer directly into the neural network. The self-supervised training loss is defined as the expected value of the discrete objective function under the distribution of these weights, plus an optional regularization term to minimize the distance between the network's raw output and the feasible proxy. At inference time, the exact same decomposition algorithm acts as an automatic rounding mechanism, generating a small set of valid candidate solutions from which the best one is selected.

Datasets

The framework was evaluated across three distinct NP-hard combinatorial problems using both synthetic and real-world datasets:

  • Maximum Coverage (MC): Evaluated on synthetic random uniform graphs (Random500, Random1000) and real-world Italian railway crew assignment graphs (rail507, rail516, rail582). The authors also introduced GREEDYTRAP, a challenging synthetic benchmark designed specifically to make standard greedy heuristics fail.
  • Quadratic Assignment Problem (QAP): Pre-trained on synthetic instances of size $n=32$ and evaluated on the standard QAPLIB benchmark, featuring real-world and synthetic instances ranging from size 12 to over 64.
  • Traveling Salesperson Problem (TSP): Evaluated on 2D Euclidean TSP datasets (ranging from 50 to 1000 nodes) sourced from the COExpander paper, alongside cross-size validation on the classical TSPLIB benchmark.

Key Insights and Ideas

  • The Power of Unconstrained Exploration: Counterintuitively, removing hard projection constraints during training improves performance. Allowing the network to output values outside the polytope provides a richer exploration space, preventing the model from getting stuck in local minima during gradient descent.
  • Unified Oracle-Based Design: Instead of engineering bespoke projection operators for every new constraint family (e.g., cardinality constraints vs. permutation matrices), FWNCO only requires a Linear Maximization Oracle (LMO). Swapping constraints is as simple as swapping the LMO (such as a greedy algorithm or a matching routine), making the framework highly generalizable.
  • Bridging Training and Inference: Because the training loss optimizes the expectation over the exact same discrete solutions generated during inference, the model directly minimizes the evaluation metric, providing a built-in rounding guarantee.

Key Results

FWNCO demonstrates a superior balance of solution quality and computational efficiency compared to state-of-the-art neural and traditional baselines:

  • Maximum Coverage: As shown in Table 1, FWNCO consistently outperforms or matches existing unsupervised learning methods like GeoNCO and CardNN while executing significantly faster. On the GREEDYTRAP dataset, where standard greedy algorithms collapse to a ~46% coverage ratio, FWNCO achieves near-optimal coverage (~60%).
Table 1: MC performance comparison across three datasets, reporting mean inference time and coverage across k. Among neural methods, ■indicates ranking the 1st, ■the 2nd in each column.
  • QAPLIB Benchmark: FWNCO achieved the lowest average optimality gap among all neural methods on instances sized 12–64, while running nearly an order of magnitude faster than the leading learning baseline, SAWT (1.56 seconds vs. 12.11 seconds).
  • TSP Scale-up: For large TSP-1000 instances, FWNCO outperformed unsupervised reinforcement learning baselines and surpassed supervised diffusion models (DIFUSCO). Furthermore, it proved highly resource-efficient, training in under an hour on a single older-generation GPU.

Limitations and Future Work

While highly flexible, the framework's performance is still bounded by the quality of the underlying neural network architecture, an area the authors leave open for future optimization. Additionally, for highly heterogeneous problems like QAP under extreme distribution shifts, completely unconstrained outputs can occasionally destabilize training. To mitigate this practically, the authors had to introduce a lightweight Sinkhorn layer to calibrate the outputs—indicating that while pure projection-free learning is theoretically sound, some structural regularizations remain necessary for real-world robustness.

Summary updated

BibTeX
@misc{rafiey2026self,
  author = {Akbar Rafiey and Yifei Xu and Nikolaos Karalias},
  title = {{Self-Supervised Combinatorial Optimization with Constraints via Frank-Wolfe}},
  year = {2026},
  eprint = {2609.25728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.25728},
}
Figure