Introduction
In modern recommendation systems, a single model often serves multiple "scenarios," such as different ad slots, channels, or user contexts. Traditional approaches rely on manual Scenario IDs to distinguish these contexts. However, this explicit modeling approach suffers from two major flaws: it is often too coarse-grained, ignoring data distribution variances within a single ID, and it is sub-optimal, as it fails to capture latent "implicit scenarios" hidden within feature combinations.
HierRec is a novel hierarchical framework designed to address these limitations. By combining explicit scenario modeling with a multi-head attention mechanism to discover latent implicit scenarios, it achieves state-of-the-art performance in Click-Through Rate (CTR) prediction while maintaining industrial-grade efficiency.
Methods: The HierRec Architecture
The Scenario-Aware Hierarchical Dynamic Network (HierRec) is built on three primary pillars designed to move beyond static, isolated "towers" for each scenario.
1. Scenario-Oriented Module (SOM)
Instead of using separate network towers for each scenario—which scales poorly and prevents information sharing—HierRec utilizes Dynamic Weights. This module generates network parameters on-the-fly based on specific scenario conditions. This approach is parameter-efficient and allows the model to adapt its logic to the scenario while maintaining a shared underlying structure.
2. Explicit Scenario-Aware Module
This layer processes traditional, pre-defined scenario features (such as an ad slot ID). It is responsible for capturing coarse-grained information that is already known to the system.
3. Implicit Scenario-Aware Module
This module serves as the core innovation of HierRec. It employs a scenario-aware multi-head attention structure to identify important latent patterns within common features. By utilizing multiple attention heads, the model can perceive data from various "perspectives," effectively discovering sub-scenarios that human engineers did not manually label.
4. Hierarchical Stacking
The architecture processes information from coarse (explicit) to fine (implicit). This hierarchical flow allows the implicit layers to refine the predictions initially established by the explicit layers, leading to more nuanced modeling.
Key Insights: The "Implicit" Advantage
A central finding of this research is that manual Scenario IDs are insufficient descriptors for data distribution. Within a single human-defined scenario, CTR can vary wildly based on other feature combinations (e.g., user demographics or item categories).
As shown in the Sankey analysis, the relationship between fields is not uniform. HierRec’s multi-head perception allows it to "soft-select" feature combinations that define these implicit scenarios, making the model robust to complex, real-world data distributions.
Experimental Results
HierRec was evaluated against strong baselines (including MMoE, PLE, and STAR) across three datasets: Ali-CCP, KuaiRand, and a large-scale industrial dataset from a mainstream advertising platform.
- Performance: HierRec consistently outperformed all baselines. On the Ali-CCP dataset, it achieved a 6.18% Relative Improvement (RelaImpr) in AUC over the best-performing baseline.
- Online Impact: In a two-week A/B test on a live platform, HierRec boosted eCPM (effective cost per mile) by 10.33% and reduced predicted bias by 6.81%.
- Deployment Efficiency: Despite its hierarchical complexity, the model's inference time increased by less than 2.5%, confirming its viability for high-traffic production environments.
Conclusion and Future Work
HierRec demonstrates that hierarchical modeling of both explicit and implicit scenarios significantly improves recommendation accuracy. While highly effective, future work may explore even more sophisticated unsupervised methods for latent scenario clustering and aim for a fully automated scenario discovery system that further reduces the reliance on manual explicit definitions.
Summary updated