Mean Nyström Embeddings for Adaptive Compressive Learning

Antoine Chatalic, Luigi Carratino, Ernesto De Vito, Lorenzo Rosasco

Abstract

Compressive learning is an approach to efficient large-scale learning based on sketching an entire dataset to a single mean embedding (the sketch), i.e., a vector of generalized moments. The learning task is then approximately solved as an inverse problem using an adapted parametric model. Previous works in this context have focused on sketches obtained by averaging random features, which, while universal, can be poorly adapted to the problem at hand. In this paper, we propose and study the idea of performing sketching based on data-dependent Nyström approximation. From a theoretical perspective, we prove that the excess risk can be controlled under a geometric assumption relating the parametric model used to learn from the sketch and the covariance operator associated with the task at hand. Empirically, we show for k-means clustering and Gaussian modeling that for a fixed sketch size, Nyström sketches indeed outperform those built with random features.

Introduction

Scaling machine learning to massive datasets often involves a trade-off between computational cost and accuracy. Compressive Learning (CL) offers a solution: instead of processing every data point during training, the entire dataset is "sketched" into a single, fixed-size vector of generalized moments. Once this sketch is computed, the original data can be discarded, and learning tasks are solved as an inverse problem based only on the sketch.

Traditionally, these sketches are built using Random Fourier Features, which are data-independent. While universal, these random projections are "blind" to the actual distribution of the data. If the random features are not well-aligned with the data's geometry, a very large sketch is required to achieve high accuracy. This research proposes building better, smaller sketches by making them adaptive to the data using the Nyström method.

Methodology

The proposed approach utilizes the Nyström method to create the feature map for sketching. This involves three primary landmark selection strategies:

  1. Uniform: Randomly picking points from the dataset.
  2. Approximate Leverage Scores (ALS): Using the BLESS algorithm to pick points critical for representing the kernel matrix.
  3. Greedy Diversity Sampling: Iteratively picking points that are most distinct from those already selected.

The feature map $\Phi_m(x)$ is defined based on the kernel similarity between a data point $x$ and these landmarks. The final sketch is the average of these feature maps across the whole dataset. To recover the model (e.g., cluster centers), a greedy heuristic called CL-OMP (Compressive Learning Orthogonal Matching Pursuit) is used to match the model's moments to the computed sketch.

Experimental Results

The authors evaluated their approach on synthetic Gaussian Mixture Models (GMM) and real-world datasets including FMA (audio features), MNIST (spectral features), and CIFAR10 (ResNet18 features).

Performance comparison of Nyström-based sketches versus random features across various datasets for k-means (top) and GMM (bottom) tasks.

As shown in the figure above, Nyström-based sketches consistently outperform random features across all datasets and tasks. For k-means clustering (top row), Nyström methods reach the performance of the full-data baseline (red dash-dot line) with sketch sizes $m$ that are significantly smaller than those required for random features. Similarly, in GMM tasks (bottom row), Nyström sketches achieve lower negative log-likelihood (better fit) more efficiently.

Key Insights and Discussion

  • Adaptivity and Efficiency: Nyström sketches are data-dependent. Because landmarks are derived from the data itself, the sketch naturally focuses on the regions where the data resides, allowing for significantly smaller sketch sizes for a fixed accuracy level.
  • Robustness: Nyström sketches are much less sensitive to the choice of kernel bandwidth ($\sigma^2$). While random features often fail if the bandwidth is not perfectly tuned, Nyström's data-driven nature provides a wider range of effective parameters.
  • Sampling Strategies: While greedy sampling often provides the best results, even simple uniform sampling of landmarks significantly outperforms random features in most scenarios.

Conclusion

By replacing data-independent random features with data-dependent Nyström embeddings, compressive learning becomes more efficient and robust. While selecting landmarks adds a minor pre-processing overhead, the resulting reduction in sketch size and improved performance on tasks like k-means and GMM make it a superior choice for large-scale learning. Future work may extend this data-dependent sketching to supervised tasks such as ridge regression or classification.

Summary updated

BibTeX
@inproceedings{chatalic2022mean,
  author = {Antoine Chatalic and Luigi Carratino and Ernesto De Vito and Lorenzo Rosasco},
  title = {{Mean Nyström Embeddings for Adaptive Compressive Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2022},
  url = {https://openreview.net/forum?id=AZWnX-vwNT},
}
Figure