MaxSketch: Robust Distinct Counting in Streams via Random Projections
Not on the map. Why?
Abstract (arXiv)
Estimating the number of distinct elements in a data stream is well understood when repeated elements are identical. In modern settings, however, observations are high-dimensional and noisy, so repeated instances of the same object are only approximately similar -- for example, different images of the same individual may vary significantly at the pixel level. Classical sketches such as HyperLogLog rely on consistent hash values for identical elements and break down in this regime. Recent work on robust distinct counting in general metric spaces achieves widetildeTheta(√n) memory, which is tight in the worst case. We show that substantially improved memory guarantees are possible under geometric structure common in learned representations. We introduce MaxSketch, a simple max-linear sketch built from random Gaussian projections, and prove that it succeeds in estimating the number of distinct latent objects. Concretely, we show that under this assumption m = widetildeO (log n / varepsilon2) random projections (and hence widetildeO (log n/varepsilon2) memory) suffice to recover the true distinct count within a (1+varepsilon) factor. Experiments on image streams confirm that MaxSketch accurately estimates distinct counts and generalizes beyond the training regime. Our results bridge classical streaming algorithms and modern representation learning, showing how geometric structure can fundamentally reduce the complexity of distinct counting.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 15 of its 34 references that are in the map. First posted on arXiv 15 May 2026.
Builds on
15 of 34 references.
References · 15
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2017Deep Setscited by 1,421
- 2020Prevalence of Neural Collapse during the terminal phase of deep learning trainingcited by 719
- 2021A Geometric Analysis of Neural Collapse with Unconstrained Featurescited by 227
- 2021Neural Collapse Under MSE Loss: Proximity to and Dynamics on the Central Pathcited by 158
- 2022On the Optimization Landscape of Neural Collapse under MSE Loss: Global Optimality with Unconstrained Featurescited by 97
- 2019On the Limitations of Representing Functions on Setscited by 90
- 2020CNN-based Density Estimation and Crowd Counting: A Surveycited by 43
- 2019On Deep Set Learning and the Choice of Aggregationscited by 13
3 more
- 2020Learning Aggregation Functionscited by 13
- 2023Generalised f-Mean Aggregation for Graph Neural Networkscited by 5
- 2018Distinct Sampling on Streaming Data with Near-Duplicatescited by 1
Built on by
Not cited yet.