paper-with-me

홈 › Papers

TIS-DPO: Token-level Importance Sampling for Direct Preference Optimization With Estimated Weights

2024-10-06 · Aiwei Liu, Haoping Bai, Zhiyun Lu, Yanchao Sun, Xiang Kong, Simon Wang, Jiulong Shan, Albin Madappally Jose, Xiaojiang Liu, Lijie Wen, Philip S. Yu, Meng Cao

Direct Preference Optimization (DPO) has been widely adopted for preference alignment of Large Language Models (LLMs) due to its simplicity and effectiveness. However, DPO is derived as a bandit problem in which the whole response is treated as a single arm, ignoring the importance differences between tokens, which may affect optimization efficiency and make it difficult to achieve optimal results. In this work, we propose that the optimal data for DPO has equal expected rewards for each token in winning and losing responses, as there is no difference in token importance. However, since the optimal dataset is unavailable in practice, we propose using the original dataset for importance sampling to achieve unbiased optimization. Accordingly, we propose a token-level importance sampling DPO objective named TIS-DPO that assigns importance weights to each token based on its reward. Inspired by previous works, we estimate the token importance weights using the difference in prediction probabilities from a pair of contrastive LLMs. We explore three methods to construct these contrastive LLMs: (1) guiding the original LLM with contrastive prompts, (2) training two separate LLMs using winning and losing responses, and (3) performing forward and reverse DPO training with winning and losing responses. Experiments show that TIS-DPO significantly outperforms various baseline methods on harmlessness and helpfulness alignment and summarization tasks. We also visualize the estimated weights, demonstrating their ability to identify key token positions.

📄 PDF Abstract BibTeX arXiv:2410.04350

Code (2)

exlaw/TIS-DPO 공식 구현 pytorch
codelion/pts pytorch

Methods 이 논문이 사용한 방법론

DPO 설명 없음

Similar Papers 제목 키워드 기반

CTPD: Cross Tokenizer Preference Distillation

2026-01-17 · Truong Nguyen, Phi Van Dat, Ngan Nguyen, Linh Ngo Van 외 arxiv

While knowledge distillation has seen widespread use in pre-training and instruction tuning, its application to aligning language models with human preferences remains underexplored, particularly in the more realistic cr…

Knowledge Distillation

Token-Importance Guided Direct Preference Optimization

2025-05-26 · Yang Ning, Lin Hai, Liu Yibo, Tian Baoliang 외

Ensuring that large language models (LLMs) generate outputs aligned with human preferences is important for safe and effective AI interactions. While Direct Preference Optimization (DPO) employs an implicit reward functi…

Diversity

Token-weighted Direct Preference Optimization with Attention

2026-05-21 · Chengyu Huang, Zhuohang Li, Sheng-Yen Chou, Claire Cardie arxiv

Direct Preference Optimization (DPO) aligns Large Language Models with human preferences without the need for a separate reward model. However, DPO treats all tokens in responses equally, neglecting the differing importa…

Leveraging Importance Sampling to Detach Alignment Modules from Large Language Models

2025-05-26 · Yi Liu, Dianqing Liu, Mingye Zhu, Junbo Guo 외

The widespread adoption of large language models (LLMs) across industries has increased the demand for high-quality and customizable outputs. However, traditional alignment methods often require retraining large pretrain…

Domain AdaptationInstruction Following

When Importance Sampling Misallocates Credit: Asymmetric Ratios for Outcome-Supervised RL

2025-10-07 · Jiakang Wang, Runze Liu, Qingpeng Cai, Lei Lin 외 arxiv

Reinforcement learning (RL) has shown great promise in large language models (LLMs) post-training, which typically rely on token-level clipping to maintain stability during optimization. Despite the empirical success of …

Reinforcement Learning