Nonparametric Canonical Correlation Analysis

Tomer Michaeli, Weiran Wang, Karen Livescu

TL;DR

Nonparametric Canonical Correlation Analysis (NCCA) revives a 1950s statistical theory to find the most correlated nonlinear projections of multi-view data without being restricted to specific function families like kernels or neural networks. By leveraging sparse nearest-neighbor density estimation, NCCA achieves state-of-the-art performance while being orders of magnitude faster and more memory-efficient than Deep CCA or Kernel CCA.

What Problem Does This Paper Address?

Canonical Correlation Analysis (CCA) is a staple for multi-view learning—finding common patterns across different "views" of the same data (e.g., audio and video of a person speaking). However, classical CCA only finds linear relationships.

To handle the complexity of real-world data, researchers developed Kernel CCA (KCCA) and Deep CCA (DCCA). But these come with heavy baggage: KCCA requires inverting massive matrices ($O(N^3)$ complexity), making it crawl on large datasets, while DCCA requires tuning complex neural network architectures and intensive training. This paper addresses the need for a "best of both worlds" approach: a method that is as flexible as a neural network but as mathematically grounded and efficient as a simple eigenvalue problem.

Methods

The authors revisit a theoretical framework by Lancaster (1958) which defines the optimal nonlinear projections in terms of the joint probability density of the views.

  • NCCA (Nonparametric CCA): Instead of restricting the search to a specific family of functions (like an RKHS in kernels), NCCA solves for the optimal measurable functions. This reduces to a Singular Value Decomposition (SVD) of an operator defined by the joint density.
  • PLCCA (Partially Linear CCA): A hybrid variant where one view is projected linearly (useful for interpretability or when one view is already well-behaved) while the other remains nonparametric.
  • The "Secret Sauce" - Sparse KDE: To make this practical, the authors use Kernel Density Estimation (KDE) based on a small number of nearest neighbors ($k$-NN). This results in sparse affinity matrices. Unlike KCCA, which requires dense matrix inversions, NCCA solves a sparse eigenvalue problem, which is significantly faster and scales much better to large datasets.

Datasets

The authors evaluated their methods on several datasets to test flexibility and scalability:

  1. Synthetic 2D Manifolds: Used to visualize how NCCA "unfolds" nonlinear data compared to other methods.
Comparison of CCA methods on synthetic 2D manifold data
  1. XRMB (X-Ray Microbeam Speech Data): A dataset of simultaneous acoustic (speech) and articulatory (vocal tract movement) measurements.
  2. Noisy MNIST: A large-scale dataset (450,000 pairs) consisting of randomly rotated digit images vs. images with additive noise. This tests the algorithm's ability to handle high-dimensional, large-scale data.

Key Insights and Ideas

  • The PMI Connection: The NCCA solution is mathematically linked to preserving the Pointwise Mutual Information (PMI) between views. It essentially finds an embedding that keeps as much statistical dependence as possible.
  • No Inversion Needed: One of the biggest "aha" moments is that NCCA avoids the matrix inversion that plagues KCCA. This makes the algorithm numerically stable and allows it to use sparse matrices effectively.
  • Similarity via Conditional Distributions: In NCCA, two points in View 1 are considered "similar" if they predict the same distribution in View 2. This is a much more robust way of defining similarity than simple Euclidean distance.
Similarity via conditional distributions in NCCA
  • The Trivial Solution: The authors note that the "best" mathematical solution is always a constant function (correlation = 1), which they simply discard to find the meaningful underlying correlations.

Key Results

  • Speed: On the XRMB dataset, NCCA was roughly 70 times faster than DCCA (approx. 150 seconds vs. 10,000 seconds) while achieving higher total correlation.
  • Accuracy: On the Noisy MNIST clustering task, NCCA achieved 99.2% accuracy, slightly outperforming DCCA (99.1%) and significantly beating KCCA variants (95.6% - 96.7%).
  • Scalability: NCCA successfully handled 450,000 samples, a scale where standard KCCA is typically computationally infeasible due to memory and time constraints.

Limitations and Future Work

  • The Curse of Dimensionality: While KDE works well on manifolds, it can still struggle in extremely high-dimensional spaces without enough data. The authors mitigate this with PCA preprocessing, but it remains a factor.
  • Nearest Neighbor Bottleneck: The current implementation's speed is dominated by the exact $k$-NN search. The authors suggest that using approximate nearest neighbor algorithms could make NCCA even faster.
  • Data Requirements: As a nonparametric method, NCCA generally requires larger training sets to accurately estimate densities compared to parametric models like DCCA.

Summary updated

BibTeX
@inproceedings{michaeli2016nonparametric,
  author = {Tomer Michaeli and Weiran Wang and Karen Livescu},
  title = {{Nonparametric Canonical Correlation Analysis}},
  booktitle = {International Conference on Machine Learning},
  year = {2016},
  url = {https://openreview.net/forum?id=HyE9P2WObH},
}
Figure