NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Variational Auto-encoder Based Bayesian Poisson Tensor Factorization for Sparse and Imbalanced Count Data

Yuan Jin, Lan Du, Longxiang Gao, Yong Xiang, Yunfeng Li, Ruohua XuData Min. Knowl. Discov 2019 · DOI

TL;DR

This paper introduces VAE-BPTF, a novel framework that combines Variational Autoencoders (VAEs) with Bayesian Poisson Tensor Factorization (BPTF) to improve predictions on sparse and imbalanced count data. By leveraging neural networks for inference and incorporating a reweighting scheme for imbalanced data, VAE-BPTF significantly outperforms existing methods in tensor reconstruction and latent factor coherence.

What Problem Does This Paper Address?

Many real-world datasets, such as publication records, user reviews, and event logs, can be represented as tensors (multi-dimensional arrays) containing count data. Predicting missing values or understanding underlying patterns in these tensors is crucial for various applications. Bayesian Poisson Tensor Factorization (BPTF) models are well-suited for this, as they can handle count data and provide full posterior distributions of latent factors, making them robust to sparsity. However, traditional BPTF methods suffer from several limitations:

  • Restricted Update Rules: Their inference methods use rigid update rules for posterior parameters, limiting their flexibility.
  • Lack of Information Sharing: Updates for latent factors are independent, hindering their ability to learn from sparse data where information is scarce.
  • Imbalanced Data: They struggle with datasets where certain count values (e.g., '1' in word counts) are overwhelmingly frequent, leading to biased inference.

This paper aims to overcome these challenges by proposing VAE-BPTF.

Methods

VAE-BPTF introduces several key innovations:

  • Variational Autoencoder (VAE) Integration: The core idea is to replace the traditional, restrictive update rules of BPTF with a VAE architecture. Multi-layer perceptrons (MLPs) act as encoders to learn complex, non-linear mappings from data to posterior parameters (shape and rate) of the latent factors. This allows for sharing of update information across different data instances.
  • Mode-Specific Encoders: For each mode (e.g., user, item, time) of the tensor, VAE-BPTF uses dedicated MLP encoders. These encoders take into account not only the data associated with that entity but also the latent factors from other modes, enabling a richer inference process.
  • Sparsity-Inducing and Stable Activation Functions: The paper explores different activation functions for the MLPs. While ReLU offers strong sparsity, it can lead to numerical instability (negative parameters). The softplus function is found to be a good compromise, providing numerical stability and reasonable sparsity-inducing capabilities.
  • Reweighting Scheme for Imbalanced Data: To address the issue of imbalanced count data, VAE-BPTF incorporates a reweighting function. This function down-weights the influence of common data values (e.g., counts of '1') and amplifies the contribution of less frequent but potentially more informative values. This is inspired by research on matrix factorization for implicit feedback and aims to prevent common values from dominating the inference.
  • Gradient Reparametrization: For efficient training, the paper utilizes a reparameterization trick combined with approximation techniques to compute gradients for the variational inference, particularly for the Gamma distribution.

Datasets

The paper evaluates VAE-BPTF on both synthetic and real-world datasets:

  • Synthetic Data: Generated by the framework itself to assess its ability to recover the correct number of latent factors and posterior parameters.
  • Real-World Datasets:
    • DBLP publication data: A four-way count-valued tensor of authors, venues, words, and years.
  • NIPS publication data: A three-way count-valued tensor of authors, words, and years.
  • Online game data (Game): A three-way count-valued tensor of users, items, and days, recording virtual item acquisition counts.
  • Amazon video review data (Video Review): A three-way count-valued tensor of users, videos, and words from reviews.
  • Amazon video rating data (Video Rating): A three-way rating tensor of users, videos, and days.

Key Insights and Ideas

  • Neural Networks for Bayesian Inference: The paper demonstrates that neural networks (VAEs) can effectively replace traditional, rigid inference mechanisms in Bayesian models, leading to more flexible and powerful parameter estimation.
  • Sharing Information Across Modes: By designing encoders that consider latent factors from other modes, VAE-BPTF can better leverage available data, especially in sparse scenarios.
  • The Importance of Handling Imbalance: The reweighting scheme is crucial for achieving good performance on count data, where a few values dominate. This highlights that simply using a Poisson likelihood isn't enough; the inference process must account for data distribution characteristics.
  • VAE-BPTF as a Unified Framework: The VAE-BPTF framework provides a general approach that can be applied to various count-based tensor factorization problems, outperforming specialized models in many cases.

Key Results

  • Synthetic Data: VAE-BPTF successfully recovers the correct number of latent factors and posterior parameter values.
  • Real-World Data:
    • Reconstruction Error: VAE-BPTF consistently outperforms five state-of-the-art baselines (BPTF, Online-Gibbs BPTF, PTF-KL, NTF-LS, MLP-TF) across all five datasets in terms of Mean Absolute Error (MAE) and Log-Likelihood (LL). For instance, on the DBLP dataset, VAE-BPTF achieves an MAE of 0.656 compared to the next best MLP-TF at 0.728. Its LL is significantly higher, often by an order of magnitude.
  • Latent Factor Coherence: VAE-BPTF generates more semantically coherent latent factors, as measured by Normalized Point-wise Mutual Information (NPMI) scores. For example, on the DBLP dataset, VAE-BPTF achieves an average NPMI of -0.161, outperforming other models.
  • Qualitative Analysis: The inferred latent factors are perceived as meaningful and coherent, aligning with human understanding of entities and their relationships (e.g., authors' research areas, video genre preferences).
  • Robustness to Sparsity: The framework shows smooth performance trends even with significant data subsampling (down to 1%), indicating its robustness to sparsity.

Limitations and Future Work

  • Computational Complexity: The paper acknowledges that VAE-BPTF is computationally more expensive than traditional BPTF models, though it offers significant performance gains. The complexity is approximately $O(N \times M \times K \times \sum_{l=0}^{L+1} d_l d_{l+1})$, where $N$ is the number of non-zero entries, $M$ is the number of modes, $K$ is the number of latent factors, $L$ is the number of hidden layers, and $d_l$ is the number of neurons.
  • Future Work:
    • Weighted Errors: Experimenting with reweighting schemes that assign more weight to instances where predictions were less accurate.
  • Ensemble Learning: Investigating ensemble methods, such as boosting, to sequentially build weak encoder networks.
  • Reducing Complexity: Developing variants of VAE-BPTF that maintain performance while reducing computational cost.

Summary updated

BibTeX
@article{jin2019variational,
  author = {Yuan Jin and Lan Du and Longxiang Gao and Yong Xiang and Yunfeng Li and Ruohua Xu},
  title = {{Variational Auto-encoder Based Bayesian Poisson Tensor Factorization for Sparse and Imbalanced Count Data}},
  journal = {Data Min. Knowl. Discov.},
  year = {2019},
  doi = {10.1007/s10618-020-00723-7},
}
Figure