Recently, the instruction-tuning of large language models is a crucial area of research in the field of natural language processing. Due to resource and cost limitations, several researchers have employed parameter-efficient tuning techniques, such as LoRA, for instruction tuning, and have obtained encouraging results In comparison to full-parameter fine-tuning, LoRA-based tuning demonstrates salient benefits in terms of training costs. In this study, we undertook experimental comparisons between full-parameter fine-tuning and LoRA-based tuning methods, utilizing LLaMA as the base model. The experimental results show that the selection of the foundational model, training dataset scale, learnable parameter quantity, and model training cost are all important factors. We hope that the experimental conclusions of this paper can provide inspiration for training large language models, especially in the field of Chinese, and help researchers find a better trade-off strategy between training cost and model performance. To facilitate the reproduction of the paper's results, the dataset, model and code will be released.
翻译:使用全参数和基于LoRA的微调在指令跟随大语言模型上进行了比较研究,在中文领域获得了实验结果。研究者们发现,基础模型、训练数据集规模、可学习参数数量和模型训练成本等因素对微调效果产生了重要影响。而对于指令跟随,基于LoRA的微调方法在培训成本方面具有更好的效果,相比之下使用全参微调更为昂贵。研究者希望这些实验结论能给语言模型的培训提供更好的指导,帮助发现成本和性能之间的平衡策略。为了便于他人重现实验结果,数据集、模型和代码将公开发布。