Optimal Iterative Sketching Methods with the Subsampled Randomized Hadamard Transform

Jonathan Lacotte, Sifan Liu, Edgar Dobriban, Mert Pilanci

Introduction

In modern large-scale data analysis, solving overdetermined least-squares problems ($Ax = b$ where $A \in \mathbb{R}^{n \times d}$ and $n \gg d$) presents a significant computational bottleneck. Randomized sketching has emerged as a powerful paradigm to address this, where the data is multiplied by a random matrix $S \in \mathbb{R}^{m \times n}$ to reduce the row dimension to $m \ll n$.

While Gaussian sketching matrices are theoretically well-understood, the Subsampled Randomized Hadamard Transform (SRHT) is preferred in practice due to its $O(nd \log m)$ computational efficiency. However, a "theory-practice gap" has persisted: empirical results often show SRHT performing as well as or better than Gaussian sketches, even when classical theory suggested SRHT required a larger sketch size ($m \approx d \log d$ vs $m \approx d$). This paper provides a rigorous theoretical foundation for SRHT using Asymptotic Random Matrix Theory (RMT), proving that SRHT-based sketching is not only faster but also yields superior convergence rates for iterative solvers.

Theoretical Framework: Asymptotic Random Matrix Theory

The authors characterize the limiting spectral distribution of the sketched matrix $U^\top S^\top S U$ (where $U$ is an orthogonal basis for $A$) as dimensions $n, d, m \to \infty$. The primary tool used is the Stieltjes Transform, which allows for the exact characterization of eigenvalue distributions.

A key challenge is that SRHT matrices possess significant internal structure, violating the independence assumptions of standard RMT. To overcome this, the authors employ the concept of asymptotic freeness and "asymptotically liberating sequences." They prove that in the high-dimensional limit, the structured SRHT behaves identically to a Haar matrix—a perfectly uniform random rotation.

Limiting spectral distribution of Haar matrices across different parameters $\gamma$ and $\xi$.

The SRHT-Haar Equivalence

The most significant insight of this work is the demonstration that SRHT matrices, despite their limited randomness, converge to the same limiting spectrum as Haar matrices. This is crucial because Haar matrices represent the "gold standard" of random projections due to their exact row orthogonality. In contrast, Gaussian matrices only achieve approximate orthogonality, leading to a more "noisy" and spread-out spectrum.

Comparison of empirical densities for SRHT and Haar matrices against the theoretical Marchenko-Pastur law.

As shown in the figures, the empirical density of SRHT closely tracks both the Haar empirical density and the theoretical Marchenko-Pastur prediction. This concentration of eigenvalues directly translates to more stable and predictable performance in downstream algorithms.

Optimal Iterative Hessian Sketching (IHS)

The paper applies this spectral analysis to the Iterative Hessian Sketch (IHS) algorithm. By deriving exact formulas for the first and second inverse moments of the SRHT spectrum, the authors determine the optimal step size and convergence rate for the solver.

Key Findings:

  • Strict Superiority: The convergence rate for SRHT ($\rho_h$) is proven to be strictly better than the rate for Gaussian sketching ($\rho_g$).
  • Complexity Reduction: The analysis shows that for iterative methods, a sketch size of $m \approx d$ is sufficient for SRHT. This eliminates the $\log d$ factor required by previous theoretical bounds, leading to a significant complexity improvement of $O(1/\log d)$ as problem sizes scale.
  • Momentum Analysis: Interestingly, the study finds that adding Heavy-ball momentum does not accelerate the algorithm when "refreshed" sketches (a new $S$ per iteration) are used.

Conclusion

By bridging the gap between theory and practice, this work establishes SRHT as a superior choice for randomized linear algebra, both in terms of computational speed and convergence properties. The exact spectral characterization provided here allows practitioners to set optimal parameters for iterative solvers with confidence. Future work remains in analyzing the "fixed sketch" regime, where a single random matrix is reused across all iterations.

Summary updated

BibTeX
@inproceedings{lacotte2020optimal,
  author = {Jonathan Lacotte and Sifan Liu and Edgar Dobriban and Mert Pilanci},
  title = {{Optimal Iterative Sketching Methods with the Subsampled Randomized Hadamard Transform}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure