Local Minima in Quadratic-Penalty Relaxations of Binary Linear Programs

Cheng-Han Huang, Yongliang Sun, Chaoyan Huang, Ismail Alkhouri, Rongrong Wang

Combinatorial optimization (CO) problems—such as the Traveling Salesman or the Knapsack problem—are notoriously difficult to solve due to their massive, discrete search spaces. A popular modern approach is to reformulate these as Quadratic Unconstrained Binary Optimization (QUBO) problems and "relax" the binary variables to continuous values in the range $[0, 1]$. This continuous relaxation allows researchers to leverage the massive parallel processing power of modern GPUs and automatic differentiation.

However, this approach introduces a major hurdle: the resulting non-convex landscape is often riddled with "bad" local minima. Solvers frequently converge on points that are either fractional (e.g., $x=0.5$) or violate the problem's strict constraints.

The Problem with Naive Penalties

The common intuition to fix infeasible solutions is simply to "crank up the penalty weight" for constraint violations. This paper proves that this intuition is fundamentally flawed. Even with an infinite penalty weight, a gradient-based solver can get trapped at a boundary where the geometry of the penalty function points the wrong way, leading to useless, infeasible solutions.

A Unified Criterion for Local Correctness

To bridge the gap between discrete logic and scalable continuous optimization, the authors propose a theoretical "safety manual." They establish a Unified Criterion for Local Correctness, proving that if a quadratic penalty $V(z)$ satisfies three specific structural conditions, every local minimizer of the relaxed problem is guaranteed to be both binary and feasible (given a sufficiently large, finite penalty weight $\gamma$).

  1. (C1) Diagonal-free structure: The penalty must not contain $x_i^2$ terms for core variables. This ensures that no two interacting variables can simultaneously "float" in the interior of the continuous box $[0, 1]$.
  2. (C2) Integer-valued gradients: The coefficients must be integers. Combined with C1, this ensures the gradient at any interior point is an integer, pushing the solution toward the corners of the box.
  3. (C3) Local repairability: From any infeasible binary point, there must exist a direction that strictly decreases the penalty, preventing the solver from getting stuck in flat regions of the landscape.

Theory-Guided Redesign and Key Insights

Applying these rules, the authors redesign standard formulations for Open-Pit Mining, 0-1 Knapsack, and the Traveling Salesman Problem (TSP).

  • Geometry over Magnitude: The shape of the penalty function matters more than its size. For instance, the authors' "Ancestor formulation" for mining fixes naive traps by ensuring the gradient always points toward feasibility.
  • The Power of Diagonal Cancellation: By mathematically removing $x_i^2$ terms (which are redundant in the binary domain since $x_i^2 = x_i$), the interior of the continuous box is "cleaned up," making it impossible for the solver to settle on fractional values.
  • Local vs. Global Focus: While finding the global optimum remains NP-hard, guaranteeing local correctness allows the safe use of fast, scalable tools like Adam or Projected Gradient Descent (PGD).

Empirical Validation and Results

The researchers validated their theory across standard benchmarks, including MineLib, kplib, TSPLIB, and Erdős–Rényi Graphs.

  • 100% Reliability: The "theory-guided" formulations achieved 100% binarity and feasibility across all trials for Open-Pit Mining, Knapsack, and TSP. In contrast, naive formulations frequently failed, often returning 0% feasible solutions despite massive penalties.
  • Competitive with Commercial Solvers: On the Maximum Independent Set (MIS) problem, a simple PGD solver using the authors' formulation found larger independent sets than Gurobi (a world-class commercial discrete solver) when both were given a 5-minute time budget on large graphs.
  • GPU Scalability: The continuous approach enables highly parallel "batched" restarts on a single GPU, drastically improving the probability of finding high-quality solutions quickly compared to traditional heuristics.

Limitations and Future Directions

While powerful, the approach has limitations. It guarantees a valid local solution, not necessarily the global optimum. Furthermore, theoretical penalty thresholds can sometimes be extremely high (e.g., $10^{16}$), risking numerical precision issues in standard 32-bit floating-point calculations. Finally, while the diagonal cancellation trick works beautifully for the 0-1 knapsack with binary coefficients, more complex "over-corrected" penalties are required for general integer coefficients, presenting an area for future simplification.

Summary updated

BibTeX
@inproceedings{huang2026local,
  author = {Cheng-Han Huang and Yongliang Sun and Chaoyan Huang and Ismail Alkhouri and Rongrong Wang},
  title = {{Local Minima in Quadratic-Penalty Relaxations of Binary Linear Programs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=BPZunjhIol},
}
Figure