atlas

Research map / Architectures and efficiency / RNNs and normalization

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

ICML 2025 · Architectures and efficiency › RNNs and normalization · approach: Dataset condensation and flow estimation · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Lego sketch, a scalable memory-augmented neural sketch that uses normalized multi-hash embeddings, scalable memory bricks, memory scanning, and a self-guided weighting loss to improve space-accuracy trade-offs for frequency estimation over data streams.

Problem

Existing neural sketches (meta-sketches based on MANNs) require retraining when data domains or space budgets change, and their accuracy advantage over handcrafted sketches vanishes at large space budgets.

Approach

Replace domain-specific MLP/CNN embeddings with a normalized multi-hash embedding over a learnable vector, scale memory by stacking independent memory bricks routed by hashing, add a Deep Sets memory-scanning module that reconstructs global stream statistics (n, alpha), and train with a self-guided weighting loss that uses a rule-based min-estimate as guide.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Lego sketch instead of MSLkml · Lkml, 0.6 MBARE: 85% of the errorHelped
Use Lego sketch instead of CMSLkml · Lkml, 0.6 MBARE: 21% of the errorsHelped
Use Lego sketch instead of CSLkml · Lkml, 0.6 MBARE: 26% of the errorsHelped
Use Lego sketch instead of MSLkml · Lkml, 3.6 MBARE: 21% of the errorsHelped
Use Lego sketch instead of CMSLkml · Lkml, 3.6 MBARE: 46% of the errorsHelped
Use Lego sketch instead of CSLkml · Lkml, 3.6 MBARE: 16% of the errorsHelped
Use Lego sketch instead of MSLkml · Lkml, 0.6 MB and 3.6 MBAAE: 97% and 13% of that of MSHelped
Add a learnable embedding vector instead of using a fixed vector (ablation)Lego sketch · Two datasets, higher space budgetsestimation errorHelped
Add L1 normalization to the embedding (ablation)Lego sketch · Two datasets, all space budgetsestimation errorHelped
Add the memory scanning module (ablation)Lego sketch · Two datasets, small space budgetsestimation errorHelped
Use self-guided weighting loss instead of conventional loss L_o (ablation)Lego sketch · Two datasets, larger space budgetsestimation errorHelped
Use Lego sketch instead of MSWiki, CPU Store · Wikithroughput: 6.90 times higherHelped

Surprising findings

Limitations

Experimental setup

Datasets: Aol Lkml Kosarak Wiki Webdocs

Benchmarks: Lkml Kosarak Wiki Webdocs synthetic Zipf streams

Metrics: AAE ARE throughput

Baselines: CM-sketch C-sketch Learned augmented C-sketch Meta-sketch D-CMS

Builds on: Meta-sketch Hash Embeddings Deep Sets Elastic sketch

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy