ORCCA: Optimal Randomized Canonical Correlation Analysis

Yinsong Wang, Shahin ShahrampourIEEE TNNLS 2023

TL;DR

This paper introduces ORCCA, a novel method for selecting random features that optimizes performance for Canonical Correlation Analysis (CCA). By proposing a task-specific scoring rule, ORCCA demonstrably outperforms existing random feature selection techniques and even standard Kernel CCA in experiments.

What Problem Does This Paper Address?

Kernel methods are powerful for capturing complex relationships in data, but their computational cost, especially for large datasets, is a major bottleneck. Kernel approximation techniques, like random features, offer a solution by approximating kernel computations. However, existing methods for selecting these random features are often designed for general kernel approximation or supervised learning and may not be optimal for specific tasks like Canonical Correlation Analysis (CCA). CCA aims to find linear projections of two datasets that maximize their correlation, and its kernelized version (KCCA) is computationally expensive. This paper addresses the need for a data-dependent random feature selection strategy specifically tailored to maximize CCA performance, going beyond generic approaches.

Methods

The core contribution is a task-specific scoring rule for selecting random features. This rule is defined by a function $q(\omega) \propto p(\omega)z(\omega)^T B z(\omega)$, where $p(\omega)$ is the prior distribution of random features, $z(\omega)$ is the feature map, and $B$ is a task-specific matrix. The key innovation lies in how $B$ is chosen. For CCA, the authors derive an optimal $B$ that maximizes the total canonical correlation.

They propose two main variants:

  • ORCCA1: For the case where one dataset ($Y$) is one-dimensional and the other ($X$) is mapped to a nonlinear space ($Z_x$). The scoring rule is derived to maximize the correlation between $Z_x$ and $Y$.
  • ORCCA2: For the more general case where both datasets ($X$ and $Y$) are mapped to nonlinear spaces ($Z_x$ and $Z_y$). This variant uses a scoring rule derived from maximizing the total canonical correlation between $Z_x$ and $Z_y$.

Both ORCCA variants provide an optimal scoring rule, but calculating the exact $B$ can be computationally prohibitive. Therefore, they introduce approximated empirical scoring rules that significantly reduce the computational cost while retaining the benefits of the optimal selection.

Datasets

The paper evaluates ORCCA1 and ORCCA2 on several benchmark datasets:

  • Adult
  • Energy Use
  • Seizure Detection
  • MNIST
  • Fashion MNIST
  • Airfoil Self Noise
  • Combined Cycle Power Plant (CCPP)

These are standard datasets used in machine learning for evaluating CCA and related methods. No new benchmarks were introduced.

Key Insights and Ideas

  • Task-Specific Random Feature Selection is Crucial: Generic random feature selection methods are not necessarily optimal for specific tasks like CCA. Tailoring the selection process to the objective function (maximizing correlation) yields significant improvements.
  • ORCCA's Principled Approach: The proposed scoring rule is derived from first principles to directly optimize the CCA objective, offering a theoretically grounded method for feature selection.
  • Connection to Existing Methods: The framework for the scoring rule is general enough to encompass and generalize some existing data-dependent sampling methods (like Leverage Scores and EERF) under specific choices of the matrix $B$.
  • ORCCA Outperforms State-of-the-Art: Empirical results consistently show ORCCA (both variants) achieving higher canonical correlations than other benchmark algorithms, including plain Random Fourier Features (RFF), Orthogonal Random Features (ORF), Leverage Scores (LS), and Energy-Based Exploration of Random Features (EERF).
  • Efficiency Gains: While optimizing for correlation, ORCCA achieves this with computational costs comparable to or better than other data-dependent methods, and significantly faster than full Kernel CCA.
  • Robustness to Data Splits: ORCCA's performance is robust to using training data for feature selection and testing data for evaluation, suggesting that cross-validation might not be strictly necessary, thus preserving more data for training.

Key Results

  • Superior Canonical Correlation: ORCCA consistently achieves higher total canonical correlations across multiple datasets compared to RFF, ORF, LS, and EERF. For example, in Figure 2, ORCCA2 generally shows the highest total canonical correlation values across various numbers of features.
  • Improved Largest and Top-10 Correlations: ORCCA also demonstrates strong performance in identifying the largest and top-10 canonical correlations, even though its objective is to maximize the total correlation.
  • Computational Efficiency: The theoretical time complexity of ORCCA is $O(nM^2 + M^3)$, which is significantly better than the $O(n^3)$ complexity of KCCA. Practical experiments (Table I) show ORCCA2's runtime is competitive with LS and significantly faster than deep learning CCA methods.
  • Outperforming Deep Learning CCA: In a comparison with deep learning variants of CCA (DCCA, DTCCA, DGCCA, DVCCA) on image datasets, ORCCA2 achieved superior correlation extraction while being substantially faster.

Limitations and Future Work

  • Computational Cost of Optimal B: While the derived scoring rules are optimal, calculating the exact matrix $B$ can be $O(n^3)$, making it impractical for large datasets. The paper addresses this with approximated empirical scores.
  • Generalizability to Other Tasks: The paper focuses on CCA as a case study. The authors suggest that exploring the potential of the proposed scoring rule for other learning tasks is a promising future direction.
  • Hyperparameter Tuning: While ORCCA aims to be optimal, parameters like the regularization parameter $\mu$ for CCA and the pool size $M_0$ still require careful selection, though the paper provides guidance.

Summary updated

Abstract

Random features approach has been widely used for kernel approximation in large-scale machine learning. A number of recent studies have explored data-dependent sampling of features, modifying the stochastic oracle from which random features are sampled. While proposed techniques in this realm improve the approximation, their suitability is often verified on a single learning task. In this article, we propose a task-specific scoring rule for selecting random features, which can be employed for different applications with some adjustments. We restrict our attention to canonical correlation analysis (CCA) and provide a novel, principled guide for finding the score function maximizing the canonical correlations. We prove that this method, called optimal randomized CCA (ORCCA), can outperform (in expectation) the corresponding kernel CCA with a default kernel. Numerical experiments verify that ORCCA is significantly superior to other approximation techniques in the CCA task.
BibTeX
@article{wang2023orcca,
  author = {Yinsong Wang and Shahin Shahrampour},
  title = {{ORCCA: Optimal Randomized Canonical Correlation Analysis}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2023},
  url = {https://openreview.net/forum?id=fdGdqedYDi},
}
Figure