A Self-Correcting Sequential Recommender

Yujie Lin, Chenyang Wang, Zhumin Chen, Zhaochun Ren, Xin Xin, Qiang Yan, Maarten de Rijke, Xiuzhen Cheng, Pengjie Ren

Introduction

Sequential recommendation systems are designed to predict a user's next interaction based on their historical behavior. However, these systems typically operate under the idealistic assumption that a user’s interaction history is a perfect reflection of their underlying preferences. In reality, user data is often "noisy" or incomplete.

Real-world interaction sequences suffer from two primary types of imperfections: misclicks, where a user accidentally interacts with an irrelevant item, and missed items, where a user would have liked an item but was never exposed to it due to algorithmic limitations (exposure bias). While traditional denoising methods attempt to down-weight noise or filter by frequency, they rarely address the problem of missing items or explicitly attempt to restore the corrupted sequence. To solve this, we introduce STEAM (Self-correcTing sEquentiAl recoMmender), a framework that treats user history as a signal requiring active restoration.

The STEAM Framework

STEAM moves beyond passive denoising by explicitly modifying the input sequence before making a recommendation. The architecture consists of three integrated components:

  1. Shared Encoder: A bidirectional Transformer (based on the BERT architecture) that maps the input sequence into high-dimensional hidden representations.
  2. Item-wise Corrector: This module evaluates every item in the sequence and decides on one of three operations: keep, delete, or insert.
  3. Reverse Generator: If the corrector chooses to insert an item, this unidirectional Transformer predicts which item was likely skipped and places it into the sequence.
  4. Recommender: This final module takes the corrected, "restored" sequence and performs a masked item prediction task to suggest the most likely next interaction.

Self-Supervised Learning Strategy

A significant challenge in training a corrector is the lack of ground-truth labels for what constitutes a "misclick" or a "missed item" in massive datasets. STEAM overcomes this using two self-supervised tasks:

  • Deletion Correction: The model is trained on sequences where items have been randomly injected; it must learn to identify and delete these artificial noise points.
  • Insertion Correction: The model is trained on sequences with items randomly removed; it must learn to insert the missing pieces back into their correct positions.

By training the corrector and recommender jointly, the system learns to produce cleaner, more coherent sequences that better represent user intent.

Experimental Evaluation

STEAM was evaluated on three standard benchmarks: Amazon Beauty, Amazon Sports, and Yelp. To further test the model's resilience, the authors also created simulated test sets by manually injecting noise and deleting items from the ground truth.

Key Results

  • State-of-the-Art Performance: STEAM consistently outperformed leading baselines such as SASRec, BERT4Rec, and DuoRec. On the Yelp dataset, STEAM achieved an HR@5 of 67.22, a notable improvement over DuoRec’s 64.01.
  • Robustness to Noise: In high-interference environments (simulated noise), STEAM’s performance remained stable while competing models saw significant degradation. The corrector effectively filtered out noise that caused other models to overfit.
  • Ablation Studies: Experiments confirmed that both delete and insert operations are essential. Removing either task resulted in a measurable drop in accuracy, proving that addressing both noise and exposure bias is critical for modern recommendation.

Discussion and Insights

STEAM represents a shift from implicit denoising to explicit sequence restoration. By sharing an encoder between the corrector and the recommender, the model is forced to learn deeper item correlations than standard prediction tasks allow. Furthermore, the ability to handle "missing items" differentiates STEAM from previous denoising-only frameworks like FMLP-Rec. The model's adaptive nature allows it to apply corrections only where needed, maintaining the integrity of clean sequences while aggressively fixing corrupted ones.

Limitations and Future Work

While effective, STEAM has some constraints. Currently, the model cannot perform a delete and an insert at the same position simultaneously, and the insertion logic is restricted to placing items before a chosen anchor. Additionally, the multi-stage process increases computational complexity compared to standard Transformers. Future research will focus on developing iterative correctors that can refine sequences multiple times and integrating the STEAM framework with a broader range of base architectures.

Summary updated

BibTeX
@inproceedings{lin2023self,
  author = {Yujie Lin and Chenyang Wang and Zhumin Chen and Zhaochun Ren and Xin Xin and Qiang Yan and Maarten de Rijke and Xiuzhen Cheng and Pengjie Ren},
  title = {{A Self-Correcting Sequential Recommender}},
  booktitle = {The Web Conference},
  year = {2023},
}
Figure