ICML 2025poster0 citations

Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams

Yuan Feng, Yukun Cao, Hairu Wang, Xike Xie, S Kevin Zhou

Abstract

Sketches, probabilistic structures for estimating item frequencies in infinite data streams with limited space, are widely used across various domains. Recent studies have shifted the focus from handcrafted sketches to neural sketches, leveraging memory-augmented neural networks (MANNs) to enhance the streaming compression capabilities and achieve better space-accuracy trade-offs. However, existing neural sketches struggle to scale across different data domains and space budgets due to inflexible MANN configurations. In this paper, we introduce a scalable MANN architecture that brings to life the Lego sketch, a novel sketch with superior scalability and accuracy. Much like assembling creations with modular Lego bricks, the Lego sketch dynamically coordinates multiple memory bricks to adapt to various space budgets and diverse data domains. Theoretical analysis and empirical studies demonstrate its scalability and superior space-accuracy trade-offs, outperforming existing handcrafted and neural sketches.

Data StreamsMemory Augmented Neural NetworksData Compression
BibTeX
@inproceedings{
feng2025lego,
title={Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams},
author={Yuan Feng and Yukun Cao and Hairu Wang and Xike Xie and S Kevin Zhou},
booktitle={Forty-second International Conference on Machine Learning},
year={2025},
url={https://openreview.net/forum?id=GPSmbdTZBm}
}
Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams · ICML 2025