Learning-Augmented Frequent Directions
Anders Aamand, Justin Y. Chen, Siddharth Gollapudi, Sandeep Silwal, Hao Wu
TL;DR
This work develops a learning-augmented framework for streaming problems that extends beyond one-dimensional frequency estimation to high-dimensional matrix streaming. It introduces a deterministic, learning-enhanced Misra-Gries variant that matches state-of-the-art bounds for frequency estimation under Zipfian data, with an error bound of the form $\Theta\left( \frac{1}{m} \cdot \frac{n}{(\ln d)^2} \right)$. It also generalizes Frequent Directions to incorporate learned priors on the top directions, achieving improved space/accuracy tradeoffs; the perfect-prediction case yields $\Theta\left( \frac{1}{(\ln d)^2} \cdot \frac{\|A\|_F^2}{m} \right)$ for the learned variant, while robust variants (RLFD) ensure worst-case guarantees. The paper demonstrates substantial empirical gains on real datasets, with 1–2 orders of magnitude improvements over non-learned baselines and competitive performance against memory-heavy full-matrix SVD. Overall, the work shows that integrating accurate learned predictions into streaming sketches can yield near-optimal, deterministic, and robust algorithms for both frequency estimation and low-rank matrix sketching.
Abstract
An influential paper of Hsu et al. (ICLR'19) introduced the study of learning-augmented streaming algorithms in the context of frequency estimation. A fundamental problem in the streaming literature, the goal of frequency estimation is to approximate the number of occurrences of items appearing in a long stream of data using only a small amount of memory. Hsu et al. develop a natural framework to combine the worst-case guarantees of popular solutions such as CountMin and CountSketch with learned predictions of high frequency elements. They demonstrate that learning the underlying structure of data can be used to yield better streaming algorithms, both in theory and practice. We simplify and generalize past work on learning-augmented frequency estimation. Our first contribution is a learning-augmented variant of the Misra-Gries algorithm which improves upon the error of learned CountMin and learned CountSketch and achieves the state-of-the-art performance of randomized algorithms (Aamand et al., NeurIPS'23) with a simpler, deterministic algorithm. Our second contribution is to adapt learning-augmentation to a high-dimensional generalization of frequency estimation corresponding to finding important directions (top singular vectors) of a matrix given its rows one-by-one in a stream. We analyze a learning-augmented variant of the Frequent Directions algorithm, extending the theoretical and empirical understanding of learned predictions to matrix streaming.
