mlsanityData to 14 Oct 2026

Accelerating Direct Preference Optimization with Prefix Sharing

arXiv 2410.20305 ↗First posted 27 Oct 2024cs.LG cs.CLcited by 4

On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods

Abstract (arXiv)

Offline paired preference optimization algorithms have become a popular approach for fine-tuning on preference data, outperforming traditional supervised fine-tuning in various tasks. However, traditional implementations often involve redundant computations, especially for tasks with long shared prompts. We introduce prefix sharing for preference tuning, a novel technique that processes chosen and rejected responses as one sequence with a shared prefix. To prevent cross-response contamination, we use a custom block-sparse attention mask. Our method achieves 1.1-1.5× improvement in training throughput on popular DPO datasets, without any effect on convergence. When combined with sequence packing, we observe consistent 1.3-1.6× speedups, benefiting even datasets with smaller sequence lengths. While we focus on Direct Preference Optimization (DPO), our approach is applicable to other paired preference tuning methods. By enhancing computational efficiency, our work contributes to making preference-based fine-tuning more accessible for a wider range of applications and model sizes. We open-source our code at https://github.com/frankxwang/dpo-prefix-sharing.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 14 of its 23 references that are in the map. First posted on arXiv 27 Oct 2024.

Builds on

14 of 23 references.

Closest ancestors · 3

Same direction, newest first

  1. 2024SimPO: Simple Preference Optimization with a Reference-Free Reward23 May
  2. 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences14 Mar
  3. 2024Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive20 Feb

Other references · 11

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  4. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  5. 2023Mistral 7Bcited by 3,164
  6. 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
  7. 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
  8. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  9. 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 73
  10. 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
  11. 2024Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMscited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 2.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Boosting Direct Preference Optimization with Penalization
  2. 2024SparsePO: Controlling Preference Alignment of LLMs via Sparse Token Masks
  3. 2026Direct Preference Optimization with Rating Information: Practical Algorithms and Provable Gains
  4. 2024Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization
  5. 2026Intrinsic Mutual Information as a Modulator for Preference Optimization
  6. 2025When Data is the Algorithm: A Systematic Study and Curation of Preference Optimization Datasets
  7. 2024Direct Preference Optimization with an Offset
  8. 2025FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings