Semantic Gaussian Mixture Variational Autoencoder for Sequential Recommendation

Beibei Li, Tao Xiang, Beihong Jin, Yiyuan Zheng, Rui Zhao · DOI

Introduction

Sequential Recommendation (SR) aims to predict a user's next interaction by analyzing their historical behavior. Variational Autoencoders (VAEs) have emerged as a powerful tool for this task, as they represent user sequences as continuous probability distributions rather than static vectors. This probabilistic approach provides inherent robustness against the noise and sparsity common in real-world interaction data.

However, traditional VAE-based SR models rely on a significant simplification: they assume a user's interests follow a standard, unimodal Gaussian distribution. In practice, users often exhibit diverse and disparate interests simultaneously—for example, browsing for electronics, pet supplies, and fitness gear in a single session. Forcing these distinct semantic signals into a single "bell curve" restricts the model's expressive power and often leads to "posterior collapse," where the model learns overly generalized representations.

The SIGMA Architecture

To address these limitations, this paper introduces SIGMA (SemantIc Gaussian Mixture variational Autoencoder). SIGMA moves beyond the unimodal constraint by employing a Gaussian mixture prior, where each component represents a specific latent user interest.

The SIGMA architecture, featuring the MIE-VAE for interest extraction and the SGM-VAE for sequence modeling.

The framework consists of two primary modules that are trained jointly:

  1. Multi-Interest Extraction VAE (MIE-VAE): This module is responsible for disentangling the input sequence into $k$ distinct interests. It learns implicit item categories and utilizes an orthogonal constraint to ensure these categories remain mathematically distinct (e.g., preventing "electronics" from overlapping with "clothing"). The MIE-VAE captures both "soft" interests via attention mechanisms and "hard" interests by routing items to specific categories and tracking their temporal evolution using a Gated Recurrent Unit (GRU).
  2. Semantic Gaussian Mixture VAE (SGM-VAE): Built upon a Transformer backbone, this module serves as the main sequence encoder and decoder. Unlike standard VAEs that pull from a standard normal distribution, the SGM-VAE uses the weighted mixture of Gaussians generated by the MIE-VAE as its prior.

Key Innovations

A significant challenge in using a mixture prior is that calculating the KL-divergence—the measure of difference between the estimated posterior and the prior—becomes mathematically intractable. The authors overcome this by implementing a specialized approximation technique to compute the Evidence Lower Bound (ELBO), allowing for efficient end-to-end training.

Furthermore, the inclusion of the orthogonal constraint is vital. Without it, the model tends to learn redundant or overlapping interests. By forcing the learned item categories to be heterogeneous, SIGMA ensures that the latent space accurately reflects the diversity of the user's actual preferences.

Evaluation and Results

The authors evaluated SIGMA against nine competitive baselines, including SASRec, BERT4Rec, and multi-interest models like MIND and ComiRec. Testing was conducted across four public datasets: Amazon Beauty, Toys, and Office Products (for accuracy) and MovieLens (for diversity).

Key findings include:

  • Superior Accuracy: SIGMA consistently outperformed all baselines. The improvements were most pronounced on datasets with longer sequences, such as Amazon Office, where SIGMA achieved a 9.25% relative improvement in Recall@20 and a 9.95% improvement in NDCG@20 over the best baseline.
  • Enhanced Diversity: By leveraging the multimodal prior, SIGMA provides more diverse recommendations without the typical sacrifice in accuracy. The model includes a tunable parameter ($\lambda$) that allows for a smooth trade-off between precision and diversity.
  • Ablation Insights: Removing the MIE-VAE component caused performance to drop by over 50% in some metrics, confirming that the Gaussian mixture prior is the primary driver of the model's success.

Conclusion

SIGMA represents a significant step forward for VAE-based sequential recommendation. By replacing the restrictive unimodal prior with a semantic Gaussian mixture, the model successfully captures the multifaceted nature of human interests. While the current implementation uses a fixed number of interest components ($k$), future research may focus on dynamically learning the optimal number of interests for each individual user, further personalizing the recommendation process.

Summary updated

BibTeX
@inproceedings{li2025semantic,
  author = {Beibei Li and Tao Xiang and Beihong Jin and Yiyuan Zheng and Rui Zhao},
  title = {{Semantic Gaussian Mixture Variational Autoencoder for Sequential Recommendation}},
  booktitle = {DASFAA},
  year = {2025},
  doi = {10.1007/978-981-95-4155-3\_22},
}
Figure