Saved in:
Bibliographic Details
Main Authors: Feng, Yuan, Cao, Yukun, Wang, Hairu, Xie, Xike, Zhou, S Kevin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.19561
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913859446505472
author Feng, Yuan
Cao, Yukun
Wang, Hairu
Xie, Xike
Zhou, S Kevin
author_facet Feng, Yuan
Cao, Yukun
Wang, Hairu
Xie, Xike
Zhou, S Kevin
contents 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 {\it 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. Our theoretical analysis guarantees its high scalability and provides the first error bound for neural sketch. Furthermore, extensive experimental evaluations demonstrate that the Lego sketch exhibits superior space-accuracy trade-offs, outperforming existing handcrafted and neural sketches. Our code is available at https://github.com/FFY0/LegoSketch_ICML.
format Preprint
id arxiv_https___arxiv_org_abs_2505_19561
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams
Feng, Yuan
Cao, Yukun
Wang, Hairu
Xie, Xike
Zhou, S Kevin
Machine Learning
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 {\it 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. Our theoretical analysis guarantees its high scalability and provides the first error bound for neural sketch. Furthermore, extensive experimental evaluations demonstrate that the Lego sketch exhibits superior space-accuracy trade-offs, outperforming existing handcrafted and neural sketches. Our code is available at https://github.com/FFY0/LegoSketch_ICML.
title Lego Sketch: A Scalable Memory-augmented Neural Network for Sketching Data Streams
topic Machine Learning
url https://arxiv.org/abs/2505.19561