Mitigating Divergence of Latent Factors via Dual Ascent for Low Latency Event Prediction Models

Alex Shtoff, Yair Koren · DOI

Abstract

Real-world content recommendation marketplaces exhibit certain behaviors and are imposed by constraints that are not always apparent in common static offline data sets. One example that is common in ad marketplaces is swift ad turnover. New ads are introduced and old ads disappear at high rates every day. Another example is ad discontinuity, where existing ads may appear and disappear from the market for non negligible amounts of time due to a variety of reasons. These behaviors sometimes cause the model's loss surface to change dramatically over short periods of time. To address these behaviors, fresh models are highly important, and to achieve this incremental training on small chunks of past events is often employed. These behaviors and algorithmic optimizations occasionally cause model parameters to grow uncontrollably large, or diverge. In this work present a systematic method to prevent model parameters from diverging by imposing a carefully chosen set of constraints on the model's latent vectors. We then devise a method inspired by primal-dual optimization algorithms to fulfill these constraints in a manner which both aligns well with incremental model training, and does not require any major modifications to the underlying model training algorithm. We analyze, demonstrate, and motivate our method on OFFSET, a collaborative filtering algorithm which drives Yahoo native advertising. Finally, we conduct an online experiment which shows a substantial reduction in the number of diverging instances, and a significant improvement to both user experience and revenue.

The Challenge of High-Velocity Ad Marketplaces

Modern recommendation systems, particularly in native advertising, operate in highly non-stationary environments. New ads are introduced and old ones expire at high rates, while budgets and user trends shift by the minute. To maintain relevance, engineers utilize incremental training, where models are updated every few minutes on small batches of fresh data.

However, this rapid update cycle introduces a stability risk. In the OFFSET model—a feature-enhanced collaborative filtering algorithm—latent factor vectors occasionally grow uncontrollably large. This phenomenon, known as parameter divergence, renders the model useless and forces its discard. At Verizon Media, up to 20% of training instances were failing due to divergence, crippling hyper-parameter tuning and degrading overall system performance.

Figure 1: Observed relationship between the number of training events and the infinity norm of latent factors, demonstrating the tendency for parameters to diverge as training progresses.

Methodology: Dual Ascent for Norm Constraints

To address divergence, we treat the problem as a constrained optimization task. Rather than relying on static global regularization, we explicitly require every latent vector to remain within a specific norm bound.

The OFFSET Model Structure

The OFFSET model relies on inner products between user and ad vectors. As shown in the architectural representation, these vectors are composed of multiple feature-based components. Because these components interact, a single "exploded" vector can contaminate the entire model through subsequent updates.

Figure 2: Composition of latent factors in the OFFSET model. The proposed method applies dynamic constraints to these vector components to ensure stability.

Primal-Dual Optimization

We enforce these constraints using a dual ascent framework that integrates seamlessly with existing training algorithms like AdaGrad:

  1. Primal Step: The model performs standard training updates but treats the regularization strength ((\mu)) as a per-vector variable rather than a global constant.
  2. Dual Step: After each training sample, the system updates the regularization coefficient ((\mu)) for the specific vectors involved.
  3. Multiplicative Updates: Utilizing an entropic gradient step derived from Bregman divergence, we implement a multiplicative update rule. If a vector's norm exceeds the safety limit, its regularization strength increases exponentially; if it remains below the limit, the strength decays toward zero. This provides a far more effective "brake" on runaway parameters than traditional additive updates.

Experimental Results

The study was conducted using production data from the Verizon Media native ad marketplace, handling billions of daily impressions. The implementation of dual ascent constraints yielded significant improvements across all key metrics:

  • System Stability: The fraction of discarded training instances dropped from approximately 20% to nearly 0%, stabilizing the production pipeline.
  • Model Accuracy: After a brief initial adjustment period, the constrained models consistently achieved lower LogLoss than the unconstrained production baseline.
  • Business Impact: A live online A/B test demonstrated a +0.67% lift in CPM (revenue) and a +0.93% lift in CTR (user engagement). These gains are substantial for a mature, large-scale advertising product.

Conclusion

By reframing parameter divergence as a constrained optimization problem, we developed a non-intrusive method to stabilize incremental training in non-stationary environments. The use of dual ascent with multiplicative updates allows for fine-grained, per-feature regularization that effectively prevents parameter explosion without sacrificing model performance. This approach has proven robust in one of the world's largest native advertising marketplaces, delivering both technical stability and measurable business growth.

Summary updated

BibTeX
@inproceedings{shtoff2021mitigating,
  author = {Alex Shtoff and Yair Koren},
  title = {{Mitigating Divergence of Latent Factors via Dual Ascent for Low Latency Event Prediction Models}},
  booktitle = {IEEE BigData},
  year = {2021},
  url = {https://openreview.net/forum?id=beGO1iYLY2c},
}

Loading related content...

Figure