The Complexity of Computing KKT Solutions of Quadratic Programs

John Fearnley, Paul W. Goldberg, Alexandros Hollender, Rahul Savani · DOI

Abstract

This research addresses a fundamental question in computational complexity and optimization: the difficulty of finding a Karush-Kuhn-Tucker (KKT) point for a non-convex quadratic program (QP). While finding the global optimum of such programs is known to be NP-hard, the complexity of finding a local stationary point—specifically a KKT point—has remained an open question. This paper proves that finding a KKT point for a non-convex QP is CLS-complete. This result demonstrates that even for the simplest non-linear optimization problems involving only degree-2 polynomials, finding a point satisfying basic local optimality conditions is as difficult as any problem in the class of Continuous Local Search (CLS).

Introduction

Quadratic Programming (QP) is a foundational tool in mathematical optimization, with applications spanning machine learning, structural engineering, and economics. In the non-convex setting, finding a global minimum is a classically NP-hard problem. Consequently, practitioners typically aim for a KKT point—a point where no feasible descent direction exists.

Because a KKT point is guaranteed to exist for any QP over a bounded domain (such as a box $[0, 1]^n$), the problem belongs to the complexity class TFNP (Total Function NP). Problems in TFNP are not expected to be NP-hard, yet they can still be computationally intractable. Previous research established that finding KKT points for degree-5 polynomials is CLS-complete; however, the complexity for the ubiquitous degree-2 case remained unresolved until this work.

Methodology

The authors establish CLS-completeness through a sophisticated two-step reduction that maps complex computational structures into quadratic objective functions.

1. Circuit to QP Reduction

The reduction begins by translating a "linear arithmetic circuit"—a model of computation using gates for addition, subtraction, and truncation—into a quadratic polynomial. The core of this step is the Linear Backpropagation Lemma. The authors construct a quadratic objective function designed such that its KKT conditions effectively execute a "backpropagation" pass. This forces the variables to represent the gradient of the function computed by the circuit, effectively embedding the circuit's logic into the optimization landscape.

2. Robust Mesa Construction

To prove CLS-hardness, the authors reduce from a known hard problem involving the search for KKT points on a 2D grid. They utilize "mesa functions"—functions characterized by flat tops and steep sides—to interpolate smooth functions onto the grid structure.

3. The Halved-Gradient Trick

A primary challenge in complexity reductions for continuous problems is numerical stability. Small perturbations in circuit gates could potentially create "spurious" KKT points that do not correspond to solutions of the original problem. To mitigate this, the authors introduce a "halved-gradient" technique. This ensures the construction is robust against small errors, guaranteeing that any KKT point identified in the reduction is a valid solution to the underlying hard problem.

Key Insights

The Expressive Power of Degree 2

The most significant insight of this work is that the interaction between just two variables (e.g., $x_i \cdot x_j$) is sufficient to capture the full complexity of continuous local search. This proves that higher-degree polynomials are not required to make local optimization computationally difficult.

Optimization as Computation

The paper reinforces a powerful paradigm: an optimization landscape can be "programmed" to perform complex calculations. By carefully constructing a quadratic objective, the search for a KKT point becomes equivalent to verifying the output of a complex arithmetic circuit.

Total Function Robustness

In the context of TFNP, reductions must be "total," meaning they cannot fail to produce a solution. The authors' focus on making the reduction robust to small perturbations via the mesa construction is what allows the proof to hold for exact KKT solutions, rather than merely approximations.

Results and Implications

The primary result of the paper is the Main Theorem: Computing a KKT point of a quadratic polynomial over the domain $[0, 1]^n$ is complete for the class CLS ($CLS = PPAD \cap PLS$).

This has significant implications for the field of optimization:

  • Algorithmic Limits: Since CLS-complete problems are widely believed to be hard, this result suggests that no polynomial-time algorithm exists for finding KKT points in non-convex QPs unless there is a major collapse in complexity theory.
  • Minimal Constraints: The hardness persists even under the simplest possible constraints: axis-aligned box constraints ($0 \le x_i \le 1$).

Limitations and Future Research

While this work settles the complexity for standard QPs, several avenues for future research remain:

  • Bilinear Programs: The current proof relies on squared terms (e.g., $x_i^2$). It remains unknown whether bilinear programs—where the objective is $x^\top Q y + c^\top x + d^\top y$ without pure quadratic terms—are also CLS-hard.
  • Unary vs. Binary Representation: The reduction currently utilizes binary representation, where coefficients can vary exponentially in size. Future work could investigate if the problem remains hard when coefficients are restricted to small integers (unary representation).
  • Promise Versions: The paper does not address QPs that are guaranteed to have a unique local minimum (which would also be the global minimum). The complexity of such "promise" problems remains an open question.

Summary updated

BibTeX
@inproceedings{fearnley2024complexity,
  author = {John Fearnley and Paul W. Goldberg and Alexandros Hollender and Rahul Savani},
  title = {{The Complexity of Computing KKT Solutions of Quadratic Programs}},
  booktitle = {STOC},
  year = {2024},
  doi = {10.1145/3618260.3649647},
}
Figure