A nearly-linear time algorithm for linear programs with small treewidth: a multiscale representation of robust central path

Sally Dong, Yin Tat Lee, Guanghao Ye

TL;DR

This paper introduces the first nearly-linear time algorithm for solving Linear Programs (LPs) with small treewidth. By representing the "central path" of the optimization problem using a novel multiscale basis—conceptually similar to wavelets—the authors achieve a runtime of $\tilde{O}(n \cdot \tau^2 \log(1/\epsilon))$, where $n$ is the number of variables and $\tau$ is the treewidth, effectively bypassing the traditional bottlenecks of dense matrix operations.

What Problem Does This Paper Address?

Linear Programming is a cornerstone of modern optimization, used in everything from logistics to machine learning. However, solving large LPs remains computationally expensive. General-purpose solvers typically scale with the matrix multiplication exponent (roughly $O(n^{2.37})$), which becomes a massive bottleneck as $n$ grows.

While many real-world LPs are "sparse," sparsity alone isn't always enough to guarantee speed. This paper focuses on a specific structural property called treewidth. Treewidth measures how much a graph (or in this case, the constraint matrix of an LP) resembles a tree. Many practical problems, like those found in the Netlib repository, exhibit sublinear treewidth.

The core challenge is that even if an LP is sparse and has low treewidth, standard algorithms (like Interior Point Methods) require solving linear systems at every iteration. These updates often become "dense," meaning a small change in one variable can force updates across the entire solution vector, destroying the efficiency gains provided by the initial sparsity.

Methods

The authors combine three sophisticated areas of computer science to solve this:

  1. Robust Interior Point Methods (IPMs): They use a variant of the IPM that follows a "central path" toward the optimal solution. Instead of calculating the exact path, they maintain a "robust" approximation that only requires updates when the solution drifts too far.
  2. Multiscale Representation (The "Wavelet" Idea): This is the paper's primary innovation. They represent the solution vector $x$ using a multiscale basis derived from the elimination tree of the matrix's Cholesky factorization. In this basis, even if the solution $x$ changes in every coordinate (densely), the coefficients of the multiscale representation change sparsely.
  3. Sketching and Data Structures: To avoid reading the entire solution vector at every step (which would take $O(n)$ time), they use Johnson-Lindenstrauss sketching. They build a "sampling tree" that allows them to detect which coordinates have changed significantly in $O(\text{poly}(\tau))$ time, rather than $O(n)$.

Datasets

The paper is primarily theoretical, but the authors validate their structural assumptions using the Netlib repository, a standard collection of feasible linear programming instances. By analyzing 109 instances, they demonstrate that many real-world LPs have a treewidth between $n^{1/2}$ and $n^{3/4}$, making their algorithm significantly faster than traditional methods for these cases.

Key Insights and Ideas

  • The Sparsity Illusion: The authors realized that "density" is a matter of perspective. A vector that looks dense in standard coordinates might be sparse when viewed through a multiscale lens. This allows them to process updates in "levels of resolution," much like how image compression uses wavelets.
  • Elimination Trees as Hierarchical Maps: By using the elimination tree from Cholesky decomposition to organize their data structure, they ensure that the algebraic dependencies of the LP are perfectly mirrored in the hierarchy of their multiscale basis.
  • Lazy Detection via Sketching: One of the "aha" moments is using random projections (sketching) to maintain an estimate of the solution's norm. This allows the algorithm to "ignore" most variables and only zoom in on the ones that have changed enough to matter for the optimization path.

Key Results

  • Runtime Complexity: The algorithm solves LPs in $\tilde{O}(n \cdot \tau^2 \log(1/\epsilon))$ time. This is the first algorithm to achieve a polynomial dependence on treewidth while remaining nearly linear in $n$.
  • Optimality: Under the assumption that no fast matrix multiplication is used, this runtime nearly matches the fastest possible time for solving the sub-problem $Ax = b$.
  • Generalization: The authors prove that this technique isn't limited to LPs; it generalizes to a broad class of convex optimization problems (Theorem 1.3).

Limitations and Future Work

  • Treewidth Sensitivity: The algorithm is highly efficient only when the treewidth $\tau$ is small (e.g., constant or polylogarithmic relative to $n$). If the treewidth is large (like in a dense grid graph), the $\tau^2$ factor becomes prohibitive.
  • Implementation Complexity: While theoretically brilliant, the data structures required (sampling trees, persistent multiscale bases, sketching oracles) are highly complex. Translating this into a practical, high-performance solver remains a significant engineering challenge.
  • Technical Correction: The authors acknowledge a subtle error in how the approximation of the solution was maintained in earlier versions (Footnote 7), noting that while a fix exists in subsequent literature, the core conceptual framework of the multiscale representation remains sound.

Summary updated

BibTeX
@inproceedings{dong2021nearly,
  author = {Sally Dong and Yin Tat Lee and Guanghao Ye},
  title = {{A nearly-linear time algorithm for linear programs with small treewidth: a multiscale representation of robust central path}},
  booktitle = {STOC},
  year = {2021},
  url = {https://openreview.net/forum?id=X0IDKxeTVGp},
}
Figure