探索大模型持续预训练与指令微调的平衡,提升指令遵循能力。
Balancing Continuous Pre-Training and Instruction Fine-Tuning: Optimizing Instruction-Following in LLMs
- 对比基座模型与指令微调模型在持续预训练中的表现差异。
- 发现仅通过持续预训练即可显著提升指令遵循能力,无需额外指令数据。
- 为计算资源有限的场景提供高效更新模型的新策略,适合部署者参考。
公开使用的大型语言模型需通过持续预训练以保持最新数据的时效性,同时需通过特定指令微调来维持准确的指令遵循能力。通常模型分为两类:基座模型(在多样化数据上预训练)和指令微调模型(进一步使用特定指令数据训练)。本研究深入探讨持续预训练与指令微调之间的复杂关系,分析其对基座模型及其指令微调版本指令遵循能力的影响。由于指令微调成本高且依赖大量人工标注数据,本文旨在寻找无需指令数据与微调、仅通过持续预训练实现知识更新与指令遵循能力提升的最高效策略。我们在 LLaMa 3、3.1 和 Qwen 2、2.5 系列的基座与指令模型上进行实证验证,全面考察不同规模预训练语料库及多种模型设置下的假设。结果表明,持续预训练本身即可有效增强指令遵循性能。
原文摘要 · Abstract (English)
Large Language Models (LLMs) for public use require continuous pre-training to remain up-to-date with the latest data. The models also need to be fine-tuned with specific instructions to maintain their ability to follow instructions accurately. Typically, LLMs are released in two versions: the Base LLM, pre-trained on diverse data, and the instruction-refined LLM, additionally trained with specific instructions for better instruction following. The question arises as to which model should undergo continuous pre-training to maintain its instruction-following abilities while also staying current with the latest data. In this study, we delve into the intricate relationship between continuous pre-training and instruction fine-tuning of the LLMs and investigate the impact of continuous pre-training on the instruction following abilities of both the base and its instruction finetuned model. Further, the instruction fine-tuning process is computationally intense and requires a substantial number of hand-annotated examples for the model to learn effectively. This study aims to find the most compute-efficient strategy to gain up-to-date knowledge and instruction-following capabilities without requiring any instruction data and fine-tuning. We empirically prove our findings on the LLaMa 3, 3.1 and Qwen 2, 2.5 family of base and instruction models, providing a comprehensive exploration of our hypotheses across varying sizes of pre-training data corpus and different LLMs settings.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。