Stochastic Primal-Dual Decoding for Multiobjective Generative Recommender Systems

Dmitrii Moor, Ben Carterette, Senthilkumar Krishnamoorthy, Kyle Kretschman, Denis Beslic, Melissa Yalla, Alice Y Wang, Mounia LalmasarXiv 2026

TL;DR

Researchers from Spotify introduce Stochastic Primal-Dual Decoding (SPDD), a lightweight, inference-time decoding layer for generative recommender systems. SPDD dynamically balances user relevance with auxiliary business or fairness constraints during sequential slate generation without requiring any model retraining, achieving a +1.8% gain in auxiliary objectives at zero cost to user satisfaction.

What Problem Does This Paper Address?

Modern recommender systems (RS) increasingly use autoregressive generative models (like Transformers) to build recommendation "slates"—ordered lists of items like playlists or homepage carousels. However, real-world systems must balance user relevance with auxiliary goals like diversity, fairness, or specific business constraints (e.g., ensuring a minimum exposure for specific content categories or new creators).

Existing solutions fall into two flawed camps:

  1. Post-hoc re-ranking: Applies constraints after the list is generated. This fails because it ignores the sequential dependencies inherent to generative models, where choosing the first item alters the probabilities and context for all subsequent items.
  2. Joint training: Bakes auxiliary objectives directly into the model parameters during training. This is highly inflexible and prohibitively expensive, requiring full model retraining whenever business targets or item attributes change.

Methods

The authors frame generative slate construction as an online constrained optimization problem. They introduce the Stochastic Primal-Dual Decoder (SPDD), an inference-time layer that sits directly on top of any pre-trained transformer model.

Figure 1: Stochastic Primal-Dual Decoder: The decoding layer re- lies on the scores output by the pre-trained transformer 𝑝𝜃and the constraint-related scores to steer generation into the desired direc- tion.

Instead of using static weights to balance objectives, SPDD dynamically tracks the "constraint slack"—how close the current slate is to meeting its auxiliary target. It introduces a Lagrangian multiplier ($\lambda$) that acts as a dynamic weight. At each step of the autoregressive generation:

  1. The base transformer outputs standard relevance logits.
  2. SPDD adjusts these logits by adding a value proportional to the item's contribution to the auxiliary objective, scaled by the current $\lambda$.
  3. Once an item is selected, $\lambda$ is updated online using mirror descent (exponentiated gradient descent).

If the slate is falling behind on its auxiliary target, $\lambda$ increases rapidly to prioritize constraint-satisfying items. If the target is safely on track, $\lambda$ smoothly decreases, allowing the model to focus purely on maximizing user relevance.

Datasets

The method was evaluated across three distinct, large-scale datasets representing different recommendation paradigms:

  • Playlist Ranking (Spotify internal): ~40 billion interactions from 62 million users across 42 million tracks. The goal was to maximize track consumption while meeting a target stream share for a designated subset of tracks.
  • Home Shelves Ranking (Spotify internal): 5.3 billion shelf impressions from over 500 million distinct user requests, used to rank content shelves on the Spotify home page.
  • Amazon e-Commerce Data (Public): The Sports and Outdoors subset containing over 5 million user-item interactions. This setup evaluated SPDD in an open-domain setting using a fine-tuned Llama-3.2-1B model operating over semantic tokens to boost the 'Camping & Hiking' and 'Cycling' categories.

Key Insights and Ideas

  • Front-Loading Constraints: A per-position analysis revealed the "aha moment" behind SPDD's efficiency. The algorithm naturally learns to satisfy constraints early in the slate (e.g., at position 1) where the impact on user satisfaction is minimal, and then shifts focus entirely back to user relevance for the rest of the list. Per-position analysis
  • Provable Guarantees: Despite the stochastic and non-stationary nature of generative recommendation, the authors provide theoretical proofs bounding both constraint violation and regret based on the step-size hyperparameter $\eta$.
  • Decoupled Control: By moving multi-objective balancing entirely to the decoding phase, production engineers can adjust business targets on the fly without touching or retraining the underlying recommendation model.
Per-position analysis

Key Results

  • Offline Pareto Dominance: Across all three evaluation domains, SPDD consistently achieved a superior Pareto frontier compared to baselines like Ex-post Re-ranking (EPR), Online Weighted Average (WA), and Bandit-based approaches (MB-UCB/MB-TS). Pareto Frontiers
  • Large-Scale Online A/B Test: In a production deployment with ~1 million users across 150+ countries re-ranking 600k playlists, SPDD delivered a +5.44% increase in stream share for the target content subset (compared to +3.60% for the standard Weighted Average baseline). Crucially, this was achieved with zero degradation in user consumption (minutes played) and a lower skip rate. Online A/B Test Results
Pareto Frontiers
Online A/B Test Results

Limitations and Future Work

  • Temporal Consistency Assumption: The theoretical guarantees rely on a mild assumption that relevance scores evolve gradually and predictably as items are selected, rather than changing completely erratically.
  • Single Constraint Focus: While the mathematical formulation generalizes to multiple constraints, the paper primarily focuses on and evaluates a single auxiliary constraint at a time.
  • Future Directions: The authors suggest extending the framework to handle personalized, user-level auxiliary targets (rather than global slate-level targets) and exploring more complex, non-linear constraints.

Summary updated

BibTeX
@misc{moor2026stochastic,
  author = {Dmitrii Moor and Ben Carterette and Senthilkumar Krishnamoorthy and Kyle Kretschman and Denis Beslic and Melissa Yalla and Alice Y Wang and Mounia Lalmas},
  title = {{Stochastic Primal-Dual Decoding for Multiobjective Generative Recommender Systems}},
  year = {2026},
  eprint = {2607.19357},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19357},
}
Figure