Deep Dynamic Probabilistic Canonical Correlation Analysis

Shiqin Tang, Shujian Yu, Yining Dong, S. Joe Qin

Here is a concise, engaging summary of the paper Deep Dynamic Probabilistic Canonical Correlation Analysis.

TL;DR

This paper introduces Deep Dynamic Probabilistic Canonical Correlation Analysis (D²PCCA), a framework that merges deep learning with probabilistic modeling to capture complex, nonlinear relationships in time-series data. By replacing rigid linear assumptions with neural networks and leveraging advanced variational inference techniques, D²PCCA successfully uncovers both shared and unique latent dynamics across multiple datasets, outperforming traditional linear baselines on real-world financial data.

What Problem Does This Paper Address?

Canonical Correlation Analysis (CCA) is a classic statistical tool used to find relationships between different sets of variables. While highly useful, classic CCA is linear and static. Over the years, researchers developed probabilistic and dynamic extensions (like DPCCA) to track how these relationships evolve over time using latent (hidden) variables.

However, these traditional models rely heavily on linear Gaussian assumptions. Real-world systems—such as the stock market, human behavior, or audio-visual streams—are inherently nonlinear and complex. Until now, injecting deep neural networks into dynamic CCA frameworks was incredibly difficult because the standard training algorithms (like Expectation-Maximization) break down when faced with the intractable math of deep, nonlinear models.

Methods

The authors propose D²PCCA, which retains the elegant graphical structure of Dynamic Probabilistic CCA but replaces the linear emission and transition functions with deep neural networks (specifically, Multi-Layer Perceptrons and gated transition networks similar to GRUs).

Graphical models comparing the linear DPCCA and the proposed deep nonlinear D²PCCA framework.

To train this highly nonlinear model, the authors turned to Amortized Variational Inference (AVI). Instead of calculating the exact hidden states, they train a separate "inference network" (a backward RNN) to approximate the true posterior distribution of the latent states based on future data.

Additionally, the paper introduces three key extensions to boost performance:

  1. KL-Annealing: A training trick that prevents "posterior collapse" (where the model ignores the latent states).
  2. Normalizing Flows (Inverse Autoregressive Flows - IAF): This replaces simple Gaussian assumptions with a highly flexible, custom-shaped probability distribution to better capture complex data characteristics.
  3. Multiset & Structural Extensions: The model can easily scale up to handle more than two datasets simultaneously (Multiset D²PCCA) or model directional relationships (Dynamic Probabilistic Partial Least Squares, or DPPLS).
Fig. 2: Graphical representations for (a) Multiset DPCCA, (b) DP- PLS, and (c) Factorial HMM.

Datasets

The model was evaluated using a real-world financial dataset: daily closing prices of companies on the NASDAQ from 2018 to 2019 (503 trading days total).

  • The authors selected the top 10 largest companies across five distinct sectors: finance, energy, technology, healthcare, and industrial.
  • The first 453 days were used for training, and the final 50 days were reserved for testing, processed using a sliding window approach.

Key Insights and Ideas

  • Separation of Concerns: D²PCCA excels at breaking down complex data into what is shared versus what is unique. In the stock market experiment, it successfully tracked overarching market trends (via a common latent factor) while simultaneously isolating sector-specific movements.
  • Dynamic Variance: Unlike linear models that assume a fixed amount of noise, D²PCCA lets the variance change based on previous states. This allows the model to automatically become more uncertain during highly volatile periods.
  • The Power of Normalizing Flows: By pairing D²PCCA with Inverse Autoregressive Flows (IAF), the model achieved a significantly better probabilistic fit (higher ELBO), proving that real-world latent dynamics rarely fit into neat, symmetric Gaussian bells.

Key Results

In quantitative evaluations, D²PCCA consistently outperformed its linear counterpart (DPCCA):

  • Model Fit (Test ELBO): D²PCCA achieved a score of 130.07 compared to DPCCA's 69.77 (higher is better). Adding Normalizing Flows (+ IAF) pushed this even higher to 131.27.
  • Prediction Error (Test RMSE): D²PCCA lowered the reconstruction error to 0.0179, beating the linear baseline's 0.0181.
Fig. 4: Comparison of model predictions against the ground truth over time. The shaded region denotes the confidence interval, µ ± 1.96σ.

Qualitatively, as seen in Figure 4, D²PCCA's predictions closely match the ground truth, and its dynamic confidence intervals accurately reflect higher uncertainty at the beginning of sequences where trends are shifting.

Limitations and Future Work

While D²PCCA showed a massive improvement in probabilistic fit (ELBO), the improvement in raw prediction error (RMSE) was modest. The authors attribute this to the fact that stock market data consists of relatively simple, noisy patterns. They note that the full power of D²PCCA's nonlinear capabilities will likely shine brighter on highly complex datasets like video or speech.

For future work, the authors plan to test the model on these richer data types and explore relaxing the first-order Markov assumptions—potentially allowing the model to look further back in time to make its next prediction.

Summary updated

BibTeX
@inproceedings{tang2025deep,
  author = {Shiqin Tang and Shujian Yu and Yining Dong and S. Joe Qin},
  title = {{Deep Dynamic Probabilistic Canonical Correlation Analysis}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2025},
  doi = {10.1109/icassp49660.2025.10887585},
}
Figure