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

An Exact Penalty Method for Binary Optimization Based on MPEC Formulation

Ganzhao Yuan, Bernard Ghanem

Binary optimization problems, where variables are constrained to discrete values like $\{-1, +1\}$, are a cornerstone of many applications in machine learning and computer vision, including image segmentation, graph bisection, and social network analysis. However, the combinatorial nature of these problems typically leads to NP-hardness, forcing a choice between sub-optimal relaxation methods and computationally expensive search-based techniques. This paper, presented at AAAI 2017, introduces a novel continuous optimization framework, MPEC-EPM, that bridges this gap.

The MPEC Formulation

The authors propose a "middle way" by reformulating the discrete binary constraint into a continuous one using Mathematical Programming with Equilibrium Constraints (MPEC). Specifically, they prove that the constraint $x \in \{-1, +1\}^n$ is equivalent to the intersection of a box constraint $-1 \le x \le 1$, a spherical constraint $\|v\|_2^2 \le n$, and a complementarity (equilibrium) constraint $x^T v = n$.

Comparison of various relaxation and equivalent optimization methods for binary constraints.

This reformulation allows the discrete problem to be treated with continuous optimization techniques. The complementarity constraint is handled via an exact penalty method, where the objective function becomes: $$J_\rho(x, v) = f(x) + \rho(n - x^T v)$$

A key theoretical contribution is the proof that this penalty is "exact": for a sufficiently large but finite penalty parameter $\rho$, the local and global minima of the penalized continuous problem are identical to those of the original binary problem. This avoids the numerical instability often found in standard penalty methods that require $\rho$ to approach infinity.

The MPEC-EPM Algorithm

The proposed algorithm, MPEC-EPM, solves the penalized problem through an alternating minimization strategy. In the primal step, the auxiliary variable $v$ is fixed, and the problem is solved for $x$ using convex optimization tools like Nesterov’s proximal gradient method. In the dual step, $x$ is fixed, and $v$ is updated using a simple closed-form solution.

A significant advantage of this approach is its initialization. By starting with $v=0$, the first iteration effectively solves a standard Linear Programming (LP) relaxation, providing a robust starting point for the subsequent non-convex optimization stages. This ensures that the algorithm begins with a high-quality global perspective before refining the solution toward binary feasibility.

Experimental Evaluation

The method was evaluated on the task of Dense Subgraph Discovery (DSD), which aims to find a subset of nodes in a graph with maximum edge density. The authors utilized eight real-world datasets, ranging from small graphs like wordassociation (10k nodes) to massive web graphs like in-2004 (1.3M nodes) and dblp-2011 (1M nodes).

Density of discovered subgraphs versus cardinality for different methods across eight datasets.

Key Results and Discussion

As shown in the performance plots, MPEC-EPM consistently finds subgraphs with higher density than competing methods, including greedy heuristics (FEIGE, RAVI) and other continuous optimization approaches (TPM, L2-box ADMM). The "exactness" of the penalty ensures that the algorithm does not settle for fractional solutions that require sub-optimal rounding, which is a common failure mode for standard relaxations.

In terms of scalability, MPEC-EPM proved capable of handling graphs with millions of nodes and edges, typically converging within 100 iterations. While it is computationally more intensive than a single LP relaxation due to its iterative nature, the quality of the solutions justifies the overhead. For instance, on the in-2004 dataset, the method completed in approximately 17 minutes on standard hardware, outperforming other high-quality solvers in both density and speed.

Conclusion

MPEC-EPM represents a significant step forward in binary optimization. By bridging the gap between continuous and discrete optimization through an MPEC formulation and an exact penalty method, it provides a powerful tool for large-scale NP-hard problems. Future work may involve further optimizing the internal sub-problem solvers and extending the framework to other classes of discrete optimization problems, such as Markov Random Fields or graph matching.

Summary updated

BibTeX
@inproceedings{yuan2017exact,
  author = {Ganzhao Yuan and Bernard Ghanem},
  title = {{An Exact Penalty Method for Binary Optimization Based on MPEC Formulation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10795},
}
Figure