Exploring the impact of low-rank adaptation on the performance, efficiency, and regularization of RLHF

Simeng Sun, Dhawal Gupta, Mohit Iyyer
9/16/2023
cs.CL

No official code found. Best implementation: SimengSun/alpaca_farm_lora (22 stars, Apache-2.0, last commit 2023-09-19).

Abstract

During the last stage of RLHF, a large language model is aligned to human intents via PPO training, a process that generally requires large-scale computational resources. In this technical report, we empirically investigate an efficient implementation of RLHF using low-rank adaptation (LoRA), which allows us to align the LLaMA 7B checkpoint on the Alpaca dataset using only two A100 GPUs instead of the eight required for full model fine-tuning. Despite tuning only 0.2% of LLaMA 7B's parameters, our implementation achieves better performance than the publicly-released AlpacaFarm checkpoint with full model fine-tuning. Next, we analyze several configurations of our LoRA-based PPO implementation, varying the form of the KL regularization term in the training objective. We find that (1) removing this penalty term does not harm performance on the AlpacaFarm evaluation set under our LoRA setup; (2) other regularizers, such as Jensen-Shannon divergence, lead to improved performance; and (3) while PPO training negatively impacts the factuality of model-generated responses, training with LoRA largely mitigates this effect. We release our code and pretrained checkpoints to facilitate future research on more efficient RLHF.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
222C, C++Sep 2, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{sun2023exploring,
  title  = {Exploring the impact of low-rank adaptation on the performance, efficiency, and regularization of RLHF},
  author = {Simeng Sun and Dhawal Gupta and Mohit Iyyer},
  year   = {2023},
  eprint = {2309.09055},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.09055v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.09055.svg)](https://codeofpaper.com/paper/2309.09055)

Discussion