Low Rank Approximation using Error Correcting Coding Matrices

Shashanka Ubaru, Arya Mazumdar, Yousef SaadICML 2015

Introduction

In the era of Big Data, simplifying massive matrices into a "low-rank" form is an essential preprocessing step for tasks like Principal Component Analysis (PCA), web search modeling, and face recognition. While randomized algorithms have become the gold standard due to their speed over traditional deterministic methods, they come with significant trade-offs.

This paper introduces a novel approach to low-rank matrix approximations by utilizing matrices derived from Error Correcting Codes (ECC). By replacing standard Gaussian or Fourier-based random matrices with ECC-based ones, the authors achieve a highly efficient sampling process that eliminates typical theoretical overheads, making it particularly robust for "worst-case" data scenarios.

The Bottleneck in Existing Methods

Current randomized methods typically rely on specific types of sampling matrices, each with its own "fine print":

  1. Gaussian Random Matrices: These require generating and storing a massive amount of random numbers, which is computationally expensive and memory-intensive.
  2. Structured Matrices (SRFT/SRHT): While faster, these require sampling $O(k \log k)$ columns to accurately approximate a rank-$k$ matrix. This "log factor" is a theoretical necessity to ensure the algorithm doesn't miss important parts of the data (akin to the "coupon collector’s problem").
  3. Rigid Constraints: Some methods only work if matrix dimensions are powers of two or require complex number arithmetic.

The authors sought a sampling matrix that is easy to generate, uses minimal randomness, and reaches the "order optimal" $O(k)$ sampling rate without the extra log factor.

The ECC Solution

The researchers propose using Error Correcting Coding Matrices—specifically dual BCH codes—as the sampling mechanism. Their prototype algorithm follows the standard randomized SVD framework but swaps in a specialized sampling matrix $\Omega$:

$$\Omega = \sqrt{\frac{2^r}{\ell}} DS\Phi$$

  • $\Phi$ (The Code Matrix): Generated from a linear error-correcting code. The binary codewords (0s and 1s) are mapped to 1s and -1s (BPSK mapping).
  • $D$ (Random Signs): A diagonal matrix of $\pm 1$ to "flatten" the input vectors.
  • $S$ (Downsampler): Randomly selects rows to create the final test matrix.

The "secret sauce" of this method is the dual distance of the code. The authors prove that if the code has a dual distance of at least 3, the resulting matrix is guaranteed to have orthonormal columns and will be well-conditioned, reliably preserving the geometry of the original data.

Key Insights

  • Eliminating the Log Factor: The most significant breakthrough is that ECC matrices do not need the $O(\log k)$ sampling overhead. Because ECC matrices have very low coherence and distinct rows, they naturally avoid the trap of missing non-zero entries in highly sparse matrices, achieving optimal $O(k)$ complexity.
  • Deterministic-ish Randomness: These matrices drastically reduce the need for "true" randomness. Once a code is selected, the matrix structure is fixed; randomness is only needed for the sign flips and row selection.

Experimental Results

The researchers evaluated their method on several real-world datasets from the UFL Sparse Matrix Collection (including Graph Laplacians and Linear Programming matrices) and the AT&T Labs Cambridge database of faces.

Accuracy on Sparse Matrices

In head-to-head tests against Gaussian and SRFT matrices, the dual BCH code matrices performed comparably or better across all tested sparse matrices. Furthermore, when the ratio of the matrix size to the number of samples ($n/\ell$) is high, ECC matrices actually produce lower approximation errors than Gaussian matrices.

Comparison of approximation errors across different datasets and methods.

Face Recognition Performance

In an "Eigenfaces" experiment using the AT&T database, using dual BCH codes for dimensionality reduction yielded fewer incorrect matches than the exact truncated SVD (T-SVD) for certain ranks ($k < 40$). For example, with a rank of 40 and an oversampling parameter of $p=20$, the ECC method resulted in only 8 errors, compared to 6 for the exact SVD and 10 for the SRFT method.

Comparison of the number of incorrect matches in the Eigenfaces experiment.

Limitations and Future Work

  • Computational Speedup: While the paper proves theoretical efficiency and sampling optimality, it lacks extensive benchmarks on the actual wall-clock time speedup of the matrix-matrix product compared to highly optimized BLAS libraries for Gaussian matrices.
  • Code Selection: The study focuses heavily on dual BCH codes. There remains a large pool of candidate matrices from other algebraic and combinatorial codes that haven't been fully explored.
  • Fast Transforms: Many codes can be decoded using Fast Fourier Transforms. This suggests that matrix-matrix products could be accelerated even further in the future by leveraging these specific fast transform techniques.

Summary updated

BibTeX
@inproceedings{ubaru2015low,
  author = {Shashanka Ubaru and Arya Mazumdar and Yousef Saad},
  title = {{Low Rank Approximation using Error Correcting Coding Matrices}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=H1EiuoZdZr},
}
Figure