arXiv:2611.07212cs.LGNov 2026

Manuscript Offprint

arXiv:2611.07212

Canonical Correlation Neural Networks

Andrea Cavallo, Sundeep Prabhakar Chepuri, Charilaos Kanatsoulis, Elvin Isufi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Relational inductive biases such as grids or graphs allow neural networks with fewer trainable parameters and improved generalization, but require a known structure beforehand. When no structure is available, the covariance matrix provides a principled substitute, and coVariance Neural Networks (VNNs) have shown that using it yields models that are theoretically grounded in Principal Component Analysis, stable to finite-sample estimation errors and parameter-efficient. This framework, however, is limited to single-view data, whereas many applications observe the same phenomenon through multiple views, each with its own in-view covariance and a cross-view covariance linking them. To incorporate these matrices as inductive biases in a principled way, we introduce Canonical correlation NEural networks (CANEs), architectures that use in-view and cross-view covariances as distinct relational biases to solve downstream tasks. Via spectral analysis, CANEs draw analogies with Canonical Correlation Analysis (CCA), a classical technique to project two-view data onto a correlated subspace. However, while CCA's objective is to compute shared view representations, CANEs are trained to solve a downstream task directly. We bound their output error under finite-sample covariance perturbations and show that it depends on controllable Lipschitz constants of the learned filters in place of the singular-value gap that governs the stability of CCA, thus guaranteeing better robustness. Experiments on seven datasets from brain imaging and motion sensing show that CANEs match or outperform single-view, two-view and CCA-based baselines, often with fewer parameters, and retain their performance when covariances are re-estimated from fewer samples.

1 Introduction

Neural networks exploit relational inductive biases of the data to reduce their parameters and improve generalization (Battaglia et al., 2018; Bronstein et al., 2017). Usually, these biases are known structures of the data, such as grids for images and graphs for social or recommendation networks, and define interaction rules (e.g., pixels interact with surrounding pixels, nodes in a graph communicate with neighboring nodes). Parametrizing these rules allows decoupling the number of learnable parameters from the input size and supports generalization to unseen samples where the same rules apply. However, this mechanism requires a known structure of the data.

When no such structure is given, it can be extracted from the data statistics (Battaglia et al., 2018, Section 4.1.2). The covariance matrix is a natural candidate for this role. It measures the joint variability of every pair of variables, needs no labels, is computed from the training samples themselves, and sits at the core of classical multivariate statistics such as Principal Component Analysis (PCA). Reading it as a weighted graph, where variables are nodes and covariances are edge weights, makes this structure available to graph neural networks (GNNs) as an inductive bias. Several works adopt covariance graphs on empirical grounds (Bessadok et al., 2022; Li et al., 2021; Liao et al., 2022; Li et al., 2020), while coVariance Neural Networks (VNNs) (Sihag et al., 2022; 2026) provide a theoretical framework to study GNNs on covariance-based graphs. VNNs learn polynomial filters in the eigenspace of the covariance, i.e., the space of PCA; they are provably less sensitive than PCA to finite-sample covariance errors; and they retain the parameter efficiency and the transferability across dimensionalities of GNNs (Sihag et al., 2023). The outcome is a bridge between data processing rooted in statistics and neural learning with inductive biases.

However, this bridge has been built for single-view data only, while observations are frequently available through several modalities. In brain MRI analysis, the same scan yields distinct morphological descriptors of the same regions, such as cortical thickness, volume and surface area (Moghimi et al., 2021; Tadayon et al., 2020). In motion sensing, accelerometers and gyroscopes placed at different body locations record the same movement (Banos et al., 2014a;b). The views live in different spaces and carry different meanings, yet describe one phenomenon. Therefore, processing them jointly is key to exploiting their correlations for downstream tasks such as predicting a patient's age or classifying an action. In this setting, second-order structure comes in two kinds. The in-view covariances capture the dependencies inside each view and the cross-view covariance captures the alignment between views. Despite their different meaning, current inductive-bias-based neural methods fall short of properly leveraging these covariances as relational structures.

We fill this gap with CANonical correlation NEural networks (CANEs), consisting of two stages. The in-view covariance stage applies a linear graph convolutional filterbank on the graph defined by the covariance of each view, and the cross-view covariance stage applies graph convolutional neural networks on the graphs defined by the cross-view covariance of the outputs of the first stage. CANEs draw analogies with Canonical Correlation Analysis (CCA) (Hotelling, 1992), the classical method that whitens each view with its in-view covariance and aligns the views through the singular vectors of their cross-view covariance. They both consider two data views; possess an in-view and cross-view covariance stage and operate in the same spectral space. However, their purpose is different. CCA recovers correlated latent sources regardless of any task, whereas CANEs are trained on the downstream task and the CCA transform is one point in the space of functions they can learn. Since all covariances are estimated from finite samples, the model is perturbed by construction. We bound its output error under such perturbations (Theorem 4.4) and show that it decays with the square root of the number of samples and depends on the Lipschitz constants of the learned filters, which can be controlled, in place of the singular-value gap and inverse covariance norms that govern the error of the CCA transform. This guarantees better stability under finite-sample errors compared to CCA-based techniques. Finally, on seven real-world tasks from brain imaging and motion sensing, CANEs match or outperform single-view baselines, VNNs on both views, the standard pipeline of CCA-based preprocessing followed by a predictor, and deep task-aware CCA methods, often with fewer trainable parameters, and keep their performance when the covariances are re-estimated from smaller subsets of the data. This confirms that their principled design translates into effective performance.

References (49)