Preprint
Large Language Models

Token-level direct preference optimization

April 1, 2024

0

Citations

0

Influential Citations

Venue

2024

Year

Abstract

Fine-tuning pre-trained Large Language Models (LLMs) is essential to align them with human values and intentions. This process often utilizes methods like pairwise comparisons and …

Analysis

Why This Paper Matters

Direct Preference Optimization (DPO) has emerged as a simpler alternative to RLHF for aligning LLMs with human preferences, but it operates at the sequence level, treating the entire response as a single unit. This paper argues that human preferences are often expressed at a finer granularity—specific tokens or phrases can be more or less preferred. By introducing Token-level Direct Preference Optimization (TDPO), the authors address this gap, enabling more precise alignment. This is significant because it could lead to models that better follow nuanced instructions and avoid subtle errors that sequence-level methods might miss.

The paper is timely as the AI community seeks more efficient and effective alignment techniques. TDPO builds on the success of DPO but offers a more fine-grained approach, which could be particularly beneficial for tasks like dialogue generation, where the quality of individual responses matters. The theoretical analysis provides a solid foundation, and the empirical results demonstrate practical gains, making this a valuable contribution to the field.

Technical Contributions

  • Token-level objective: TDPO decomposes the sequence-level DPO loss into a sum of token-level losses, allowing the model to receive preference signals at each generation step.
  • Theoretical grounding: The authors show that the token-level objective is a lower bound on the sequence-level objective, ensuring that optimizing the former also improves the latter.
  • Algorithm: They provide a practical algorithm that computes token-level rewards and updates the policy using a reference model, similar to DPO but with per-token weighting.
  • Experiments: They evaluate TDPO on summarization (TL;DR) and dialogue (HH-RLHF) tasks, comparing against DPO and other baselines like PPO.

Results

The paper reports that TDPO achieves higher reward model scores and better human evaluation results compared to DPO and PPO on both tasks. For instance, on TL;DR summarization, TDPO improves the win rate against human reference summaries by several percentage points over DPO. On HH-RLHF dialogue, TDPO also shows improved helpfulness and harmlessness metrics. The authors also note that TDPO maintains comparable generation diversity and fluency, indicating that the token-level optimization does not degrade overall quality.

Significance

TDPO opens a new direction in preference optimization by moving from sequence-level to token-level feedback. This could have broader implications for RLHF, as it may reduce the need for extensive reward modeling and allow for more direct optimization of human preferences. The approach could be extended to other domains, such as code generation or translation, where token-level correctness is critical. Moreover, the theoretical insights could inspire further research into hierarchical or multi-granularity preference optimization. As LLMs become more integrated into applications, methods like TDPO that offer finer control over alignment will be increasingly valuable.