An In-depth Investigation of the Trade-offs of Parameter-Efficient Preference Alignment TechniquesA Deep Dive into the Trade-Offs of Parameter-Efficient Preference Alignment Techniques
The authors conducted more than 300 preference alignment experiments with LoRA/QLoRA on 4 7B models, and state that pretrained models are better suited to SFT and instruction-tuned models are better suited to DPO.
- The effectiveness of preference alignment is affected by multiple factors such as the dataset, alignment method and base model, but the authors state that systematic research on these factors under parameter-efficient (PEFT) settings was previously lacking.
- Under LoRA/QLoRA, the authors used SFT and DPO to align LLaMA-1, Vicuna-v1.3, Mistral-7b, and its instruction version on the harmless/helpful splits of HH-RLHF and BeaverTails, for more than 300 experiment groups in total, and also attempted model merging.
- The authors state: higher-quality data benefits both methods; pretrained models are better suited to SFT and instruction-tuned models to DPO; training on a mix of the two preferences generally performs worse under PEFT; DARE merging of cross-preference models on average outperforms separately aligned models.
- Limitations listed by the authors: only two PEFT methods, LoRA/QLoRA, were tested; only 7B models were used; only the two preferences of harmlessness and helpfulness were covered; more complex multi-preference settings and model merging methods are left for future work.
- Evaluated models
- LLaMA-1Vicuna-v1.3Mistral-7bMistral-7b-Instruct
- Benchmarks
- HH-RLHFBeaverTailsMMLUBig-Bench Hard (BBH)Alpaca EvalRealToxicityRed-Instruct (DangerousQA)
- Metrics
- accuracyexact matchwin rateharmlessness score100-ASR
Through more than 300 experiments, the researchers systematically examined the influence of three key factors in parameter-efficient preference alignment: the alignment dataset (HH-RLHF and BeaverTails), the alignment technique (SFT and DPO), and the model (LLaMA-1, Vicuna-v1.3, Mistral-7b and Mistral-7b-Instruct). The experiments revealed consistent trends and unexpected findings: more informative data helps preference alignment, supervised fine-tuning (SFT) outperforms preference optimization in some cases, and aligning to a different preference can also improve downstream task performance. Based on these findings, the authors propose practical guidelines to help researchers conduct parameter-efficient LLM alignment more effectively.
Paper analysis
What problem does this paper attempt to solve?
The authors state that systematic research on the three axes of PEFT preference alignment (data, method, model) is lacking, and this paper fills that gap.
Core question: under parameter-efficient (PEFT) settings, how do the three axes—alignment dataset, alignment method and base model—affect downstream performance after preference alignment, which previously lacked systematic study.
- Problem scenario: Most people cannot afford the cost of LLM pretraining, but LoRA and QLoRA make fine-tuning and alignment feasible on a single GPU, and more and more researchers are doing preference alignment under PEFT settings.
- Existing gaps: The authors state that alignment is sensitive to factors such as data quantity and quality, alignment method, and adapter rank, but these factors had not previously been systematically studied for their effect on downstream performance under PEFT settings (Introduction, Table 1).
- Core observation: The authors follow the observation of prior work that aligning to one preference often comes at a cost on complementary preferences (citing Bai et al., 2022), so they choose the preference pair of harmlessness and helpfulness to study the trade-off.
- Paper approach: Under LoRA and QLoRA, using two methods, SFT and DPO, and two datasets, HH-RLHF and BeaverTails, they align four 7B models—LLaMA-1, Vicuna-v1.3, Mistral-7b, Mistral-7b-Instruct—for over 300 experiment runs and 5 evaluation benchmarks, and organize the findings into practical guidelines.
- Research questions: The data axis asks about the effects of informativeness/quality, number of samples, and preference mixing; the method axis asks about differences between SFT and DPO on pretrained and instruction-tuned models; the model axis asks about comparing downstream performance of pretrained, instruction-tuned and merged variants.
What related research exists?
Related work is grouped into three categories: alignment methods, PEFT, and model merging; this paper has no baseline comparison methods and compares training settings.
Alignment methods
- SFT (Taori et al., 2023) — fine-tuning with autoregressive language modeling on instruction-output pairs, commonly used in the instruction-tuning stage of Alpaca and Mistral-Instruct.
- RLHF (Christiano et al., 2023; Ziegler et al., 2019) — collecting human feedback, training a reward model, and then fine-tuning with PPO (Schulman et al., 2017); the paper notes that it requires a multi-step pipeline and a separate reward model, and is compute-intensive. Variants include online RL (Bai et al., 2022) and adversarial probing-based reward modeling (Glaese et al., 2022).
- DPO (Rafailov et al., 2023) — directly using the aligned model itself as the reward model, which the authors state is more stable than RLHF; Xue et al. (2023) studied the help of parameter-efficient tuning for alignment.
Parameter-efficient training (PEFT)
- adapters (Houlsby et al., 2019), prefix-tuning (Li and Liang, 2021), prompt-tuning (Lester et al., 2021) — update only a small number of parameters, with performance close to full fine-tuning.
- LoRA (Hu et al., 2022) — inserting new weights with low-rank decomposition as the only trainable parameters; QLoRA (Dettmers et al., 2023) — further quantizing weights to reduce memory usage.
Model merging
- TIES-merging (Yadav et al., 2023) — addresses interference during merging; DARE (Yu et al., 2023) — absorbs capabilities from homogeneous models; Slerp (Shoemake, 1985) — spherical interpolation. This paper uses Slerp and DARE to merge models aligned across preferences.
Comparisons and gaps named by the paper (Table 1): The conclusion of Rafailov et al. (2023) that "DPO outperforms SFT" was drawn with full training of instruction-tuned models on limited NLP tasks; the preference-mixing trade-off and "aligning to a preference improves its performance" of Bai et al. (2022) were drawn with full RLHF fine-tuning on limited tasks. The authors state that this paper re-examines these conclusions under the PEFT setting, with more models and benchmarks.
Baselines and benchmarks: This paper has no comparison baseline methods; what is compared are different training settings (SFT vs DPO, single preference vs mixed, merging vs separate); the benchmarks used are MMLU, BBH, Alpaca Eval, RealToxicity, and Red-Instruct.
The authors position this paper as a systematic empirical study filling the above gap under the PEFT setting (the authors state that "to the best of our knowledge" no such study existed before).
How does the paper address this problem?
With LoRA/QLoRA hyperparameters fixed, controlled experiments are run along each of the three axes—data, method and model—and downstream performance is measured on 5 benchmarks.
Overall approach: Under the two PEFT methods LoRA and QLoRA, controlled experiments are set up along each of the three axes of dataset, alignment method, and base model, using downstream benchmark performance to characterize the trade-off, for a total of more than 300 experiment groups, each with 5 seeds.
Experimental subjects and data
- Models: Two 7B pretrained models, LLaMA-1 and Mistral-7b, and their instruction-tuned versions Vicuna-v1.3 and Mistral-7b-Instruct; suffixes -Harmless / -Helpful are added according to the alignment preference.
- Datasets: HH-RLHF (harmless split 42507 entries, helpful split 43810 entries, multi-turn) and BeaverTails (the authors' own split by safety label: helpful 297394 entries, harmless 46625 entries, single-turn; Appendix C). The authors state that BeaverTails' harmless responses are more informative, while HH-RLHF's "harmless" responses are often direct refusals.
- Prompt templates: Samples from the two datasets are rewritten according to the respective instruction-tuning templates of Vicuna and Mistral (Appendix C).
Training settings
- Hyperparameters: SFT uses rank 64, alpha 16, learning rate 2e-4; DPO uses rank 16, alpha 32, learning rate 5e-5; batch size 16, trained for 700 steps (Table 6). Hyperparameters were selected by grid search based on validation set performance (Appendix B).
- Compute: A single 40GB A100; SFT takes about 15–20 minutes and DPO about 60–90 minutes per run (Appendix E).
Three-axis experimental design
- Data axis: Compare HH-RLHF and BeaverTails (quality); train SFT with a sample-size gradient from 1600 to 11200 (quantity); compare mixed training of harmless and helpful against single preferences (mixing).
- Method axis: On all 4 models, align the two preferences of BeaverTails with SFT and DPO respectively and compare.
- Model axis: Compare the alignment effects of pretrained vs instruction-tuned models; and use Slerp and DARE to merge models aligned across preferences (and across methods), including the four-model merged variant DARE-SFT+DPO.
Evaluation methods
- Helpfulness: MMLU (56168 samples, 57 tasks, accuracy), BBH (6511 samples, 23 tasks, exact match), Alpaca Eval (805 human-written prompts, win rate against GPT-4).
- Harmlessness: RealToxicity (the 1000 most severe prompts, scored by a reward model trained to classify toxic generations) and Red-Instruct's DangerousQA (200 harmful questions, Chain-of-Utterance format, metric is 100-ASR).
What experiments did the paper conduct?
More than 300 experiment groups: mixed preferences generally perform worse, pretrained models are suited to SFT and instruction-tuned models to DPO, and DARE merging is on average better.
Experimental setup
- Tested models: LLaMA-1, Vicuna-v1.3, Mistral-7b, Mistral-7b-Instruct, all 7B versions.
- Datasets: The harmless/helpful splits of HH-RLHF and BeaverTails; evaluation benchmarks are MMLU, BBH, Alpaca Eval (805 items), RealToxicity (1000 items), Red-Instruct DangerousQA (200 items).
- Metrics: MMLU uses accuracy, BBH uses exact match, Alpaca Eval uses win rate against GPT-4, RealToxicity uses reward model score, Red-Instruct uses 100-ASR.
- Training: Two PEFT methods, LoRA and QLoRA, 700 steps each for SFT/DPO, 5 seeds per experiment group.
- Comparison approach: No external baseline methods; comparisons are between different training settings and the Original (unaligned) model.
Main results
Preference mixing experiment (BeaverTails + QLoRA, per Table 2):
Swipe horizontally to read the table
Model Variant SFT MMLU SFT RT DPO MMLU DPO RT Mistral-7b Original 0.590 1.255 0.590 1.255 Mistral-7b Harmless 0.583 1.863 0.590 -3.701 Mistral-7b Helpful 0.589 1.571 0.594 -9.375 Mistral-7b Mixed 0.575 1.239 0.593 -9.419 Mistral-7b-Ins Original 0.535 1.273 0.535 1.273 Mistral-7b-Ins Harmless 0.518 1.981 0.529 3.520 Mistral-7b-Ins Helpful 0.519 1.145 0.535 2.170 Mistral-7b-Ins Mixed 0.518 0.991 0.531 -0.025 - Mixed preferences generally worse: The authors state that models trained on a mix of the two preferences are generally worse than single-preference models, and that DPO degrades more than SFT, arguing that DPO is more sensitive to sample type.
- SFT alignment to harmlessness is not faithful: The authors point out that under SFT, aligning with harmless data actually yields higher RealToxicity scores (e.g., Mistral-7b-Ins rises from 1.273 to 1.981), arguing that SFT is less faithful to the preference than DPO.
- DPO is harmful to pretrained models: After DPO alignment, Mistral-7b shows negative RealToxicity values such as -9.375; the authors speculate that pretrained models struggle to serve as reward models.
Data quality and quantity
- Quality (Figure 1, Mistral-7b series + QLoRA): The authors state that higher-quality, more informative BeaverTails brings better alignment under both methods, with a larger gain for SFT; but DPO often overfits when used on non-instruction-tuned models, and Mistral-7b + DPO + BeaverTails shows degradation.
- Quantity (Figures 2, 3, Mistral series + BeaverTails): The authors state that instruction-tuned models are robust to adding SFT samples but often degrade (Mistral-7b-Instruct after continued SFT has lower MMLU than the base), while adding DPO samples continuously improves; pretrained models improve in both alignment and instruction following as samples increase. The inset table in Figure 2 shows LLaMA-1-BV's MMLU rising from 0.334 at 1600 samples to 0.355 at 11200.
Alignment methods and base models
- SFT vs DPO (Figure 4, BeaverTails + QLoRA): The authors state that DPO gives better helpful alignment for instruction-tuned models and is more faithful to objective preferences such as harmlessness; on Red-Instruct 100-ASR, LLaMA-1-Harmless is 98.0 with SFT and 99.5 with DPO, and Vicuna-v1.3-Harmless is 4.5 with SFT and 99.5 with DPO.
- Pretrained vs instruction-tuned (Figure 5, LLaMA-1 vs Vicuna-v1.3): The authors state that SFT generally causes degradation on instruction-tuned models but improvement on pretrained models; DPO gives larger gains on strong bases (instruction-tuned models) but degrades weaker bases such as LLaMA-1.
- Model merging (Table 3): DARE merged variants on average outperform separately aligned models, e.g., on Mistral-7b, DARE-SFT+DPO achieves BBH of 0.432 (highest single model 0.418), and on Mistral-7b-Ins, DARE-DPO achieves Alpaca Eval of 15.702; the authors state that Slerp merging causes degradation, and merging a strong model with a very weak model causes degradation.
Other ablations and analyses
- QLoRA vs LoRA (Figure 6, Appendix A Table 4/5): The authors state that the two PEFT methods have similar trends and performance, e.g., for Mistral-7b-Ins-Helpful's Alpaca Eval, SFT-QLoRA is 8.095, SFT-LoRA is 12.313, DPO-QLoRA is 15.299, DPO-LoRA is 19.006.
- Hyperparameters (Appendix B): SFT searches rank [32,64,128], DPO searches [8,16,32], selected by validation set performance.
- Exception: The authors point out that on BeaverTails, training with harmless data often performs better than with helpful data, suggesting this may be a characteristic of that dataset.
What are some points that can be further explored?
The authors list three limitations: PEFT methods, model scale, and number of preferences; more complex merging methods are left for future work.
Limitations noted by the authors and future directions
- PEFT method coverage (Limitations): Only LoRA and QLoRA were chosen, on the grounds of small performance loss and compute savings; the authors note that other PEFT methods such as adapters, prompt-tuning, and prefix-tuning also exist.
- Model scale (Limitations): To make the setting accessible to most researchers, only 7B models were used; the authors state that the conclusions may or may not generalize to smaller or larger models.
- Number of preferences (Limitations): Only the trade-off between the two preferences of harmlessness and helpfulness is studied; the authors state that the conclusions may not hold when more preferences or domains are involved, and that separate in-depth study is needed.
- Merging methods (Section 6.2, Conclusion): The authors state that exploring more refined merging methods (as well as PEFT methods such as mixture-of-experts) to mitigate the trade-off is left as future work; they also plan to extend the trade-off study to multiple preferences and more domains.
Scope of experimental coverage
- The models tested are LLaMA-1, Vicuna-v1.3, Mistral-7b, and Mistral-7b-Instruct, 4 in total, all 7B versions (Section 3, Appendix E).
- The alignment methods compared are only SFT and DPO; PEFT uses only LoRA and QLoRA; merging methods use only Slerp and DARE (Section 3, 6.2).
- The preference datasets are HH-RLHF and BeaverTails; the evaluation benchmarks are MMLU, BBH, Alpaca Eval, RealToxicity, and Red-Instruct, 5 in total (Section 3).
- Each experiment group is run with 5 seeds, trained for 700 steps, on a single 40GB A100 (Section 3).
- The paper does not report variance across runs or statistical significance tests; for Alpaca Eval, the evaluation is described only as "win rate against GPT-4," without specifying the exact judge model version.
Summarize the main content of the paper
An empirical study of the three axes of PEFT preference alignment: data quality is beneficial, SFT/DPO each suit different settings, mixing preferences performs worse, and merging can mitigate this.
An empirical analysis paper on parameter-efficient preference alignment, studying the trade-offs in downstream performance along three axes—dataset, alignment method and base model—under LoRA/QLoRA settings.
- Problem: The authors state that alignment effectiveness is sensitive to factors such as data, method and rank, but systematic study under PEFT settings is lacking, and existing conclusions mostly come from the limited settings of full fine-tuning.
- Method: Using SFT and DPO to align 4 7B models on the harmless/helpful splits of HH-RLHF and BeaverTails, with over 300 experiment runs, 5 seeds each, evaluated on 5 benchmarks, and also attempting Slerp/DARE model merging.
- Data axis: The authors state that higher-quality data benefits both SFT and DPO, with a larger gain for SFT; adding SFT samples to instruction-tuned models often causes degradation, while adding DPO samples improves them.
- Method axis: The authors state that DPO is better suited to instruction-tuned models and more faithful to harmlessness, while SFT is better suited to pretrained models; they recommend SFT instruction tuning first, then DPO.
- Mixing and merging: Mixing the two preferences generally performs worse under PEFT (Table 2); DARE merging of cross-preference models on average outperforms separately aligned models, e.g., on Mistral-7b, DARE-SFT+DPO achieves BBH of 0.432 (Table 3).
- Authors' conclusion: The findings are organized into practical guidelines for PEFT alignment; limitations are that only two PEFT methods, 7B models and two preferences were tested, with more complex settings left for future work.