An Approximate, Efficient LP Solver for LP Rounding

Srikrishna Sridhar, Stephen J. Wright, Christopher Ré, Ji Liu, Victor Bittorf, Ce Zhang

Introduction

Solving massive Linear Programs (LPs) to exact optimality is a major bottleneck for machine learning tasks that rely on "LP rounding." This paper introduces Thetis, a solver that trades off unnecessary precision for massive speedups by using a parallelized stochastic coordinate descent method on a quadratic approximation of the LP. The result is a system that produces solutions of comparable quality to commercial solvers like Cplex, but up to 10 times faster.

The Bottleneck of Exact LP Solvers

Many NP-hard combinatorial problems—such as finding the best way to cluster data or resolving entities in text—are solved using a technique called LP rounding. The process generally follows three steps:

  1. Formulate the problem as an Integer Program (where variables must be exactly 0 or 1).
  2. "Relax" it into a Linear Program (where variables can be any fraction between 0 and 1).
  3. Solve the LP and "round" the fractional results back to 0 or 1.

The "Achilles’ heel" of this approach is scale. Modern machine learning datasets are so large that even top-tier commercial solvers like Cplex or Gurobi struggle to solve the relaxed LP efficiently. The authors argue that this exactness is a waste of computational resources: since the final step involves rounding the answer anyway, a perfect, high-precision LP solution is unnecessary. A "crude" but fast approximation is often sufficient to produce the exact same final rounded result.

The Thetis Framework

The authors propose Thetis, a framework specifically tuned for the "relax-then-round" pipeline. It is built on three main technical pillars:

  • Quadratic Programming (QP) Approximation: Instead of solving the LP directly, Thetis transforms it into a regularized quadratic penalty formulation. This makes the problem "smoother" and significantly easier to solve with iterative methods.
  • Stochastic Coordinate Descent (SCD): To solve this QP, the authors employ SCD—an algorithm that picks one variable at a time at random and updates it. While Stochastic Gradient Descent (SGD) is the "go-to" for many ML researchers, it can be slow to converge on these specific problem structures. The authors show that SCD offers a much better theoretical runtime ($O(\epsilon^{-2})$ vs. $O(\epsilon^{-7})$ or worse) for regularized LPs.
  • Asynchronous Parallelism: The algorithm is designed to run across multiple CPU cores simultaneously without expensive locking mechanisms. This allows it to scale seamlessly to problems with tens of millions of variables.

Crucially, the authors use Renegar’s perturbation theory to prove that even if their solver provides an approximate answer, the final rounded solution still maintains strict theoretical quality guarantees. They formalize this with the concept of an oblivious rounding scheme—one that produces a valid result regardless of whether the input was a perfect LP optimum.

Experimental Results

The authors evaluated Thetis on two primary types of problems: Machine Learning tasks (like text chunking and entity resolution) and Combinatorial Graph problems (like Vertex Cover, Multiway Cut, and Maximum Independent Set).

Machine Learning Tasks

Thetis was tested on the CoNLL 2000 text chunking task (using a Skip-chain CRF) and the TAC-KBP 2010 entity resolution task (using a factor graph).

Performance of Thetis vs. Gibbs Sampling on ML tasks.

As shown above, Thetis successfully handled an LP for the CoNLL task with 25 million variables and 51 million non-zeros in the constraint matrix. It achieved F1-scores (0.89) nearly identical to or slightly better than traditional Gibbs sampling (0.88), proving its viability at massive scales.

Combinatorial Graph Problems

Thetis was also evaluated on benchmark graphs (Bhoslib) and large-scale social network graphs from the Stanford Network Analysis Platform (SNAP), including Amazon, DBLP, and Google+.

Comparison of Cplex and Thetis on combinatorial graph problems.

The results highlight Thetis's primary advantage: Speed. Thetis was consistently 3x to 10x faster than Cplex-LP (the linear programming component of the industry standard) across various graph problems. Furthermore, for the vertex cover problem on Bhoslib instances, Thetis produced integral solutions within 4% of the documented optimal solutions, matching the quality of Cplex but in a fraction of the time.

Limitations and Future Directions

While highly effective for its intended use case, Thetis has limitations:

  • High-Precision Needs: Thetis is explicitly designed for rounding. If an application requires a highly accurate fractional solution (e.g., for certain physical simulations or financial models), this approximate approach would likely be unsuitable.
  • Conditioning Sensitivity: The theoretical guarantees depend on the "conditioning" of the LP. If an LP is extremely poorly conditioned (meaning small changes in input lead to massive changes in output), the required penalty parameter $\beta$ might need to be very large, potentially slowing down the solver.

For future work, the authors suggest exploring the Augmented Lagrangian Framework to improve the approximation without needing to manually tune the penalty parameters as heavily.

Summary updated

BibTeX
@inproceedings{sridhar2013approximate,
  author = {Srikrishna Sridhar and Stephen J. Wright and Christopher Ré and Ji Liu and Victor Bittorf and Ce Zhang},
  title = {{An Approximate, Efficient LP Solver for LP Rounding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=B14oudW_-S},
}
Figure