Table of Contents
Fetching ...

Safe, Efficient, and Robust Reinforcement Learning for Ranking and Diffusion Models

Shashank Gupta

TL;DR

This work investigates how to make reinforcement learning for ranking and generative modeling safe, sample-efficient, and robust using a unified contextual-bandit perspective. It introduces exposure-based generalization bounds and a safe counterfactual learning-to-rank framework to guarantee that new policies do not underperform the production system, even with sparse feedback. It then unifies off-policy estimators through an optimal baseline correction, deriving closed-form solutions that minimize both gradient and value variance, and demonstrates substantial variance reductions in off-policy learning and evaluation. Finally, it studies the efficiency–effectiveness trade-off in diffusion-model fine-tuning, proposing LOOP, which blends REINFORCE baseline variance reduction with PPO clipping to achieve PPO-like performance with reduced computational costs. Collectively, the thesis provides practical safety guarantees, data-efficient learning from logs, and scalable RL techniques for both ranking systems and large diffusion models, with open-source implementations to support reproducibility.

Abstract

This dissertation investigates how reinforcement learning (RL) methods can be designed to be safe, sample-efficient, and robust. Framed through the unifying perspective of contextual-bandit RL, the work addresses two major application domains - ranking and recommendation, and text-to-image diffusion models. The first part of the thesis develops theory and algorithms for safe deployment in ranking systems. An exposure-based generalisation bound is derived, leading to a counterfactual risk-minimisation objective whose solution is guaranteed not to underperform the logging policy, even with sparse feedback. This guarantee is extended to doubly robust estimators, enabling safety even under adversarial or misspecified user models and offering practitioners explicit control over permissible utility loss. The second part turns to single-action bandits, where various off-policy estimators are unified within a baseline-correction framework. A closed-form optimal baseline is proposed and shown to minimise both evaluation and policy-gradient variance, thereby improving off-policy learning reliability. The final part examines the trade-offs between efficiency and effectiveness in generative RL. A systematic study of PPO and REINFORCE motivates the Leave-One-Out PPO (LOOP) algorithm, which combines multiple diffusion trajectories with a REINFORCE-style baseline inside PPO's clipped objective. LOOP achieves PPO-level sample efficiency while producing generations that align more faithfully with textual attributes.

Safe, Efficient, and Robust Reinforcement Learning for Ranking and Diffusion Models

TL;DR

This work investigates how to make reinforcement learning for ranking and generative modeling safe, sample-efficient, and robust using a unified contextual-bandit perspective. It introduces exposure-based generalization bounds and a safe counterfactual learning-to-rank framework to guarantee that new policies do not underperform the production system, even with sparse feedback. It then unifies off-policy estimators through an optimal baseline correction, deriving closed-form solutions that minimize both gradient and value variance, and demonstrates substantial variance reductions in off-policy learning and evaluation. Finally, it studies the efficiency–effectiveness trade-off in diffusion-model fine-tuning, proposing LOOP, which blends REINFORCE baseline variance reduction with PPO clipping to achieve PPO-like performance with reduced computational costs. Collectively, the thesis provides practical safety guarantees, data-efficient learning from logs, and scalable RL techniques for both ranking systems and large diffusion models, with open-source implementations to support reproducibility.

Abstract

This dissertation investigates how reinforcement learning (RL) methods can be designed to be safe, sample-efficient, and robust. Framed through the unifying perspective of contextual-bandit RL, the work addresses two major application domains - ranking and recommendation, and text-to-image diffusion models. The first part of the thesis develops theory and algorithms for safe deployment in ranking systems. An exposure-based generalisation bound is derived, leading to a counterfactual risk-minimisation objective whose solution is guaranteed not to underperform the logging policy, even with sparse feedback. This guarantee is extended to doubly robust estimators, enabling safety even under adversarial or misspecified user models and offering practitioners explicit control over permissible utility loss. The second part turns to single-action bandits, where various off-policy estimators are unified within a baseline-correction framework. A closed-form optimal baseline is proposed and shown to minimise both evaluation and policy-gradient variance, thereby improving off-policy learning reliability. The final part examines the trade-offs between efficiency and effectiveness in generative RL. A systematic study of PPO and REINFORCE motivates the Leave-One-Out PPO (LOOP) algorithm, which combines multiple diffusion trajectories with a REINFORCE-style baseline inside PPO's clipped objective. LOOP achieves PPO-level sample efficiency while producing generations that align more faithfully with textual attributes.
Paper Structure (88 sections, 10 theorems, 147 equations, 25 figures, 6 tables)

This paper contains 88 sections, 10 theorems, 147 equations, 25 figures, 6 tables.

Key Result

Theorem 2.4.1

Given a ranking policy $\pi$ and logging policy $\pi_{0}$, with the expected exposures $\rho(d)$ and $\rho_{0}(d)$ respectively, the variance of the exposure-based IPS estimate $\hat{U}(\pi)$ is upper-bounded by exposure-based divergence:

Figures (25)

  • Figure 2.1: Three rankings and their normalized expected exposure distributions (Eq. \ref{['norm-exposure']}) based on DCG weights (Eq. \ref{['rho']}). According to our exposure-based divergence, ranking 1 and ranking 2 are quite similar despite only agreeing on the placing of document A. In contrast, ranking 1 and ranking 3 also agree on the placement of a single document (C) but have the highest possible dissimilarity, due to their highly mismatched exposure distributions.
  • Figure 2.2: Example comparison of the optimal policy for a single logged click according to three different risk estimators.
  • Figure 2.3: Performance in NDCG@5 of various IPS and CRM methods for CLTR on Yahoo! Webscope and MSLR-WEB30k datasets. The top-row presents the results when the size of the training data is varied from $10^2$ to $10^9$. The bottom-row is a zoomed-in view, focusing on the low-data region from $10^2$ to $10^5$. Results are averages over 10 runs; shaded areas indicate 80% confidence intervals.
  • Figure 2.4: Performance in NDCG@5 of various IPS and CRM methods for CLTR on the Istella dataset. The top-row presents the results when the size of the training data is varied from $10^2$ to $10^9$. The bottom-row is a zoomed-in view, focusing on the low-data region from $10^2$ to $10^5$. Results are averages over 10 runs; shaded areas indicate 80% confidence intervals.
  • Figure 2.5: Performance of CRM methods with varying confidence parameters ($\delta$) on Yahoo! Webscope and MSLR-WEB30k datasets. Top-row: action-based CRM baseline; bottom-row: our exposure-based CRM method. Results are averages of 10 runs; shaded areas indicate 80% confidence intervals.
  • ...and 20 more figures

Theorems & Definitions (21)

  • Theorem 2.4.1
  • proof
  • Theorem 2.4.2
  • proof
  • Theorem 3.4.1
  • proof
  • Theorem 3.5.1
  • proof
  • Lemma 3.9.1
  • proof
  • ...and 11 more