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

Alex Shtoff, Yair Koren

TL;DR

In high-velocity ad marketplaces, incremental model training often leads to "exploding" parameters (divergence), causing training failures. This paper introduces a non-intrusive method to stabilize these models by imposing norm constraints on latent factors via a dual ascent optimization approach. Implementing this at Verizon Media virtually eliminated training discards and delivered significant gains in both revenue (CPM) and user engagement (CTR).

What Problem Does This Paper Address?

Modern recommendation systems, particularly in advertising, operate in "non-stationary" environments. New ads appear, budgets vanish, and user trends shift by the minute. To keep up, engineers use incremental training, where models are updated every few minutes on small chunks of fresh data.

However, this speed comes with a stability cost. The authors observed that in their OFFSET model (a feature-enhanced collaborative filtering algorithm), latent factor vectors would occasionally grow uncontrollably large. When these parameters "diverge," the model becomes useless and must be discarded. In production, Verizon Media was seeing up to 20% of their training instances fail this way, which crippled their hyper-parameter tuning process and hurt overall performance.

Methods

The authors treat the divergence problem as a constrained optimization task. Instead of just hoping parameters stay small, they explicitly require them to stay within a specific bound.

  1. The Constraint: They impose a limit on the "mean-squared element" (a proxy for the $L_2$ norm) of every latent vector in the model.
  2. Primal-Dual Optimization: To enforce these constraints without slowing down the system, they use a dual ascent framework:
  3. Primal Step: The model trains as usual (using a variant of AdaGrad) but treats the regularization strength ($\mu$) as a per-vector variable.
  4. Dual Step: After each training sample, the system updates the regularization coefficient ($\mu$) for the involved vectors.
  5. The "Secret Sauce" (Bregman Divergence): Rather than a simple additive update for the regularizer, they use an entropic gradient step (derived from Bregman divergence). This results in a multiplicative update rule: if a vector's norm exceeds the limit, its regularization strength increases exponentially; if it's below the limit, it decreases toward zero.
  6. Heuristic Bound ($\rho$): They derive a starting point for the norm bound by analyzing the Sigmoid function, ensuring the model covers the full range of plausible click probabilities without overshooting into the "flat" regions of the curve.

Datasets

The study was conducted using real-world data from the Verizon Media (VZM) native ad marketplace (formerly Yahoo Gemini).

  • Scale: The system handles billions of daily impressions and hundreds of thousands of active ads.
  • Evaluation: The authors used one week of production traffic for stability metrics and two weeks for offline LogLoss tracking, followed by a live online A/B test.

Key Insights and Ideas

  • Divergence is Contagious: Because collaborative filtering relies on inner products between user and ad vectors, a single "exploded" vector can "contaminate" every other vector it interacts with, eventually crashing the entire model.
  • The "Aha" Moment on Regularization: Standard global regularization ($\lambda$) is a blunt instrument. By using dual ascent, the model effectively learns a custom regularization strength for every single feature based on its specific behavior in the current data chunk.
  • Multiplicative is Better: The entropic/multiplicative update for the dual variables is far more effective at "braking" runaway parameters than standard additive updates, providing a smoother and more stable path to convergence.
  • Non-Intrusive Design: The beauty of this approach is that it doesn't require changing the underlying training algorithm (like AdaGrad). It simply wraps a dynamic regularization layer around it.

Key Results

  • Stability: The fraction of discarded training instances dropped from ~20% to nearly 0%.
  • Model Accuracy: After a brief "acclimation" period, the new method consistently achieved lower LogLoss than the production baseline.
  • Business Impact: In a live A/B test, the method produced:
  • +0.67% lift in CPM (Cost Per Mille/Revenue).
  • +0.93% lift in CTR (Click-Through Rate).
  • These numbers are considered highly significant for a mature, large-scale advertising product.

Limitations and Future Work

  • Heuristic Dependency: While the derived bound $\rho$ provides a good starting point, the authors still had to perform an exhaustive search to find the optimal multiplier for that bound.
  • Acclimation Period: The authors noted a short period where the model needs to "adjust" to the new constraints when first deployed.
  • Architecture Specificity: The evaluation focused on the OFFSET model. While the authors suggest the logic applies to any factorization-based model, its effectiveness on more complex deep learning architectures (like DeepFM or Transformers) remains to be proven.

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