paper

A Matrix Factorization Approach in Turnstile Streaming

arXiv:2607.28819

Abstract

We define the -point query problem in data streams. Given a fixed matrix , the goal is to maintain a vector under turnstile updates and answer each query with an estimate satisfying , where . We show that if admits a factorization , where and have space-efficient representations, then there is a streaming algorithm using words of memory. An important special case is the lower-triangular all-ones matrix, which corresponds to the quantiles problem with additive error , where is the database size. Our framework generalizes the dyadic approach of Cormode and Muthukrishnan (J. Algorithms, 2005) for turnstile quantiles, and simplifies and improves the analysis of the state-of-the-art dyadic CountSketch algorithms of Wang et al. (SIGMOD, 2013) and Luo et al. (VLDB, 2016). Our approach is also related to the matrix mechanism of Li et al. (VLDB J., 2015) in differential privacy: given a database and a matrix , the mechanism outputs a private approximation to , with the privacy-error tradeoff governed by a matrix factorization norm of . We also improve the prior lower bound for quantiles with deletions, showing a memory lower bound of words. We also show any factorization has . This lower bound is new, and shows that for quantiles, the dyadic CountSketch is nearly optimal amongst factorization-based approaches.

A Matrix Factorization Approach in Turnstile Streaming · wovepaper