TL;DR
This paper introduces HC2, a novel approach for multi-scenario ad ranking that leverages contrastive learning to better model inter-scenario relationships. By introducing generalized and individual contrastive losses, HC2 effectively captures both common and scenario-specific knowledge, leading to significant improvements in ad ranking performance.
What Problem Does This Paper Address?
Online advertising relies heavily on ad ranking systems to predict user behavior (like clicks and conversions) and display the most relevant ads. In practice, these systems often operate across multiple "scenarios" – think different product categories (electronics vs. clothing) or different platforms (mobile app vs. web search). Multi-scenario ad ranking aims to train a single, unified model that performs well across all these scenarios. The core challenge is that while training on data from multiple scenarios can alleviate data sparsity issues, it's difficult to effectively model the complex relationships (commonalities and differences) between these scenarios. Existing methods often use shared-specific architectures but struggle to explicitly learn these inter-scenario dynamics, leading to limitations in learning capability and difficulty in capturing nuanced relationships.
Methods
The proposed approach, Hybrid Contrastive Constraints (HC2), builds upon a standard shared-specific architecture (like SharedBottom) but enhances its training with two novel contrastive learning losses:
- Generalized Contrastive Loss: This loss targets the shared component of the model to capture common knowledge across all scenarios. To improve this, HC2 introduces:
- Extended Contrastive Samples: * Label-aware samples: Uses both coarse-grained (same/opposite label across scenarios) and fine-grained (similarity-based selection) samples to create more informative positive and negative pairs.
- Diffusion noise enhanced negative samples: Leverages diffusion models to generate more diverse and generalized negative samples, addressing the anisotropy problem in contrastive learning.
- Reciprocal Similarity Weighting: Dynamically weights contrastive pairs based on their similarity to mitigate the impact of false positives and negatives.
- Individual Contrastive Loss: This loss targets the scenario-specific components to learn scenario-specific knowledge. Key techniques include:
- Scenario-aware Contrastive Samples: * Dropout-based augmentation: Generates positive samples by applying dropout to the scenario-specific component's output, creating semantically similar but distinct representations.
- Cross-scenario encoding: Generates "hard" negative samples by feeding the shared representation of one scenario into the scenario-specific encoder of another, forcing the model to distinguish between scenarios.
These two losses are jointly optimized with the main ad ranking loss.
Datasets
The paper evaluates HC2 on two datasets:
- AliExpress: A public multi-scenario dataset collected from the AliExpress search system, with scenarios defined by five different countries.
- Ali-ads: A large-scale production dataset from the Alibaba advertising platform, with five distinct marketing scenarios.
Key Insights and Ideas
- Contrastive Learning for Inter-Scenario Relations: The core innovation is applying contrastive learning, typically used for representation learning within a single domain, to explicitly model the relationships between different advertising scenarios.
- Bridging Common and Specific Knowledge: The dual-loss approach (generalized + individual) is crucial. It allows the model to simultaneously learn what's universally true across ads and what's unique to specific contexts.
- Beyond Simple Negatives: The use of diffusion models for negative sampling and cross-scenario encoding for hard negatives are clever ways to create more challenging and informative training signals, pushing the model to learn finer distinctions.
- Robustness to Data Sparsity: The paper shows that HC2's ability to leverage inter-scenario relationships makes it particularly effective when data is scarce in individual scenarios.
Key Results
- Significant Performance Gains: HC2 consistently outperforms various strong baselines (including single-scenario and other multi-scenario methods) on both CTR (Click-Through Rate) and CTCVR (Click-Through Conversion Rate) prediction tasks across both datasets. For example, on AliExpress, HC2 achieves AUCCTR scores around 0.7398-0.7421, outperforming the next best by a noticeable margin.
- Ablation Studies Confirm Effectiveness: Removing either the generalized or individual contrastive loss significantly degrades performance, highlighting the importance of both components. The diffusion noise and reciprocal similarity weighting also contribute positively.
- Online A/B Test Success: Deployed on Alibaba's advertising platform, HC2 achieved relative improvements of +2.18% in CTR, +2.51% in CVR, and +3.72% in GMV (Gross Merchandise Volume) with no increase in response time.
- Improved Representation Uniformity: Visualizations show that HC2 leads to more uniformly distributed hidden representations in the shared component, suggesting better information preservation and generalization.
Limitations and Future Work
- Generalizability: While the paper claims HC2 can be applied to various shared-specific architectures, the primary experiments focus on SharedBottom. Further validation across a wider range of backbones is suggested.
- Computational Cost: While inference time is not increased, the contrastive losses do add computational overhead during training.
- Future Directions: The authors suggest extending HC2 to other recommendation and advertising tasks like multi-domain item recommendation and multi-task ad ranking. They also plan to explore adapting the approach to these broader fields.
Summary updated