Hardness of Low Rank Approximation of Entrywise Transformed Matrix Products

Uri Stemmer, Xingyou Song, Arijit Bishnu, Richard Y Zhang

Abstract

Low Rank Approximation (LRA) is a fundamental tool in machine learning, yet its computational complexity for entrywise transformed matrix products $A = f(UV)$ has remained only partially understood. This paper establishes the fundamental limits of LRA in this context, proving that for a broad class of functions, finding a rank-$k$ approximation requires $\Omega(n^{2-o(1)})$ time unless specific conditions, such as positive semi-definiteness (PSD), are met. By reducing the Orthogonal Vectors Problem (OVP) to LRA, the authors demonstrate that sub-quadratic algorithms are unlikely for general non-linear transformations. Conversely, the paper introduces new sub-quadratic algorithms for polynomial transformations, highlighting a sharp distinction between the complexity of relative and additive error guarantees.

Introduction

Low Rank Approximation (LRA) serves as a cornerstone for modern data science, powering applications from Principal Component Analysis (PCA) to the acceleration of kernel methods and Transformer attention mechanisms. In many contemporary settings, the matrix of interest $A$ is not directly available in low-rank form but is instead generated by applying a non-linear transformation $f$ to the entries of a low-rank product: $A_{ij} = f(u_i \cdot v_j)$.

While the underlying product $UV$ is low-rank by construction, the transformation $f$ can significantly increase the rank of the resulting matrix $A$. The central challenge addressed in this research is whether a rank-$k$ approximation of $f(UV)$ can be computed in sub-quadratic time—specifically, faster than the $O(n^2)$ time required to simply write down the matrix $A$. Previous literature established that sub-quadratic LRA is possible when $U=V^\top$ and $f$ is a PSD kernel. This paper investigates whether these conditions are strictly necessary and maps the complexity landscape for a wider class of functions.

Complexity and Hardness Reductions

The authors utilize conditional hardness reductions to establish lower bounds on the time complexity of LRA. By invoking the Strong Exponential Time Hypothesis (SETH), they demonstrate that a sub-quadratic algorithm for LRA would imply a breakthrough in solving the Orthogonal Vectors Problem (OVP) and the Maximum Inner Product (Max-IP) problem.

The "Flat" Vector Trick

A key technical contribution is the use of leverage score analysis to lower-bound the complexity of LRA. The reduction from OVP relies on the insight that the existence of orthogonal pairs in an input instance manifests as detectable, high-leverage-score structures in the column span of the transformed matrix. Specifically, the authors show that for functions dominated by an odd-degree Taylor term (such as $\log(1+|x|)$), any relative error LRA must capture these sparse structures, necessitating $\Omega(n^{2-o(1)})$ time.

Algorithmic Contributions

On the positive side, the paper develops new algorithms for cases where sub-quadratic time is achievable, particularly for polynomial transformations $f(x) = x^p$. The researchers distinguish between two types of error guarantees:

  1. Relative Error: The authors provide an algorithm running in $O(n \cdot \text{poly}(2^p, k, 1/\epsilon))$ time. While linear in $n$, the complexity is exponential in the degree $p$.
  2. Additive Error: By utilizing TensorSketch—a specialized sketching technique for polynomial kernels—the authors achieve a significantly faster runtime of $O(n \cdot \text{poly}(p, k, 1/\epsilon))$. This avoids the "curse of dimensionality" associated with high-degree polynomials.

These results suggest that the difficulty of LRA is highly sensitive to the type of error guarantee required and the specific structure of the transformation function.

Key Insights

The Necessity of PSD Structure

The research demonstrates that the efficiency of LRA for kernels is not merely a property of the function $f$, but is intrinsically tied to the Positive Semi-Definite (PSD) structure. If the symmetry $U = V^\top$ is broken or if $f$ is not a PSD kernel, the problem generally reverts to quadratic complexity.

LRA vs. Matrix-Vector Products

An unexpected finding is that LRA is, in some respects, "easier" than computing a matrix-vector product $f(UV)z$. The lower bounds established for LRA imply that even the simpler task of matrix-vector multiplication requires $\Omega(n^{2-o(1)})$ time for a wide class of functions. This suggests that LRA algorithms can sometimes bypass the bottlenecks inherent in direct matrix-vector operations.

Conclusion and Future Work

This work provides a rigorous theoretical framework for understanding when entrywise transformed matrix products can be efficiently approximated. It confirms that while PSD kernels allow for efficient computation, general non-linear transformations are likely bound by quadratic time constraints under SETH.

Future research may explore whether these hardness results extend to more complex architectures, such as multi-layer neural networks, or if specific non-PSD functions possess unique structural properties that might still permit sub-quadratic LRA. Additionally, while the provided algorithms are theoretically linear in $n$, optimizing the polynomial dependencies on $k$ and $1/\epsilon$ remains a vital step for practical implementation.

Summary updated

BibTeX
@inproceedings{stemmer2023hardness,
  author = {Uri Stemmer and Xingyou Song and Arijit Bishnu and Richard Y Zhang},
  title = {{Hardness of Low Rank Approximation of Entrywise Transformed Matrix Products}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=LCwToX315b},
}
Figure