Abstract
We revisit a formulation technique for inequality constrained optimization problems that has been known for decades: the substitution of squared variables for nonnegative variables. Using this technique, inequality constraints are converted to equality constraints via the introduction of a squared-slack variable. Such formulations have the superficial advantage that inequality constraints can be dispensed with altogether. But there are clear disadvantages, not least being that first-order optimal points for the squared-variable reformulation may not correspond to first-order optimal points for the original problem, because the Lagrange multipliers may have the wrong sign. Extending previous results, this paper shows that points satisfying approximate second-order optimality conditions for the squared-variable reformulation also, under certain conditions, satisfy approximate second-order optimality conditions for the original formulation, and vice versa. Such results allow us to adapt complexity analysis of methods for equality constrained optimization to account for inequality constraints. On the algorithmic side, we examine squared-variable formulations for several interesting problem classes, including bound-constrained quadratic programming, linear programming, and nonnegative matrix factorization. We show that algorithms built on these formulations are surprisingly competitive with standard methods. For linear programming, we examine the relationship between the squared-variable approach and primal-dual interior-point methods.
Introduction
Inequality constraints, typically expressed as $c(x) \ge 0$, are often considered a "necessary evil" in the field of optimization. While equality constraints can be handled relatively elegantly using standard calculus and Lagrange multipliers, inequalities introduce significant combinatorial complexity. Solvers must determine which constraints are "active" (holding as equalities) at the solution, a process that often requires complex logic and branching.
Decades ago, researchers proposed a potential shortcut: replacing nonnegative variables $x \ge 0$ with $x = v^2$ (Direct Square Substitution, or DSS) or converting general inequalities $c(x) \ge 0$ into equalities using squared-slack variables $c(x) - v^2 = 0$ (SSV). By doing so, the problem is transformed into an equality-constrained or even unconstrained problem. However, the optimization community largely abandoned this approach. The primary objections were that squaring variables makes problems "more nonlinear," destroys convexity, and can introduce "spurious" solutions—specifically saddle points where the Lagrange multipliers have the incorrect sign. This paper re-evaluates these objections, providing new theoretical guarantees and practical evidence that the squared-variable approach is more robust and efficient than previously thought.
Methodology and Theoretical Framework
The authors analyze two primary reformulations:
- Direct Square Substitution (DSS): For bound-constrained problems of the form $\min f(x)$ s.t. $x \ge 0$, they substitute $x = v \odot v$ (where $\odot$ denotes the Hadamard product), resulting in an unconstrained problem in terms of $v$.
- Squared-Slack Variables (SSV): For general nonlinear programming (NLP), they introduce a slack variable $v$ such that $c(x) - v \odot v = 0$, converting the inequality into an equality constraint.
Key Theoretical Contributions
A central contribution of this work is the proof of Optimality Equivalence. The authors demonstrate that points satisfying second-order necessary conditions (2N) for the squared formulation correspond to valid solutions for the original problem. Crucially, they extend this proof to approximate conditions, which is essential for practical computation where algorithms rarely reach exact optimality. This equivalence allows researchers to map the well-developed complexity analysis of equality-constrained optimization directly onto inequality-constrained problems.
Furthermore, the paper establishes an Algorithmic Bridge between these formulations and classical methods. They show that applying Sequential Quadratic Programming (SQP) to the squared formulation of a Linear Program (LP) yields search directions remarkably similar to those used in state-of-the-art Primal-Dual Interior-Point methods. Specifically, the SQP step for the squared formulation is almost identical to the standard Interior-Point step, with the $\Delta x$ component being exactly twice as long—a "factor of 2" connection that reveals a deep link between these two disparate methodologies.
Experimental Results
The approach was evaluated across several benchmarks, including random convex Quadratic Programs (QPs), the Netlib collection of real-world Linear Programs, and Nonnegative Matrix Factorization (NMF) instances.
- Nonnegative Matrix Factorization: The squared-variable approach showed significant promise here. Using L-BFGS on the squared formulation outperformed standard Gradient Projection methods by factors of 3x to 15x for medium-accuracy solutions.
- Linear Programming: While the specialized Mehrotra Predictor-Corrector (MPC) remains the standard for high-precision LP, the squared-variable SQP proved surprisingly robust. On the Netlib suite, it solved the majority of problems to reasonable accuracy, typically requiring only 2-4x more iterations than the highly-optimized MPC.
- Robustness and Global Convergence: For convex QPs, the DSS formulation consistently reached global solutions despite the theoretical risk of local minima. For "semialgebraic" functions—a class including most neural networks—the authors note that simple Gradient Descent on the squared formulation will almost always converge to a valid second-order point.
Discussion and Limitations
While the squared-variable formulation is powerful, it is not a universal replacement for existing methods. One primary limitation is numerical precision. The squaring of variables can worsen the conditioning of the problem, making it difficult for solvers to reach extremely high precision (e.g., $10^{-8}$ error) as efficiently as specialized interior-point or active-set solvers.
Additionally, modern Interior-Point methods benefit from decades of heuristic tuning for step-size selection and centering. The squared-variable algorithms presented here lack such specialized tuning, suggesting that their performance could be further improved. Future work may also explore how these formulations behave in identifying active constraint sets in very large-scale problems, potentially combining the simplicity of the squared approach with the precision of classical methods.
Summary updated