Abstract
Probabilistic Latent Tensor Factorization (PLTF) is a recently proposed probabilistic framework for modelling multi-way data. Not only the common tensor factorization models but also any arbitrary tensor factorization structure can be realized by the PLTF framework. This paper presents full Bayesian inference via variational Bayes that facilitates more powerful modelling and allows more sophisticated inference on the PLTF framework. We illustrate our approach on model order selection and link prediction.
Introduction
Tensors, or multi-dimensional arrays, are essential for representing complex relationships in data, such as User $\times$ Location $\times$ Activity triplets. Factorizing these tensors into interpretable components is a fundamental task in data science. However, practitioners face two significant challenges: determining the optimal model order (rank) to avoid both underfitting and overfitting, and handling the sparsity inherent in real-world datasets. While the Probabilistic Latent Tensor Factorization (PLTF) framework offers high flexibility, previous implementations relying on point-estimate methods like Expectation-Maximization (EM) often struggle with overfitting in the presence of missing data.
Methodology
This work introduces a full Bayesian inference framework for PLTF using Variational Bayes (VB). The model is formulated as a generative process where observed tensor entries follow a Poisson distribution, which is mathematically equivalent to minimizing the Kullback-Leibler (KL) divergence.
To ensure non-negativity and maintain mathematical conjugacy, latent factors are assigned Gamma priors. The VB approach approximates the entire posterior distribution of these factors, allowing the model to integrate out uncertainty—a process that acts as a natural regularizer. A key component of this inference is the derivation of the variational lower bound on the marginal likelihood, which serves as a principled metric for model order selection.
Experimental Evaluation
The proposed VB-PLTF approach was evaluated on both synthetic and real-world datasets:
- Synthetic Tensors: Third-order tensors generated via a CP model with a known rank of 7, tested under varying levels of missing data (40%, 60%, and 80%).
- UCLAF Dataset: A real-world GPS dataset of User-Location-Activity triplets (146 users, 168 locations, 5 activities), characterized by extreme imbalance and sparsity.
Results and Discussion
Model Order Selection
The variational lower bound proved to be a highly accurate indicator for determining the true rank of the tensor. In synthetic tests, the bound peaked precisely at the ground-truth rank of 7, even when 80% of the data was missing.
On the real-world UCLAF data, the bound suggested that the optimal model order should decrease as the percentage of missing data increases, helping the model avoid fitting to noise. Experiments also highlighted that the Tucker model often outperforms the CP model on real data because its core tensor provides the flexibility needed to capture nuanced structural information.
Link Prediction and Robustness
In link prediction tasks, VB-PLTF consistently outperformed the traditional EM approach. For instance, with 80% missing data in a CP model, VB achieved an Area Under the Curve (AUC) of approximately 0.959, significantly higher than the 0.867 achieved by EM. Furthermore, while the performance of EM declined sharply as the model order increased due to overfitting, the VB approach remained stable, demonstrating superior robustness to parameter uncertainty.
Conclusion
The transition from point-estimation to full Bayesian inference via Variational Bayes significantly enhances the PLTF framework. By providing a reliable metric for model selection and improving performance on sparse datasets through implicit regularization, VB-PLTF addresses critical hurdles in tensor factorization. Future work will explore extending this framework to coupled tensor factorization and optimizing the computational complexity associated with calculating expectations and digamma functions.
Summary updated