Distributed Adaptive Sampling for Kernel Matrix Approximation

Daniele Calandriello, Alessandro Lazaric, Michal Valko

Abstract

Most kernel-based methods, such as kernel regression, kernel PCA, ICA, or $k$-means clustering, do not scale to large datasets because constructing and storing the kernel matrix $K_n$ requires $O(n^2)$ space and time. This paper introduces SQUEAK (SeQUEntial Approximation of Kernel matrices) and its distributed counterpart DISQUEAK, which approximate the kernel matrix in a single pass over the data using Ridge Leverage Score (RLS) sampling. These algorithms achieve $\epsilon$-accuracy with memory requirements that scale with the data's effective dimension rather than the total number of samples.

The Kernel Scaling Bottleneck

Kernel methods are powerful tools for capturing non-linear relationships in data. However, they rely on a kernel matrix that stores the similarity between every pair of points. For a dataset of 1 million points, this matrix contains 1 trillion entries, making it impossible to store in standard RAM.

To address this, researchers use Nyström approximations, which represent the full matrix using a small subset of representative points called a "dictionary." The challenge lies in selecting these points efficiently. The most accurate method, Ridge Leverage Score (RLS) sampling, typically requires viewing the entire matrix to determine a point's importance—a classic "chicken-and-egg" problem.

SQUEAK: Sequential Dictionary Construction

SQUEAK breaks this cycle by processing data points one by one in a single pass. For each new point, the algorithm performs two main steps:

  1. Expand Phase: The new point is added to the dictionary.
  2. Shrink Phase: The algorithm uses a novel estimator to re-evaluate the importance of all points currently in the dictionary. Points that have become redundant (because their information is now covered by newer samples) are probabilistically discarded.

This approach relies on the mathematical property of monotonicity of importance: as more data is observed, the relative importance (RLS) of any single point can only stay the same or decrease. By deriving a way to estimate RLS using only the current dictionary, SQUEAK avoids ever constructing the full $n \times n$ matrix.

DISQUEAK: Scaling to Distributed Systems

To handle truly massive datasets, the authors developed DISQUEAK, a parallelized version of the algorithm. DISQUEAK partitions the data across multiple machines, each running a local version of SQUEAK. These local dictionaries are then merged hierarchically.

The hierarchical merging process in DISQUEAK allows for efficient parallel computation across multiple levels (h).

Because RLS estimation only requires local dictionary data, communication between machines is minimized. In this distributed setting, the time complexity drops to $O(\log(n))$, meaning that doubling the dataset size adds only a marginal amount of processing time if additional hardware is available.

Theoretical Performance and Complexity

The authors provide rigorous martingale-based proofs to guarantee that SQUEAK and DISQUEAK maintain high accuracy. Unlike previous methods, SQUEAK does not require prior knowledge of the data's "effective dimension" ($d_{eff}$) and is fully incremental.

Comparison of SQUEAK's time and space complexity against other state-of-the-art Nyström approximation methods.

As shown in the complexity analysis, SQUEAK achieves a dictionary size $|\mathcal{I}_n|$ that scales with $d_{eff}(\gamma)_n / \epsilon^2$, ensuring that memory usage is tied to the actual complexity of the data rather than the number of observations. This makes it feasible for streaming applications where data is seen once and never stored.

Conclusion and Future Directions

SQUEAK and DISQUEAK represent a significant step forward in making kernel methods practical for big data. By combining sequential processing with distributed merging, they provide a scalable, accurate, and memory-efficient framework for kernel matrix approximation. Future work may address non-stationary data streams where the underlying distribution shifts over time, requiring the dictionary to adapt to new types of information dynamically.

Summary updated

BibTeX
@inproceedings{calandriello2017distributed,
  author = {Daniele Calandriello and Alessandro Lazaric and Michal Valko},
  title = {{Distributed Adaptive Sampling for Kernel Matrix Approximation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2017},
  url = {https://openreview.net/forum?id=o3Rh32MlR8M},
}
Figure