Enhancing CTR Prediction through Sequential Recommendation Pre-training: Introducing the SRP4CTR Framework

Ruidong Han, Qianzhong Li, He Jiang, Rui Li, Yurou Zhao, Xiang Li, Wei LinCIKM 2024 · DOI

TL;DR

This paper introduces SRP4CTR, a framework that leverages sequential recommendation pre-trained models to significantly improve Click-Through Rate (CTR) prediction. By introducing a novel FG-BERT for richer pre-training and a low-cost cross-attention mechanism for fine-tuning, SRP4CTR effectively transfers knowledge from pre-trained models to CTR tasks while minimizing inference overhead, demonstrating strong performance in both offline and online evaluations.

What Problem Does This Paper Address?

Click-Through Rate (CTR) prediction is a cornerstone of recommender systems, aiming to predict the likelihood of a user clicking on an item. Modeling user behavior sequences is crucial for this, and recent trends show longer sequences being used. While self-supervised pre-training on sequential recommendation tasks (like next-item prediction) has shown promise, directly integrating these pre-trained models into CTR prediction presents challenges. Existing methods often focus on extracting general user features, overlooking the additional inference costs incurred in real-time industrial systems. Furthermore, they fail to effectively transfer item-specific interest information from the pre-trained model to the target item in CTR prediction. This paper aims to bridge this gap by proposing a framework that efficiently transfers knowledge from sequential recommendation pre-trained models to CTR prediction tasks, addressing both performance and inference cost concerns.

Methods

The core of the proposed solution is the SRP4CTR (Sequential Recommendation Pre-training for CTR prediction) framework. It comprises two main components:

  1. Fine-Grained BERT (FG-BERT) for Pre-training: To address the limitation of existing pre-trained models that only consider item IDs, FG-BERT is introduced to simultaneously encode item IDs and their associated side information (e.g., price, tags, behavior types). It employs multi-attribute masking strategies for both item-related and behavior-related features, enabling a richer representation of user sequences.
  2. Low-Cost Knowledge Transfer for Fine-Tuning:
    • Uni Cross-Attention Block: This mechanism creates a unidirectional attention connection between the predicted item and the pre-trained model. It uses the predicted item as queries and the pre-trained model's output as keys and values. Crucially, the parameters of this block are not shared with the pre-trained model, allowing for specialized learning for CTR tasks while keeping inference costs low.
  3. Querying Transformer (qFormer): To further bridge the gap between pre-training objectives and CTR prediction needs, a Querying Transformer is introduced. It uses a small number of learnable query tokens that attend to the pre-trained model's output. This module helps discriminate user interests more effectively and can be folded into the inference process, maintaining efficiency.

The paper also discusses the importance of "folded inference," a technique where user sequence encoding is done once and then replicated for multiple items, significantly reducing computational load in industrial settings. SRP4CTR is designed to be compatible with this efficient deployment strategy.

Datasets

The paper evaluates its proposed framework on two public datasets:

  • MovieLens-20M: A dataset for movie recommendations, where the task is to predict if a user will give a rating exceeding 3.
  • Taobao: A dataset from an e-commerce platform, used for CTR prediction.

For evaluation, the authors also mention using a subset of the Taobao dataset, selecting the top 50% of users with the most behaviors.

Key Insights and Ideas

  • Side Information is Crucial for Pre-training: Simply pre-training on item IDs is insufficient. Incorporating rich side information (item attributes, behavior types) during pre-training leads to more robust user representations.
  • Bridging the Pre-training-Downstream Gap: The attention mechanism used in sequential recommendation pre-training is different from what's needed for CTR prediction. A dedicated, low-cost cross-attention mechanism is essential for effective knowledge transfer.
  • Inference Cost is Not an Afterthought: Industrial CTR prediction demands high throughput. SRP4CTR explicitly considers and minimizes inference costs through techniques like folded inference and efficient attention mechanisms.
  • Querying Transformer for Better Alignment: The qFormer module acts as a crucial adapter, refining the pre-trained representations to better suit the specific demands of CTR prediction.

Key Results

  • Offline Performance: SRP4CTR, particularly when combined with the proposed FG-BERT, significantly outperforms traditional CTR-based methods and other pre-training approaches (BERT, ELECTRA, S3) on both MovieLens and Taobao datasets, achieving the highest AUC scores.
  • Long-Tail Performance: SRP4CTR effectively narrows the performance gap for long-tail items, demonstrating its ability to generalize well across the item distribution.
  • Inference Efficiency: SRP4CTR achieves a substantial increase in efficiency-FLOPs (more than double) compared to optimized traditional methods (DIN+, CAN+) while only slightly increasing inference-FLOPs.
  • Online Validation: An A/B test on the Meituan Takeaway recommender system showed that SRP4CTR increased GMV by 1.66% and CTR by 0.70%, with an 182% increase in efficiency-FLOPs and only a 21% increase in inference-FLOPs.

Limitations and Future Work

  • Limitations: The paper acknowledges that while the uni cross-attention block adds minimal cost, it's still an addition. The effectiveness of the "folded inference" strategy is highlighted, but its limitations or specific scenarios where it might not be optimal are not deeply explored.
  • Future Work: The paper's success in improving both accuracy and efficiency suggests that further exploration of efficient knowledge transfer mechanisms from pre-trained models to downstream tasks in recommender systems is a promising direction. The authors have successfully demonstrated the value of their framework and its components, paving the way for more sophisticated pre-training and fine-tuning strategies in CTR prediction.

Summary updated

BibTeX
@inproceedings{han2024enhancing,
  author = {Ruidong Han and Qianzhong Li and He Jiang and Rui Li and Yurou Zhao and Xiang Li and Wei Lin},
  title = {{Enhancing CTR Prediction through Sequential Recommendation Pre-training: Introducing the SRP4CTR Framework}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2024},
  doi = {10.1145/3627673.3679914},
}
Figure