TL;DR
HT-GNN (Hyper-Temporal Graph Neural Network) is a novel framework designed to accurately predict Customer Lifetime Value (LTV) within digital advertising ecosystems. By combining hypergraph learning to capture group-level demographic patterns with adaptive transformer encoders for noisy behavioral sequences, it achieves a massive 75% relative improvement on short-term forecasting tasks within Baidu's advertising platform.
What Problem Does This Paper Address?
Predicting a user's Customer Lifetime Value (LTV) helps digital advertising platforms optimize bidding strategies and allocate marketing budgets effectively. However, doing this in modern feed-based advertising environments introduces two major hurdles:
- Demographic Heterogeneity: Personalized ad delivery creates distinct sub-populations or user segments. Standard models assume a homogeneous population, failing to capture the unique, segment-specific value distributions that emerge from targeted advertising.
- Behavioral Uncertainty: Unlike organic e-commerce actions, user behaviors on ad platforms are continuously disrupted by platform interventions (e.g., changing ad volumes, shifting incentive mechanisms, or altering ad types). This creates highly irregular, noisy behavioral sequences that are difficult to model.
The authors introduce HT-GNN to jointly address these structural (group-level) and temporal (individual-level) complexities.
Methods
HT-GNN integrates structural population modeling with dynamic sequence encoding through a multi-component architecture:
- Hypergraph-Supervised Learning: Traditional graphs only connect pairs of nodes. HT-GNN constructs a hypergraph where hyperedges connect multiple users based on feature similarity in a unified representation space. To ensure these representations preserve LTV relevance, the authors introduce a supervision mechanism based on Jensen-Shannon (JS) divergence to align feature-space differences with actual LTV differences.
- Adaptive Temporal Encoder: A Transformer-based encoder processes 35 distinct types of user behavior sequences (e.g., search frequencies, ad interactions). To handle the irregular sequence lengths caused by platform interventions, it utilizes a dynamic weighting mechanism driven by sequence-length masks.
- Task-Adaptive Mixture-of-Experts (MoE): Predicting LTV across different horizons (30, 180, or 365 days) requires different feature combinations. Short-term predictions rely heavily on recent behaviors, while long-term predictions require stable demographic traits. The MoE layer uses an adaptive gating mechanism to dynamically route information based on data availability per task.
- Multi-Loss Optimization: Advertising LTV distributions are heavily long-tailed, with many zero-value users and a few hyper-high-value users. The framework optimizes a multi-objective loss function combining Cross-Entropy loss (to classify whether a user will generate any value) and a dynamic Huber loss (robust regression that automatically adjusts to outliers based on the 95th percentile of batch errors).
Datasets
The model was evaluated on a massive, real-world industrial dataset:
- Baidu Ads Dataset: Comprises 15 million user records collected between September 2023 and March 2025. It includes user profiles, search/feed ad interactions, 35 types of behavioral sequences, and ground-truth LT (Lifetime) and LTV values recorded at 30, 180, and 365-day intervals.
Key Insights and Ideas
- Demographic Regularity Reduces Variance: The authors' empirical analysis revealed that users sharing 10 or more features showed a 60–70% reduction in LTV variance compared to random groupings. This strongly validates the choice to explicitly model group-level structures using hypergraphs rather than treating users as entirely independent entities.
- Hypergraphs Outperform Standard Graphs: Standard graph neural networks (like GCN, GraphSAGE, or GAT) fall short because they only depict pairwise (first-order) relationships. Hypergraphs capture higher-order correlations, providing the expressive power needed to represent complex user-ad interactions.
- The Danger of Pure MSE: Standard Mean Squared Error (MSE) heavily penalizes errors on rare, high-value users, destroying performance on the majority population. Combining a classification head with a dynamically adjusted Huber loss prevents the model from being derailed by extreme outliers.
Key Results
HT-GNN was compared against strong industrial baselines, including XGBoost, ZILN, expLTV, MDME, and HST-GT.
- State-of-the-Art Performance: HT-GNN consistently outperformed all baselines across all horizons (30, 180, 365 days) and all evaluation metrics (NRMSE, NMAE, GINI, AUC).
- Massive Short-Term Gains: On the 30-day prediction horizon ($LT_{30}$ and $LTV_{30}$), HT-GNN achieved over a 75% relative improvement in regression accuracy (NRMSE/NMAE) compared to the second-best model (MDME).
- Ablation Validation: Removing the hypergraph component (
w/o HG) or the dynamic weighting mechanism (w/o DW) led to significant performance drops, proving that both group-level structures and sequence-masking are vital to the model's success.
Limitations and Future Work
The paper does not deeply explore the computational overhead or scalability challenges of running hypergraph convolutions on live, fast-evolving production traffic at the scale of hundreds of millions of users.
For future work, the authors suggest that this joint structural-temporal modeling approach holds strong potential for domains beyond advertising, such as e-commerce recommendations or logistics delivery estimation, where user populations are highly heterogeneous and behavioral contexts change rapidly.
Summary updated