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

Time-Sequential Variational Conditional Auto-encoders for Recommendation

Jun Hozumi, Yusuke Iwasawa, Yutaka MatsuoTransactions 2021

Abstract

In this study, we propose a method for adding time of action information to a Variational Auto-encoder (VAE)-based recommendation system. Since time of action is an important information to improve the accuracy of recommendation, many methods have been proposed to use the information of time of action, such as purchase or review of a product, for recommendation. And VAE-based recommendation systems have been reported to be more accurate and robust for small data sets compared to traditional deep learning-based recommendation systems. Existing research on introducing time information into VAEs includes a method of weaving information on the order in which products are preferred by passing the encoding layer consisting of RNN, but the time information of the product preferred is not considered. If the absolute time information is not taken into account when recommending a product, for example, when a temporary boom causes many users to prefer a particular product, it may be judged to be a preference based on the user’s preferences, which may adversely affect the recommendation results. Based on the above problems, this study examines a VAE-based recommendation system to improve the recommendation accuracy by adding time information of each action to the input information, and finally proposes Time-Sequential VAE (TSVAE) and confirms its accuracy. In addition, to verify how to add time information to improve the accuracy, we conducted experiments using multiple models with and without absolute time information and different encoders of time interval information, and evaluated the accuracy.

Introduction

Most modern recommendation systems based on Variational Auto-encoders (VAEs) treat a user’s history as a "Bag-of-Words." While effective, these models often ignore the temporal dynamics of user behavior—specifically the order and the exact timing of actions. While some "Sequential VAEs" (SVAE) have introduced Recurrent Neural Networks (RNNs) to capture order, they still struggle with two critical temporal nuances: time intervals (the relative gap between actions) and absolute time (the specific point in history an action occurred).

The researchers from the University of Tokyo aim to bridge this gap by integrating both relative and absolute time into the VAE architecture. By doing so, the model can distinguish between a user's long-term interests and temporary external trends, such as viral "booms," leading to more robust and precise suggestions.

Methods

The proposed Time-Sequential VAE (TSVAE) model introduces two major architectural innovations to the standard SVAE framework to handle temporal data more effectively.

Time-LSTM(3) Encoder

Instead of a standard GRU or LSTM, the authors utilize a specialized variant called Time-LSTM(3). This unit features unique "time gates" that allow the network to modulate the influence of past actions based on the elapsed time ($\Delta t$) between them. To handle the wide variance in time scales across different user behaviors, a log-transform is applied to these intervals: $\Delta t_m = \log(t_m - t_{m-1})$.

Conditional VAE (CVAE) Framework

To incorporate absolute time ($t$), the authors treat the timestamp of the most recent action as a "condition." This timestamp is fed into both the encoder (to help define the latent distribution $\mu$ and $\sigma$) and the decoder (to guide the reconstruction of the user's history). This structure allows the model to learn a latent representation of the user that is "aware" of both the pacing of their actions and the specific point in time those actions occurred.

The TSVAE architecture integrates a Time-LSTM encoder with a CVAE structure conditioned on absolute time.

Experimental Setup

The authors evaluated TSVAE across four diverse real-world datasets to test its performance across different temporal densities and sequence lengths.

Summary of the four datasets used for evaluation, showing variations in user count and average sequence length.
  • MovieLens-1M: Movie ratings (filtered for 5-star ratings to represent "preferred" items).
  • Last.fm (Million Song Dataset): Music listening history, characterized by very long sequences.
  • Amazon (Beauty Products): E-commerce purchase history with relatively short sequences.
  • Goodreads (Comics & Graphic Novels): Book review history.

Key Insights and Results

TSVAE consistently outperformed several baselines, including standard GRUs, LSTMs, and basic CVAEs. On the MovieLens dataset, TSVAE achieved a DCG@10 of 11.31, compared to 10.09 for a standard GRU. The Last.fm dataset showed even more dramatic results, where TSVAE achieved a Recall@10 of 2.30, significantly higher than the standard LSTM (0.62).

Several key insights emerged from the study:

  • The "Trend" Filter: Absolute time acts as a contextual filter. By conditioning on $t$, the model can "discount" actions likely caused by temporary global trends, preventing them from polluting the user's long-term preference profile.
  • Time as a Gate: Simply concatenating time to input often performs poorly due to non-linear relationships. The Time-LSTM’s gating mechanism is more effective as it allows the model to dynamically "forget" or "remember" past actions based on the duration of the interval.
  • Reconstruction Strategy: Interestingly, the authors found that only reconstructing the items (and not the timestamps) yielded better recommendation accuracy, suggesting that predicting the exact time of the next action adds unnecessary noise to the primary task.

Conclusion

TSVAE demonstrates that accounting for both the order and exact timing of user actions significantly improves recommendation precision and robustness. While the model introduces higher computational complexity than simpler VAEs, its ability to filter out external trends makes it a powerful tool for modern recommendation engines. Future work will focus on optimizing the RNN encoder portion to reduce the calculation load for massive-scale industrial applications.

Summary updated

BibTeX
@article{hozumi2021time,
  author = {Jun Hozumi and Yusuke Iwasawa and Yutaka Matsuo},
  title = {{Time-Sequential Variational Conditional Auto-encoders for Recommendation}},
  journal = {Transactions},
  year = {2021},
  doi = {10.1527/tjsai.36-3\_c-kb7},
}
Figure