MaxSketch: Robust Distinct Counting in Streams via Random Projections
Nikos Tsikouras, Constantine Caramanis, Christos Tzamos
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Causality, Privacy & Learning Theory › Intersectional Fairness and Robust Auditing · Type: new method · Keywords: distinct counting, streaming algorithms, random projections, geometric structure, image streams
Summary
MaxSketch uses random Gaussian projections to achieve near-optimal memory for robust distinct counting in high-dimensional noisy streams.
Explained to a 5-year-old
We get many pictures one after another. Sometimes the same person appears many times, but the pictures look a bit different. We want to know how many different people we have seen. The new idea looks at the biggest differences in the pictures and uses a simple rule to count them. This helps us count without using a lot of memory.
Explained to a 5-year-old, longer
In a stream, we receive many items one after another. Some items are the same, but they might look a little different because of noise. Traditional methods assume items are exactly the same, which doesn't work well here. The paper looks at how we can count distinct items when they are only roughly similar. It uses a simple idea: take the biggest difference between items and keep track of that. This helps to tell how many different things have appeared. The method works well on image streams, where each image may vary a bit. It also generalizes to new data it hasn't seen before. The theory shows that with a small amount of memory we can get a good estimate. The experiments confirm that the counting is accurate. The approach bridges classical streaming algorithms with modern representation learning, showing how geometry can reduce complexity.
For a technical reader
The paper addresses distinct counting in noisy, high-dimensional streams where exact equality cannot be assumed. It proposes a max-linear sketch that leverages random Gaussian projections to capture the latent structure of items, achieving tildeO(log n / varepsilon4) memory for (1+varepsilon) accurate estimation. Experiments on image streams validate the approach and its ability to generalize beyond training data.
Problem
Estimating the number of distinct elements in a data stream is difficult when repeated instances are only approximately similar, such as high-dimensional noisy observations, because existing sketches rely on exact equality.
Method
The approach builds a max-linear sketch that projects high-dimensional observations onto random Gaussian vectors and retains the maximum projection per element, enabling distinct count estimation with sublinear memory.
Results
The approach uses tildeO(log n / varepsilon4) random projections to achieve (1+varepsilon) accuracy and demonstrates accurate estimation on image streams.
Contributions
The paper shows that leveraging geometric structure in learned representations yields substantially better memory guarantees for robust distinct counting, provides a near-optimal theoretical bound, and validates the method on image streams.
Limitations and assumptions
The analysis assumes that latent objects exhibit exploitable geometric structure via random projections; validation is limited to image streams, which may restrict generalizability to other data types.
Practical relevance
This work enables more memory-efficient distinct counting for high-dimensional streaming data such as visual embeddings, facilitating scalable analytics in modern applications.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction