Manuscript Offprint
arXiv:2610.24945Robust Direct Preference Optimization under Preference Label-Flip Attacks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Chenye Yang
Department of Electrical and Computer Engineering
University of California, Davis
Davis, CA 95616, USA
Weiyu Xu
Department of Electrical and Computer Engineering
University of Iowa
Iowa City, IA 52242, USA
Lifeng Lai
Department of Electrical and Computer Engineering
University of California, Davis
Davis, CA 95616, USA
ABSTRACT
Direct Preference Optimization (DPO) is widely used for offline Reinforcement Learning from Human Feedback. However, recent works have shown that DPO can be easily manipulated by adversarial preference label flip attacks, which are specifically designed to mislead the learner toward an attacker-chosen target policy. To address this issue, we design robust DPO methods that can defend against such attacks. Building on the property that lable flips induce parameter-independent gradient shifts in log-linear DPO, we propose Trim-K Robust-DPO, which removes the K highest-impact pairs, and Soft-Trim-K Robust-DPO, which smoothly downweights them. We establish deterministic gradient perturbation bounds uniformly over all attack sets containing at most K flips, explicitly separating defense-induced bias from surviving attack effects. Under bounded-region assumptions, these bounds yield time-uniform parameter and policy deviation guarantees. We further quantify how quadratic regularization improves curvature while introducing additional bias. Experiments on Stanford Human Preferences, HH-RLHF, and UltraFeedback-Binarized validate our analysis.
1 INTRODUCTION
Reinforcement Learning from Human Feedback (RLHF) is a central approach for aligning the output of modern large models with human preferences when an explicit reward function is difficult to specify (Christiano et al., 2017; Ziegler et al., 2019; Ouyang et al., 2022; Bai et al., 2022; Casper et al., 2023). In the offline RLHF setting, the learner trains on a pre-collected dataset of pairwise preference comparisons (Xiong et al., 2023; Zhu et al., 2023), and Direct Preference Optimization (DPO) (Rafailov et al., 2023) has become especially popular among these approaches. DPO avoids separate reward modeling and RL-based policy optimization, and directly optimizes a preference-based objective over the policy under the Bradley-Terry model (Bradley & Terry, 1952).
However, this dependence on preference pairs of RLHF and DPO also introduces a security risk: corrupted comparisons can systematically mislead the learned policy (Casper et al., 2023). In particular, several recent papers (Wu et al., 2024a; Rando & Tramèr, 2023; Baumgärtner et al., 2024; Pathmanathan et al., 2024; Nika et al., 2025; Fu et al., 2025; Pathmanathan et al., 2025; Wu et al., 2025) have introduced adversarial preference attacks on offline RLHF. Unlike random preference noise caused by annotation errors and limited expert knowledge (Casper et al., 2023; Yan et al., 2024), the targeted adversarial attacker can strategically flip preference labels or inject poisoned comparisons, to mislead the learner toward an attacker-chosen target output policy. The label flip attack is practically plausible because it does not require injecting a large number of new preference pairs (Nika et al., 2025). Yang et al. (2026) formalizes this threat on DPO and develops efficient adversarial targeted attacks. The above security issue is serious since RLHF is widely used in real-world applications like Large Language Models (LLMs) (Bai et al., 2022), and a misled output might be biased, toxic, or even harmful (Casper et al., 2023; Rando & Tramèr, 2023; Pathmanathan et al., 2025).
To address this serious issue, in this paper, we design DPO algorithms robust to adversarial preference flip attacks. Unlike attacks on bandits or standard RL that manipulate numerical rewards, actions, contexts, or transition dynamics (Jun et al., 2018; Ma et al., 2018; Garcelon et al., 2020; Rakhsha et al., 2020; 2021; Liu & Lai, 2021b; Xu et al., 2022), preference corruption changes the preference order and then the optimized DPO policy. Existing robust RLHF/DPO studies mainly address random noise or distribution shift in preferences (Yan et al., 2024; Cheng et al., 2024; Mandal et al., 2024; Chowdhury et al., 2024; Wu et al., 2024b; Zhou et al., 2025; Kim et al., 2025; Xu et al., 2025). Our challenge is instead to analyze and mitigate strategically chosen label flips and their effect on the learned policy. To the best of our knowledge, this is the first work to design DPO algorithms robust against such adversaries.
Our analysis focuses on the log-linear DPO policy class, which enables us to analyze the problem in gradient space by a key observation Yang et al. (2026) that, flipping one preference pair shifts its per-sample DPO gradient by a parameter-independent vector. This property makes attack-impact magnitudes pre-computable before training, without knowing the actual attack strategy. Based on this structure, we design robust DPO methods that reduce the influence of samples whose flips would have large impact in the gradient space.
We propose Trim-K Robust-DPO, which removes the K highest-impact preference pairs and optimizes DPO on the retained set, and Soft-Trim-K Robust-DPO, which retains all pairs while smoothly downweighting the high-impact region. Both methods use interpretable pre-computed impact-based rules, and control potential flip-induced gradient effects without attempting to identify attacked samples. Soft-Trim-K provides a continuous family between standard DPO and Trim-K. For both methods, we establish gradient-bias bounds relative to full-data clean DPO uniformly over all fixed attack sets of at most K flips, explicitly separating the bias introduced by trimming or reweighting from surviving attack effects. Under the practical assumption that training stays in a bounded region around the reference parameter, these bounds yield time-uniform parameter and policy deviation guarantees for full-batch gradient descent. We also analyze quadratically regularized variants, quantifying the trade-off between increased curvature and additional bias relative to unregularized clean DPO.
We evaluate the methods on Stanford Human Preferences (SHP) (Ethayarajh et al., 2022), HH-RLHF (Bai et al., 2022; Ganguli et al., 2022), and UltraFeedback-Binarized (Cui et al., 2023). The SHP experiments compare our methods and their regularized variants with standard and robust DPO baselines under different attacks (Appendices I and J). Further experiments examine datasets and budgets, matched regularization and score controls, budget misspecification (Appendices K–N), and small nonlinear policies (Appendix O). The results illustrate the trade-offs in our analysis: hard trimming is most helpful when flips concentrate on high-impact pairs, soft trimming offers a smoother robustness–retention trade-off, and regularization can limit attack-induced deviation while introducing bias relative to clean DPO.
Main contributions: (1) We propose Trim-K and Soft-Trim-K Robust-DPO without attempting to identify the attacked samples. (2) We establish deterministic gradient-bias bounds relative to full-data clean DPO, uniformly over all fixed attack sets of at most K flips. (3) Under the stated assumptions, we derive time-uniform parameter and policy deviation guarantees and quantify the curvature gain and bias introduced by quadratic regularization. (4) We evaluate the methods on three preference datasets, with matched controls, score-assignment ablations, and attack-budget and misspecification studies. We also conduct preliminary experiments with small nonlinear policies.
Additional related work: Appendix A summarizes prior works on adversarial attacks and robust learning in bandits, RL, and RLHF.
2.1 OFFLINE RLHF AND LOG-LINEAR DPO
Offline RLHF usually combines feedback collection, reward modeling, and policy optimization (Christiano et al., 2017; Ouyang et al., 2022; Bai et al., 2022). Given a prompt , annotators compare two candidate responses and and return a preference , where is preferred to . Under Bradley-Terry model (Bradley & Terry, 1952), the preference probability:
where is an unknown latent reward. Standard RLHF first learns a reward model from such comparisons and then optimizes a policy against that reward, usually with a KL penalty relative to a reference policy (Ziegler et al., 2019; Schulman et al., 2017). DPO removes these two stages, and optimizes the policy directly from the same preference pairs (Rafailov et al., 2023). Let be the reference policy and let control the strength of KL regularization. For a dataset , let , the DPO objective is
DPO is efficient and stable in practice, and avoids the mismatch that can arise when the reward model is fit in a separate stage (Rafailov et al., 2023).
In this paper, we mainly consider a log-linear policy class, following the theoretical setup in the literature (Nika et al., 2025; Chowdhury et al., 2024; Xu et al., 2025). In Appendix O, we discuss the potential to extend our methods and analysis beyond the log-linear setting, and the associated preliminary nonlinear experiments.
Assumption 2.1 (Log-linear Policy Nika et al., 2025). Let be a -dimensional feature mapping with . We consider the following class of log-linear policies parameterized by for all :
For each preference pair in D, the per-sample DPO loss is
Under Assumption 2.1, the normalization constants cancel: . Define the feature difference and reference-policy offset for each sample, then the DPO logit is affine in , and :
The corresponding per-sample gradient and its Hessian are
The following identity comes from the gradient-space analysis of attacks on log-linear DPO in Yang et al. (2026). We restate it here as an immediate structural property of the log-linear policy class.
Lemma 2.2 (Constant gradient shift under label swap). Let be the clean per-sample gradient in (4). Let denote the gradient after swapping to . Then for all ,
and hence the flip impact magnitude is .
We assume training stays in a bounded region, motivated by initialization at the reference, finite training horizons, and norm control. Appendix B explains the resulting local curvature, its role in time-uniform stability, and its distinction from quadratic regularization (Nika et al., 2025).
Assumption 2.3 (Bounded training region). There exists a radius such that all clean and attacked gradient-descent iterates considered in our theory remain in , where is the parameter of log-linear reference policy . Moreover, the feature covariance of each trimmed or weighted objective is positive definite on a common subspace containing all update directions.
2.2 BUDGETED ADVERSARIAL PREFERENCE ATTACK AND ROBUST DEFENSE
Given a clean preference dataset , a label-flip attacker selects a set with and forms the attacked dataset, denoted by tildes:
A general budgeted label-flip attacker may choose any fixed support A. A targeted attacker is the special case that selects A to move training toward an attacker-chosen and potentially misaligned target policy . Our defense algorithms do not rely on the attack methods used by the attacker.
The robust defender observes only: (1) the possibly attacked dataset ; (2) an upper-bound K on the attack budget. It does not know the attacked index set A, has no clean preference orientations, and no clean validation data is assumed. The ground-truth comparison target is the standard DPO objective on the full clean dataset:
Let R-DPO denote a robust DPO rule, and let denote its differentiable training objective constructed from the observed dataset and budget upper bound K.
Our goal is to design R-DPO so that robust DPO on the attacked data remains close to clean DPO on the full clean data, uniformly over all admissible attack sets. More precisely, for the clean and attacked full-batch iterates
initialized from the same , we seek deterministic bounds of the form
The bounds should depend explicitly on the attack budget K, the feature geometry of the preference pairs, the clean bias introduced by the defense rule, and the local curvature of the optimized robust objective on . When there is no attack ( ), the R-DPO should reduce to standard DPO.
3 METHODS
The identity in Lemma 2.2 makes the magnitude of each comparison’s potential label-flip effect pre-computable from the observed pair geometry. For each observed pair, define the flip-impact score
Because a label flip only changes the sign of the feature difference, is invariant to the observed winner and loser. We first develop Trim-K Robust-DPO, which removes the largest-score pairs, then introduce Soft-Trim-K Robust-DPO as a smooth extension to preserve more clean information. Both methods are static and require only and . Yang et al. (2026) uses the same identity and a known target to construct attackers. But we ask a different question: with limited knowledge of the attack, can a defense control the effect of the attack? The analysis below address this question.
3.1 ERROR DECOMPOSITION
We distinguish three objectives in the analysis. The comparison target F is the full-data clean DPO objective in (6). For a given robust rule, is the objective actually optimized on the attacked dataset, while is its auxiliary clean counterpart, obtained by using the clean preference labels while keeping the defense methods fixed. This auxiliary objective is used only for analysis:
The first term measures the error introduced by the defense even on clean labels, and the second measures the residual effect of the label flips under that same defense. The following subsections define these objectives for each robust DPO method and bound the two terms.
3.2 TRIM-K ROBUST-DPO
Rank the samples by decreasing impact score, and let be the resulting rank, with denoting the score at rank . For a upper bound , define . Trim-K Robust-DPO removes the indices with and keeps . Thus and . The rule is a worst-case safeguard: it removes the pairs whose flips could have the largest attacked gradient effect, without trying to identify the attacked set exactly.
Write for the per-sample loss on the observed pair produced by attack set . For the kept set , define the clean trimmed auxiliary objective and the attacked objective actually optimized by the defender:
In the notation of Section 3.1, and . Both objectives use the same kept set , which is fixed during training and invariant to label flips. Without attack ( ), this objective reduces exactly to standard DPO on the full dataset. If but the supplied upper bound is , trimming can introduce clean-data bias. Algorithm 1 in Appendix C gives the full implementation.
By Lemma 2.2, only indices in contribute a surviving gradient shift, so the gradient difference decomposes as . Define the clean trimming bias on the bounded training region by
This term is zero only when the trimmed subset has the same average clean gradient as the full dataset, and in particular it is zero in the no-attack control , where . A closed-form upper bound on that depends only on the score statistics is proved as Lemma E.3 in Appendix E:
For compact notation, define
Theorem 3.1 (Worst-case gradient robustness of Trim-K Robust-DPO). Let be the kept set after removing the top- largest impact scores, so that and . Then for every attack set with and every ,
This theorem separates the two effects that determine distance to clean DPO: the deterministic clean trimming bias and the surviving attack bias. The clean-trimming term scales as and is governed by the top-K score sum together with the cutoff , while the attack-dependent term is controlled by the -st largest score rather than the largest score in the full dataset.
To propagate this gradient-bias bound through training, define the empirical feature covariance and the bounded-region logistic curvature constant
Because is finite and is compact, Assumption 2.3 implies . Let
Here and below, denotes the smallest eigenvalue on the common trained subspace of Assumption 2.3. The supporting smoothness, restricted strong-convexity, and gradient-descent stability lemmas are stated in Appendix E. Proofs of the theoretical results are in Appendix F.
Theorem 3.2 (Time-uniform stability for Trim-K Robust-DPO). Under Assumptions 2.1 and 2.3, suppose the clean DPO iterates and the attacked Trim-K iterates remain in . Run full-batch gradient descent from the same initialization with step size : , . Then for every ,
In particular, Lemma E.3 gives .
Theorem 3.2 shows that the Trim-K objective has a time-uniform robustness guarantee once we restrict attention to the practical training region. This is a deterministic deviation bound for every fixed admissible attack set and every training horizon under the stated assumptions. It does not rank robust DPO methods, or predict their empirical dominance for a particular attack. We note that the constant can still be small. In Section 3.4, we address this issue and propose regularized variants that can produce tighter behavior.
Corollary 3.3 converts the parameter deviation into policy deviation.
Corollary 3.3 (Trim-K policy deviation bound). Under the conditions of Theorem 3.2, for any fixed context , . Consequently,
where the final bound follows from Theorem 3.2 and Lemma E.3.
3.3 SOFT-TRIM-K ROBUST-DPO
The hard trimming rule of Section 3.2 gives the clearest worst-case guarantee, but it can also remove clean high-impact samples. This is desirable when the attacker is concentrated on those samples, but it may discard too much useful information when the true attack pattern is widespread or when the budget upper bound K is conservative. To handle this trade-off, we introduce a soft version that downweights the top-impact samples instead of deleting them.
Using the deterministic ranking introduced in Section 3.2, fix a temperature parameter and assign the exponential weights
The highest-impact samples receive small positive weights, while samples after the trimming cutoff keep weight one. When , Soft-Trim is standard DPO. When , approaches hard trimming and approaches DPO. The weighting rule is illustrated in Appendix D, Figure 2.
Let and . Define the clean weighted auxiliary objective and the attacked objective actually optimized by the defender:
In the notation of Section 3.1, and . Both objectives use the same weights , which are fixed during training and invariant to label flips. Algorithm 2 in Appendix C gives the implementation.
For each sample, define the weighted impact . Let be these weighted impacts sorted in descending order, and define
Thus is the largest normalized weighted flip-impact mass that any attack set of at most K samples can have. Define the clean weighting bias on the bounded training region by
Let , , . A closed-form score-only upper bound is proved as Lemma E.4 in Appendix E:
For compact notation, define
For , all sums above are empty, , and .
Theorem 3.4 (Worst-case gradient robustness of Soft-Trim-K Robust-DPO). For any attack set with and every ,
Moreover, for the exponential weights in (13), . Combining with Lemma E.4,
As , we have and the exact attack term converges to the largest total score among at most K samples that survive hard Trim-K:
Thus the Soft-Trim objective approaches hard Trim-K, and its exact surviving-attack bound approaches a quantity no larger than the hard-trim term , while approaches .
Define the weighted feature covariance and bounded-region curvature constant
and let . By the same argument as Lemma E.2, the clean weighted objective is -strongly convex on and -smooth.
Then we can propagate the gradient-bias bound to time-uniform parameter and policy deviation bounds in Theorem 3.5 and Corollary 3.6.
Theorem 3.5 (Time-uniform stability for Soft-Trim-K Robust-DPO). Under Assumptions 2.1 and 2.3, suppose the clean DPO iterates and the attacked Soft-Trim-K iterates remain in and gradient descent is run with step size from the same initialization: , . Then for every ,
In particular, Theorem 3.4 and Lemma E.4 give .
Corollary 3.6 (Soft-Trim-K policy deviation bound). Under the conditions of Theorem 3.5,
Soft-Trim preserves more clean information than hard trimming, offering a smoother robustness–retention trade-off without uniformly improving its worst-case bias.
The guarantee requires the defender's K to upper-bound the true number of flips. Underestimating K invalidates the guarantee, while overestimating it removes or downweights more clean data. Appendix N studies budget selection and misspecified K.
3.4 REGULARIZED TRIM-K AND SOFT-TRIM-K ROBUST-DPO
Write for the above two instances of the generic R-DPO: for Trim-K and for Soft-Trim-K. We use the same convention for , , , , , and . The bounded-region curvature constants and are positive, but they can be small. A simple way to increase the curvature of the optimized robust objective is to keep the same trimming or soft-weighting rule and add a quadratic regularization around the reference parameter:
Since the reference objective remains the unregularized clean DPO objective F, regularization also creates a deterministic bias. Let
Thus the surviving-attack term is unchanged, the clean-bias term gains at most , and the curvature denominator becomes .
Proposition 3.7 (Quadratic regularization improves curvature). For , suppose is -strongly convex on and -smooth. Then is -strongly convex on and -smooth.
Thus K controls trimming/downweighting and controls explicit curvature; at K = 0, the regularized variants reduce to regularized DPO and retain only the regularization bias relative to clean DPO.
Corollary 3.8 (Time-uniform stability for regularized Robust-DPO). Under Assumptions 2.1 and 2.3, fix , , and an attack set with . Run full-batch gradient descent on and clean DPO on with the same step size and initialization . Then for every ,
Here is the previously derived surviving-attack bound: for and for .
Corollary 3.9 (Policy deviation for regularized Robust-DPO). Under the conditions of Corollary 3.8, for either and every ,
Corollary 3.8 makes the regularization trade-off explicit: the surviving-attack term is divided by , but the comparison to unregularized clean DPO pays an additional bias of at most . Thus regularization is most useful when this curvature gain dominates the clean bias, for example when targeted flips are not concentrated among the highest-impact samples, which is observed in the targeted attack experiment below. When , the bound measures only the regularization offset.
4 EXPERIMENTS
Setup. We evaluate on SHP (Ethayarajh et al., 2022) with 160,000 training and 40,000 test pairs, using -normalized all-MiniLM-L6-v2 pairwise features ( ), , and SGD initialized at an independently trained . The four scenarios are no attack, random corruption, top-impact attack, and targeted BMP-A attack (Yang et al., 2026). Corrupted scenarios flip 30% of the training data ( ), while the no-attack control uses . The 30% setting is a severe stress test, not an estimate of real-world attack prevalence. We compare DPO, Trim-K (TRIM), Soft-Trim-K (SOFT_TRIM), and their regularized variants ( ), with and . The matched full-data DPO_REG control uses the same attacked data and quadratic penalty , without trimming or downweighting. Full constructions are in Appendices G–H.
Metric. Let be the final standard DPO parameter trained on the full clean set, and write . The primary metric is candidate-set KL (candKL), the KL from to the evaluated policy on held-out prompt-specific candidate sets of size 100, so . Appendix G discusses the interpretation of this metric.

(a) Top-impact attack.
(b) BMP-A attack.
Figure 1: Candidate-set KL( ) under two fixed 30% label-flip attacks. Solid curves: our proposed methods. Dashed curves: DPO (left) and matched DPO_REG (right). . Lower is better.
Top-impact attack. Figure 1a shows that TRIM and SOFT_TRIM reduce candKL from 0.155 for DPO to 0.018 and 0.064, respectively. Both unregularized defenses outperform their REG counterparts in this setting: directly controlling the high-impact pairs is effective, while regularization introduces additional bias.
BMP-A attack. Figure 1b shows that TRIM_REG and SOFT_TRIM_REG attain candKL 0.1176 and 0.1232, compared with 0.1296 for matched full-data DPO_REG. These reductions of 9.3% and 4.9% demonstrate an additional benefit from impact-based trimming beyond the shared quadratic regularizer in this targeted-attack setting.
Additional experiments. We include comprehensive additional experiments in Appendices I–O. In particular, appendices I–J report no-attack/random-corruption controls, clean-data retention costs, parameter-distance curves, and comparisons with existing robust-DPO baselines. Matched-regularization controls and score-assignment ablations further separate the effects of trimming and regularization in Appendices K–L. Sweeps on SHP, HH-RLHF, and UltraFeedback-Binarized in Appendix M show lower KL than DPO for both REG variants at 20%–30% attack budgets, while at smaller budgets retention and regularization bias can outweigh the realized attack effect. A fixed-attack study examines sensitivity to the defender's assumed K and budget selection in Appendix N. A separate preliminary nonlinear-policy extension study is reported in Appendix O.
5 CONCLUSION
We have designed DPO methods robust to budgeted label-flip attacks in the log-linear setting. Building on the parameter-independent gradient shift property, we have proposed Trim-K Robust-DPO and Soft-Trim-K Robust-DPO, as well as their regularized variants. For all these methods, we have derived explicit worst-case bounds relative to the true clean DPO objective, separating the clean bias of the defense rule from the surviving adversarial bias, and translated these bounds into guarantees on parameter and policy deviation. Under a bounded training region, the optimized robust objective admits a positive curvature constant, which leads to time-uniform robustness guarantees. Regularization increases this curvature term, while its deterministic bias relative to unregularized clean DPO must also be accounted for. These results provide a principled robustness characterization of trimmed DPO objectives uniformly over all fixed budgeted label-flip attacks. Experiments on SHP, HH-RLHF, and UltraFeedback-Binarized are consistent with our analysis and support the behavior of the proposed methods: trimming is strong for top-impact attacks, while regularization helps control deviation in the targeted BMP-A experiment. Establishing robustness guarantees beyond the log-linear model remains a future direction, and the preliminary results are discussed in Appendix O.
AI USE STATEMENT
In this work, we used generative AI tools for aid and polish the writing of this manuscript, including improving clarity, grammar, and consistency of notation. We have not used generative AI tools for other tasks with required disclosure. Additionally, we used generative AI tools for cross-checking of experimental descriptions against the implementation and saved results. We have reviewed all AI-assisted work. We checked LLM-polished grammar and verified the experimental descriptions against our code. We take responsibility for the final content of this work, including text, claims or artifacts produced with the aid of generative AI.
REPRODUCIBILITY STATEMENT
The policy class, attack model, and training assumptions are specified in Section 2, with further discussion of the bounded training region in Appendix B. Appendix C gives algorithm pseudocode, and Appendices E–F provide supporting lemmas and complete proofs for the log-linear analysis. Appendices G–H describe the main SHP experiment's data processing, feature construction, reference-policy training, SGD hyperparameters, compute resources, evaluation metrics, and attack construction. Appendices I–L document the additional attack scenarios, baseline methods, matched regularization controls, and score-assignment ablation. Appendices M–N specify data splits, seed protocols, hyperparameters, and evaluation procedures for the three-dataset budget sweep and budget-misspecification study. Appendix O presents the nonlinear flip-gradient identity and its proof, together with the preliminary nonlinear-policy experiments' architecture, training and evaluation settings, and results.
REFERENCES
N. Abe, A. W. Biermann, and P. M. Long. Reinforcement learning with immediate rewards and linear hypotheses. Algorithmica, 37(4):263–293, 2003.
A. Agarwal, S. Agarwal, and P. Patil. Stochastic dueling bandits with adversarial corruption. In Proceedings of the International Conference on Algorithmic Learning Theory, volume 132, pp. 217–248, Online, Mar. 2021.
P. Auer. Using confidence bounds for exploitation-exploration trade-offs. Journal of machine learning research, 3(Nov):397–422, 2002.
P. Auer, N. Cesa-Bianchi, Y. Freund, and R. Schapire. Gambling in a rigged casino: The adversarial multi-armed bandit problem. In Proceedings of the IEEE Annual Foundations of Computer Science, pp. 322–331, Milwaukee, WI, Oct. 1995.
P. Auer, N. Cesa-Bianchi, Y. Freund, and R. Schapire. The nonstochastic multiarmed bandit problem. SIAM Journal on Computing, 32(1):48–77, 2002.
P. Auer, P. Gajane, and R. Ortner. Adaptively tracking the best bandit arm with an unknown number of distribution changes. In Proceedings of the Conference on Learning Theory, volume 99, pp. 138–158, Phoenix, AZ, Jun. 2019.
Y. Bai, A. Jones, K. Ndousse, A. Askell, A. Chen, N. DasSarma, D. Drain, S. Fort, D. Ganguli, T. Henighan, et al. Training a helpful and harmless assistant with reinforcement learning from human feedback. arXiv preprint arXiv:2204.05862, 2022.
K. Banihashem, A. Singla, J. Gan, and G. Radanovic. Admissible policy teaching through reward design. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 6037–6045, Online, Feb. 2022.
T. Baumgärtner, Y. Gao, D. Alon, and D. Metzler. Best-of-venom: Attacking RLHF by injecting poisoned preference data. arXiv preprint arXiv:2404.05530, 2024.
H. H. Bauschke and P. L. Combettes. The baillon-haddad theorem revisited. arXiv preprint arXiv:0906.0807, 2009.
O. Besbes, Y. Gur, and A. Zeevi. Stochastic multi-armed-bandit problem with non-stationary rewards. In Advances in Neural Information Processing Systems, volume 27, Montréal, Canada, Dec. 2014.
O. Besbes, Y. Gur, and A. Zeevi. Optimal exploration–exploitation in a multi-armed bandit problem with non-stationary rewards. Stochastic Systems, 9(4):319–337, 2019.
I. Bogunovic, A. Losalka, A. Krause, and J. Scarlett. Stochastic linear bandits robust to adversarial attacks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, volume 130, pp. 991–999, Online, Apr. 2021.
R. A. Bradley and M. E. Terry. Rank analysis of incomplete block designs: I. the method of paired comparisons. Biometrika, 39(3/4):324–345, 1952.
S. Casper, X. Davies, C. Shi, T. K. Gilbert, J. Scheurer, J. Rando, R. Freedman, T. Korbak, D. Lindner, P. Freire, et al. Open problems and fundamental limitations of reinforcement learning from human feedback. arXiv preprint arXiv:2307.15217, 2023.
X. Chen, H. Zhong, Z. Yang, Z. Wang, and L. Wang. Human-in-the-loop: Provably efficient preference-based reinforcement learning with general function approximation. In Proceedings of the International Conference on Machine Learning, volume 162, pp. 3773–3793, Baltimore, Maryland, Jul. 2022.
J. Cheng, G. Xiong, X. Dai, Q. Miao, Y. Lv, and F-Y Wang. Rime: Robust preference-based reinforcement learning with noisy preferences. arXiv preprint arXiv:2402.17257, 2024.
W. Cheung, D. Simchi-Levi, and R. Zhu. Hedging the drift: Learning to optimize under nonstationarity. Management Science, 68(3):1696–1713, 2022.
S. R. Chowdhury, A. Kini, and N. Natarajan. Provably robust DPO: Aligning language models with noisy feedback. arXiv preprint arXiv:2403.00409, 2024.
P. F. Christiano, J. Leike, T. Brown, M. Martic, S. Legg, and D. Amodei. Deep reinforcement learning from human preferences. Advances in Neural Information Processing Systems, 30:4302–4310, Dec. 2017.
G. Cui, L. Yuan, N. Ding, G. Yao, B. He, W. Zhu, Y. Ni, G. Xie, R. Xie, Y. Lin, et al. Ultrafeedback: Boosting language models with scaled AI feedback. arXiv preprint arXiv:2310.01377, 2023.
Q. Ding, C. J. Hsieh, and J. Sharpnack. Robust stochastic linear contextual bandits under adversarial attacks. In Proceedings of the International Conference on Artificial Intelligence and Statistics, volume 151, pp. 7111–7123, Online, Mar. 2022.
X. Dong, Z. Wu, Q. Ling, and Z. Tian. Byzantine-robust distributed online learning: Taming adversarial participants in an adversarial environment. IEEE Transactions on Signal Processing, 72:235–248, 2024.
K. Ethayarajh, Y. Choi, and S. Swayamdipta. Understanding dataset difficulty with V-usable information. In Proceedings of the International Conference on Machine Learning, volume 162, pp. 5988–6008, Baltimore, MD, Jul. 2022.
Z. Feng, D. Parkes, and H. Xu. The intrinsic robustness of stochastic bandits to strategic manipulation. In Proceedings of the International Conference on Machine Learning, volume 119, pp. 3092–3101, Online, Jul. 2020.
T. Fu, M. Sharma, P. Torr, S. B. Cohen, D. Krueger, and F. Barez. Poisonbench: Assessing large language model vulnerability to data poisoning. arXiv preprint arXiv:2410.08811, 2025.
P. Gajane, T. Urvoy, and F. Clérot. A relative exponential weighing algorithm for adversarial utility-based dueling bandits. In Proceedings of the International Conference on Machine Learning, volume 37, pp. 218–227, Lille, France, Jul. 2015.
D. Ganguli, L. Lovitt, J. Kernion, A. Askell, Y. Bai, S. Kadavath, B. Mann, E. Perez, N. Schiefer, K. Ndousse, et al. Red teaming language models to reduce harms: Methods, scaling behaviors, and lessons learned. arXiv preprint arXiv:2209.07858, 2022.
E. Garcelon, B. Roziere, L. Meunier, J. Tarbouriech, O. Teytaud, A. Lazaric, and M. Pirotta. Adversarial attacks on linear contextual bandits. Advances in Neural Information Processing Systems, 33:14362–14373, 2020.
A. Garivier and E. Moulines. On upper-confidence bound policies for switching bandit problems. In Proceedings of the International Conference on Algorithmic Learning Theory, Espoo, Finland, Oct. 2011.
A. Gleave, M. Dennis, C. Wild, N. Kant, S. Levine, and S. Russell. Adversarial policies: Attacking deep reinforcement learning. arXiv preprint arXiv:1905.10615, 2019.
Z. Guan, K. Ji, D. Bucci Jr, T. Hu, J. Palombo, M. Liston, and Y. Liang. Robust stochastic bandit algorithms under probabilistic unbounded adversarial attack. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 4036–4043, New York, NY, Feb. 2020.
A. Gupta, T. Koren, and K. Talwar. Better algorithms for stochastic bandits with adversarial corruptions. In Proceedings of the Conference on Learning Theory, volume 99, pp. 1562–1578, Phoenix, AZ, Jun. 2019.
S. Huang, N. Papernot, I. Goodfellow, Y. Duan, and P. Abbeel. Adversarial attacks on neural network policies. arXiv preprint arXiv:1702.02284, 2017.
Y. Huang and Q. Zhu. Deceptive reinforcement learning under adversarial manipulations on cost signals. In Proceedings of the International Conference on Decision and Game Theory for Security, volume 10, pp. 217–237, Stockholm, Sweden, Oct. 2019.
K.-S. Jun, L. Li, Y. Ma, and X. Zhu. Adversarial attacks on stochastic bandits. Advances in Neural Information Processing Systems, 31:3640–3649, Dec. 2018.
Y. Kang, C. J. Hsieh, and T. C. M. Lee. Robust lipschitz bandits to adversarial corruptions. Advances in Neural Information Processing Systems, 36:10897–10908, 2023.
C. W. Kim, S. Verma, M. Tec, and M. Tambe. Preference robustness for DPO with applications to public health. arXiv preprint arXiv:2509.02709, 2025.
J. Kos and D. Song. Delving into adversarial attacks on deep policies. arXiv preprint arXiv:1705.06452, 2017.
F. Li, L. Lai, and S. Cui. On the adversarial robustness of lasso based feature selection. IEEE Transactions on Signal Processing, 69:5555–5567, 2021.
J. Li, B. Zhang, Y. Niu, S. Wu, K. Ding, and J. Wu. Online reward poisoning in reinforcement learning with convergence guarantee. IEEE Transactions on Information Forensics and Security, 20:8891–8905, 2025.
L. Li, W. Chu, J. Langford, and R. E Schapire. A contextual-bandit approach to personalized news article recommendation. In Proceedings of the International Conference on World Wide Web, pp. 661–670, Raleigh, NC, Apr. 2010.
Y.-C. Lin, Z.-W. Hong, Y.-H. Liao, M.-L. Shih, M.-Y. Liu, and M. Sun. Tactics of adversarial attack on deep reinforcement learning agents. arXiv preprint arXiv:1703.06748, 2017.
F. Liu and N. Shroff. Data poisoning attacks on stochastic bandits. In Proceedings of the International Conference on Machine Learning, volume 97, pp. 4042–4050, Long Beach, CA, Jun. 2019.
G. Liu and L. Lai. Action-manipulation attacks against stochastic bandits: Attacks and defense. IEEE Transactions on Signal Processing, 68:5152–5165, 2020.
G. Liu and L. Lai. Efficient action poisoning attacks on linear contextual bandits. arXiv preprint arXiv:2112.05367, 2021a.
G. Liu and L. Lai. Provably efficient black-box action poisoning attacks against reinforcement learning. Advances in Neural Information Processing Systems, 34:12400–12410, Dec. 2021b.
G. Liu and L. Lai. Efficient adversarial attacks on online multi-agent reinforcement learning. Advances in Neural Information Processing Systems, 36:24401–24433, Dec. 2023.
T. Lykouris, V. Mirrokni, and R. Paes Leme. Stochastic bandits robust to adversarial corruptions. In Proceedings of the Annual ACM SIGACT Symposium on Theory of Computing, pp. 114–122, Los Angeles, CA, Jun. 2018.
M. Lyu, C. Yang, G. Liu, and L. Lai. Adversarial post-action attacks on dueling bandits. In Proceedings of the Annual Asilomar Conference on Signals, Systems, and Computers, pp. 118–123, Pacific Grove, CA, Oct. 2025.
E. Ma, S. R. Etesami, and P. Rathi. Reward poisoning on federated reinforcement learning. Transactions on Machine Learning Research, 2024. ISSN 2835-8856.
Y. Ma and Z. Zhou. Adversarial attacks on adversarial bandits. arXiv preprint arXiv:2301.12595, 2023.
Y. Ma, K.-S. Jun, L. Li, and X. Zhu. Data poisoning attacks in contextual bandits. In Proceedings of the International Conference on Decision and Game Theory for Security, pp. 186–204, Seattle, WA, Oct. 2018.
Y. Ma, X. Zhang, W. Sun, and X. Zhu. Policy poisoning in batch reinforcement learning and control. Advances in Neural Information Processing Systems, 32:14570–14580, Dec. 2019.
D. Mandal, A. Nika, P. Kamalaruban, A. Singla, and G. Radanović. Corruption robust offline reinforcement learning with human feedback. arXiv preprint arXiv:2402.06734, 2024.
A. Mandlekar, Y. Zhu, A. Garg, L. Fei-Fei, and S. Savarese. Adversarially robust policy learning: Active construction of physically-plausible perturbations. In Proceedings of the IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 3932–3939, Vancouver, Canada, Sep. 2017.
J. McMahan, Y. Wu, X. Zhu, and Q. Xie. Optimal attack and defense for reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 14332–14340, Vancouver, Canada, Feb. 2024.
A. Nika, J. Nöther, D. Mandal, P. Kamalaruban, A. Singla, and G. Radanovic. Policy teaching via data poisoning in learning from human preferences. In Proceedings of the International Conference on Artificial Intelligence and Statistics, Mai Khao, Thailand, May. 2025.
L. Ouyang, J. Wu, X. Jiang, D. Almeida, C. Wainwright, P. Mishkin, C. Zhang, S. Agarwal, K. Slama, A. Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35:27730–27744, Nov. 2022.
X. Pan, C. Xiao, W. He, S. Yang, J. Peng, M. Sun, J. Yi, Z. Yang, M. Liu, B. Li, et al. Characterizing attacks on deep reinforcement learning. arXiv preprint arXiv:1907.09470, 2019.
P. Pathmanathan, S. Chakraborty, X. Liu, Y. Liang, and F. Huang. Is poisoning a real threat to LLM alignment? maybe more so than you think. arXiv preprint arXiv:2406.12091, 2024.
P. Pathmanathan, S. Chakraborty, X. Liu, Y. Liang, and F. Huang. Is poisoning a real threat to DPO? maybe more so than you think. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 27556–27564, Philadelphia, PA, Feb. 2025.
A. Pattanaik, Z. Tang, S. Liu, G. Bommannan, and G. Chowdhary. Robust deep reinforcement learning with adversarial attacks. arXiv preprint arXiv:1712.03632, 2017.
K. Pillutla, S. M. Kakade, and Z. Harchaoui. Robust aggregation for federated learning. IEEE Transactions on Signal Processing, 70:1142–1154, 2022.
R. Rafailov, A. Sharma, E. Mitchell, C. D. Manning, S. Ermon, and C. Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36: 53728–53741, Dec. 2023.
A. Rakhsha, G. Radanovic, R. Devidze, X. Zhu, and A. Singla. Policy teaching via environment poisoning: Training-time adversarial attacks against reinforcement learning. In Proceedings of International Conference on Machine Learning, volume 119, pp. 7974–7984, Online, Jul. 2020.
A. Rakhsha, X. Zhang, X. Zhu, and A. Singla. Reward poisoning in reinforcement learning: Attacks against unknown learners in unknown environments. arXiv preprint arXiv:2102.08492, 2021.
J. Rando and F. Tramèr. Universal jailbreak backdoors from poisoned human feedback. arXiv preprint arXiv:2311.14455, 2023.
A. Rangi, H. Xu, L. Tran-Thanh, and M. Franceschetti. Understanding the limits of poisoning attacks in episodic reinforcement learning. arXiv preprint arXiv:2208.13663, 2022.
H. Robbins. Some aspects of the sequential design of experiments. Bulletin of the American Mathematical Society, 58(5):527–535, September 1952.
E. K. Ryu and S. Boyd. Primer on monotone operator methods. Appl. comput. math, 15(1):3–43, 2016.
A. Saha, T. Koren, and Y. Mansour. Adversarial dueling bandits. In Proceedings of the International Conference on Machine Learning, volume 139, pp. 9235–9244, Online, Jul. 2021.
A. Saha, A. Pacchiano, and J. Lee. Dueling RL: Reinforcement learning with trajectory preferences. In Proceedings of the International Conference on Artificial Intelligence and Statistics, volume 206, pp. 6263–6289, Valencia, Spain, Apr. 2023.
J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
Y. Sui, M. Zoghi, K. Hofmann, and Y. Yue. Advancements in dueling bandits. In Proceedings of the International Joint Conference on Artificial Intelligence, pp. 5502–5510, Stockholm, Sweden, Jul. 2018.
J. Sun, T. Zhang, X. Xie, L. Ma, Y. Zheng, K. Chen, and Y. Liu. Stealthy and efficient adversarial attacks against deep reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 5883–5891, New York, NY, Feb. 2020a.
Y. Sun, D. Huo, and F. Huang. Vulnerability-aware poisoning mechanism for online RL with unknown dynamics. arXiv preprint arXiv:2009.00774, 2020b.
C. Tessler, Y. Efroni, and S. Mannor. Action robust reinforcement learning and applications in continuous control. In Proceedings of the International Conference on Machine Learning, volume 97, pp. 6215–6224, Long Beach, CA, Jun. 2019.
Y. Wang, Q. Liu, and C. Jin. Is RLHF more difficult than standard RL? a theoretical perspective. Advances in Neural Information Processing Systems, 36:76006–76032, 2023.
J. Wu, J. Wang, C. Xiao, C. Wang, N. Zhang, and Y. Vorobeychik. Preference poisoning attacks on reward model learning. arXiv preprint arXiv:2402.01920, 2024a.
J. Wu, Y. Xie, Z. Yang, J. Wu, J. Chen, J. Gao, B. Ding, X. Wang, and X. He. Towards robust alignment of language models: Distributionally robustifying direct preference optimization. arXiv preprint arXiv:2407.07880, 2024b.
J. Wu, J. Wang, C. Xiao, C. Wang, N. Zhang, and Y. Vorobeychik. Preference poisoning attacks on reward model learning. In Proceedings of the IEEE Symposium on Security and Privacy, pp. 1622–1640, San Francisco, CA, May. 2025.
R. Wu and W. Sun. Making RL with preference-based feedback efficient via randomization. arXiv preprint arXiv:2310.14554, 2024.
Y. Wu, J. McMahan, X. Zhu, and Q. Xie. Reward poisoning attacks on offline multi-agent reinforcement learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pp. 10426–10434, Washington, DC, Feb. 2023.
W. Xiong, H. Dong, C. Ye, Z. Wang, H. Zhong, H. Ji, N. Jiang, and T. Zhang. Iterative preference learning from human feedback: Bridging theory and practice for RLHF under KL-constraint. arXiv preprint arXiv:2312.11456, 2023.
H. Xu, R. Wang, L. Raizman, and Z. Rabinovich. Transferable environment poisoning: Training-time attack on reinforcement learning. In Proceedings of the International Conference on Autonomous Agents and Multiagent Systems, pp. 1398–1406, Online, May. 2021.
Y. Xu, Q. Zeng, and G. Singh. Efficient reward poisoning attacks on online deep reinforcement learning. arXiv preprint arXiv:2205.14842, 2022.
Z. Xu, S. Vemuri, K. Panaganti, D. Kalathil, R. Jain, and D. Ramachandran. Robust LLM alignment via distributionally robust direct preference optimization. arXiv preprint arXiv:2502.01930, 2025.
Y. Yan, X. Lou, J. Li, Y. Zhang, J. Xie, C. Yu, Y. Wang, D. Yan, and Y. Shen. Reward-robust RLHF in LLMs. arXiv preprint arXiv:2409.15360, 2024.
C. Yang, G. Liu, and L. Lai. Stochastic bandits with non-stationary rewards: Reward attack and defense. IEEE Transactions on Signal Processing, 72:5007–5020, 2024.
C. Yang, M. Lyu, G. Liu, and L. Lai. Human feedback attack on online RLHF: Attack and robust defense. IEEE Transactions on Signal Processing, 73:3886–3901, 2025.
C. Yang, W. Xu, and L. Lai. Efficient preference poisoning attack on offline RLHF. In Proceedings of the International Conference on Machine Learning, Seoul, South Korea, Jul. 2026.
L. Yang, M. Hajiesmaili, S. Talebi, J. C. S. Lui, and W. S. Wong. Adversarial bandits with corruptions: Regret lower bound and no-regret algorithm. In Advances in Neural Information Processing Systems, volume 33, Dec. 2020.
C. Ye, R. Yang, Q. Gu, and T. Zhang. Corruption-robust offline reinforcement learning with general function approximation. Advances in Neural Information Processing Systems, 36:36208–36221, Dec. 2023.
Y. Yue, J. Broder, R. Kleinberg, and T. Joachims. The k-armed dueling bandits problem. Journal of Computer and System Sciences, 78(5):1538–1556, 2012.
W. Zhan, M. Uehara, W. Sun, and J. D. Lee. Provable reward-agnostic preference-based reinforcement learning. arXiv preprint arXiv:2305.18505, 2023.
X. Zhang, Y. Ma, A. Singla, and X. Zhu. Adaptive reward-poisoning attacks against reinforcement learning. In Proceedings of the International Conference on Machine Learning, volume 119, pp. 11225–11234, Online, Jul. 2020.
X. Zhang, Y. Chen, X. Zhu, and W. Sun. Corruption-robust offline reinforcement learning. In Proceedings of the International Conference on Artificial Intelligence and Statistics, volume 151, pp. 5757–5773, Online, Mar. 2022.
X. Zhou, Y. Wu, and F. Orabona. A unified theoretical analysis of private and robust offline alignment: from RLHF to DPO. arXiv preprint arXiv:2505.15694, 2025.
B. Zhu, M. Jordan, and J. Jiao. Principled reinforcement learning with human feedback from pairwise or k-wise comparisons. In Proceedings of the International Conference on Machine Learning, volume 202, pp. 43037–43067, Honolulu, HI, Jul. 2023.
D. M. Ziegler, N. Stiennon, J. Wu, T. B. Brown, A. Radford, D. Amodei, P. Christiano, and G. Irving. Fine-tuning language models from human preferences. arXiv preprint arXiv:1909.08593, 2019.
J. Zimmert and Y. Seldin. An optimal algorithm for stochastic and adversarial bandits. In Proceedings of the International Conference on Artificial Intelligence and Statistics, volume 89, pp. 467–475, Okinawa, Japan, Apr. 2019.
M. Zoghi, S. Whiteson, R. Munos, and M. Rijke. Relative upper confidence bound for the k-armed dueling bandit problem. In Proceedings of the International Conference on Machine Learning, volume 32, pp. 10–18, Beijing, China, Jun. 2014.
A INTRODUCTION: ADDITIONAL RELATED WORK
A.1 BANDIT PROBLEMS: ADVERSARIAL ATTACKS AND ROBUST DEFENSES
Adversarial attacks have been studied in several bandit settings, including multi-armed bandits (MAB) (Jun et al., 2018; Liu & Shroff, 2019; Liu & Lai, 2020; Ma & Zhou, 2023; Yang et al., 2024), linear contextual bandits (Ma et al., 2018; Garcelon et al., 2020; Liu & Lai, 2021a), and dueling bandits (Gajane et al., 2015; Agarwal et al., 2021; Saha et al., 2021). These works show that bandit algorithms can be sensitive to adversarially corrupted feedback or interaction signals.
In MAB, the learner chooses one arm in each round and observes the corresponding reward (Robbins, 1952; Auer et al., 1995; 2002). An adversary may corrupt rewards (Jun et al., 2018; Ma & Zhou, 2023; Liu & Shroff, 2019), or manipulate the selected actions (Liu & Lai, 2020) to force the learner to pull a target arm more often. Most existing studies focus on stochastic rewards, where each arm has a fixed reward distribution. Other works consider adversarial rewards, where rewards are chosen arbitrarily (Auer et al., 2002; Zimmert & Seldin, 2019), or non-stationary rewards, where reward distributions change over time within some extent (Yang et al., 2024; Garivier & Moulines, 2011; Besbes et al., 2014; Auer et al., 2019; Besbes et al., 2019; Cheung et al., 2022).
In linear contextual bandits, the expected reward is assumed to be linear in the context features (Auer, 2002; Abe et al., 2003; Li et al., 2010). Existing attacks include reward poisoning (Ma et al., 2018; Garcelon et al., 2020), context poisoning (Garcelon et al., 2020), and action poisoning (Liu & Lai, 2021a).
Dueling bandits are closer to RLHF, in which the learner selects a pair of arms and observes only which one is preferred (Yue et al., 2012; Zoghi et al., 2014; Sui et al., 2018). Prior work studies stochastic dueling bandits with corrupted pairs (Agarwal et al., 2021), as well as adversarial preference models (Gajane et al., 2015; Saha et al., 2021; Lyu et al., 2025).
Adversarial attacks naturally motivate robust bandit algorithms. Existing robust defenses have been studied for stochastic bandits (Lykouris et al., 2018; Gupta et al., 2019; Guan et al., 2020; Bogunovic et al., 2021), adversarial bandits (Yang et al., 2020), stochastic linear contextual bandits (Ding et al., 2022), strategic manipulation in stochastic bandits (Feng et al., 2020), stochastic Lipschitz bandits (Kang et al., 2023), and non-stationary bandits (Yang et al., 2024). These defenses are important in real applications, where corrupted feedback can lead to harmful decisions such as unfair recommendations or unsafe medical treatments.
A.2 STANDARD REINFORCEMENT LEARNING: ADVERSARIAL ATTACKS AND ROBUST DEFENSES
Adversarial attacks on standard RL have also been widely studied, in which the attacker corrupts multiple aspects of the learning process so that the learned policy is misled. Common poisoning models include reward/cost poisoning (Huang & Zhu, 2019; Zhang et al., 2020; Rakhsha et al., 2020; 2021; Banihashem et al., 2022; Xu et al., 2022; Li et al., 2025); action poisoning (Liu & Lai, 2021b); and more general environment or transition dynamics poisoning (Rakhsha et al., 2020; Xu et al., 2021). Poisoning attacks are also studied in batch settings (Ma et al., 2019), and in dynamics-agnostic settings (Sun et al., 2020b; Liu & Lai, 2021b; Rakhsha et al., 2021; Xu et al., 2022; Li et al., 2025).
Beyond single-agent RL, adversarial attacks have also been considered in multi-agent RL (Liu & Lai, 2023; Wu et al., 2023), and in federated RL (Ma et al., 2024). Other works characterize the limits of reward-only or action-only poisoning in episodic RL (Rangi et al., 2022), or formulate the optimal attack through the attacker's own Markov decision process (McMahan et al., 2024). In deep RL, the policies are neural networks and the attackers modify the high-dimensional observations (Huang et al., 2017; Kos & Song, 2017; Lin et al., 2017; Pattanaik et al., 2017; Mandlekar et al., 2017; Pan et al., 2019; Gleave et al., 2019; Sun et al., 2020a).
Existing works have proposed defense strategies in RL algorithms (Tessler et al., 2019; Zhang et al., 2022; Ye et al., 2023). Related robustness ideas have also been developed in broader machine learning settings (Dong et al., 2024; Li et al., 2021; Pillutla et al., 2022). These works show that defense mechanisms are necessary when corrupted interactions can push the learner toward undesirable behaviors.
A.3 REINFORCEMENT LEARNING FROM HUMAN FEEDBACK: ADVERSARIAL ATTACKS AND ROBUST DEFENSES
RLHF is different from bandit and standard RL because it learns policies from pairwise discrete preference data rather than a numerical reward from the environment. Depending on whether the training is on a pre-collected dataset or through real-time interaction with human annotators (Xiong et al., 2023), RLHF can be categorized into offline RLHF (Christiano et al., 2017; Ouyang et al., 2022; Bai et al., 2022; Zhu et al., 2023; Rafailov et al., 2023) and online RLHF (Chen et al., 2022; Saha et al., 2023; Wang et al., 2023; Zhan et al., 2023; Wu & Sun, 2024). It has been shown that offline RLHF is vulnerable to preference poisoning, such as data injection attack and label flipping attack, through experiments (Rando & Tramèr, 2023; Wu et al., 2024a; Baumgärtner et al., 2024; Pathmanathan et al., 2024; Fu et al., 2025; Pathmanathan et al., 2025; Wu et al., 2025), and theoretical analysis (Nika et al., 2025). Nika et al. (2025) proves that a large poisoned preference set may be needed to mislead offline RLHF for data injection attack. Meanwhile, Yang et al. (2026) proposes efficient label flipping attacks that strategically select a small subset of preference pairs to flip and mislead offline RLHF toward a target policy. In online RLHF, preferences can also be attacked to manipulate the learning process (Yang et al., 2025).
Other than the adversarial attack described above, RLHF is also sensitive to the random noise in preference data, which is caused by annotation errors, limited expert involvement, and other non-adversarial sources (Casper et al., 2023; Yan et al., 2024). This noise may lead to unpredictable or biased aligned model behavior.
Motivated by these reliability issues of preference data, existing works propose robust online RLHF against adversarial attacks (Yang et al., 2025) and robust offline RLHF against random noise (Yan et al., 2024; Cheng et al., 2024; Mandal et al., 2024; Chowdhury et al., 2024; Wu et al., 2024b) and distribution shift (Xu et al., 2025). In the offline setting, there is a gap in the literature on robust RLHF against adversarial attacks, especially for specifically designed attacks leading to a target policy. This paper aims to fill this gap by proposing robust DPO methods against budgeted preference label flips, including adversarial flips.
B PROBLEM FORMULATION: WHY THE BOUNDED TRAINING REGION MATTERS
Remark B.1 (Why the bounded-region Assumption 2.3 matters). Without Assumption 2.3, the standard DPO objective need not be globally strongly convex on all of . In the log-linear setting, the per-sample Hessian is
and as along separable directions. Thus, global strong convexity is not guaranteed even though the bounded-region curvature constant in (12) is positive.
The strong-convexity statement in Nika et al. (2025) does not contradict the above discussion. The key distinction is whether the curvature comes from the logistic part on a bounded training region or from an explicit quadratic regularizer. In the notation of Nika et al. (2025), their parameter displacement is
and their regularized DPO/logistic objective includes the quadratic term
For the unregularized logistic part, their Hessian lower bound contains a data covariance term multiplied by a logistic-curvature constant:
where
Here, their is exactly the minimum logistic curvature factor over the dataset. In our notation, their center corresponds to the reference parameter , their displacement corresponds to , and their signed feature corresponds to our pairwise feature direction
up to the sign convention used to write the logistic loss. Thus their scalar argument corresponds to our DPO logit .
At any fixed finite parameter displacement, . More importantly for our setting, if training is restricted to a bounded ball around the reference parameter, then compactness of this ball and finiteness of the dataset imply a positive lower bound
Consequently, on the bounded training region, the unregularized DPO objective is strongly convex whenever the corresponding empirical feature covariance is positive definite on the trained parameter subspace. This is the local curvature used in our unregularized Trim-K and Soft-Trim-K bounds.
This local statement does not imply global strong convexity on all of . Indeed, for
we have for every finite , but as . Therefore, along a direction where some sample logit diverges, the corresponding logistic curvature factor vanishes, and the global infimum of is zero. This is why the unregularized objective need not admit a uniform global strong-convexity constant.
The quadratic regularizer in Nika et al. (2025) gives a different source of curvature. It adds to the Hessian, so the regularized objective can obtain an additional global curvature term even when the logistic curvature factor is small. This is the same mechanism used by our regularized variants in Section 3.4: the denominator improves by , while comparison to the unregularized clean DPO target also introduces the deterministic regularization bias term .
Proposition B.2 (Linear-in-T deviation under convex smoothness alone). For any , there exist a convex -smooth function , a constant bias vector , and a step size such that, when clean and attacked gradient descent are run from the same initialization,
the iterate deviation satisfies
Thus, convex smoothness plus a uniform gradient-bias bound is not enough to imply a time-uniform deviation bound.
Proof of Proposition B.2. Choose any nonzero vector and any . Take for all . Then is convex and -smooth for every , and for all . The clean GD iterates are constant:
The attacked GD iterates satisfy
Starting from the same initialization , we obtain by induction
and hence .
Proposition B.2 explains why Assumption 2.3 is important for time-uniform robustness. Without a bounded training region, the DPO objective may not have a uniform curvature lower bound, so the stability argument would fall back to the accumulated-bias recursion over gradient steps, leading to a deviation that grows linearly in T, illustrated by the proposition. The bounded-region assumption prevents this failure mode by keeping the logistic curvature uniformly positive along training. For the regularized variants, the quadratic regularizer provides an additional curvature term, but its additional bias means that it need not improve the complete deviation bound.
C METHODS: ALGORITHM DETAILS
Algorithms 1 and 2 give the implementation details for applying the objective-level defenses described in the main text to the observed dataset. In the log-linear setting, the score is the exact magnitude of a pair's potential flip-induced gradient change. It does not estimate whether the pair is corrupted. Because is invariant to swapping the two responses, this score can be computed directly from the observed pair even if it has been flipped. Given precomputed -dimensional features, computing all scores costs and sorting them costs , once before training. Training then uses standard DPO updates on the fixed retained set or with fixed scalar weights on the per-example losses. The REG variants additionally evaluate the quadratic penalty and its gradient, requiring arithmetic per update.
Algorithm 1 Trim-K Robust-DPO
Require: Observed preference dataset , budget upper bound , reference policy , inverse-temperature , optimizer, training horizon
1: for do 2: Compute observed direction 3: Compute score 4: end for 5: Sort in descending order and keep the smallest-score indices 6: Initialize parameter 7: for do 8: Compute the observed trimmed DPO objective
9: Update 10: end for 11: return
Algorithm 2 Soft-Trim-K Robust-DPO
Require: Observed preference dataset , budget upper bound , temperature , reference policy , inverse-temperature , optimizer, training horizon
1: for do 2: Compute observed direction 3: Compute score 4: end for 5: Rank the scores in descending order and assign weights by (13) 6: Initialize parameter 7: for do 8: Compute the observed weighted DPO objective
9: Update 10: end for 11: return
D METHODS: SOFT-TRIM WEIGHT VISUALIZATION
Figure 2 visualizes the rank-based weights used by Soft-Trim-K Robust-DPO. Smaller values of more aggressively downweight the highest-score samples and approach Trim-K Robust-DPO, while larger values of keep the weights closer to one and approach standard DPO.
E METHODS: SUPPORTING LEMMAS FOR THE MAIN ANALYSIS
This appendix collects the standard smoothness, curvature, and optimization facts used in Section 3.
Lemma E.1 (Smoothness of per-sample and normalized log-linear DPO objectives). Under Assumption 2.1, for every sample i, the clean per-sample loss defined in (2) is convex and -smooth, where
In particular, for all ,
Exponential Soft-Trim-K Weights with Descending Clean Score Curve

Figure 2: Left vertical axis: Soft-Trim-K weights as a function of the rank , for different temperatures . Right vertical axis: the impact scores as a function of rank, with . The trimming cutoff at is indicated by the vertical dashed line.
The same conclusion holds for the observed loss , because swapping the preference orientation replaces by and preserves its norm. Consequently, for any fixed weights with , both normalized objectives
are convex and -smooth. In particular, this applies to , , , , and .
Lemma E.2 (Restricted strong convexity of the trimmed DPO objective). Under Assumptions 2.1 and 2.3, the clean trimmed objective introduced in Section 3.2 is -strongly convex on and -smooth, where is defined in (12).
Lemma E.3 (Closed-form bound on the clean Trim-K bias). Under Assumption 2.1, for every ,
Consequently,
Moreover, for the regularized clean bias ,
Lemma E.4 (Closed-form bound on the clean Soft-Trim-K bias). Define
Under Assumption 2.1, for every ,
Consequently,
Moreover, for the regularized clean bias ,
As , reduces to the exact hard-trim type bound
which is at most . As , all weights converge to one, , and .
Lemma E.5 (Non-expansiveness of gradient descent for convex smooth objectives). Let be convex and -smooth. Define . If , then is non-expansive:
Lemma E.6 (Time-uniform stability under objective perturbation). Let be the target objective and let be the objective optimized by the attacked run. Assume is -strongly convex and -smooth on a convex region containing the clean and attacked iterates, and assume
Run full-batch gradient descent from the same initialization with step size :
Then for every ,
F METHODS: PROOFS OF THEORETICAL RESULTS
F.1 PROOF OF LEMMA E.1
Proof. Fix a sample . Since does not depend on , . Differentiating,
Thus, using and ,
Under Assumption 2.1, , hence for all . A uniform Hessian bound implies gradient Lipschitzness:
The Hessian is positive semidefinite, so is convex. For the observed orientation, either the pair is unchanged or becomes . The same Hessian bound and convexity conclusion therefore hold for .
Finally, for any fixed normalized nonnegative weighted average ,
and . The identical argument applies to using the observed losses . This proves the stated claims for the fixed normalized clean and attacked empirical objectives.
F.2 PROOF OF LEMMA E.2
Proof. For , the Hessian of the clean trimmed objective is
By the definition of ,
Therefore is -strongly convex on the bounded region. Its -smoothness follows from Lemma E.1.
F.3 PROOF OF LEMMA E.3
Proof. Let denote the trimmed set, so and . Splitting , we obtain
By the closed-form gradient (4) and , we have for every . Triangle inequality gives
By construction of , every satisfies , hence . Also, contains exactly the largest scores, so . Substituting,
Taking the supremum over gives the bound on . Since for , , yielding the simplified . Each under Assumption 2.1, hence , giving the universal bound . For the regularized bias, note
and on , so the regularized bound follows by the triangle inequality.
F.4 PROOF OF LEMMA E.4
Proof. Write the samples in descending score order, so that the top-K weights are for and the remaining weights are one. Recall from Section 3.3 that . Since
and , the triangle inequality gives
For a top-K sample with rank j, the absolute coefficient is
For a sample with rank , the coefficient is
Combining these two displays proves
Taking the supremum over gives . Also, for every ,
which implies
The same simpler upper bound also follows directly from the alternative decomposition
where denotes the gradient of the sample with the -th largest score. Using and gives
Finally, , , and imply the universal bound . The regularized bound follows by adding and using . The two limiting statements follow by taking as and as in the definition of .
F.5 PROOF OF LEMMA E.5
Proof. Let and . We first recall that for convex -smooth , is -cocoercive (Bauschke & Combettes, 2009):
Now expand the distance after one GD step:
Applying (20) yields
If , then , hence , which implies .
F.6 PROOF OF LEMMA E.6
Proof. Let and . Since is -strongly convex and -smooth, and , the gradient-descent map is a contraction (Ryu & Boyd, 2016):
Therefore, with ,
Unrolling this recursion from gives
F.7 PROOF OF LEMMA 2.2
We include the proof in our notation, following the gradient-shift analysis in Yang et al. (2026).
Proof. For sample , swapping changes to and changes the logit to . Using and , we obtain
Therefore .
F.8 PROOF OF THEOREM 3.1
Proof. By the decomposition before the theorem,
The first term is bounded by by definition. For the second term,
Combining the two bounds proves the claim.
F.9 PROOF OF THEOREM 3.2
Proof. The Hessian of is the same as the Hessian of , because label swaps replace by and leave unchanged. Thus, by Lemma E.2, is -strongly convex and -smooth on the bounded region. Theorem 3.1 gives the uniform perturbation bound
Applying Lemma E.6 with , , , , and
proves the stated bound.
F.10 PROOF OF COROLLARY 3.3
Proof. Fix x and define the log-partition
Under Assumption 2.1 ( ), we have for all , hence is 1-smooth. Moreover, is the exponential family induced by , and the conditional KL admits the standard Bregman form
By 1-smoothness of , the descent inequality implies that for all ,
Rearranging yields the Bregman bound
Thus
Substituting proves the first claim, and taking expectation over preserves the inequality. Finally, apply Theorem 3.2 to bound .
F.11 PROOF OF THEOREM 3.4
Proof. For any attack set A with ,
The first term is bounded by by definition. For the second term, using gives
where the last inequality follows from the definition of as the largest possible sum of K weighted impacts. This proves (14).
For the exponential weights, every original top-K sample has weight at most , and every sample outside the original top-K has score at most . Therefore, for any with ,
Taking the maximum over A proves the upper-bound for .
F.12 PROOF OF THEOREM 3.5
Proof. The Hessian of is the same as the Hessian of , because label swaps leave each matrix unchanged. The weighted clean objective satisfies
By the definitions of and ,
for all . Thus is -strongly convex on the bounded region and is -smooth by Lemma E.1. Theorem 3.4 gives
Applying Lemma E.6 with , , , , and
proves the first displayed bound. The second follows by substituting the coarse bound (15).
F.13 PROOF OF COROLLARY 3.6
Proof. The KL-to-parameter conversion is the same as in the proof of Corollary 3.3. Applying Theorem 3.5 gives the stated bound.
F.14 PROOF OF PROPOSITION 3.7
Proof. On the bounded region, is -strongly convex and -smooth by assumption. Adding the quadratic regularizer adds Hessian . Hence
and
This proves -strong convexity and -smoothness.
F.15 PROOF OF COROLLARY 3.8
Proof. Fix and an admissible attack set . Assumption 2.3 supplies the bounded training region and curvature on the directions updated by both runs. By Lemma 2.2, label flips change the gradient of either fixed robust objective by a constant vector. Consequently, has the same Hessian as and, by Proposition 3.7, is -strongly convex and -smooth on that region, in the trained coordinates of Assumption 2.3. The regularizer cancels from the attacked-to-clean robust difference, giving
The first term has norm at most . The second has norm at most : this is by the proof of Theorem 3.1 when , and by the proof of Theorem 3.4 when . The common initialization and Assumption 2.3 place both trajectories in the same affine training space. Restricting to its coordinates preserves the updates and cannot increase the gradient-perturbation bound. Apply Lemma E.6 in those coordinates with , , , , and
to obtain the first inequality. For the second, use and . The latter follows from Lemma E.3 for , and Theorem 3.4 together with Lemma E.4 for .
F.16 PROOF OF COROLLARY 3.9
Proof. Fix either . As in the proof of Corollary 3.6, Assumption 2.1 implies that the log-partition function is 1-smooth. Its Bregman-divergence representation of conditional KL therefore gives, for every prompt ,
The parameter-distance term is independent of x. Taking expectation over prompts and applying Corollary 3.8 yields
which proves (17).
G EXPERIMENTS: ADDITIONAL DETAILS FOR THE SHP SIMULATION
Data and feature construction. The SHP simulation uses 200,000 decoded preference pairs from the SHP training split (seed 0), followed by an 80/20 train/test split that yields 160,000 training pairs and 40,000 held-out test pairs. For each example, we use the feature difference defined in (3). We concatenate the prompt and response with two newline characters, tokenize with a maximum length of 256 tokens, and extract the final-layer CLS representation from sentence-transformers/all-MiniLM-L6-v2. We -normalize this vector to obtain , so . This instantiates the log-linear DPO parameterization. SHP is a public Reddit-derived preference dataset. We cite its associated paper and follow the dataset-card terms. The embedding model sentence-transformers/all-MiniLM-L6-v2 is released under the Apache-2.0 license.
Reference policy. The reference parameter is trained independently of the DPO runs on the same training split using a pairwise logistic ranking loss
with , 5,000 mini-batch SGD steps, learning rate 0.25, and batch size 100,000. The resulting parameter has . The reference parameter defines the reference-policy log-ratio in the DPO loss, provides the common initialization, and anchors the quadratic regularizer. It is not treated as a near-optimal policy. All DPO and robust-DPO runs are initialized at .
Optimization and attack configuration. All models are trained by SGD with learning rate 0.25, batch size 25,600, and 100,000 optimization steps, with full-batch evaluation every 100 steps. We set and attack fraction 0.3, giving a nominal attacked-scenario budget of flipped training pairs. Four attack settings are considered:
• No attack: the training data is clean.
• Random corruption: K training pairs are randomly selected and flipped.
• Top-impact attack: K training pairs with the largest impact scores are flipped.
• Targeted BMP-A attack (Yang et al., 2026): K training pairs are selected by BMP-A, a gradient-space label-flip attack that drives DPO toward the target policy . The detailed procedure and construction of this adversarial attack are provided in Appendix H.
For the attacked scenarios, TRIM and TRIM_REG remove the top-K examples under the observed impact ranking (K = 48,000, leaving 112,000 training pairs). The REG variants use . For the no-attack control, we set K = 0 while keeping for the REG controls. The unregularized proposed defenses then reduce to standard DPO, and the REG variants reduce to full-data regularized DPO. For SOFT_TRIM and SOFT_TRIM_REG, the full training set is retained with exponential weights at . When K = 0, all weights are one. We also run a clean-data wrong-K stress test in which the realized attack budget is zero but the defender uses the nominal attacked-scenario budget K = 48,000. This measures the clean-data cost of overestimating K.
Compute resources. The reported runs used Apple Silicon M4 Max with MPS for sequential preprocessing, clean-reference training, and targeted-attack construction. The remaining algorithm cases were dispatched to CPU worker processes. The logged run used 64GB unified memory, 12 performance cores, 4 efficiency cores, 14 parallel workers, and finished the full no-attack, random, top-impact, and targeted-BMP-A sweep in about two hours.
Compared models and legend names. We use the shorthand defined in Section 4: DPO, DPO_REG, TRIM, TRIM_REG, SOFT_TRIM, and SOFT_TRIM_REG. The additional baselines are DR_DPO, NR_DPO, WDPO, and KLDPO (Appendix J). In the conservative wrong-K scenario, “DPO (trimmed data)” denotes DPO trained on the retained clean subset. In the ordinary no-attack scenario (K = 0), no pairs are removed and the legend uses DPO. The matched full-data DPO_REG control uses the same observed labels and without trimming or downweighting (Appendix K). The clean full-set DPO reference is displayed as in policy KL and as in parameter plots.
Evaluation metrics. Our primary metric is the candidate-set policy distance, defined as the average categorical KL between two induced finite-action policies on held-out prompts. For each evaluation prompt x, we construct an indexed candidate list of size M = 100:
The response pool contains both responses from each of the 160,000 training pairs, with duplicate and empty strings removed. We sample additional responses with replacement using seed 123, excluding strings equal to or . Repeated sampled responses remain separate candidate entries. Writing for entry , the evaluated categorical policy is
The same candidate lists are fixed across all compared methods and checkpoints. We then report
averaged over 5,000 held-out prompts. We also record parameter distance , but candKL is the primary metric as it measures the downstream policy deviation on a richer action space, and it reflects the effect of attack and defense more directly.
Candidate-set KL measures deviation from the clean-DPO policy on the fixed evaluation candidates. It does not directly measure absolute response quality.
H EXPERIMENTS: BMP-A TARGETED ATTACK: FULL CONSTRUCTION
This appendix explains how we instantiate the Binary Matching Pursuit Attack (BMP-A) from Yang et al. (2026) in our robust DPO experiments. BMP-A is used only to generate the attacked training set. All robust defense methods then train on this same attacked dataset or on the corresponding trimmed subset. BMP-A selects flips to match an attacker-chosen target gradient, whereas top-impact selects by magnitude and random corruption selects uniformly. Their realized policy effects depend on the target, budget, and data geometry.
Gradient-space reduction. Recall the feature difference and affine logit from (3). In our SHP simulation, the reference policy is parameterized by , so and the logit specializes to
By Lemma 2.2, flipping pair changes the clean per-sample gradient by the fixed vector . Thus a support changes the unnormalized gradient sum by , or the gradient of the averaged objective by . This is the key observation used in Yang et al. (2026): targeted label flipping can be formulated as a sparse binary approximation problem in gradient space.
Target policy. We choose the adversarial target as the reflection of the clean DPO solution across the reference parameter,
This target asks the attacked optimizer to move away from by roughly the same distance as the clean optimizer, but in the opposite direction. Define the unnormalized clean-gradient sum and its cancelling target vector by
If the attacker can find a flip set such that , then the attacked DPO gradient at is close to zero. Thus becomes an approximate stationary point of the attacked objective.
Sparse binary attack problem. Let
The attacker seeks a binary selector with such that
Here means that pair is flipped. This is the same gradient-space attack formulation as in Yang et al. (2026), specialized to the target used in our experiments.
BMP-A selection rule. BMP-A is a greedy solver for (21). Starting from residual and empty support , it repeatedly selects an unflipped pair whose normalized column direction has the largest correlation with the current residual:
The normalization is important because the columns are not unit-norm. The numerical floor matches the implementation and gives zero score to zero-impact columns. After choosing , BMP-A sets and updates
so that the invariant is maintained. The procedure stops when the budget is exhausted or when the residual norm is below the tolerance. Algorithm 3 gives the exact procedure used in our experiments.
Algorithm 3 Binary Matching Pursuit Attack (BMP-A) used for targeted label flipping
Require: Attack matrix , target , budget , tolerance
Ensure: Binary flip vector , flip set
1: , ,
2: for do
3:
4: ,
5:
6: if then
7: break
8: end if
9: end for
Forming the attacked dataset. After BMP-A returns the support , we form using the label-flip rule in Section 2.2. This attacked dataset is fixed before defense training and shared by all methods.
Target-strength line search. A fixed budget may not be sufficient to reach the full opposite target. Therefore, our implementation also considers intermediate targets
For each , we compute , set , and run BMP-A with budget . We scan from large to small over and use the first value satisfying
If no value meets this criterion, we use the with the smallest relative residual. This selects the largest tested meeting the residual criterion when one is available.
Realized BMP-A instance. In our SHP experiment, , , , , and the residual tolerance is . The line search accepts , so the full target is used. The final BMP-A support has size 48,000, the relative gradient-space residual is 0.094, and
Training standard DPO on this attacked dataset yields a final parameter distance around 30.7 from . The constructed attack therefore causes a substantial deviation from clean DPO, providing a targeted-attack setting for evaluating the defenses.
I EXPERIMENTS: NO-ATTACK AND RANDOM-CORRUPTION RESULTS
This appendix reports results for the no-attack, clean-data wrong-, and random-corruption scenarios, and provides parameter-distance () curves for all four attack scenarios. The figures in this section compare standard DPO with the four proposed defenses (TRIM, TRIM_REG, SOFT_TRIM, and SOFT_TRIM_REG). Comparisons with the four additional baselines appear in Appendix J.
I. 1 NO-ATTACK SCENARIO
When the training data are clean, the realized attack budget is . With no samples to trim and all soft-trim weights equal to one, TRIM and SOFT_TRIM reduce exactly to standard DPO. The _REG controls keep , so TRIM_REG and SOFT_TRIM_REG reduce to full-data regularized DPO and retain a clean-data offset from the unregularized reference . Figure 3 confirms that both unregularized defenses retain the clean-DPO solution when , with final candKL = 0 up to numerical tolerance. The REG controls isolate the deviation introduced by the quadratic regularizer.

Figure 3: No-attack scenario. candKL, plotted as (left), and (right). The unregularized proposed defenses use , while the REG variants keep .
I. 2 NO-ATTACK SCENARIO WITH CONSERVATIVE WRONG K
We also train on clean data while setting the trimming budget to . Hard trimming removes 30% of the clean training set, giving final candKL 0.018 for TRIM. Soft trimming retains all pairs and reaches candKL 0.007.
Figure 4 illustrates the clean-data cost of overestimating K. SOFT_TRIM incurs a smaller deviation than TRIM in this setting, consistent with its less aggressive downweighting rule.

Figure 4: No-attack scenario with conservative wrong . candKL, plotted as (left), and (right). The true attack budget is zero, but the defender uses , so hard trimming discards clean high-impact pairs and soft trimming keeps a smaller clean-data bias.
I. 3 RANDOM-CORRUPTION SCENARIO
Under 30% random label flips, only 30% of the top-K impact samples are actually corrupted, so TRIM's precision and recall for identifying attacked samples are both 0.30. Across ten random seeds, standard DPO reaches candKL = 0.041 0.001, compared with 0.039 0.003 for TRIM and 0.037 0.002 for SOFT_TRIM. The regularized variants have higher final candKL, with 0.0918 0.0004 for TRIM_REG and 0.0892 0.0003 for SOFT_TRIM_REG. The values are empirical standard deviations across random attack seeds. Figure 5 shows modest reductions in mean candKL for the unregularized defenses, even though the impact ranking does not preferentially select randomly flipped pairs. Regularization does not improve this comparison, consistent with the clean-data offset observed in the no-attack control.

mean [random attack, 10 seeds]
Figure 5: Random-corruption scenario (30% of pairs flipped uniformly at random), averaged over ten seeds. Left: candKL from clean DPO. Right: parameter distance from .
I. 4 PARAMETER-DISTANCE CURVES FOR TOP-IMPACT AND TARGETED ATTACKS
For completeness, Figures 6 and 7 show the trajectories for the top-impact and targeted attacks. Under the top-impact attack, TRIM drives -distance to 8.25 (identical to TRIM on clean data with the same ), while attacked DPO reaches 25.2. Under the targeted BMP-A attack, TRIM_REG ( ) and SOFT_TRIM_REG (21.5) are substantially less deflected than unregularized TRIM (32.3) and DPO (30.7), consistent with the candKL results.
The parameter-distance comparisons support the same conclusions as candKL: hard trimming is effective against the top-impact attack, while the REG variants reduce deviation from clean DPO under BMP-A.

[top-impact attack]
Figure 6: Top-impact attack. candKL, plotted as (left), and (right). TRIM matches its clean-data counterpart with the same .

Figure 7: Targeted BMP-A attack. candKL, plotted as (left), and (right). Both REG variants reduce deviation from clean DPO.
J EXPERIMENTS: COMPARISON WITH DR_DPO, NR_DPO, WDPO, AND KLDPO BASELINES
We compare our proposed defenses against four existing robust DPO baselines designed for random noise or distributional shift.
J.1 BASELINE METHODS
DR_DPO (Wu et al., 2024b). DR_DPO applies an entropic aggregation to the DPO log-likelihood over preference pairs. In our positive-loss notation, the implemented objective is
where is a tunable temperature. We use . The original DR_DPO objective applies the entropic transform to , the DPO log-likelihood, following Appendix D of Wu et al. (2024b). In positive-loss notation, this gives a soft-minimum rather than the KL-DRO worst-case risk . The induced per-sample gradient weight is , which downweights pairs with high observed loss. This weighting can reduce the influence of high-loss noisy pairs, but high loss can also reflect a clean, difficult comparison. Under targeted corruption, fitting attacked labels can make opposing clean comparisons harder, so this weighting need not suppress the poisoned signal.
NR_DPO (Chowdhury et al., 2024). NR_DPO (called rDPO in the original paper) applies the symmetric-flip unbiased correction:
where is the chosen-rejected logit and is the assumed flip rate. We set equal to the true attack fraction = 0.3 in attack scenarios, and to 0 in the no-attack scenario, which recovers standard DPO. This correction is unbiased for the clean DPO loss under i.i.d. symmetric label flips, and would work well when corruption matches that model.
WDPO (Xu et al., 2025). WDPO targets distributional shift in preference data, e.g. across demographic or temporal subpopulations, via a Wasserstein-DRO formulation . Following Algorithm 1 of Xu et al. (2025), we tractably approximate this by adding an input-gradient penalty to the empirical DPO loss. In the SHP simulator, the observed pair has and logit . The implementation adds to the empirical loss. The factor 2 accounts for the sum of squared gradient norms with respect to the chosen and rejected feature vectors, since their difference is . This is the log-linear analogue of the embedding-gradient penalty in WDPO. We set for our simulator.
KLDPO (Xu et al., 2025). KLDPO targets the same distributional-shift setting as WDPO but with a KL-divergence uncertainty set, leading to a worst-case kernel that upweights samples with above-average loss. Our minibatch implementation uses with temperature , where is the current minibatch mean loss. These clipped weights are held fixed when differentiating the minibatch mean of . This is the approximate reweighting update used in our comparison with Algorithm 2 of Xu et al. (2025).
J.2 RESULTS AND DISCUSSION
We evaluate all four robust-DPO baselines together with our four proposed defenses (TRIM, TRIM_REG, SOFT_TRIM, SOFT_TRIM_REG) on the no-attack, random-corruption, top-impact, and targeted-BMP-A scenarios introduced in Section 4. Per-step candKL and parameter-distance trajectories for each scenario are shown in Figures 8–11. The final-step candKL values are summarized in Table 1. For the random-corruption column, all methods are averaged over the same ten random attack seeds. The proposed-method means and standard deviations are reported separately in Appendix I.
No-attack scenario (Figure 8). When the training data are clean, the proposed TRIM and SOFT_TRIM defenses are evaluated with K = 0, so the unregularized variants coincide with standard DPO and have final candKL = 0. The REG variants keep and therefore report the clean-data offset of full-data regularized DPO. NR_DPO (with , recovering standard DPO) and DR_DPO also converge to near-zero candKL. WDPO (candKL = 0.096) and KLDPO (candKL = 0.089) remain farther from the full-data clean-DPO reference. Their penalty and reweighting rules change the training updates even when no corruption is present.
Thus, the unregularized TRIM and SOFT_TRIM methods preserve clean-DPO training when the defender sets K = 0. The REG controls retain the bias introduced by their quadratic penalty.

[no attack]
Figure 8: No-attack scenario with all baselines. Left: candKL from clean DPO. Right: parameter distance from . The proposed defenses use , and the REG variants keep . NR_DPO (with ) and DR_DPO also converge to near-zero candKL. WDPO and KLDPO converge to a moderately different solution (candKL ).
Random corruption (Figure 9). Under 30% uniformly random label flips, the corruption setting is closest to the noise model used by NR_DPO. NR_DPO (noise rate ) reaches the lowest average candKL among the compared methods under random flips: candKL = 0.010, approximately one quarter of standard DPO's 0.041. This is consistent with its random-noise correction. DR_DPO (0.082), WDPO (0.098), and KLDPO (0.096) have higher candKL than standard DPO.
The unregularized proposed methods give modest improvements over DPO: the ten-seed mean candKL values are 0.039 for TRIM and 0.037 for SOFT_TRIM, compared with 0.041 for DPO.
Top-impact attack (Figure 10). Under the top-impact attack, DR_DPO (candKL = 0.423) and NR_DPO (0.304) deviate more than attacked DPO (0.155). WDPO and KLDPO have lower candKL than DPO (0.101 and 0.102), but remain above TRIM (0.018). SOFT_TRIM also has lower candKL (0.064) than these baselines.

Figure 9: Random-corruption scenario with all baselines, averaged over ten seeds. Left: candKL from clean DPO. Right: parameter distance from .
Both unregularized proposed methods outperform the compared baselines in this setting. Hard trimming removes all flipped pairs and matches TRIM trained on clean data with the same K, leaving only the deviation due to discarding clean training information.

Figure 10: Top-impact attack with all baselines. Left: candKL from clean DPO. Right: parameter distance from .
Targeted BMP-A attack (Figure 11). Under the targeted BMP-A attack, NR_DPO (candKL = 1.079) and DR_DPO (1.066) have larger deviations than standard DPO (0.289). Their parameter distances are 54–58, compared with 30.7 for DPO. WDPO (candKL = 0.103) and KLDPO (candKL = 0.107) have smaller deviations than DPO in this fixed BMP-A instance. TRIM (candKL = 0.335) and SOFT_TRIM (candKL = 0.320) are worse than standard DPO in this instance. Their top-K intervention region overlaps only 42% of the corrupted support: hard trimming removes those pairs, while soft trimming downweights them. Both rules also suppress clean high-impact samples. The regularized variants are closer to full-data clean DPO, with candKL 0.118 for TRIM_REG and 0.123 for SOFT_TRIM_REG, both below matched full-data DPO_REG (0.130).
Here regularization helps the proposed defenses reduce policy deviation under BMP-A, while unregularized trimming alone is insufficient. Both proposed REG variants improve over DPO, but WDPO and KLDPO achieve lower candKL in this instance. Appendix K quantifies the additional benefit of trimming beyond the shared regularizer.
Table 1 summarizes the final-step candKL across all four scenarios.

Figure 11: Targeted BMP-A attack with all baselines. Left: candKL from clean DPO. Right: parameter distance from .
| Method | No-attack | Random (30%) | Top-impact | Targeted BMP-A |
|---|---|---|---|---|
| DPO (no defense) | 0 (ref.) | 0.041 | 0.155 | 0.289 |
| DPO_REG | 0.069 | 0.087 | 0.109 | 0.130 |
| TRIM | 0 | 0.039 | 0.018 | 0.335 |
| TRIM_REG | 0.069 | 0.092 | 0.080 | 0.118 |
| SOFT_TRIM | 0 | 0.037 | 0.064 | 0.320 |
| SOFT_TRIM_REG | 0.069 | 0.089 | 0.093 | 0.123 |
| DR_DPO (Wu et al., 2024b) | ≈0 | 0.082 | 0.423 | 1.066 |
| NR_DPO (Chowdhury et al., 2024) | 0 | 0.010 | 0.304 | 1.079 |
| WDPO (Xu et al., 2025) | 0.096 | 0.098 | 0.101 | 0.103 |
| KLDPO (Xu et al., 2025) | 0.089 | 0.096 | 0.102 | 0.107 |
Table 1: Final-step candKL across all four baseline-comparison scenarios. The random-corruption column reports ten-seed means for all methods. Appendix I reports the corresponding mean and standard deviation for the proposed methods. In the no-attack control, the unregularized proposed defenses use and the regularized ones keep . NR_DPO uses without attacks and in attacked scenarios.
For NR_DPO, the strong performance under random flips does not carry over to targeted BMP-A. The independent random-noise model required for NR_DPO's cancellation is violated by this fixed targeted support. DR_DPO weights easy observed pairs more strongly. If those are attacked, the weighting can favor the poisoned signal. These mechanisms explain why their respective robustness assumptions need not hold here.
WDPO and KLDPO stay in a narrow range (candKL [0.09, 0.11] in these runs). This makes them relatively stable under the targeted BMP-A attack, where WDPO has the lowest final candKL in this run. Their no-attack deviations also show that the modified training rules do not recover the full-data clean-DPO reference in these runs. Their design addresses distribution shift rather than identifying and removing a label-flipped subset.
These comparisons support the effectiveness of the proposed defenses in the tested settings without establishing universal empirical superiority. The empirical ordering depends on the attack setting and may also depend on the feature map, attack budget, and regularization strength. The feature map determines impact magnitudes and gradient directions. Changing it may change the attacked/trimmed-set overlap and the relative performance of the defenses. The differences across attacks, together with the clean-data and random-flip controls, illustrate why our analysis separates clean defense bias from surviving attack effects. Building on the constant flip-gradient shift in Lemma 2.2, the resulting gradient-deviation bounds yield time-uniform parameter stability and then policy-level KL guarantees under the stated log-linear, bounded-region, and curvature assumptions. These guarantees hold uniformly over all fixed attack sets containing at most flips, including top-impact attack, random attack, targeted attack, or even attacks with knowledge of the defenses.
K EXPERIMENTS: MATCHED REGULARIZATION CONTROLS
We compare TRIM_REG and SOFT_TRIM_REG with full-data DPO_REG on the same attacked data. All three methods use the quadratic penalty with . DPO_REG does not trim or downweight pairs, allowing us to separate the effect of trimming from the shared quadratic regularizer and measure the additional effect of the impact-score rule.
Table 2: Final SGD candidate-set KL from full-data clean DPO in the 160,000-pair SHP setting. Percentages are computed from unrounded values relative to matched full-data DPO_REG.
| Attack | DPO_REG | TRIM_REG | Reduction | SOFT_TRIM_REG | Reduction |
|---|---|---|---|---|---|
| Top-impact | 0.1089 | 0.0803 | 26.3% | 0.0934 | 14.2% |
| BMP-A | 0.1296 | 0.1176 | 9.3% | 0.1232 | 4.9% |
Table 2 shows lower candKL for both proposed REG variants than for DPO_REG under both attacks. The reductions are larger for top-impact than for BMP-A. Figure 1b shows the corresponding BMP-A trajectories. Together, these comparisons show that impact-based trimming and downweighting provide an additional benefit beyond the shared quadratic regularizer in these two attack settings.
L EXPERIMENTS: SCORE ASSIGNMENT AND BMP-A MAGNITUDE GEOMETRY
To test the effect of score assignment, Random TRIM_REG removes the same number of pairs as TRIM_REG, while Permuted SOFT_TRIM_REG randomly reassigns the SOFT_TRIM_REG weights, preserving their multiset and normalization. These are separate randomized controls, not aliases for the impact-based methods. Both controls randomize only among pairs with nonzero flip impact. The 35,256 zero-impact pairs remain untrimmed and have weight one. Within each paired comparison, the attacked set, candidate set, clean-DPO reference, , and are fixed.
We use the SGD setup of Appendix G: 100,000 updates, learning rate 0.25, batch size 25,600, and candKL evaluation every 100 updates. We reuse the original SGD trajectories for DPO_REG, TRIM_REG, and SOFT_TRIM_REG. Hard-trim methods sample uniformly with replacement from their retained subsets. Soft-trim methods sample all pairs and normalize by the global mean weight. Each proposed method and its randomized control use the same initialization and minibatch seed.
Table 3: Nonzero-conditioned control candKL minus impact-score candKL after 100,000 SGD updates. Positive values favor the impact score. Mean ± sample standard deviation is over ten paired trials.
| Scenario | TRIM_REG vs. Random TRIM_REG | SOFT_TRIM_REG vs. Permuted SOFT_TRIM_REG |
|---|---|---|
| Clean, wrong K | -0.0086 ± 0.0002 | -0.0042 ± 0.0001 |
| Random flips | -0.0038 ± 0.0005 | -0.0019 ± 0.0004 |
| Top-impact | +0.0278 ± 0.0003 | +0.0150 ± 0.0001 |
| BMP-A | +0.0090 ± 0.0004 | +0.0048 ± 0.0002 |
We repeat each comparison for ten randomized assignments, holding the minibatch seed fixed. Random-flip trials also use different attacks. Under top-impact and BMP-A, both impact-based methods have lower candKL than their randomized controls in all ten trials. The randomized controls have lower candKL in the clean-data and random-flip settings.
For BMP-A, the top-30% impact region contains 20,232 of the 48,000 flipped pairs (42.15%). These pairs account for 58.88% of the summed impact and 72.76% of the summed squared impact over the attacked set.
Figure 12 shows the candKL for the top-impact and BMP-A attacks. The gains over matched randomized controls show that the impact-score assignment matters for these attacks, beyond the number of retained pairs or the distribution of weights. In contrast, random flips do not preferentially affect high-impact pairs, and the clean-data control contains no attacked pairs to remove. The mixed results in Table 3 actually reflect the distinction between our uniform perturbation bounds and a claim that impact-based selection is best for every corruption pattern.

(a) Top-impact attack.
(b) BMP-A attack.
Figure 12: Score-assignment ablation: candKL versus SGD steps, with the same quadratic regularizer for every method. Random TRIM_REG and Permuted SOFT_TRIM_REG are the nonzero-conditioned controls. Lines show means and shaded bands show one sample standard deviation over ten random assignments with fixed minibatch seeds. The impact-based methods and DPO_REG use one fixed SGD run for each attack.
M EXPERIMENTS: THREE-DATASET BMP-A BUDGET SWEEP
We evaluate SHP (Ethayarajh et al., 2022), HH-RLHF (Bai et al., 2022; Ganguli et al., 2022), and UltraFeedback-Binarized (Cui et al., 2023). Each dataset uses 6,000 training and 1,500 held-out pairs for seeds 0, 1, 2.
Data and features. SHP reuses the cached features and seed-0 80/20 split from Appendix G. HH-RLHF uses Anthropic/hh-rlhf, with its train and test splits. UltraFeedback-Binarized uses HuggingFaceH4/ultrafeedback_binarized, with its train_prefs and test_prefs splits. We retain the last human prompt and final assistant response for HH-RLHF, and the prompt and final assistant response for UltraFeedback-Binarized. Empty or identical response pairs are excluded, as are UltraFeedback pairs with tied preference scores. We construct pools of 10,000 training and 1,600 held-out pairs per external dataset, excluding held-out prompts that occur in the sampled training pool, and subsample the experimental pairs independently for each seed.
External-dataset features are the -normalized 384-dimensional [CLS] outputs of frozen all-MiniLM-L6-v2. The input concatenates the last 800 prompt characters with the first 5,000 response characters, separated by Assistant:, and is truncated to 256 tokens. Feature differences are not normalized, preserving the variation in flip-impact scores.
Optimization and attack. All methods start at and use SGD steps, batch size 1,024, learning rate 0.25, for REG, and . Seeds vary data subsampling and SGD. Within each seed, methods use the same data, attack, and minibatch seed. Following Appendix H, the target is the reflection of the final clean-DPO parameter. We run BMP-A once to the largest budget and use nested prefixes for the 5%, 10%, 20%, 30% attacks. Each attacked set remains fixed during training.
Metric. Table 4 and Figure 13 report held-out two-candidate , with each candidate set consisting of the held-out preferred and rejected responses. This metric is not directly comparable to the main paper's 100-candidate candKL.
At 20% and 30%, both proposed REG variants have lower KL than DPO on all three datasets. Their differences from DPO_REG are smaller, and both have slightly higher KL than DPO_REG on HH-RLHF at 20% before rounding. At 5%, all REG methods have higher KL than DPO. The smaller-budget attacks also have larger relative target-gradient residuals, ranging from 0.674 to 0.698 at 5% and from 0.478 to 0.520 at 10%. These residuals indicate that BMP-A less closely matches the target gradient at smaller budgets, and attacked DPO remains closer to the clean policy than at the larger budgets.
Table 4: Three-seed mean two-candidate policy KL under nested BMP-A budgets. Residual is BMP-A's relative target-gradient residual.
| Dataset | Budget | DPO | DPO_REG | TRIM | TRIM_REG | SOFT_TRIM | SOFT_TRIM_REG | BMP-A Residual |
|---|---|---|---|---|---|---|---|---|
| SHP | 5% | .015 | .030 | .018 | .030 | .017 | .030 | .674 |
| 10% | .035 | .034 | .042 | .034 | .039 | .034 | .493 | |
| 20% | .076 | .040 | .087 | .038 | .081 | .039 | .244 | |
| 30% | .110 | .043 | .126 | .039 | .117 | .041 | .102 | |
| HH-RLHF | 5% | .015 | .039 | .015 | .039 | .014 | .039 | .698 |
| 10% | .034 | .048 | .038 | .048 | .035 | .048 | .520 | |
| 20% | .083 | .065 | .104 | .066 | .091 | .065 | .271 | |
| 30% | .120 | .072 | .150 | .071 | .134 | .072 | .174 | |
| UltraFeedback-Binarized | 5% | .010 | .023 | .013 | .024 | .011 | .024 | .675 |
| 10% | .024 | .027 | .030 | .027 | .027 | .027 | .478 | |
| 20% | .049 | .030 | .061 | .029 | .053 | .030 | .273 | |
| 30% | .071 | .032 | .077 | .030 | .073 | .031 | .151 |
Overall, the regularized defenses are effective against the larger-budget BMP-A attacks across all three datasets. At smaller budgets, defense-induced bias can outweigh the reduction in the surviving-attack effect. This is the tradeoff captured by our bounds, which do not assert that a defense improves on DPO for every attacked set.

(a) SHP.
(b) HH-RLHF.
(c) UltraFeedback-Binarized.
Figure 13: Three-dataset log-linear BMP-A budget sweep. Lines show means and shaded bands show one sample standard deviation over three seeds.
N EXPERIMENTS: BUDGET SELECTION AND MISSPECIFIED
Our bounds assume that is an upper bound on the number of flips. Here we examine sensitivity to the assumed budget and select using held-out policy KL to the clean-DPO reference available in the experiment.
We use the datasets, preprocessing, initialization, optimizer, and reflected-target construction of Appendix M. For each dataset and seed, one fixed true BMP-A attacked set on 6,000 training pairs is reused while the defender's assumed budget varies over . For each method and seed, we select the budget with the lowest two-candidate KL on the first 500 held-out pairs, breaking ties toward smaller . We evaluate the selected method on the remaining 1,000 pairs. There are three seeds, 100,000 SGD steps, , and for . When , all soft weights are set to one, so the unregularized and REG methods reduce to DPO and DPO_REG, respectively.
Figure 14 shows the held-out test curves as the assumed budget varies. Both proposed REG variants have lower mean test KL than DPO across the entire grid on all three datasets, while unregularized trimming generally increases the deviation. Validation selects the test-grid minimizer in 31 of 36 cases. Only 15 of the 36 selected budgets satisfy .
Thus, the REG variants retain their advantage over attacked DPO in this experiment even when the assumed budget differs from the true budget. A clean-policy reference also helps select for policy proximity, but the selected budget is not an estimate of the number of attacked pairs. The uniform guarantees apply when the chosen is an upper bound on that number.
Table 5: Mean test two-candidate KL for a fixed true 20% attack while assumed changes. Each entry is unregularized / regularized methods.
| Dataset | Assumed | TRIM / TRIM_REG | SOFT_TRIM / SOFT_TRIM_REG |
|---|---|---|---|
| SHP | 0% | .0743 / .0390 | .0743 / .0390 |
| 1% | .0767 / .0390 | .0758 / .0390 | |
| 2% | .0770 / .0388 | .0760 / .0389 | |
| 4% | .0788 / .0386 | .0765 / .0388 | |
| 8% | .0806 / .0381 | .0780 / .0385 | |
| 16% | .0875 / .0375 | .0801 / .0381 | |
| 32% | .0886 / .0357 | .0820 / .0372 | |
| HH-RLHF | 0% | .0818 / .0636 | .0818 / .0636 |
| 1% | .0824 / .0640 | .0824 / .0640 | |
| 2% | .0820 / .0636 | .0821 / .0639 | |
| 4% | .0832 / .0632 | .0819 / .0635 | |
| 8% | .0872 / .0634 | .0837 / .0634 | |
| 16% | .0983 / .0643 | .0877 / .0637 | |
| 32% | .1099 / .0628 | .0941 / .0639 | |
| UltraFeedback-Binarized | 0% | .0484 / .0303 | .0484 / .0303 |
| 1% | .0500 / .0303 | .0493 / .0302 | |
| 2% | .0498 / .0301 | .0494 / .0302 | |
| 4% | .0508 / .0299 | .0497 / .0301 | |
| 8% | .0521 / .0297 | .0502 / .0299 | |
| 16% | .0557 / .0294 | .0512 / .0297 | |
| 32% | .0595 / .0288 | .0531 / .0294 |
Table 6: Validation-selected assumed for seeds 0/1/2. The true attack fraction is 20% in every run.
| Dataset | TRIM | TRIM_REG | SOFT_TRIM | SOFT_TRIM_REG |
|---|---|---|---|---|
| SHP | 0/0/0 | 32/32/32 | 0/0/0 | 32/32/32 |
| HH-RLHF | 0/0/0 | 32/32/4 | 0/0/0 | 32/16/4 |
| UltraFeedback-Binarized | 2/0/0 | 32/32/32 | 8/0/0 | 32/32/32 |

(a) SHP.
(b) HH-RLHF.
(c) UltraFeedback-Binarized.
Figure 14: Held-out test KL for a fixed-20% BMP-A support with a varied defender budget. Lines show means and shaded bands show ± one sample standard deviation over three seeds. The vertical dashed line marks the true attack fraction.
O EXTENSION TO NONLINEAR DPO POLICIES
We discuss the difficulties in extending the analysis beyond log-linear policies and report preliminary experiments with a small nonlinear policy over frozen representations.
O.1 FLIP-GRADIENT IDENTITY FOR DIFFERENTIABLE DPO POLICIES
We restate the flip-gradient identity of Yang et al. (2026) in our notation and include its proof for completeness. Lemma O.1 (Flip-gradient identity for differentiable DPO policies). For any differentiable policy and a flipped pair , let be the DPO loss on the clean pair and let be the observed loss after swapping the two responses. Wherever the log-policy gradients exist,
At a fixed , reversing the pair orientation negates the vector on the right-hand side and therefore preserves its norm. Unlike Lemma 2.2, however, this vector generally depends on .
Proof. Let be the DPO logit of the clean pair, so that and . Differentiation gives . The reference-policy terms in are constant in , leaving exactly (22).
O.2 WHY THE LOG-LINEAR ROBUSTNESS ANALYSIS DOES NOT DIRECTLY EXTEND
In the log-linear class, each flip contributes the fixed gradient shift , so the impact ranking and attack-induced gradient shift do not change during training. For a nonlinear policy, the flip-gradient vector in Lemma O.1 depends on . Extending our analysis would require control of these vectors and their variation over the training region, rather than only at initialization. Recomputing scores can also change the retained set or weights during training.
The nonlinear objective is generally nonconvex, so the covariance argument used in Theorems 3.2 and 3.5 does not directly provide the required curvature and contraction. A nonlinear extension would also need a suitable parameter-to-policy bound and, for refreshed scores, an analysis of the changing objective.
O.3 NONLINEAR PRELIMINARY EXPERIMENTS SETUP
We use SHP with seeds 0, 1, 2, subsampling 6,000 training pairs and 2,000 held-out pairs from the split in Appendix G. A seed-specific Gaussian projection followed by normalization maps frozen 384-dimensional MiniLM representations to . The policy uses the nonlinear energy head
with hidden width 8. Seeds vary data subsampling, the projection, initialization, and SGD. Within each seed, all methods share the same randomly initialized frozen reference, starting parameters, and minibatch seed. We run 10,000 SGD steps with batch size 512, learning rate 1, , for REG, and .
The attack target is trained from the reference for 10,000 steps with all preference labels reversed. Neural BMP-A uses the exact flip-gradient vectors at that target and constructs nested attack sets for 5%, 10%, 20%, 30% budgets. Each set is fixed during the corresponding training run. The defender does not observe the target or attacked set and computes the static impact scores once at the common reference initialization. At 30% (K = 1,800), the mean BMP-A relative target residual is 0.097, and the static top-K set contains 40.9% of the attacked pairs. We also train on clean data using the same assumed budgets to measure the clean defense bias.
The 2,000 held-out pairs are used for pairwise diagnostics. The reported candKL instead uses 500 fixed held-out SHP prompts from the candidate cache of Appendix G, with 100 candidates per prompt, shared across methods. The clean-DPO nonlinear policy trained for the same number of steps is the comparator.
O.4 STATIC IMPACT-SCORE RESULTS
At the 30% attack budget, TRIM_REG and SOFT_TRIM_REG have 18.7% and 9.6% lower mean candKL than DPO_REG, respectively (Table 7). Without regularization, TRIM and SOFT_TRIM have higher candKL than DPO.
Table 7: Mean sample standard deviation candidate-set over three nonlinear-head seeds under the fixed 30% neural BMP-A setting.
| DPO | DPO_REG | TRIM | TRIM_REG | SOFT_TRIM | SOFT_TRIM_REG |
|---|---|---|---|---|---|
Figure 15 shows the budget sweep and clean-data controls. At 5%, all REG methods, including full-data DPO_REG, have higher candKL than DPO, while unregularized TRIM and SOFT_TRIM slightly improve on DPO. On clean data, candKL increases with the assumed budget for unregularized TRIM and SOFT_TRIM. At 30%, their candKL values are 0.0494 and 0.0132, respectively.
These preliminary results show a benefit from combining impact-based trimming with regularization under the larger nonlinear BMP-A attack. At smaller budgets, the regularization bias can outweigh this benefit, as also seen for full-data DPO_REG. Extending the robustness guarantees to this policy class requires the additional analysis discussed in Appendix O.2.

(a) Neural BMP-A attacks.
(b) Clean data, assumed attack budgets.
Figure 15: Small nonlinear-head sweep over frozen SHP representations. Left: nested 5%, 10%, 20%, 30% neural BMP-A attacks. Right: clean data with the same assumed budgets. Lines show means and shaded bands show one sample standard deviation over three seeds.
O.5 PERIODIC IMPACT-SCORE REFRESH
We keep the 30% attacked set fixed and recompute the parameter-dependent impact scores every 500 optimization steps. This gives 20 score evaluations at steps 0, 500, ..., 9,500.
Table 8: Static versus periodically refreshed candidate-set KL, averaged over three nonlinear-head seeds.
| Method | Static | Refreshed |
|---|---|---|
| TRIM | .2974 | .2941 |
| TRIM_REG | .1149 | .1056 |
| SOFT_TRIM | .2410 | .2266 |
| SOFT_TRIM_REG | .1277 | .1216 |
Table 8 shows lower mean candKL for all four methods after score refresh. At the last refresh, the top-K set contains 43.6% of the attacked pairs for TRIM and 45.8% for SOFT_TRIM, compared with 40.9% at initialization. The corresponding fractions for TRIM_REG and SOFT_TRIM_REG are 41.5% and 41.9%. TRIM removes these pairs, while SOFT_TRIM downweights them.
Refreshing the impact scores therefore gives a further improvement in this nonlinear experiment, with TRIM_REG attaining the lowest mean candKL among the compared methods. The unregularized variants still have higher candKL than DPO, so score refresh alone does not resolve the tradeoff between removing attacked pairs and changing the clean objective.