arXiv:2610.01511cs.CLOct 2026

Manuscript Offprint

arXiv:2610.01511

GAW-PO: Preference Optimization with Gradient-Aligned Token Weights

Andreea Dutulescu, Stefan Ruseti, Mihai Masala, Traian Rebedea, Mihai Dascalu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Most preference optimization methods, such as Direct Preference Optimization (DPO), apply preference supervision at the response level, although autoregressive language models are optimized token by token. As a result, all tokens in a rejected response contribute to the negative training signal, including tokens that may encode behavior that is useful for the preferred response. We introduce GAW-PO, a gradient-aligned token reweighting method for DPO that estimates, for each rejected token, whether penalizing it would interfere with the preferred update directions. Tokens whose gradients are strongly aligned with the preferred behavior receive a weaker negative contribution, while conflicting tokens retain a stronger penalty. Our method achieves the highest average performance among the evaluated preference-optimization methods, improving by 0.97 points over standard DPO and 0.65 points over the strongest competing baseline across 11 benchmarks spanning mathematics, reasoning, coding, and question answering. We further show that gradient-aligned weighting is substantially more robust to aggressive preference optimization: as the DPO regularization parameter β\beta decreases, standard DPO degrades sharply, whereas GAW-PO continues to improve. These results suggest that accounting for the interaction between rejected-token updates and preferred behavior provides an effective form of token-level credit assignment for preference optimization.

1 INTRODUCTION

Preference optimization has become a standard approach for aligning Large Language Models (LLMs) with human preferences. Among these methods, Direct Preference Optimization (DPO) (Rafailov et al., 2023) is widely used due to its simplicity and effectiveness. Given a prompt, a chosen (preferred) response, and a rejected response, DPO trains the model to increase the relative preference for the chosen completion over the rejected one with respect to a reference policy. However, the supervision available to DPO is defined at the response level, while autoregressive language models operate at the token level. As a consequence, all tokens in a rejected response contribute to the optimization signal, even though only a small subset of them may be responsible for the response being considered of lesser quality.

This mismatch can lead to undesirable or at least inefficient updates during preference optimization. A rejected completion is rarely incorrect in its entirety: it may contain valid facts, correct intermediate calculations, appropriate formatting, or linguistic patterns that are also useful for generating the preferred response. Nevertheless, standard DPO does not explicitly distinguish these locally correct components from the tokens that actually determine the preference. Reducing the likelihood of the rejected response can therefore also suppress behaviors that should ideally be preserved. Figure 1 illustrates a simple example of this effect. More generally, the DPO objective constrains the relative preference between the chosen and rejected completions, but does not require the absolute likelihood of the chosen response to increase. Indeed, several works have observed that the likelihood of preferred responses can decrease during DPO training even while the preference objective improves (Pal et al., 2024; Pang et al., 2024). This behavior suggests that the optimization dynamics of preferred and rejected responses can be strongly coupled (Razin et al., 2025).

Figure

Figure 1: Standard DPO penalizes every token of the rejected response, including the arithmetic; our method concentrates the penalty on the token that conflicts with the preferred response.

This limitation can be addressed by introducing finer-grained supervision at the token level. Recent methods have proposed token-level preference objectives (Zeng et al., 2024) or weighting schemes (Liu et al., 2025; Yang et al., 2026; Li et al., 2025) that avoid treating every token in a response as equally informative. These methods primarily aim to estimate how important or informative an individual token is. Existing methods alone, however, do not fully characterize the consequence of penalizing that token during optimization.

Conversely, we consider the effect that suppressing a rejected token would have on the model's ability to represent the preferred response. Our starting point is the observation that training samples interact through their parameter updates. This idea has a long history in machine learning, most prominently in work on influence functions (Koh & Liang, 2017) and gradient-based influence estimation (Pruthi et al., 2020). In these approaches, the relationship between training examples can be characterized by comparing the parameter updates they induce. Examples with similar gradient directions tend to modify the model in compatible ways, while opposing gradients indicate conflicting training signals. Related ideas have also been applied to LLMs, for example for selecting instruction-tuning or reasoning data based on gradient similarity (Xia et al., 2024; Jung et al., 2026).

We apply this perspective to token-level preference optimization. Rather than assigning a weight to a rejected token based only on its probability, loss, or gradient magnitude, we investigate how the update induced by penalizing that token interacts with the update supported by the preferred response. If a rejected token induces a parameter update that is strongly aligned with the one associated with the preferred completion, suppressing that token is likely to interfere with behavior that is also useful for modeling the preferred response. Such a token should therefore receive a weaker negative signal. Conversely, if the token induces an update that is dissimilar to, or conflicts with, the preferred-response update, penalizing it is less likely to damage the behavior encouraged by the chosen completion and can therefore receive a stronger negative signal. Based on this principle, we introduce GAW-PO, a gradient-aligned token reweighting method for DPO that explicitly accounts for interference between rejected-token updates and preferred update directions.

Our main contributions are: (1) We propose a gradient-aligned token weighting objective for DPO that selectively downweights rejected tokens whose penalization would interfere with behavior supported by preferred responses. (2) We show that our formulation improves average downstream performance over standard DPO and competing methods, while remaining stable under substantially more aggressive optimization regimes in which standard DPO degrades sharply. We open-source our implementation, gradient-weight computation pipeline, training recipes, filtered preference data, and evaluation setup to facilitate reproducibility and further study: https://anonymous.4open.science/r/Weighted-DPO-Supplementary-8441/

References (64)