The turnstile data stream model offers the most flexible framework where data can be manipulated dynamically, i.e., rows, columns, and even single entries of an input matrix can be added, deleted, or updated multiple times in a data stream. We develop a novel algorithm for sampling rows of a matrix , proportional to their norm, when is presented in a turnstile data stream. Our algorithm not only returns the set of sampled row indexes, it also returns slightly perturbed rows , and approximates their sampling probabilities up to relative error. When combined with preconditioning techniques, our algorithm extends to leverage score sampling over turnstile data streams. With these properties in place, it allows us to simulate subsampling constructions of coresets for important regression problems to operate over turnstile data streams with very little overhead compared to their respective off-line subsampling algorithms. For logistic regression, our framework yields the first algorithm that achieves a approximation and works in a turnstile data stream using polynomial sketch/subsample size, improving over approximations, or sketch size of previous work. We compare experimentally to plain oblivious sketching and plain leverage score sampling algorithms for and logistic regression.
View on arXiv