Computing Lewis Weights to High Precision

Maryam Fazel, Yin Tat Lee, Swati Padmanabhan, Aaron Sidford

Abstract

This paper introduces the first high-precision algorithms for computing $\ell_p$ Lewis weights—a fundamental tool for matrix sketching and optimization—for all constant $p > 0$. By bridging a long-standing gap for $p \ge 4$, the authors provide a path to nearly optimal self-concordant barriers for polytopes, marking a major milestone in the computational complexity of linear programming.

Introduction

In data science and optimization, identifying the most "important" rows of a large matrix is a critical task. Lewis weights provide a sophisticated quantification of this importance, generalizing the concept of leverage scores used in statistical outlier detection. Geometrically, they are deeply connected to the John Ellipsoid, the unique minimum-volume ellipsoid that encloses a set of points.

Despite their mathematical elegance, Lewis weights have been notoriously difficult to compute to high precision—where the error $\epsilon$ decreases exponentially with the number of iterations. Prior to this work, high-precision algorithms were restricted to the range $p \in (0, 4)$. For $p \ge 4$, existing methods were either computationally expensive (polynomial in $1/\epsilon$) or required a massive number of computations per iteration. This research closes that gap, providing a "polylogarithmic" runtime dependence on the desired accuracy.

Methodology

The authors frame the computation of Lewis weights as a convex optimization problem, solved via a novel two-stage iterative approach:

  1. The Rounding Condition: The researchers identified a technical condition involving the ratio of leverage scores to current weights. Geometrically, this ensures an ellipsoid does not become too "pointy" in any single direction.
  2. Corrective Rounding: If the rounding condition is violated, the algorithm executes a "Rounding" procedure to update weights without increasing the overall objective function.
  3. Quasi-Newton Descent: Once the rounding condition is satisfied, the algorithm performs a descent step. The satisfaction of the condition guarantees that this step makes significant, multiplicative progress toward the optimal solution.

The paper details both a parallel version (optimized for depth) and a sequential version (optimized for total work), alongside a "One-Step" algorithm that maintains the rounding condition as an invariant.

Algorithmic Complexity and Comparison

The primary breakthrough of this work is achieving high precision for $p \ge 4$. Unlike previous methods that scaled with $1/\epsilon$, these runtimes scale with $\log(1/\epsilon)$, making it feasible to reach machine-level precision rapidly.

Comparison of Lewis weight computation algorithms across different ranges of $p$.

As shown in the table above, the proposed algorithm (Theorem 1) achieves a depth of $O(p^3 \log(mp/\epsilon))$ for $p \ge 4$, where each iteration is dominated by a leverage score computation. This represents a significant improvement over the polynomial dependence on $1/\epsilon$ found in earlier works like [Lee16].

Key Insights and Impact

  • The Rounding Breakthrough: The bottleneck in previous $p \ge 4$ algorithms was the lack of a "contractive" property. By enforcing a geometric rounding condition, the authors manufactured the contractive behavior necessary for fast convergence.
  • Linear Programming Impact: Computing Lewis weights is a near-optimal reduction from computing leverage scores. Because Lewis weights can be used to build barriers for polytopes, this work provides the first polylogarithmic-depth, polynomial-work algorithm for constructing nearly optimal self-concordant barriers—a long-sought goal in interior-point methods for linear programming.

Limitations and Future Work

While the algorithm achieves high precision, the runtime retains a polynomial dependence on $p$ (e.g., $p^3$). Removing this dependence entirely remains a significant challenge, as it would likely imply a polylogarithmic-depth algorithm for solving all Linear Programs (LPs). Additionally, while theoretically superior, the practical implementation of the "rounding" steps—which involve solving non-linear equations—requires careful balancing of overhead against convergence speed. Future exploration into the performance of these algorithms on modern hardware like GPUs and TPUs remains an open area for research.

Summary updated

BibTeX
@inproceedings{fazel2022computing,
  author = {Maryam Fazel and Yin Tat Lee and Swati Padmanabhan and Aaron Sidford},
  title = {{Computing Lewis Weights to High Precision}},
  booktitle = {SODA},
  year = {2022},
  doi = {10.1137/1.9781611977073.107},
}
Figure