A Randomized Algorithm to Solve Reduced Rank Operator Regression

Giacomo Turri, Vladimir Kostic, Pietro Novelli, Massimiliano Pontil

Abstract

Reduced Rank Regression (RRR) is a fundamental technique for finding low-rank linear mappings between high-dimensional spaces, yet it faces significant computational bottlenecks when applied to large-scale or infinite-dimensional problems. This paper introduces Randomized Reduced Rank Regression ($R^4$), an algorithm that leverages Gaussian sketching to approximate the range of target operators. By replacing exact, computationally expensive generalized eigenvalue solvers with randomized approximations, $R^4$ achieves up to a 1,000x speedup on massive neuroscience datasets while maintaining predictive accuracy nearly identical to exact methods. We provide both primal and dual variants of the algorithm, demonstrating its versatility across various feature-to-sample ratios.

Introduction

In many modern machine learning applications—ranging from the prediction of neural activity to the modeling of complex dynamical systems—researchers seek to identify linear operators between high-dimensional spaces. A common assumption is that these relationships are governed by a low-rank structure, making Reduced Rank Regression (RRR) a natural choice.

However, RRR becomes computationally prohibitive as the number of data points ($n$) or features increases, particularly in the "infinite-dimensional" regime common in kernel methods. The standard approach requires solving a Generalized Eigenvalue Problem (GEP). Classical iterative solvers, such as the Arnoldi method, often suffer from slow convergence and high memory overhead when dealing with ill-conditioned data. The $R^4$ algorithm is designed to break this bottleneck by utilizing randomized numerical linear algebra to approximate the solution without sacrificing theoretical guarantees.

The $R^4$ Algorithm

The core innovation of $R^4$ is the application of Gaussian sketching to approximate the operator's range. Instead of performing an exhaustive eigendecomposition on full covariance matrices, the algorithm projects the problem onto a significantly smaller random subspace.

Key Technical Features

  • Sketching Operators: By using a Gaussian matrix to define a reduced subspace, the algorithm avoids the $O(n^3)$ or $O(d^3)$ complexity associated with exact solvers.
  • Primal and Dual Variants: The authors provide two implementations: Primal $R^4$, optimized for scenarios where the feature dimension is smaller than the sample size, and Dual $R^4$, tailored for kernel settings where samples are fewer than features.
  • Elimination of Operator Square Roots: A significant challenge in operator regression is the presence of terms like $C_\gamma^{-1/2}$. The $R^4$ derivation is mathematically structured so that these expensive square root operations cancel out, leaving only standard matrix inversions and multiplications.
  • Power Iterations: To maintain accuracy in datasets where the singular value spectrum decays slowly, the algorithm incorporates power iterations ($p$). This allows the user to sharpen the approximation of the most relevant spectral components by increasing the oversampling parameter ($s$).

Experimental Evaluation

The $R^4$ algorithm was evaluated across three distinct benchmarks to test its speed, accuracy, and spectral fidelity:

  1. Synthetic Multivariate System: Used to verify that the randomized estimator's error bounds align with theoretical predictions.
  2. Natural Scenes Dataset (NSD): A large-scale neuroscience task involving high-resolution fMRI recordings. The goal was to predict brain activity from image embeddings across 73,000 images. This dataset represents a high-dimensional challenge where traditional RRR is often impractical.
  3. Noisy Logistic Map: A dynamical system used to estimate the Koopman operator, testing the algorithm's ability to capture the evolution of a system's state over time.

Results and Discussion

Computational Efficiency

The most striking result is the efficiency gain. On the synthetic benchmark, $R^4$ outperformed SciPy’s optimized Arnoldi iterations by a factor of ~8.6x. On the large-scale NSD fMRI dataset, the speedup was even more pronounced, reaching up to 1252x compared to baseline models. This efficiency allows these models to be trained on standard GPU hardware, which was previously a significant hurdle for high-dimensional RRR.

Predictive and Spectral Accuracy

Despite the use of randomization, $R^4$ maintained high performance. In the fMRI challenge, the $R^3$ model (which $R^4$ approximates) achieved a competitive rank of 21st out of 94 entries. The $r^2$ (squared correlation) values for $R^4$ were virtually indistinguishable from the exact $R^3$ method. Furthermore, in the Koopman operator task, $R^4$ accurately estimated leading eigenvalues, with the Directed Hausdorff Distance (error) vanishing as the training sample size increased.

Conclusion

$R^4$ demonstrates that exact solutions to Generalized Eigenvalue Problems are not always necessary for state-of-the-art generalization in low-rank regression. By sketching the data, $R^4$ captures the essential structure required for high-fidelity prediction at a fraction of the computational cost. Future work may involve extending these randomized techniques to non-square loss functions and integrating $R^4$ with other compression methods like Nyström subsampling to further scale operator regression for the next generation of high-dimensional datasets.

Summary updated

BibTeX
@misc{turri2023randomized,
  author = {Giacomo Turri and Vladimir Kostic and Pietro Novelli and Massimiliano Pontil},
  title = {{A Randomized Algorithm to Solve Reduced Rank Operator Regression}},
  year = {2023},
  eprint = {2312.17348},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.17348},
}
Figure