Differentiable extensions with rounding guarantees for combinatorial optimization over permutations

Robert R Nerem, Zhishang Luo, Akbar Rafiey, Yusu Wang

Executive Summary

This paper introduces the Birkhoff Extension (BE), a novel framework that transforms discrete optimization problems over permutations into continuous, differentiable ones. By providing a "lossless" rounding guarantee—ensuring that a rounded discrete solution is never worse than its continuous relaxation—BE enables the use of gradient-based methods and neural networks to solve notoriously difficult combinatorial problems like the Traveling Salesperson Problem (TSP) and the Quadratic Assignment Problem (QAP).

Introduction & Problem Statement

Many real-world challenges, from logistics to circuit design, are essentially optimization problems over permutations (orders or matchings). Because permutations are discrete, these problems are typically solved using combinatorial heuristics or expensive solvers like Gurobi.

A common strategy in optimization is to "relax" a discrete problem into a continuous one, solve it using fast gradient-based methods, and then round the result back to a discrete solution. While this works well for set functions (using the Lovász extension), it is much harder for permutations. The standard way to represent a "relaxed" permutation is a doubly stochastic matrix (where rows and columns sum to one). However, the classic method for decomposing these matrices into permutations (the Birkhoff decomposition) is non-unique and discontinuous. This lack of continuity means that a tiny change in the matrix can cause a massive jump in the objective function, making gradient descent impossible.

The Birkhoff Extension Framework

The authors' core contribution is a Continuous Birkhoff Decomposition.

Continuous vs Classical Birkhoff Decomposition
  1. Score-Induced Ordering: To fix the non-uniqueness problem, they introduce a "score matrix" $S$. They use this matrix to define a total order over all possible permutations based on their inner product with $S$.
  2. The Extension: By always picking the "highest-scoring" valid permutation at each step of the decomposition, they ensure that the resulting coefficients are continuous and almost-everywhere differentiable.
  3. Frank-Wolfe Optimization: Since the space of doubly stochastic matrices (the Birkhoff polytope) has strict constraints, they use the Frank-Wolfe algorithm. This method stays within the feasible region by iteratively moving toward the "best" permutation in the direction of the negative gradient.
  4. Dynamic Scores: Because the objective landscape isn't necessarily convex, the authors propose a "dynamic score" strategy. By periodically updating the score matrix $S$, they effectively reshape the optimization landscape, allowing the solver to "jump" out of local minima.
  5. Lossless Rounding: They prove that their extension admits a rounding scheme where the resulting permutation is guaranteed to have a function value less than or equal to the continuous value ($f(P) \leq F(A)$).

Experimental Setup

The authors evaluated their method on three classic combinatorial problems:

  • QAPLIB: A standard library of 136 instances for the Quadratic Assignment Problem, with sizes ranging from $n=12$ to $n=256$.
  • Synthetic TSP: 50 instances generated by uniformly sampling $n$ cities in a 2D unit square ($n$ up to 100).
  • Synthetic DFASP: Directed Feedback Arc Set Problem instances generated using the Erdős-Rényi model ($n$ up to 250).

Theoretical Insights

  • Continuity through Constraint: The "aha moment" is realizing that the discontinuity in standard Birkhoff decompositions stems from the freedom to choose any matching. By enforcing a strict preference (the score matrix), the authors force the decomposition to behave predictably and smoothly.
  • The Power of Local Improvement: BE isn't just a standalone solver; it's a "refiner." You can take a solution from a fast heuristic (like a Minimum Spanning Tree for TSP), use it to initialize the score matrix, and BE is theoretically guaranteed to find a solution that is at least as good, if not better.
  • Unsupervised Learning: Because the extension is differentiable, it can be used as a loss function to train neural networks without needing labeled "optimal" solutions, which are often impossible to compute for large problems.

Empirical Results

  • QAP Performance: On the QAPLIB benchmark, the Birkhoff Extension achieved an average gap of only 6.30% from the best-known solutions, outperforming Gurobi (7.67%) and standard 2-opt heuristics (10.38%) within the same time budget.
  • TSP Refinement: While Gurobi remains the gold standard for small TSP, BE provided significant local improvements over common heuristics. For example, it improved MST-based tours by roughly 4.6% to 8.5%.
  • Scalability: In the Directed Feedback Arc Set Problem (DFASP), the BE approach scaled better than Gurobi on larger instances, providing superior solutions as the number of nodes increased.
  • Neural Speedup: They demonstrated that a neural network trained with BE could produce high-quality TSP solutions in a fraction of the time required by pure optimization.

Limitations & Future Directions

  • Computational Complexity: Computing the full Birkhoff extension is $O(n^5)$, which is steep for very large $n$. The authors mitigated this by "truncating" the decomposition to the first $k$ terms, but finding more efficient ways to compute the gradient remains an open challenge.
  • GPU Optimization: Standard matching algorithms (like the Hungarian algorithm) used in the decomposition are difficult to parallelize on GPUs. The authors suggest randomized, GPU-friendly matching as a future direction.
  • Score Strategies: While the dynamic score update works, it is relatively simple. More sophisticated "meta-optimization" of the score matrix could lead to even better convergence in non-convex landscapes.

Summary updated

BibTeX
@inproceedings{nerem2025differentiable,
  author = {Robert R Nerem and Zhishang Luo and Akbar Rafiey and Yusu Wang},
  title = {{Differentiable extensions with rounding guarantees for combinatorial optimization over permutations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=aAxk0cw6GW},
}
Figure