Abstract
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.
Introduction
The advent of instruction tuning has been pivotal in evolving Large Language Models (LLMs) from simple text predictors into interactive assistants capable of following complex human commands. While full-parameter fine-tuning—updating all model weights—is the standard approach for achieving high performance, its computational and financial costs are prohibitive for many researchers. Consequently, Parameter-Efficient Fine-Tuning (PEFT) methods, specifically Low-Rank Adaptation (LoRA), have gained widespread adoption. LoRA maintains the original model weights in a frozen state and only trains a small subset of additional parameters. However, the performance trade-offs of LoRA compared to full-parameter tuning, particularly in the context of Chinese-language instruction following, remain under-explored. This study provides a systematic comparison using the LLaMA architecture to evaluate these two paradigms.
Methodology
We conducted experiments using LLaMA-7B and LLaMA-13B as foundational models. Two training strategies were compared:
- Full-Parameter Fine-Tuning: Updating the entire weight matrix of the model.
- LoRA-based Tuning: Freezing original weights and introducing low-rank matrices ($r=8$) to all linear layers, extending the original LoRA implementation which typically targets only attention layers.
Evaluation was performed using ChatGPT (GPT-3.5-turbo) as an automated judge. The model responses were scored on a scale of 0 to 1 across a diverse set of tasks. Efficiency metrics, including training time per epoch on 8x A100 GPUs, were also recorded to quantify the cost-effectiveness of each approach.
Data Characterization
The study utilized datasets from the BELLE project, focusing on Chinese instruction-following. Training data spanned three scales: 0.6 million (0.6M), 2 million (2M), and 4 million (4M) samples. Additionally, a specialized 0.25M sample dataset for mathematical reasoning was employed. The evaluation set consisted of 1,000 manually cleaned samples distributed across nine distinct use cases, as detailed in the table below.
As shown in the data analysis, the tasks vary significantly in complexity and length. The following figure illustrates the average word counts for instructions and gold-standard responses across the categories, highlighting the substantial output requirements for tasks like summarization and extraction compared to brainstorming or open QA.
Results and Discussion
Our results indicate a significant performance gap between the two methods. In a 2M sample training scenario, the Full-Parameter 7B model achieved a score of 0.710, whereas the LoRA-tuned 7B model reached only 0.609. This 10-point disparity suggests that LoRA may struggle to fully bridge the "instruction gap" when starting from a raw base model, likely due to the limited capacity of the low-rank updates to capture the fundamental shift required for instruction following.
However, LoRA demonstrated exceptional efficiency, completing an epoch in 7 hours compared to the 31 hours required for full-parameter tuning—a 4.4x speedup. Furthermore, LoRA proved highly effective for incremental tuning. When applied to a model that had already undergone instruction tuning, LoRA successfully taught specialized skills (e.g., mathematics), raising the score from 0.45 to 0.586. This suggests that while LoRA might not be the best "first-stage" tuner, it is an excellent "specialist" tool.
Conclusion
While LoRA offers a compelling cost-benefit ratio and is excellent for domain-specific specialization, full-parameter fine-tuning remains the superior choice for general instruction-following performance, particularly when training on "vanilla" base models. Researchers on a budget should consider starting with pre-instruction-tuned models to maximize the effectiveness of LoRA. Future work will investigate whether increasing the LoRA rank can further narrow the performance gap without sacrificing efficiency. To facilitate the reproduction of these results, the dataset, model, and code are released.
Summary updated