Policy Teaching via Data Poisoning in Learning from Human Preferences
Andi Nika, Jonathan Nöther, Debmalya Mandal, Parameswaran Kamalaruban, Adish Singla, Goran Radanović
TL;DR
Policy Teaching via Data Poisoning investigates how an adversary can enforce a target policy by poisoning human-preference data in RLHF and DPO. The authors formalize a general poisoning framework and derive both lower and upper bounds on the attack sample complexity under data augmentation and data synthesis scenarios, for unregularized and regularized RLHF as well as for DPO. A key finding is that DPO tends to remain closer to the reference policy when the target is distant, suggesting it may be more robust to poisoning in certain regimes, while RLHF can be more susceptible depending on the data geometry and regularization. Together, these results provide a theoretical baseline for the robustness of two major preference-based learning paradigms and highlight design considerations for defense and policy teaching in practice.
Abstract
We study data poisoning attacks in learning from human preferences. More specifically, we consider the problem of teaching/enforcing a target policy $π^\dagger$ by synthesizing preference data. We seek to understand the susceptibility of different preference-based learning paradigms to poisoned preference data by analyzing the number of samples required by the attacker to enforce $π^\dagger$. We first propose a general data poisoning formulation in learning from human preferences and then study it for two popular paradigms, namely: (a) reinforcement learning from human feedback (RLHF) that operates by learning a reward model using preferences; (b) direct preference optimization (DPO) that directly optimizes policy using preferences. We conduct a theoretical analysis of the effectiveness of data poisoning in a setting where the attacker is allowed to augment a pre-existing dataset and also study its special case where the attacker can synthesize the entire preference dataset from scratch. As our main results, we provide lower/upper bounds on the number of samples required to enforce $π^\dagger$. Finally, we discuss the implications of our results in terms of the susceptibility of these learning paradigms under such data poisoning attacks.
