Two-way kernel matrix puncturing: towards resource-efficient PCA and spectral clustering

Romain Couillet, Florent Chatelain, Nicolas Le Bihan

Abstract

Standard machine learning algorithms like PCA and spectral clustering face significant scalability challenges in the era of massive-scale data. This paper proposes "two-way puncturing," a technique that aggressively sparsifies both raw data and kernel matrices using random Bernoulli masks. Leveraging Random Matrix Theory, the authors prove that high-dimensional datasets exhibit a "performance plateau," allowing for drastic reductions in computational and storage requirements without sacrificing accuracy.

Introduction

As data volumes in fields like astrophysics and web mining continue to explode, traditional tools like Principal Component Analysis (PCA) and spectral clustering become computationally prohibitive. While existing methods often attempt to reduce either the number of features or data points, they frequently require prior knowledge of data structure. This paper investigates whether both the raw data and the similarity (kernel) matrix can be simultaneously sparsified—a process termed "two-way puncturing"—while maintaining algorithmic integrity.

Methodology: Two-Way Puncturing

The authors introduce a model that applies two random Bernoulli masks to the data pipeline:

  1. Data Puncturing (Mask $S$): Randomly deletes entries in the raw data matrix $X$, reducing storage overhead.
  2. Kernel Puncturing (Mask $B$): Randomly deletes entries in the final kernel matrix $K$, minimizing the number of inner products required.

The resulting punctured kernel is expressed as: $$K = \frac{1}{p} [(X \odot S)^H (X \odot S)] \odot B$$

To analyze this system, the authors utilize Random Matrix Theory (RMT) to track eigenvalue and eigenvector behavior as dimensions tend toward infinity. This allows for the identification of a "phase transition"—the critical point where meaningful signal emerges from noise.

Key Insights

The Superiority of Puncturing over Subsampling

A core finding is that "puncturing" (retaining a fraction of all entries) is theoretically superior to "subsampling" (retaining all entries for a fraction of data points). Puncturing preserves the global structure of the dataset more effectively, enabling successful classification in regimes where subsampling fails.

Figure 1: Comparison of classification feasibility between puncturing ($K$) and subsampling ($K_{sub}$). Puncturing allows for successful classification across a much broader range of sparsity $\epsilon$.

The Performance Plateau

The research reveals a counter-intuitive "plateau" effect: performance does not degrade linearly with information loss. Instead, there is a wide range of puncturing intensities where accuracy remains virtually unchanged. Only after crossing a specific "avalanche" threshold does performance plummet. This suggests that for many high-dimensional tasks, efficiency gains are essentially "free."

Results and Empirical Validation

The authors derived a closed-form polynomial to predict the failure point of PCA or clustering based on puncturing intensities ($\epsilon_S, \epsilon_B$). Experiments on synthetic Gaussian mixtures, Fashion-MNIST, and BigGAN-generated images confirmed these theoretical predictions.

Figure 3: Theoretical alignment $\zeta$ as a function of data dimensions $\ell$, demonstrating the sharp phase transition where signal emerges.

Key results include:

  • Computational Efficiency: Potential for 10x to 100x reduction in kernel matrix calculations.
  • Data Decorrelation: Intensive puncturing helps real-world, highly correlated data (like images) behave more like idealized mathematical models, improving the accuracy of theoretical predictions.

Conclusion

Two-way puncturing offers a robust framework for resource-efficient machine learning. While current software optimizations for sparse matrices favor block sparsity, this work provides the theoretical foundation for next-generation implementations that could significantly lower the barriers to processing massive datasets. Future work may extend this logic to Support Vector Machines and neural network dynamics.

Summary updated

BibTeX
@inproceedings{couillet2021two,
  author = {Romain Couillet and Florent Chatelain and Nicolas Le Bihan},
  title = {{Two-way kernel matrix puncturing: towards resource-efficient PCA and spectral clustering}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
}
Figure