Abstract
PARAFAC2 is a powerful tensor decomposition model for analyzing multi-way data with varying dimensions. However, traditional fitting methods based on Alternating Least Squares (ALS) are sensitive to noise and lack principled model selection criteria. This paper introduces a fully probabilistic (Bayesian) PARAFAC2 framework. By leveraging Variational Bayesian inference with novel orthogonality-preserving distributions—Matrix von Mises-Fisher (vMF) and Constrained Matrix Normal (cMN)—the model achieves superior robustness. Integrated Automatic Relevance Determination (ARD) enables automatic determination of the correct number of components. Experiments on synthetic and real-world datasets demonstrate that the proposed probabilistic models outperform traditional direct fitting, especially in high-noise environments and when the model order is misspecified.
Introduction
Tensors, or multi-dimensional arrays, are ubiquitous in modern data science for representing complex relationships across multiple modes, such as samples, features, and time. While the Canonical Polyadic (CP) decomposition is a standard tool for extracting latent patterns, it requires all dimensions to be aligned. PARAFAC2 relaxes this constraint, allowing one dimension to vary in size across slices of the tensor. This flexibility is crucial for applications like chemical batch analysis or longitudinal medical studies. Despite its utility, traditional PARAFAC2 estimation via maximum likelihood is plagued by overfitting and the difficulty of selecting the optimal number of components.
Methods
The authors propose a Variational Bayesian (VB) framework for PARAFAC2. The primary challenge in Bayesian tensor modeling is the strict orthogonality constraint required by the PARAFAC2 model. Two approaches are introduced:
- Matrix von Mises-Fisher (vMF) Distribution: A distribution defined on the Stiefel manifold that strictly enforces orthogonality for every sample.
- Constrained Matrix Normal (cMN) Distribution: A more computationally efficient approach that constrains the mean of the variational distribution to be orthogonal, leading to closed-form updates via Singular Value Decomposition (SVD).
To address model selection, the framework incorporates Automatic Relevance Determination (ARD). By placing a sparsity-inducing prior on component scales, the model can automatically prune redundant components. Furthermore, the model is extended to handle heteroscedastic noise, allowing for varying noise levels across different tensor slices.
Results
Model Order Selection
The probabilistic models were evaluated against traditional direct fitting (ALS). In synthetic tests, the Evidence Lower Bound (ELBO) proved to be a more reliable indicator of the true number of components than traditional heuristics like the Core Consistency Diagnostic (CCD).
Robustness to Noise and Misspecification
In terms of noise robustness, the VB-PARAFAC2 models, particularly the vMF variant, showed significantly higher recovery accuracy (Noiseless R2) at low Signal-to-Noise Ratios (SNR). Crucially, when the model order was misspecified (overestimated), the probabilistic models maintained performance by effectively ignoring the extra components via ARD, whereas the traditional method's accuracy degraded due to overfitting the noise.
Discussion
The probabilistic PARAFAC2 framework offers a robust solution to the limitations of traditional tensor decomposition. By treating orthogonality and model order selection within a unified Bayesian framework, it provides a self-tuning model that is resilient to noise. While Variational Inference may underestimate parameter uncertainty, the gains in robustness and automated selection represent a significant advancement for multi-way data analysis. Future work will explore applying these probabilistic orthogonality constraints to other tensor models like Tucker decomposition.
Summary updated