C2-Rec: An Effective Consistency Constraint for Sequential Recommendation

Chong Liu, Xiaoyang Liu, Rongqin Zheng, Lixin Zhang, Xiaobo Liang, Juntao Li, Lijun Wu, Min Zhang, Leyu Lin

Abstract

Sequential recommendation models often struggle with data sparsity and the complexity of contrastive learning frameworks. This paper introduces CT4Rec (Consistency Training for Recommendation), a streamlined framework that replaces intricate data augmentation and negative sampling with two straightforward consistency training objectives. By leveraging internal dropout as a source of noise, CT4Rec regularizes both the output and representation spaces, achieving state-of-the-art performance with minimal training overhead.

Introduction

Sequential recommendation (SR) aims to predict a user's next interaction based on their historical behavior. While Transformer-based models like SASRec have set strong baselines, they frequently encounter challenges with data sparsity, where limited user interactions hinder the learning of robust representations.

To address this, recent state-of-the-art (SOTA) methods have integrated Contrastive Learning (CL). However, CL introduces significant complexity, requiring researchers to meticulously design data augmentation strategies (e.g., cropping or masking), select pretext tasks, and manage efficient negative sampling. Furthermore, a gap often exists between the contrastive objective—distinguishing between sequences—and the primary recommendation task of predicting the next item. CT4Rec addresses these issues by utilizing consistency training to bridge this gap without the need for manual data augmentation.

Methodology

CT4Rec proposes a simple yet effective approach: using the model's internal dropout as a natural source of noise to generate "different views" of the same input data. The same input sequence is passed through the model twice with different dropout masks, and two novel losses are applied to ensure consistency:

  1. Regularized Dropout Loss (RD): Operating on the output space, this calculates the bidirectional KL divergence between the probability distributions of the two forward passes. This forces the model to remain robust to its own internal stochasticity.
  2. Distributed Regularization Loss (DR): Operating on the representation space, this compares the distribution of similarities between the current user and all other users in the mini-batch. This ensures that a user's relative position in the embedding space remains stable regardless of dropout noise.
The CT4Rec framework architecture, illustrating the dual-pass dropout mechanism and the RD and DR loss functions.

Notably, CT4Rec requires no structural modifications to backbone models like SASRec or GRU4Rec and eliminates the need for manual data augmentation pipelines.

Experimental Setup

The model was evaluated across diverse public benchmarks and massive industrial datasets:

  • Public Benchmarks: Amazon Beauty, Amazon Sports, and Yelp.
  • Industrial Sequential Corpus: A dataset from WeChat PC Top Stories containing 9.5 million interactions.
  • CTR Prediction Extension: To test ranking effectiveness, two private industrial datasets—WeChat-Video (41M instances) and WeChat-Article (138M instances)—were utilized.

Key Results and Analysis

CT4Rec consistently outperformed SOTA contrastive models like CL4SRec and CLRec. On the Amazon Beauty dataset, it achieved a performance gain of over 21% in Hit Ratio (HR@5) compared to the vanilla SASRec backbone.

Performance sensitivity of CT4Rec (basic + L2) with respect to the hyperparameter β, showing stability across various ranges before a sharp decline at high values.

Beyond accuracy, the framework demonstrated significant efficiency and real-world impact:

  • Efficiency: The model converges faster than contrastive methods because it avoids negative sampling and complex augmentation.
  • Online Performance: In A/B testing on WeChat, CT4Rec led to a 2.717% increase in Click-Through Rate (CTR) and a 3.679% increase in average clicks per capita without increasing inference latency.
  • Versatility: The method successfully extended to CTR prediction tasks using DeepFM as a backbone, proving effective on datasets exceeding 100 million samples.

Discussion and Limitations

A key insight of this work is that dropout serves as a "free" augmentation that perturbs features rather than the raw sequence data, providing a cleaner signal for consistency. The authors also found that regularizing the relative similarity to other users (DR loss) is more effective than direct vector regularization, as it captures higher-order correlations.

However, the method is sensitive to the dropout rate; if the rate is too high (e.g., >0.8), the inconsistency becomes irreconcilable, leading to performance degradation. Future work will explore the theoretical foundations of consistency training in ranking tasks and investigate alternative noise injection methods beyond dropout.

Summary updated

BibTeX
@inproceedings{liu2023c,
  author = {Chong Liu and Xiaoyang Liu and Rongqin Zheng and Lixin Zhang and Xiaobo Liang and Juntao Li and Lijun Wu and Min Zhang and Leyu Lin},
  title = {{C2-Rec: An Effective Consistency Constraint for Sequential Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599798},
}
Figure