English

Offline and Online KL-Regularized RLHF under Differential Privacy

Machine Learning 2025-10-16 v1 Artificial Intelligence

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 ϵ\epsilon local differential privacy (ϵ\epsilon-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 O~(1/[(eϵ1)2n])\tilde{O}(1/[(e^\epsilon-1)^2 n]) on the KL-regularized objective under single-policy concentrability. We also prove its optimality by providing a matching lower bound where nn 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(dFlog(NFT)/(eϵ1)2)O(d_{\mathcal{F}}\log (N_{\mathcal{F}}\cdot T) /(e^\epsilon-1)^2 ), where TT is the total time step, NFN_{\mathcal{F}} is cardinality of the reward function space F\mathcal{F} and dFd_{\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.

Keywords

Cite

@article{arxiv.2510.13512,
  title  = {Offline and Online KL-Regularized RLHF under Differential Privacy},
  author = {Yulian Wu and Rushil Thareja and Praneeth Vepakomma and Francesco Orabona},
  journal= {arXiv preprint arXiv:2510.13512},
  year   = {2025}
}
R2 v1 2026-07-01T06:38:52.589Z