Table of Contents
Fetching ...

Offline and Online KL-Regularized RLHF under Differential Privacy

Yulian Wu, Rushil Thareja, Praneeth Vepakomma, Francesco Orabona

TL;DR

The paper addresses KL-regularized RLHF under ε-LDP on human preference labels for both offline and online settings. It introduces PPKL-RLHF, a pessimistic offline algorithm, and POKL-RLHF, an optimistic online algorithm, and proves tight suboptimality and regret bounds that scale with $(e^{\varepsilon}-1)^2$ and sample size. A matching offline lower bound confirms optimal rates under single-policy concentrability, and the online analysis yields a logarithmic regret bound involving a novel eluder-dimension variant. Empirical results on a real preference dataset illustrate the privacy-utility trade-off, and the work provides new theoretical foundations for private KL-regularized RLHF as well as open-source implementation.

Abstract

In this paper, we study the offline and online settings of reinforcement learning from human feedback (RLHF) with KL-regularization -- a widely used objective function in large language model alignment -- under the $ε$ local differential privacy ($ε$-LDP) model on the label of the human preference. In the offline setting, we design an algorithm based on the principle of pessimism and derive a new suboptimality gap of $\tilde{O}(1/[(e^ε-1)^2 n])$ on the KL-regularized objective under single-policy concentrability. We also prove its optimality by providing a matching lower bound where $n$ is the sample size. In the online setting, we are the first one to theoretically investigate the problem of KL-regularized RLHF with LDP. We design an optimism-based algorithm and derive a logarithmic regret bound of $O(d_{\mathcal{F}}\log (N_{\mathcal{F}}\cdot T) /(e^ε-1)^2 )$, where $T$ is the total time step, $N_{\mathcal{F}}$ is cardinality of the reward function space $\mathcal{F}$ and $d_{\mathcal{F}}$ is a variant of eluder dimension for RLHF. As a by-product of our analysis, our results also imply the first analysis for online KL-regularized RLHF without privacy. We implement our algorithm in the offline setting to verify our theoretical results and release our open source code at: https://github.com/rushil-thareja/PPKL-RLHF-Official.

Offline and Online KL-Regularized RLHF under Differential Privacy

TL;DR

The paper addresses KL-regularized RLHF under ε-LDP on human preference labels for both offline and online settings. It introduces PPKL-RLHF, a pessimistic offline algorithm, and POKL-RLHF, an optimistic online algorithm, and proves tight suboptimality and regret bounds that scale with and sample size. A matching offline lower bound confirms optimal rates under single-policy concentrability, and the online analysis yields a logarithmic regret bound involving a novel eluder-dimension variant. Empirical results on a real preference dataset illustrate the privacy-utility trade-off, and the work provides new theoretical foundations for private KL-regularized RLHF as well as open-source implementation.

Abstract

In this paper, we study the offline and online settings of reinforcement learning from human feedback (RLHF) with KL-regularization -- a widely used objective function in large language model alignment -- under the local differential privacy (-LDP) model on the label of the human preference. In the offline setting, we design an algorithm based on the principle of pessimism and derive a new suboptimality gap of on the KL-regularized objective under single-policy concentrability. We also prove its optimality by providing a matching lower bound where is the sample size. In the online setting, we are the first one to theoretically investigate the problem of KL-regularized RLHF with LDP. We design an optimism-based algorithm and derive a logarithmic regret bound of , where is the total time step, is cardinality of the reward function space and is a variant of eluder dimension for RLHF. As a by-product of our analysis, our results also imply the first analysis for online KL-regularized RLHF without privacy. We implement our algorithm in the offline setting to verify our theoretical results and release our open source code at: https://github.com/rushil-thareja/PPKL-RLHF-Official.
Paper Structure (15 sections, 19 theorems, 80 equations, 1 figure, 1 table, 2 algorithms)

This paper contains 15 sections, 19 theorems, 80 equations, 1 figure, 1 table, 2 algorithms.

Key Result

Theorem 4.2

Under Assumptions Assum:BT and Assum:Realize, Definitions def:Ddivergence, def:singleConcendef:DensityRatio, and def:Net, for $\epsilon>0, \beta>0$ and a sufficiently small $\tau \in (0,1)$, with probability at least $1-\delta$, we have that the suboptimality gap of the output of Algorithm algo:offl

Figures (1)

  • Figure 1: Training metrics for our Private KL-Regularized RLHF over iterations for different $\epsilon$ vals.

Theorems & Definitions (45)

  • Remark 3.1
  • Definition 3.2: zhao2025sharpanalysisofflinepolicy
  • Definition 3.3: Single-policy Concentrability zhao2025sharpanalysisofflinepolicy
  • Definition 3.4: Density-ratio-based concentrability
  • Definition 3.5: Uncertainty and pair eluder dimension
  • Remark 3.6
  • Definition 3.9: Net and covering number
  • Definition 3.10: $\varepsilon$-Pure Local Label DP chowdhury2024differentially
  • Remark 4.1
  • Theorem 4.2: Sub-optimality gap upper bound in offline setting
  • ...and 35 more