A simple preprocessing algorithm for semidefinite programming

Preston Faulk, Gábor Pataki, Quoc Tran-DinharXiv 2016 · DOI

Abstract: We propose a very simple preprocessing algorithm for semidefinite programming. Our algorithm inspects the constraints of the problem, deletes redundant rows and columns in the constraints, and reduces the size of the variable matrix. It often detects infeasibility. Our algorithm does not rely on any optimization solver: the only subroutine it needs is Cholesky factorization, hence it can be implemented with a few lines of code in machine precision. We present computational results on a set of problems arising mostly from polynomial optimization.

Introduction

Semidefinite Programming (SDP) is a powerful tool used in everything from control theory to combinatorial optimization. However, real-world SDP instances—especially those generated by automated modeling languages—are often "messy." They frequently contain redundant constraints or are outright infeasible.

Standard SDP solvers struggle with these issues. Redundancies can lead to numerical instability, while infeasibility is often only detected after a long, computationally expensive "fail." While "facial reduction" algorithms exist to clean up these problems, they usually require solving other optimization sub-problems (like Linear Programs or smaller SDPs) just to preprocess the main one. This research proposes a way to get these benefits "on the cheap," using basic linear algebra instead of a full-blown solver.

Methods

The core of the proposed approach is a "Basic Step" that relies on a fundamental property of positive semidefinite (psd) matrices: if the diagonal entry of a psd matrix is zero, the entire corresponding row and column must also be zero.

The algorithm, dubbed FPT, works as follows:

  1. Inspection: It looks for a constraint in the form $A_i \bullet X = b_i$.
  2. Transformation: It checks if the constraint matrix $A_i$ (or its negative) can be permuted into a block-diagonal form $\begin{pmatrix} D & 0 \\ 0 & 0 \end{pmatrix}$ where $D$ is a positive definite matrix and the scalar $b$ is $\le 0$.
  3. Decision:
    • If $b < 0$, the problem is immediately declared infeasible (because a psd matrix $X$ dotted with a positive definite $D$ cannot yield a negative number).
  4. If $b = 0$, the algorithm realizes that the variables in $X$ corresponding to the block $D$ must be zero. It then deletes that constraint and removes the corresponding rows and columns from all other constraint matrices, shrinking the overall problem.

Crucially, the only heavy lifting required is a Cholesky factorization to check if $D$ is positive definite. This is a standard, extremely fast operation available in any linear algebra library, allowing the algorithm to run in machine precision without the overhead of an optimization solver.

Key Results

The authors evaluated the FPT algorithm on a benchmark set of 49 SDP instances sourced from polynomial optimization literature. These problems are notorious for producing large, complex SDPs with significant structural redundancy. The FPT algorithm was compared against more complex "PP" algorithms that utilize Linear Programming sub-solvers.

Comparison of the FPT algorithm against various PP (Permenter-Parrilo) preprocessing variants across 49 benchmark instances.

As shown in the table above, the FPT algorithm is highly effective:

  • Infeasibility Detection: FPT detected infeasibility in 14 out of 49 problems, which is highly competitive with the more complex PP-Primal methods (which found 15–16).
  • Problem Reduction: FPT found some form of reduction in 31 out of 49 instances.
  • Efficiency: The total preprocessing time for all 49 problems was only 33.42 seconds, demonstrating its lightweight nature.
  • Effectiveness: Overall, the preprocessing "helped" (either by detecting infeasibility or significantly improving numerical error measures) in 24 instances.

While the preprocessing only moderately reduced the total solution time (from 253.8s down to 199.2s), its primary value lies in increased reliability and the ability to catch infeasible models early.

Discussion and Future Work

The biggest advantage of this method is that it is solver-free. By sticking to machine-precision linear algebra, it avoids the "chicken and egg" problem of needing a solver to fix a problem for a solver. Furthermore, removing these specific redundancies brings problems closer to being "strictly feasible," which is the gold standard for ensuring that solvers behave predictably and converge quickly.

The current version of the algorithm is somewhat rigid, as it only looks for constraints that can be permuted into a specific block-diagonal form. It does not currently handle linear combinations of constraints, which might reveal even more redundancies. Future work will explore ways to detect redundancies in more general constraint forms ($A \bullet X = b$ where $A \succeq 0$ but not necessarily block-diagonal) to further expand the algorithm's reach.

Summary updated

BibTeX
@misc{faulk2016simple,
  author = {Preston Faulk and Gábor Pataki and Quoc Tran-Dinh},
  title = {{A simple preprocessing algorithm for semidefinite programming}},
  year = {2016},
  eprint = {1608.02300},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1608.02300},
}
Figure