FLIP: Fine-grained Alignment between ID-based Models and Pretrained Language Models for CTR Prediction

Hangyu Wang, Jianghao Lin, Xiangyang Li, Bo Chen, Chenxu Zhu, Ruiming Tang, Weinan Zhang, Yong Yu

TL;DR

This paper introduces FLIP, a novel framework that bridges the gap between traditional ID-based models and modern Pretrained Language Models (PLMs) for Click-Through Rate (CTR) prediction. FLIP achieves superior performance by enabling fine-grained, feature-level alignment between tabular ID features and textual descriptions, overcoming the limitations of each approach individually.

What Problem Does This Paper Address?

Click-through rate (CTR) prediction is crucial for personalized online services like search engines and recommendation systems. Traditionally, CTR models rely on ID-based approaches that use one-hot encoded tabular features. While these models excel at capturing collaborative signals through feature interactions, they lose valuable semantic information present in textual descriptions. More recently, Pretrained Language Models (PLMs) have emerged, leveraging textual data to extract semantic knowledge. However, PLMs struggle with capturing field-wise collaborative signals and distinguishing between features with subtle textual differences. This paper addresses the challenge of combining the strengths of both ID-based and PLM approaches to achieve more robust and accurate CTR prediction, specifically by enabling a deeper, feature-level understanding between these two distinct data modalities.

Methods

FLIP is a model-agnostic framework that operates in three stages:

  1. Modality Transformation: Raw tabular data is converted into textual sentences using simple prompt templates, preserving semantic information without loss.
  2. Modality Alignment Pretraining: This is the core innovation. FLIP employs a jointly masked tabular and language modeling task. Here, masked features (either IDs in tabular data or tokens in text) from one modality must be reconstructed using information from the other modality. This forces a fine-grained, feature-level interaction and alignment. This is complemented by Instance-level Contrastive Learning (ICL) to ensure global consistency between modalities.
  3. Field-level Data Masking: A key aspect is masking entire fields (e.g., "occupation" field) rather than random tokens, which is more robust for tabular data.
  4. Masked Language Modeling (MLM): PLMs reconstruct masked text tokens using complete tabular data.
  5. Masked Tabular Modeling (MTM): ID-based models reconstruct masked tabular features using complete textual data.
  6. Adaptive Finetuning: After pretraining, the ID-based model and PLM are jointly finetuned on the downstream CTR prediction task. Their predictions are adaptively combined using a learnable parameter, allowing the model to balance their contributions.

Datasets

The authors evaluated FLIP on three real-world public datasets commonly used in recommendation systems:

  • MovieLens-1M: A movie recommendation dataset with user-movie ratings.
  • BookCrossing: A book recommendation dataset with user-book ratings.
  • GoodReads: Another book recommendation dataset with user-book ratings.

These datasets are noted for containing unencrypted original text, preserving semantic information.

Key Insights and Ideas

  • The Power of Fine-Grained Alignment: The paper strongly advocates for feature-level alignment over instance-level alignment. By forcing models to "talk" to each other at the feature level (e.g., using the text description of a feature to predict its ID), FLIP learns richer cross-modal representations.
  • Complementary Strengths: ID-based models are good at collaborative signals and distinguishing subtle differences via IDs, while PLMs excel at semantic understanding. FLIP effectively combines these by allowing each to "teach" the other.
  • Masking Matters: The choice of masking strategy is crucial. Field-level masking for tabular data is shown to be more effective than random token masking for PLMs, preventing representation degeneration.
  • Joint Reconstruction is Key: The core MLM and MTM tasks, where one modality reconstructs the other's masked parts, are essential for learning effective cross-modal representations.
  • Model Agnosticism: FLIP is designed to be compatible with various existing ID-based models and PLMs, making it a versatile framework for improving existing systems.

Key Results

  • State-of-the-Art Performance: FLIP consistently outperforms strong baselines from ID-based, PLM-based, and combined ID+PLM categories across all three datasets, achieving significant improvements in AUC and Logloss. For example, on MovieLens-1M, FLIP achieved an AUC of 0.8621, outperforming the best ID-based baseline (DCNv2) by 0.72% and the best PLM-based baseline (FLIPPLM) by 1.89%.
  • Individual Model Improvement: Variants FLIPID (only finetuning the ID-based model) and FLIPPLM (only finetuning the PLM) also showed significant improvements over their respective vanilla baselines, demonstrating the benefit of the pretraining alignment even when not combining the models at inference.
  • Compatibility: FLIP showed strong compatibility with different ID-based models (DeepFM, AutoInt, DCNv2) and PLMs (TinyBERT, RoBERTa-Base, RoBERTa-Large), indicating its general applicability.
  • Ablation Studies: Removing any of the pretraining objectives (MLM, MTM, ICL) led to performance degradation, highlighting the importance of each component. Specifically, the jointly masked reconstruction tasks (MLM & MTM) were found to be critical for fine-grained alignment.

Limitations and Future Work

  • Hyperparameter Sensitivity: The paper notes that the temperature parameter in contrastive learning and the mask ratios for both modalities require careful tuning for optimal performance, as explored in the hyperparameter studies.
  • Computational Cost: While FLIP is model-agnostic, the pretraining stage adds computational overhead. However, the authors suggest that the performance gains justify this cost.
  • Future Work: The authors suggest exploring more sophisticated prompt templates for modality transformation and investigating more advanced cross-modal interaction mechanisms beyond the current masked modeling approach. They also implicitly suggest that this fine-grained alignment could be beneficial in other domains beyond CTR prediction where multimodal data exists.

Summary updated

BibTeX
@inproceedings{wang2024flip,
  author = {Hangyu Wang and Jianghao Lin and Xiangyang Li and Bo Chen and Chenxu Zhu and Ruiming Tang and Weinan Zhang and Yong Yu},
  title = {{FLIP: Fine-grained Alignment between ID-based Models and Pretrained Language Models for CTR Prediction}},
  booktitle = {RecSys},
  year = {2024},
  doi = {10.1145/3640457.3688106},
}
Figure