Abstract
Canonical Correlation Analysis (CCA) is a fundamental tool for identifying linear relationships between multi-view data. However, traditional methods struggle with the scale of modern datasets. We present RandomizedCCA, a scalable algorithm that leverages randomized dimensionality reduction to achieve high-accuracy results with minimal data passes, significantly outperforming iterative methods in distributed environments where I/O is the primary bottleneck.
Introduction
Canonical Correlation Analysis (CCA) is a workhorse of statistics and machine learning, used to find linear relationships between two different "views" of the same data (e.g., the same news article written in English and Greek). As datasets have grown into the millions of samples with hundreds of thousands of features, classical CCA has hit a wall.
Standard approaches like Singular Value Decomposition (SVD) are too memory-intensive for "big data," while iterative alternatives like Horst iteration require many passes over the dataset to converge. In distributed computing environments (like Hadoop or Spark), every "pass" over the data involves massive I/O overhead. The challenge addressed here is: how can we compute CCA accurately with a minimal number of data passes?
Methodology
The authors propose a randomized approach based on the concept of a randomized range finder. Instead of processing the entire massive data matrix, the algorithm projects the data into a much smaller, random subspace that likely contains the most important correlations.
Key components include:
- Randomized Subspace Iteration: The algorithm uses a small number of "power iterations" ($q$) to refine the random subspace. Even with $q=1$ or $q=2$, the approximation becomes very high-quality.
- Oversampling: To ensure no important information is missed, they pick a subspace slightly larger ($k + p$) than the target number of dimensions ($k$).
- Regularization: They incorporate Tikhonov regularization ($\lambda$) to handle high-dimensional, noisy data and prevent overfitting.
As illustrated in Figure 1, increasing the oversampling parameter $p$ and the number of power iterations $q$ allows the randomized approximation to converge toward the performance of the exact Horst iteration baseline.
Experimental Setup
The algorithm was evaluated using the Europarl dataset, a collection of multilingual documents from European Parliament proceedings. Using English and Greek as the two views, the dataset consisted of roughly 1.2 million sentence pairs. Feature hashing was used to map words into a $2^{19}$ (approx. 524,000) dimensional space, creating a truly large-scale test case for the algorithm.
Key Results and Insights
Efficiency and Speedup
On the Europarl task, RandomizedCCA achieved objective values close to the "gold standard" (Horst iteration) but in a fraction of the time. A significant finding was the effectiveness of a hybrid strategy: using RandomizedCCA as an "intelligent initializer" for standard iterative solvers. When used to initialize Horst iteration (Horst+rcca), the total number of data passes required to reach high precision dropped from 120 passes down to 34.
Inherent Regularization
A fascinating insight is that RandomizedCCA can sometimes generalize better than exact methods. By focusing only on the top "range" of the correlation matrix, it naturally ignores low-signal noise that might lead to overfitting in a full-rank model. In head-to-head tests, RandomizedCCA showed more stable performance on test data compared to Horst iteration, which was more sensitive to the choice of regularization parameters.
Conclusion and Future Work
RandomizedCCA's ability to work in 2–4 passes is its "killer feature" for modern distributed systems where CPU cycles are cheap but data movement is expensive. While the algorithm requires storing low-rank bases in memory and involves hyperparameter tuning for $p$ and $q$, it demonstrates that a fast, "good enough" approximation is often more valuable than a slow, exact one. Future work includes extending this randomized approach to three or more views of data.
Summary updated