Matrix Coherence and the Nystrom Method

Ameet Talwalkar, Afshin Rostamizadeh

TL;DR

The Nyström method is a cornerstone for scaling up large-scale machine learning, but its performance varies wildly across different datasets. This paper identifies matrix coherence—a measure of how information is distributed across a matrix's columns—as the key predictor of Nyström's success, providing new theoretical bounds and empirical evidence that link low coherence to high-accuracy approximations.

What Problem Does This Paper Address?

Many modern machine learning algorithms, like spectral clustering or kernel ridge regression, rely on computing and storing massive $n \times n$ matrices. When $n$ is in the millions, these methods become computationally impossible. The Nyström method offers a workaround by approximating the full matrix using only a small subset of its columns ($l \ll n$).

However, there was a gap in understanding when this method works. Standard theoretical guarantees often relied on complex, non-uniform sampling techniques that are rarely used in practice. Meanwhile, the common practice of uniform random sampling worked great for some datasets (like MNIST) but failed miserably for others. The authors set out to find a data-dependent metric that explains this discrepancy and provides a solid theoretical foundation for uniform sampling in Nyström approximations.

Methods

The authors bridge the gap by introducing the concept of matrix coherence to the Nyström literature, drawing inspiration from compressed sensing and matrix completion.

  • Matrix Coherence: Intuitively, coherence measures how "concentrated" the information in a matrix is. If a matrix is highly coherent (like an identity matrix), its information is hidden in specific entries, making it hard to find via random sampling. If it is incoherent, the information is "spread out," and any random subset of columns is likely to capture the matrix's structure.
  • Theoretical Bounds: The authors derive a novel bound (Theorem 3) showing that for a rank-$r$ matrix, sampling $O(r \mu^2 \log \delta^{-1})$ columns is sufficient for exact reconstruction with high probability, where $\mu$ is the coherence.
  • Controlled Experiments: To isolate the effects of coherence, they generated synthetic datasets where they could independently control the eigenvalue decay (how "low-rank" the matrix is) and the coherence of the singular vectors.

Datasets

The authors evaluated their findings on six diverse datasets, using them to generate rank-100 SPSD (Symmetric Positive Semidefinite) matrices:

  • PIE: Face images.
  • MNIST: Handwritten digits.
  • Essential: Protein data (using RBF kernels).
  • Abalone: Physical measurements of abalones (using RBF kernels).
  • Dexter: Bag-of-words text data.
  • Artificial: Randomly generated features.

Key Insights and Ideas

  • Incoherence is the "Secret Sauce": The paper demonstrates that the Nyström method’s effectiveness isn't just about the matrix being low-rank; it’s about the information being distributed in a way that random sampling can catch it.
  • Explaining the "Abalone" Failure: While Nyström performed perfectly on five of the six datasets, it struggled with the Abalone dataset. The authors showed that Abalone has significantly higher coherence than the others, explaining why uniform sampling failed to capture its structure.
  • Validation of Uniform Sampling: The results suggest that for many real-world datasets, which naturally exhibit low coherence, the simple and efficient practice of uniform sampling is theoretically sound.

Key Results

  • Exact Reconstruction: For incoherent datasets like MNIST and PIE, the Nyström method achieved near-zero reconstruction error as soon as the number of sampled columns ($l$) reached the actual rank ($r=100$).
  • Coherence Growth: The authors found that for incoherent datasets, coherence grows very slowly with dataset size ($O(\sqrt{\log n})$), whereas for problematic datasets like Abalone, it grows much faster.
Figure 1: Mean percent error over 10 trials of Nystr¨om approximations of rank 100 matrices. Left: Results for l ranging from 5 to 200. Right: Detailed view of experimental results for l ranging from 50 to 130.
  • Full-Rank Performance: In experiments with full-rank synthetic matrices, lower coherence consistently led to lower approximation errors across different levels of spectral decay.
Figure 2: Coherence of Datasets. Left: Coherence of rank 100 SPSD matrices used in experiments in Section 4.1. Right: Asymptotic growth of coherence for MNIST and Abalone datasets. Note that coherence values are means over ten trials.

Limitations and Future Work

  • Computational Overhead: Calculating coherence exactly requires a Singular Value Decomposition (SVD), which is exactly what Nyström aims to avoid. The authors note the need for efficient algorithms to estimate coherence quickly.
  • Full-Rank Theory: While the empirical results for full-rank matrices are promising, the current theoretical bounds are strictly for the low-rank setting. Generalizing these bounds to full-rank matrices remains an open research direction.

Summary updated

BibTeX
@misc{talwalkar2014matrix,
  author = {Ameet Talwalkar and Afshin Rostamizadeh},
  title = {{Matrix Coherence and the Nystrom Method}},
  year = {2014},
  eprint = {1408.2044},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1408.2044},
}
Figure