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

Geometric Algorithms for Neural Combinatorial Optimization with Constraints

Nikolaos Karalias, Akbar Rafiey, Yifei Xu, Zhishang Luo, Behrooz Tahmasebi, Connie Jiang, Stefanie Jegelka

TL;DR

This paper introduces a differentiable framework that allows neural networks to solve combinatorial optimization (CO) problems while strictly respecting discrete constraints. By leveraging geometric decomposition techniques—specifically a constructive version of Carathéodory’s theorem—the authors map neural network outputs to a distribution of feasible solutions, enabling self-supervised training with theoretical rounding guarantees.

What Problem Does This Paper Address?

Combinatorial Optimization is the art of finding the best discrete object (like a set of nodes in a graph or a path) from a massive pool of possibilities. While neural networks have shown promise in learning to solve these problems, they face a fundamental hurdle: constraints.

Most neural approaches output continuous values that don't naturally satisfy discrete rules (e.g., "pick exactly $k$ items"). Researchers usually handle this by adding penalty terms to the loss function—which are notoriously finicky to tune—or by using heuristic "rounding" at the end, which often breaks the connection between how the model was trained and how it actually performs. The authors seek a principled way to bake constraints directly into the neural network's architecture and training loop.

Methods

The core innovation is a differentiable geometric decomposition layer that bridges continuous neural outputs and discrete feasible sets.

Overview of the training and inference pipeline using geometric decomposition.
  1. The Polytope Perspective: The authors view the set of all feasible solutions as vertices of a high-dimensional shape called a polytope. Any point inside this polytope can be represented as a "convex combination" (a weighted average) of these vertices.
  2. GLS Decomposition: They adapt the Grötschel-Lovász-Schrijver (GLS) method—an iterative algorithm from classical optimization—to decompose the neural network's continuous output into a sparse distribution of discrete, feasible solutions.
  3. End-to-End Differentiability: Crucially, they prove that the probabilities assigned to these feasible solutions are almost everywhere differentiable. This allows the model to be trained using standard backpropagation: the network learns to shift its continuous output such that the resulting distribution of discrete solutions has a better expected objective value.
Algorithm 1: The general decomposition algorithm used to map continuous outputs to discrete feasible solutions.
  1. Rounding Guarantee: Because the output is a convex combination, the "best" discrete solution in the decomposition is mathematically guaranteed to be at least as good as the continuous average.
  2. Perturbation Layer: To ensure the network's initial output actually lands inside the polytope, the authors provide efficient, differentiable "perturbation" layers for common constraints like cardinality (picking $k$ items) and matroids.

Datasets and Key Results

The authors evaluated their framework on several challenging CO tasks:

  • Maximum Coverage: Tested on synthetic graphs and large-scale real-world datasets, including Twitch social networks and Italian Railway crew assignment systems. On the Railway dataset, the method surpassed standard greedy heuristics and neared the performance of exact solvers (Gurobi) while being significantly faster.
  • Maximum Independent Set & Max-k-Cut: Evaluated using the IMDB-BINARY and Erdős-Rényi graph benchmarks.
  • Generalization: Models trained on small synthetic graphs generalized well to much larger real-world instances, suggesting the geometric prior helps the network learn the underlying structure of the problem rather than just memorizing data.

Key Insights

  • Geometry as a Bridge: Classical results like Carathéodory’s theorem can function as a bridge between the continuous world of deep learning and the discrete world of combinatorial constraints.
  • Eliminating Penalty Tuning: By building constraints into the output distribution, the method removes the need for weighted penalty terms in the loss function, which often make training unstable.
  • Unified Training and Inference: Unlike many baselines that use one logic for training (penalties) and another for testing (heuristics), this framework uses the exact same geometric decomposition for both, ensuring the model "practices what it preaches."

Limitations and Future Work

While the method is general, its runtime depends on the efficiency of the linear optimization oracle. For NP-hard polytopes (like the Independent Set polytope), they must rely on relaxations, which can introduce half-integral solutions. Future work includes exploring more sophisticated encoder architectures and extending the framework to even more complex, non-linear constraints.

Summary updated

BibTeX
@inproceedings{karalias2025geometric,
  author = {Nikolaos Karalias and Akbar Rafiey and Yifei Xu and Zhishang Luo and Behrooz Tahmasebi and Connie Jiang and Stefanie Jegelka},
  title = {{Geometric Algorithms for Neural Combinatorial Optimization with Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=EPDLFWyNnF},
}
Figure