Abstract
Click-Through Rate (CTR) prediction is a fundamental task in recommender systems and online advertising. While existing research primarily focuses on designing complex feature interaction layers, the quality of underlying feature representations—particularly for low-frequency "long-tail" features—is often overlooked. We present CL4CTR, a model-agnostic framework that leverages self-supervised contrastive learning to produce high-quality feature embeddings. By introducing three novel learning signals—contrastive loss, feature alignment, and field uniformity—CL4CTR significantly improves performance across various base models and datasets, particularly for rare features.
The Problem: The Long Tail of Features
In CTR prediction, categorical features are typically transformed into dense vectors via an embedding layer. However, real-world data is inherently "long-tailed," meaning the vast majority of features appear very infrequently.
Standard supervised models rely on frequent updates to learn robust embeddings. For rare features, the supervised signal is too sparse, leading to poor representations and sub-optimal predictions. CL4CTR addresses this by providing additional self-supervised signals that regularize the embedding space.
The CL4CTR Framework
CL4CTR is designed to be model-agnostic, meaning it can be integrated into almost any existing CTR architecture. It introduces three key components to the training process:
- Contrastive Module: This module creates two augmented "views" of the input data using techniques like random masking or feature masking. A shared Transformer-based encoder ensures the model learns a compact, robust representation consistent across both views.
- Feature Alignment: This constraint encourages features within the same field (e.g., different values for 'City') to have similar representations.
- Field Uniformity: This ensures that features from different fields are well-separated and distinct in the embedding space.
By combining these self-supervised losses with the standard CTR prediction loss, the model learns superior embeddings for all features, regardless of their frequency.
Key Insights and Results
- State-of-the-Art Performance: Applying CL4CTR to a simple Factorization Machine (FM) allowed it to outperform complex models like DCN-V2 and DeepFM. On the Frappe dataset, CL4CTR improved Logloss by 16.10% relative to the strongest baseline.
- Universal Compatibility: The framework consistently boosted performance when added to various base models (DeepFM, AutoInt+, DCN) across multiple benchmarks including MovieLens and SafeDriver.
- Inference Efficiency: Because the self-supervised signals are only utilized during the training phase, CL4CTR improves accuracy without adding any computational overhead during live inference.
Conclusion
CL4CTR demonstrates that high-quality feature representation is as critical as the complexity of the interaction layer. By using contrastive learning to regularize the embedding space, the framework effectively addresses the long-tail problem in CTR prediction, providing a robust and efficient solution for real-world recommender systems.
Summary updated