Accelerating Direct Preference Optimization with Prefix Sharing
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
- 2024SimPO: Simple Preference Optimization with a Reference-Free Reward23 May
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferences14 Mar
- 2024Smaug: Fixing Failure Modes of Preference Optimisation with DPO-Positive20 Feb
Other references · 11
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Mistral 7Bcited by 3,164
- 2024Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Headscited by 843
- 2023Enhancing Chat Language Models by Scaling High-quality Instructional Conversationscited by 839
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2024Hydragen: High-Throughput LLM Inference with Shared Prefixescited by 73
- 2024Understanding the Performance and Estimating the Cost of LLM Fine-Tuningcited by 48
- 2024Bifurcated Attention: Accelerating Massively Parallel Decoding with Shared Prefixes in LLMscited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Tree Training: Accelerating Agentic LLMs Training via Shared Prefix Reusecited by 5
- 2025One-Pass to Reason: Token Duplication and Block-Sparse Mask for Efficient Fine-Tuning on Multi-Turn Reasoningcited by 1
- 2026MASS-DPO: Multi-negative Active Sample Selection for Direct Policy Optimizationcited by 1
- 2026ThunderSyncRL: Lossless Acceleration of Agentic Reinforcement Learningcited by 0
- 2026ThunderSyncRL: Lossless Acceleration of Agentic Reinforcement Learning5 Oct 2026
- 2026MASS-DPO: Multi-negative Active Sample Selection for Direct Policy Optimization11 May 2026
- 2025Tree Training: Accelerating Agentic LLMs Training via Shared Prefix Reuse1 Nov 2025
- 2025One-Pass to Reason: Token Duplication and Block-Sparse Mask for Efficient Fine-Tuning on Multi-Turn Reasoning25 Apr 2025
Similar, not cited
Close in wording, no citation either way
- 2026Boosting Direct Preference Optimization with Penalization
- 2024SparsePO: Controlling Preference Alignment of LLMs via Sparse Token Masks
- 2026Direct Preference Optimization with Rating Information: Practical Algorithms and Provable Gains
- 2024Bridging and Modeling Correlations in Pairwise Data for Direct Preference Optimization
- 2026Intrinsic Mutual Information as a Modulator for Preference Optimization
- 2025When Data is the Algorithm: A Systematic Study and Curation of Preference Optimization Datasets
- 2024Direct Preference Optimization with an Offset
- 2025FocalPO: Enhancing Preference Optimizing by Focusing on Correct Preference Rankings