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

📅 2025-05-26
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Neural sketches suffer from poor generalization across data domains, inflexible memory allocation, and a lack of theoretical error guarantees. To address these issues, this paper proposes Lego Sketch—a modular, scalable neural sketch architecture—whose core innovation is the decoupling of memory-augmented neural networks (MANNs) into composable “memory bricks,” enabling dynamic adaptation to varying memory budgets and data stream distributions. We establish, for the first time, a provable upper bound on estimation error for neural sketches. Lego Sketch achieves unified high-accuracy frequency estimation across domains and memory constraints. Extensive experiments on diverse real-world data streams demonstrate that Lego Sketch significantly outperforms classical sketches (e.g., Count-Min, CMS) and state-of-the-art neural sketches: under identical memory budgets, it reduces average relative error by 32%–57%, thereby achieving superior trade-offs among time, space, and accuracy.

Technology Category

Machine Learning: Other Foundations of Machine LearningData Mining & Knowledge Management: Scalability, Parallel & Distributed SystemsCognitive Modeling & Cognitive Systems: Neural Spike Coding

Application Category

Graph Algorithms and Modeling for the Web: Efficient manipulation of static and dynamic Web-related graphsSearch and Retrieval-Augmented AI: Efficiency and scalability of Web search enginesWeb Mining and Content Analysis: Robustness and generalizability of Web mining methods
📝 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 {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.
Problem

Research questions and friction points this paper is trying to address.

Enhancing sketch scalability for diverse data domains
Improving space-accuracy trade-offs in neural sketches
Dynamic memory coordination for varying space budgets
Innovation

Methods, ideas, or system contributions that make the work stand out.

Scalable MANN architecture for sketches
Dynamic coordination of memory bricks
Superior space-accuracy trade-offs
🔎 Similar Papers
No similar papers found.
Y
Yuan Feng
School of Computer Science, University of Science and Technology of China (USTC), China; Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC, China
Y
Yukun Cao
School of Computer Science, University of Science and Technology of China (USTC), China; Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC, China
H
Hairu Wang
School of Computer Science, University of Science and Technology of China (USTC), China; Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC, China
X
Xike Xie
School of Biomedical Engineering, USTC, China; Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC, China
S
S. K. Zhou
School of Biomedical Engineering, USTC, China; Data Darkness Lab, MIRACLE Center, Suzhou Institute for Advanced Research, USTC, China