Fast and Accurate Least-Mean-Squares Solvers

Alaa Maalouf, Ibrahim Jubran, Dan Feldman
6/11/2019
cs.LGstat.ML

Official code: ibramjub/Fast-and-Accurate-Least-Mean-Squares-Solvers (76 stars, Python, MIT, last commit 2020-04-09).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of the algorithms presented in the paper "Fast and Accurate Least-Mean-Squares Solvers".

7611PythonOct 16, 20196 years agoMIT

Similar Papers

Cite this paper

@article{maalouf2019fast,
  title  = {Fast and Accurate Least-Mean-Squares Solvers},
  author = {Alaa Maalouf and Ibrahim Jubran and Dan Feldman},
  year   = {2019},
  eprint = {1906.04705},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.04705}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.04705.svg)](https://codeofpaper.com/paper/1906.04705)

Discussion