Sketching Datasets for Large-Scale Learning (long version)

Rémi Gribonval, Antoine Chatalic, Nicolas Keriven, Vincent Schellekens, Laurent Jacques, Philip SchniterarXiv 2020

Abstract

Compressive learning is an emerging paradigm that addresses the computational and privacy challenges of Big Data by condensing massive datasets into a compact "sketch." This paper surveys how these sketches, acting as linear measurements of data distributions, enable tasks like clustering, PCA, and Gaussian Mixture Modeling with complexity independent of the original dataset size. We discuss the theoretical foundations, privacy benefits, and empirical successes of this "compress-then-learn" approach.

Introduction: The Big Data Bottleneck

In the era of Big Data, training complex models on billions of samples creates significant computational bottlenecks, requiring immense memory and processing power. Centralizing raw, sensitive data also poses privacy risks. While standard approaches like subsampling or distributed training exist, they often require multiple passes over the raw data.

Compressive learning offers an alternative: a single-pass method that creates a tiny "synopsis" (the sketch) and discards the raw data. Learning then proceeds entirely on this compressed representation, significantly reducing resource requirements and enhancing privacy.

The Compressive Learning Pipeline

The core of compressive learning is a two-phase pipeline that transforms raw data into actionable insights without retaining the original samples.

The two-phase compressive learning pipeline: 1) Sketching the data into a compact vector, and 2) Learning model parameters from the sketch.

1. The Sketching Phase

Each data vector $x_i$ from a dataset of size $n \times d$ is passed through a non-linear feature map $\Phi(x)$, typically using random Fourier features. These transformed vectors are then averaged to produce the sketch $z$: $$z := \frac{1}{n} \sum_{i=1}^n \Phi(x_i)$$ The resulting sketch has a fixed size $m$, where $m \ll nd$, making it highly efficient for storage and transmission.

2. The Learning Phase

Instead of traditional empirical risk minimization on raw data, the algorithm treats learning as an inverse problem. It seeks model parameters $\theta$ such that the sketch of the model's distribution matches the empirical sketch $z$. This phase's complexity depends only on the sketch dimension $m$ and model complexity, not the original sample size $n$.

Applications and Versatility

The framework is versatile, supporting various unsupervised learning tasks. By viewing the sketch as a linear measurement of the underlying probability density function, researchers can apply techniques from compressive sensing to recover "simple" distributions.

Illustrations of (c) Mixture modeling and (d) Clustering, two primary applications of compressive learning.

Key benchmarks include:

  • MNIST Clustering: Summarizing 70,000 images for spectral embedding.
  • Speaker Verification: Compressing 50GB of speech data into a few kilobytes to train a Universal Background Model (GMM).
  • Synthetic Data: Validating theoretical bounds on recovery accuracy for Gaussian mixtures.

Key Insights

  • Distributional Measurement: The sketch $z$ is a linear measurement of the probability density function $p_X$, enabling the use of linear inverse problem toolkits for non-linear learning.
  • Kernel-LRIP: The "Lower Restricted Isometry Property" for kernels provides the theoretical guarantee that the sketching process preserves essential differences between data distributions.
  • Privacy by Design: As an aggregate average, the sketch is naturally resistant to linkage attacks. Adding minimal noise allows for formal Differential Privacy with negligible impact on accuracy.

Empirical Results and Efficiency

Compressive learning achieves massive compression factors. In speaker verification, 50GB was reduced to a few KB without performance loss. For MNIST, memory usage dropped by four orders of magnitude and runtime by 1.5 orders compared to standard algorithms like Lloyd's, while maintaining accuracy. Hardware acceleration using structured random matrices further reduces sketching complexity to $O(m \log d)$.

Limitations and Future Directions

Despite its success, challenges remain. Theoretical sketch size bounds are currently more pessimistic than empirical results. Furthermore, while unsupervised tasks are well-supported, extending this paradigm to supervised learning, such as deep neural network training, remains a primary research frontier. Designing task-optimal feature maps also presents an ongoing opportunity for optimization.

Summary updated

BibTeX
@misc{gribonval2020sketching,
  author = {Rémi Gribonval and Antoine Chatalic and Nicolas Keriven and Vincent Schellekens and Laurent Jacques and Philip Schniter},
  title = {{Sketching Datasets for Large-Scale Learning (long version)}},
  year = {2020},
  eprint = {2008.01839},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.01839},
}
Figure