Skip to main content
QUICK REVIEW

[Paper Review] Fast and Accurate Least-Mean-Squares Solvers

Alaa Maalouf, Ibrahim Jubran|arXiv (Cornell University)|Jun 11, 2019
Sparse and Compressive Sensing TechniquesEngineering30 references10 citations
TL;DR

This paper proposes a novel, fast, and numerically stable algorithm for computing a weighted subset of $ d+1 $ vectors from $ n $ input vectors that preserves the sum, leveraging a fusion of sketches and coresets. It achieves $ O(nd) $ time complexity—significantly faster than the $ O(n^2d^2) $ time of Carathéodory's original theorem—enabling up to 100x speedup in LMS solvers like those in scikit-learn while maintaining high accuracy.

ABSTRACT

Least-mean squares (LMS) solvers such as Linear / Ridge / Lasso-Regression, SVD and Elastic-Net not only solve fundamental machine learning problems, but are also the building blocks in a variety of other methods, such as decision trees and matrix factorizations. We suggest an algorithm that gets a finite set of $n$ $d$-dimensional real vectors and returns a weighted subset of $d+1$ vectors whose sum is \emph{exactly} the same. The proof in Caratheodory's Theorem (1907) computes such a subset in $O(n^2d^2)$ time and thus not used in practice. Our algorithm computes this subset in $O(nd+d^4\log{n})$ time, using $O(\log n)$ calls to Caratheodory's construction on small but "smart" subsets. This is based on a novel paradigm of fusion between different data summarization techniques, known as sketches and coresets. For large values of $d$, we suggest a faster construction that takes $O(nd)$ time (linear in the input's size) and returns a weighted subset of $O(d)$ sparsified input points. Here, sparsified point means that some of its entries were replaced by zeroes. As an example application, we show how it can be used to boost the performance of existing LMS solvers, such as those in scikit-learn library, up to x100. Generalization for streaming and distributed (big) data is trivial. Extensive experimental results and complete open source code are also provided.

Motivation & Objective

  • To address the high computational cost and numerical instability of traditional least-mean-squares (LMS) solvers such as linear, ridge, and lasso regression.
  • To accelerate the application of Carathéodory's Theorem, which guarantees a subset of $ d+1 $ vectors summing to the same total, from $ O(n^2d^2) $ to $ O(nd) $ time.
  • To improve numerical stability in GPU and 32-bit floating-point environments by minimizing error accumulation during covariance matrix computation.
  • To enable efficient, scalable, and distributed processing of large-scale and streaming data by reducing input size via coresets without loss of accuracy.

Proposed method

  • Fuses sketching and coreset techniques to compute a weighted subset of $ d+1 $ vectors that exactly preserves the sum of the original $ n $ vectors, based on Carathéodory's Theorem.
  • Uses $ O(\log n) $ calls to Carathéodory's construction on small, intelligently selected subsets to achieve $ O(nd + d^4 \log n) $ time complexity.
  • Introduces a linear-time $ O(nd) $ variant for large $ n $, returning a sparse weighted subset of $ O(d) $ points where some entries are zeroed out.
  • Applies the computed coreset $ S $ to replace the original data matrix $ A $ in LMS solvers, preserving the covariance matrix $ A^T A $.
  • Employs SVD on the reduced coreset $ S $ instead of the full $ A $, significantly reducing computation time and numerical error.
  • Uses a two-stage sketching approach with parameters $ k_1 = 2d' + 2 $, $ k_2 = \lceil (d+1)^2 / d' \rceil $, and $ \rho = 0.5 $ to balance accuracy and efficiency.

Experimental results

Research questions

  • RQ1Can Carathéodory's Theorem be applied in practice by reducing its $ O(n^2d^2) $ time complexity to near-linear $ O(nd) $?
  • RQ2Can the fusion of sketches and coresets produce a numerically stable, fast, and accurate alternative to traditional LMS solvers?
  • RQ3To what extent can the coreset-based approach boost the performance of existing LMS solvers like those in scikit-learn?
  • RQ4How does the method scale in terms of time and accuracy across different data sizes, dimensions, and floating-point precisions?
  • RQ5Can the framework be extended to streaming, distributed, and GPU-accelerated environments with minimal overhead?

Key findings

  • The proposed algorithm computes a Carathéodory subset in $ O(nd + d^4 \log n) $ time, a significant improvement over the $ O(n^2d^2) $ time of the original theorem.
  • For large $ n $, the algorithm achieves $ O(nd) $ time complexity, linear in the input size, enabling near-real-time processing of high-dimensional data.
  • The method boosts the performance of existing LMS solvers, such as those in scikit-learn, by up to 100x in runtime while maintaining or improving numerical accuracy.
  • Experiments show that the coreset-based approach reduces numerical error compared to SKETCH + SVD, especially in 32-bit floating-point environments where error accumulation is high.
  • The framework generalizes trivially to streaming and distributed data, with minimal changes to the core algorithm.
  • Extensive experiments on synthetic and real datasets confirm the method’s robustness across varying dimensions, data sizes, and distributions, with error histograms showing tight concentration around zero.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.