Adversarial Oracular Seq2seq Learning for Sequential Recommendation

Pengyu Zhao, Tianxiao Shui, Yuanxing Zhang, Kecheng Xiao, Kaigui Bian

Abstract

Traditional sequential recommendation systems focus on predicting the single next item, often failing to capture the structural dependencies within a recommended list. This paper introduces AOS4Rec, a generative sequence-to-sequence (seq2seq) framework that treats recommendation as a list-generation task. By integrating "oracular learning" to bridge the gap between training and inference and an adversarial training strategy (SSRGAN) to ensure sequence-level coherence, AOS4Rec effectively mitigates exposure bias and captures behavior continuity. Experimental results on the YOOCHOOSE and MovieLens datasets demonstrate that AOS4Rec consistently outperforms state-of-the-art models, particularly in sequence similarity metrics.

Introduction

Most existing sequential recommendation models are designed for next-item prediction. However, real-world applications often require recommending a sequence of items simultaneously. This presents two primary challenges: transition dependency, where the logical flow between items in a list is ignored, and exposure bias, where models trained with "ground truth" inputs (Teacher Forcing) struggle during inference when they must rely on their own previous predictions.

AOS4Rec addresses these issues by reframing recommendation as a seq2seq problem, similar to machine translation, allowing for the optimization of entire sequences rather than isolated items.

Methodology: The AOS4Rec Framework

The AOS4Rec framework is architecture-agnostic, meaning it can enhance both RNN-based (AOS4Rec-R) and Transformer-based (AOS4Rec-T) models. It introduces two core training strategies:

Oracular Learning

To reduce exposure bias, the authors introduce an "oracle." During training, the model is not always fed the ground truth. Instead, it is sometimes provided with its own "best" generated sequence, identified via BLEU score ranking from a beam search. This "oracular" feedback teaches the model to recover from its own imperfect outputs, bridging the discrepancy between training and real-world inference.

SSRGAN (Seq2Seq-Recommendation GAN)

AOS4Rec employs a Generative Adversarial Network (GAN) where the recommender acts as the generator. A discriminator is trained to distinguish between actual user interaction sequences and those generated by the model.

  • Actor-Critic RL: To handle discrete item selection, the framework uses reinforcement learning.
  • WGAN Stability: Wasserstein GAN techniques are used to stabilize the adversarial training process.
Figure 1: The AOS4Rec architecture featuring a sequence encoder-decoder structure with oracular and adversarial training components.

Experimental Setup

The model was evaluated on two distinct datasets with varying characteristics:

  • YOOCHOOSE: Short, sparse sessions based on click events, representing short-term interests.
  • MovieLens-20M: Long-term user interaction sequences representing stable preferences.

Results and Discussion

AOS4Rec was compared against several baselines, including SASRec, BERT4Rec, and RecGAN. As shown in the results table, AOS4Rec-T consistently achieved superior performance across both datasets.

Figure 4: Performance comparison of AOS4Rec against state-of-the-art baselines on YOOCHOOSE and MovieLens datasets.

Key Findings

  • Sequence Quality: The most significant gains were observed in BLEU scores, with improvements of 6.7% to 21.3% over base models. This confirms that AOS4Rec is better at capturing the logical flow of user behavior.
  • Accuracy: Improvements in Precision@K and NDCG@K demonstrate that optimizing for sequence-level coherence also benefits item-level accuracy.
  • Versatility: The framework successfully boosted performance for both RNN and Transformer architectures across varying sequence lengths and data sparsity levels.

Conclusion

AOS4Rec represents a shift from point-wise prediction to sequence-wise generation in recommendation systems. By leveraging oracular learning and adversarial training, it effectively handles exposure bias and captures complex transition dependencies. Future work may explore reducing the computational overhead of beam search and incorporating richer contextual features to further refine the generated sequences.

Summary updated

BibTeX
@inproceedings{zhao2020adversarial,
  author = {Pengyu Zhao and Tianxiao Shui and Yuanxing Zhang and Kecheng Xiao and Kaigui Bian},
  title = {{Adversarial Oracular Seq2seq Learning for Sequential Recommendation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.24963/ijcai.2020/264},
}
Figure