Self-Balancing Gradient Allocation for Heterogeneity-Aware Feature Generation in Click-Through Rate Prediction

Moyu Zhang, Yun Chen, Yujun Jin, Jinxin Hu, Yu Zhang, Xiaoyi ZengarXiv 2026

TL;DR

Generative pre-training for Click-Through Rate (CTR) prediction often suffers from a "generative difficulty imbalance," where easy-to-reconstruct features dominate training gradients at the expense of complex, highly informative fields like user and item IDs. This paper introduces HeteGenCTR, a framework that learns per-field difficulty parameters to dynamically rebalance both the loss function and internal attention mechanisms. This unified approach significantly boosts CTR prediction accuracy, particularly for cold-start and long-tail scenarios, without adding extra hyperparameters.

What Problem Does This Paper Address?

In recommendation systems, standard CTR models act as discriminative classifiers trained on binary click/no-click labels. However, real-world recommendation traffic is plagued by extreme data sparsity—most user-item combinations appear rarely, if ever.

To combat this, recent state-of-the-art methods use a generative paradigm: they pre-train models to reconstruct masked feature fields using discrete diffusion. While effective, these methods treat all feature fields equally during training.

The authors identify a fundamental flaw here: generative difficulty imbalance. Feature fields are highly heterogeneous. A low-cardinality categorical attribute (like "device type") or a numerical value is easy to reconstruct and converges quickly. Conversely, high-cardinality fields (like User ID or Item ID) and behavioral sequences are incredibly complex and slow to converge. Under a uniform loss function, the easy fields monopolize the gradients early on, leaving the hard fields—which happen to carry the strongest personalization signals—chronically underfit.

Figure 1: Illustration of the generative difficulty imbalance in CTR feature generation. (a) Monolithic uniform generation applies equal-weight loss across all feature fields, causing easy-to-reconstruct fields to dominate training gradients and suppressing learning for high-signal complex fields. (b) HeteGenCTR learns per-field difficulty estimates that automatically rebalance gradient budget and simultaneously drive difficulty-guided attention—all from a single unified signal.

Methods

The authors propose HeteGenCTR, which introduces a single set of per-field learnable log-difficulty parameters ($s^i$) that are trained jointly with the denoising network. This single signal coordinates two distinct corrections:

  1. Self-Balancing Loss: Derived from multi-task uncertainty weighting, this mechanism automatically adjusts the loss weight of each field inversely to its current reconstruction difficulty. Harder fields retain larger weights, while converged easy fields are progressively down-weighted. The authors provide a stability analysis proving this equilibrium is a strict local minimum.
  2. Difficulty-Guided Denoising: The difficulty imbalance also happens at the representation level. Within the model's attention layers (built on Hierarchical Sequential Transducer Units, or HSTU), the queries of easy fields can drown out hard fields. HeteGenCTR uses the learned difficulty parameters to scale the attention queries by $\exp(-s^i/2)$, suppressing the influence of already-converged easy fields and amplifying cross-field information flow toward hard fields.

Because both components are driven by the exact same learned parameter, they remain perfectly aligned throughout training without requiring manual hyperparameter tuning.

Figure 2: The overall architecture of HeteGenCTR. (a) Heterogeneous Feature Type Encoding partitions feature fields into four type groups. (b) The HSTU denoising network applies difficulty-guided attention scaling ˜𝑞𝑖= exp(−𝑠𝑖/2) · 𝑞𝑖using the same learned {𝑠𝑖}. (c) Self-Balancing Loss aggregates per-field reconstruction losses weighted by exp(−𝑠𝑖).

Datasets

The framework was evaluated on four public benchmarks and one large-scale industrial dataset:

  • Criteo: A standard benchmark with mixed dense numerical and high-cardinality categorical features.
  • Avazu: A mobile advertising dataset characterized by high sparsity.
  • KDD12: A search advertising dataset containing user-query-ad session logs.
  • Amazon Product Reviews (Electronics): Highly heterogeneous, combining IDs, categories, and historical behavioral sequences.
  • Industrial Dataset: A proprietary dataset from a large e-commerce platform containing 68 fields spanning all modalities and 513 million impressions.

Key Insights and Ideas

  • The Paradox of Sparsity: The features that are hardest for a generative model to reconstruct (sparse user/item IDs) are precisely the ones that hold the most predictive power for downstream CTR tasks. Uniform weighting systematically starves these high-signal fields of gradient budget.
  • Unified Dual-Level Correction: Reweighting the loss function isn't enough if the internal representations are still dominated by easy fields. By modulating both the loss and the attention queries using a mathematically aligned coefficient, the model forces the network to actively aggregate information for underfit fields.
  • Zero-Overhead Inference: Because the difficulty estimation and attention modulation happen entirely during the offline generative pre-training stage, the final deployed CTR model inherits the optimized embeddings with zero additional online serving latency.

Key Results

  • State-of-the-Art Performance: HeteGenCTR consistently outperformed all discriminative and generative baselines (including DGenCTR and SGCTR) across all five datasets in both AUC and LogLoss. The gains were most pronounced on the most heterogeneous datasets (Amazon and Industrial).
  • Rescuing the Long-Tail: Stratification analysis on the Industrial dataset showed that HeteGenCTR provides disproportionate gains for cold-start users (+0.0066 AUC improvement over SGCTR) and tail items (+0.0091 AUC improvement), validating that the model successfully reallocates capacity to sparse fields.
  • Online Production Deployment: In a 7-day online A/B test on a massive e-commerce platform, HeteGenCTR achieved a +4.7% relative improvement in CTR over a strong production baseline while keeping the 99th-percentile serving latency within 0.5ms.

Limitations and Future Work

  • Framework Specificity: The current formulation is tightly coupled with discrete diffusion and HSTU architectures. Extending this self-balancing mechanism to other generative paradigms (like masked autoencoders) or alternative backbones remains an open question.
  • Coarse-Grained Difficulty: The difficulty parameters are learned as static per-field scalars. In reality, difficulty might vary at the instance level (e.g., a frequent user's ID is easier to learn than a rare user's ID). Developing instance-adaptive difficulty estimation is a promising future direction.

Summary updated

BibTeX
@misc{zhang2026self,
  author = {Moyu Zhang and Yun Chen and Yujun Jin and Jinxin Hu and Yu Zhang and Xiaoyi Zeng},
  title = {{Self-Balancing Gradient Allocation for Heterogeneity-Aware Feature Generation in Click-Through Rate Prediction}},
  year = {2026},
  eprint = {2605.24986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.24986},
}
Figure