Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Luo, Haocheng, Deng, Zehang, Do, Thanh-Toan, Harandi, Mehrtash, Phung, Dinh, Le, Trung
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910059033788416
author Luo, Haocheng
Deng, Zehang
Do, Thanh-Toan
Harandi, Mehrtash
Phung, Dinh
Le, Trung
author_facet Luo, Haocheng
Deng, Zehang
Do, Thanh-Toan
Harandi, Mehrtash
Phung, Dinh
Le, Trung
contents Direct Preference Optimization (DPO) has emerged as a popular algorithm for aligning pretrained large language models with human preferences, owing to its simplicity and training stability. However, DPO suffers from the recently identified squeezing effect (also known as likelihood displacement), where the probability of preferred responses decreases unintentionally during training. To understand and mitigate this phenomenon, we develop a theoretical framework that models the coordinate-wise dynamics in logit space. Our analysis reveals that negative-gradient updates cause residuals to expand rapidly along high-curvature directions, which underlies the squeezing effect, whereas Sharpness-Aware Minimization (SAM) can suppress this behavior through its curvature-regularization effect. Building on this insight, we investigate logits-SAM, a computationally efficient variant that perturbs only the output layer with negligible overhead. Extensive experiments on Pythia-2.8B, Mistral-7B, and Gemma-2B-IT across multiple datasets and benchmarks demonstrate that logits-SAM consistently improves the effectiveness of DPO and integrates seamlessly with other DPO variants. Code is available at https://github.com/RitianLuo/logits-sam-dpo.
format Preprint
id arxiv_https___arxiv_org_abs_2603_18258
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization
Luo, Haocheng
Deng, Zehang
Do, Thanh-Toan
Harandi, Mehrtash
Phung, Dinh
Le, Trung
Machine Learning
Artificial Intelligence
Direct Preference Optimization (DPO) has emerged as a popular algorithm for aligning pretrained large language models with human preferences, owing to its simplicity and training stability. However, DPO suffers from the recently identified squeezing effect (also known as likelihood displacement), where the probability of preferred responses decreases unintentionally during training. To understand and mitigate this phenomenon, we develop a theoretical framework that models the coordinate-wise dynamics in logit space. Our analysis reveals that negative-gradient updates cause residuals to expand rapidly along high-curvature directions, which underlies the squeezing effect, whereas Sharpness-Aware Minimization (SAM) can suppress this behavior through its curvature-regularization effect. Building on this insight, we investigate logits-SAM, a computationally efficient variant that perturbs only the output layer with negligible overhead. Extensive experiments on Pythia-2.8B, Mistral-7B, and Gemma-2B-IT across multiple datasets and benchmarks demonstrate that logits-SAM consistently improves the effectiveness of DPO and integrates seamlessly with other DPO variants. Code is available at https://github.com/RitianLuo/logits-sam-dpo.
title Sharpness-Aware Minimization in Logit Space Efficiently Enhances Direct Preference Optimization
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2603.18258