Stochastic Pruning of the DPO Computation Graph: 1.4x Faster Training and Lower Peak Memory
Yubing Wu, Wei Chen, Junmei Yang, Delu Zeng, Tiewen Pan
Key points
From the paper's conclusion- These findings relate the resource benefits of stochastic graph pruning to the computation omitted and the resulting changes in the training objective.
Abstract
Direct preference optimization (DPO) incurs training costs in output scoring, sequence execution, and backpropagation, so reducing supervision alone does not necessarily save computation. We introduce a unified framework for stochastic pruning of the DPO computation graph that independently samples response positions for scoring, response prefixes for execution, and preference branches for backpropagation. By making these selections before the corresponding operations, the framework omits computation at each stage of a training step. Our analysis characterizes the objective changes induced by position and sequence pruning and uses inverse-probability weighting to obtain a conditionally unbiased single-branch gradient estimator for the sampled objective. Controlled measurements show that position and sequence pruning primarily reduce peak memory, with most output-memory savings attributable to an implementation that retains full response supervision. Branch pruning yields a $1.426\times$ step-time speedup over a concatenated DPO baseline and reduces training time by about 30\% relative to stock DPO across two model families, with slightly lower mean accuracy and benchmark-dependent changes in open-ended scores. These findings relate the resource benefits of stochastic graph pruning to the computation omitted and the resulting changes in the training objective.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Contrastive Activation-Guided Zeroth-Order Preference Optimisation for Memory-Efficient LLM AlignmentarXiv · 2026
- Directly Maximizing On-policy Expected Accepted Length for Speculative DecodingarXiv · 2026
- LOOP: Recovery-Aligned Iterative Layer Pruning via On-Policy DistillationarXiv · 2026
- When Scores Conflict with Preferences: Pre-Alignment Diagnosis and Adaptive Correction of Constraint Drift in DPOarXiv · 2026
- LSC-DPO: Learning-Signal-Controlled Direct Preference OptimizationarXiv · 2026
- Reliability-Weighted Direct Preference Optimization: Penalized Weights for Robust Preference LearningarXiv · 2026