无需指令数据,用模型融合打造金融大模型。
The Construction of Instruction-tuned LLMs for Finance without Instruction Data Using Continual Pretraining and Model Merging

- 通过领域持续预训练与模型融合构建金融指令微调模型。
- 在无指令数据下实现金融领域指令模型,效果接近传统方法。
- 适合资源有限但需金融AI模型的研究者和开发者使用。
本文提出一种无需指令数据即可构建金融领域指令微调大语言模型的新方法。传统方法需大量数据和算力进行持续预训练与指令微调,成本高昂。本研究采用领域持续预训练结合模型融合策略:利用公开的通用预训练模型及其指令微调版本,提取所需指令任务向量,再与金融领域预训练向量合并,从而生成金融领域指令微调模型。整个流程分两步:首先在金融数据上进行持续预训练;其次将指令微调向量与领域预训练向量融合。实验表明该方法成功构建了金融领域指令微调模型。关键优势在于指令微调向量与领域预训练向量几乎独立,提升方法有效性。本研究开发的日本金融指令微调大模型已开源,可在 https://huggingface.co/pfnet/nekomata-14b-pfn-qfin-inst-merge 获取。
原文摘要 · Abstract (English)
This paper proposes a novel method for constructing instruction-tuned large language models (LLMs) for finance without instruction data. Traditionally, developing such domain-specific LLMs has been resource-intensive, requiring a large dataset and significant computational power for continual pretraining and instruction tuning. Our study proposes a simpler approach that combines domain-specific continual pretraining with model merging. Given that general-purpose pretrained LLMs and their instruction-tuned LLMs are often publicly available, they can be leveraged to obtain the necessary instruction task vector. By merging this with a domain-specific pretrained vector, we can effectively create instruction-tuned LLMs for finance without additional instruction data. Our process involves two steps: first, we perform continual pretraining on financial data; second, we merge the instruction-tuned vector with the domain-specific pretrained vector. Our experiments demonstrate the successful construction of instruction-tuned LLMs for finance. One major advantage of our method is that the instruction-tuned and domain-specific pretrained vectors are nearly independent. This independence makes our approach highly effective. The Japanese financial instruction-tuned LLMs we developed in this study are available at https://huggingface.co/pfnet/nekomata-14b-pfn-qfin-inst-merge.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。