A Box-Constrained Approach for Hard Permutation Problems

Cong Han Lim, Steve WrightICML 2016

Introduction

Many critical tasks in computer science—from matching complex graph structures to scheduling facilities—rely on finding the optimal permutation (reordering) of objects. Mathematically, these challenges are often framed as Quadratic Assignment Problems (QAP).

The core difficulty lies in the discrete, "jumpy" nature of permutations. To solve them using standard continuous optimization tools, researchers typically "relax" the problem. This allows for "fuzzy" permutations represented by the Birkhoff polytope (the set of all doubly stochastic matrices). However, optimizing over the Birkhoff polytope is computationally punishing: it requires managing $n^2$ variables and $2n$ linear constraints (ensuring rows and columns sum to 1). As the number of objects ($n$) grows, maintaining these constraints becomes a severe bottleneck.

This paper introduces a clever workaround: replacing complex matrix constraints with a "sorting network." By transforming the problem into a simple box-constrained optimization, the authors develop a coordinate descent algorithm that is significantly faster than state-of-the-art methods while remaining highly competitive in accuracy.

A Compact Alternative: Sorting Networks

Instead of optimizing over a massive $n \times n$ matrix, the authors propose optimizing the parameters of a sorting network.

A sorting network uses a sequence of comparators to swap pairs of items, representing any possible permutation.
  1. Sorting Networks as Proxies: A sorting network consists of a fixed sequence of "comparators" that swap pairs of items. By assigning a continuous variable $x \in [0, 1]$ to each comparator (where 1 means "swap" and 0 means "don't swap"), the network can represent any permutation.
  2. Box Constraints: Unlike the restrictive Birkhoff polytope, the only constraints in this new formulation are $0 \leq x \leq 1$. This is a simple "box constraint," which is trivial to enforce by clipping values during optimization.
  3. Continuation Strategy: To ensure the final result is a valid, discrete permutation, the authors employ a regularization term that nudges the variables toward exactly 0 or 1. The algorithm starts with a "smooth" version of the problem and gradually sharpens it.
  4. Fast Cyclic Coordinate Descent: The authors derive a specialized algorithm to update these swap parameters sequentially. By exploiting the inherent structure of the sorting network, they achieve a per-cycle complexity of $O(n^2 \log^2 n)$. This is a significant theoretical improvement over the $O(n^3)$ cost of the popular Frank-Wolfe-based "FAQ" algorithm.

Key Insights

  • Dimensionality Reduction: While a standard permutation matrix requires $n^2$ entries, a sorting network only needs $O(n \log^2 n)$ parameters. This drastically reduces the search space for large-scale problems.
  • Coordinatewise Concavity: The authors prove that, with the appropriate regularization, the objective function becomes "coordinatewise concave." This guarantees that for any single swap parameter, the optimal value lies at the boundaries (0 or 1), naturally driving the solution toward a discrete permutation.
  • The "Fast Update" Trick: A major technical achievement of the paper is demonstrating that the entire network does not need to be re-evaluated to see the effect of a single swap change. The gradient and Hessian can be updated incrementally in just $O(n)$ time.

Performance and Results

The authors evaluated their approach against standard benchmarks, including the QAPLIB dataset (ranging from $n=10$ to $n=256$) and synthetic QAP problems generated using Taillard’s method (scaling up to $n=1000$).

Performance comparison showing the proposed CD+C+RS method achieving massive speedups (top) while maintaining competitive optimality gaps (bottom) as problem size increases.
  • Speed and Scaling: On large synthetic problems ($n=1000$), the sorting-network approach was 20 to 60 times faster than the FAQ algorithm. The algorithm scales at roughly $O(n^2)$, whereas competing methods scale at $O(n^3)$, making it highly suitable for "big data" graph matching.
  • Accuracy: On the QAPLIB benchmarks, the proposed method (specifically the CD+C+RS variant) was competitive with or superior to FAQ across the majority of problem families, frequently finding better "best-of-100" solutions.

Limitations and Future Directions

Because this method relies on a non-convex relaxation of an NP-hard problem, it is susceptible to getting stuck in local minima. Finding the absolute best result often requires multiple restarts with different initializations. Additionally, the authors noted that their method struggled slightly with specific types of QAP instances (such as the lipa and ste families) compared to FAQ.

Despite these limitations, the sorting network approach is highly effective for QAP. Extending this box-constrained relaxation to other hard permutation-based optimization problems remains a promising area for future research.

Summary updated

BibTeX
@inproceedings{lim2016box,
  author = {Cong Han Lim and Steve Wright},
  title = {{A Box-Constrained Approach for Hard Permutation Problems}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
}
Figure