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

Andreea Dutulescu, Stefan Ruseti, Mihai Masala, Traian Rebedea, Mihai DascaluarXiv 2026

TL;DR

GAW-PO introduces a gradient-aligned token reweighting method for Direct Preference Optimization (DPO) that prevents models from "unlearning" good behaviors during alignment. By selectively downweighting rejected tokens whose gradients align with preferred responses, it achieves superior performance across 11 benchmarks and remains remarkably stable even under aggressive optimization regimes where standard DPO collapses.

What Problem Does This Paper Address?

Direct Preference Optimization (DPO) has become the go-to method for aligning Large Language Models (LLMs) with human preferences. However, DPO suffers from a fundamental granularity mismatch: while preference supervision happens at the response level (this whole answer is better than that one), the model is optimized at the token level.

When a model generates a rejected response, standard DPO penalizes every single token in that sequence. The problem is that a rejected response is rarely "wrong" in its entirety. It might contain correct facts, valid intermediate math steps, or proper formatting that are also present in the preferred response. By penalizing everything, DPO inadvertently forces the model to unlearn these useful behaviors—a phenomenon sometimes called "unintentional unalignment."

Standard DPO vs GAW-PO on a simple math example

As shown in Figure 1, if a model fails a math problem due to one wrong digit, standard DPO penalizes the entire equation, potentially damaging the model's basic arithmetic skills.

Methods

The authors propose GAW-PO (Gradient-Aligned Token Weights), a method to perform token-level credit assignment without needing an expensive auxiliary reward model.

The core idea is to look at the gradient of each token in a rejected response. A gradient represents the direction in "parameter space" the model would move to make that token more likely.

  1. Alignment Scoring: For every token in a rejected response, the method calculates how much its gradient aligns with the gradient of the preferred response.
  2. Dual Comparison: It compares the rejected token's gradient against two targets: the specific preferred response it was paired with (local) and an average of all preferred responses in the dataset (global).
  3. Reweighting: If a rejected token's gradient is highly aligned with the preferred direction, it receives a low weight (a weak penalty). If the gradient conflicts with the preferred direction, it receives a high weight (a strong penalty).

To make this computationally feasible for 7B-parameter models, the authors use a frozen PiSSA (Principal Singular values and singular vectors Adaptation) adapter as a "gradient probe." This allows them to estimate gradient alignment in a low-rank subspace. They further optimize the process using Jacobian-vector products (JVP), allowing them to compute alignment scores for all tokens in a single pass.

Datasets

  • Training: The models were trained on a filtered version of Dolci-Instruct-DPO, containing roughly 209,000 English, single-turn preference pairs.
  • Evaluation: The authors used 11 benchmarks from the OLMES suite, covering:
  • Mathematics: AIME 2024/2025, MATH, and Omega 500.
  • Reasoning: AGI Eval English and BigBenchHard (BBH).
  • Coding: HumanEval+, LiveCodeBench, and MBPP+.
  • Question Answering: GPQA and MMLU.

Key Insights and Ideas

  • Gradients as a "Judge": Instead of using a separate LLM to guess which tokens are bad, GAW-PO uses the model's own internal optimization geometry. If penalizing a token would "fight" against the update for a good response, that token is likely not the source of the error.
  • Extreme Robustness to $\beta$: In DPO, the $\beta$ parameter controls the strength of the penalty. Usually, setting $\beta$ too low causes the model to overfit and lose its capabilities (policy collapse). GAW-PO is significantly more robust; it continues to improve even at very low $\beta$ values (0.002), whereas standard DPO performance falls off a cliff.
  • Preserving Correct Sub-structures: Qualitative analysis shows that GAW-PO successfully identifies and spares correct JSON structures, drug names in medical tasks, and correct mathematical formulas within otherwise "wrong" answers.

Key Results

GAW-PO achieved the highest average score across all 11 benchmarks compared to standard DPO and six other state-of-the-art variants (like SimPO and TIS-DPO).

Table 1: Performance comparison across evaluation benchmarks: mean performance (%) across 3 runs, standard deviation shown in gray. Best results per benchmark are bolded.
  • Overall Gains: It improved by 0.97 points over standard DPO and 0.65 points over the strongest baseline (TIS-DPO).
  • Reasoning & Coding: The most dramatic improvements were in complex reasoning (BBH: +4.36 points over DPO) and coding (LiveCodeBench: +3.42 points over DPO).
  • Stability: As shown in Figure 2, while standard DPO peaks at $\beta=0.02$ and then crashes, GAW-PO's performance remains stable and even increases as the optimization becomes more aggressive.
Figure 2: Average benchmark performance for different values of the DPO regularization parameter β. Standard DPO exhibits a narrow optimum around β = 0.02 and rapidly degrades under more ag- gressive optimization, whereas our method remains stable and continues to improve as β decreases.

Limitations and Future Work

  • Static Weights: Currently, weights are precomputed once before training based on the initial model. The authors note that estimating these weights dynamically (online) as the model evolves would be a natural, albeit more expensive, extension.
  • Computational Overhead: Precomputing the weights adds an offline cost roughly equivalent to 1.5 training runs. While this is amortized over multiple experiments, it makes the initial setup heavier than standard DPO.
  • Generalization: The study focused on one model family (OLMo 3) and verifiable benchmarks. Future work is needed to see how this translates to multi-turn conversations or subjective, open-ended human preferences.
  • Extension to GRPO: The authors suggest applying this gradient-alignment framework to Group Relative Policy Optimization (GRPO), the objective used in recent "reasoning" models like DeepSeek-R1.

Summary updated

BibTeX
@misc{dutulescu2026gaw,
  author = {Andreea Dutulescu and Stefan Ruseti and Mihai Masala and Traian Rebedea and Mihai Dascalu},
  title = {{GAW-PO: Preference Optimization with Gradient-Aligned Token Weights}},
  year = {2026},
  eprint = {2610.01511},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.01511},
}
Figure