VersaTune:一种用于训练多能力大语言模型的高效数据组合框架
VersaTune: An Efficient Data Composition Framework for Training Multi-Capability LLMs
AI总结:
针对大语言模型微调时的跨领域灾难性遗忘问题,本研究提出VersaTune数据组合框架,通过匹配模型知识分布构建训练数据并动态调整领域权重,显著提升多领域能力,减少领域扩展时的性能损耗。
摘要:
正如GPT、Claude系列等专有大语言模型(LLM)所展示的那样,LLM有潜力在单个模型中实现法律、医学、金融、科学、代码等广泛领域的卓越能力。这些能力在监督微调(SFT)阶段会得到进一步增强。尽管LLM具备这样的潜力,现有研究主要聚焦于微调阶段的特定领域增强,这类方法的挑战在于会出现其他领域知识的灾难性遗忘问题。在本研究中,我们提出了**VersaTune**,这是一种新颖的数据组合框架,旨在在训练过程中提升LLM的整体多领域能力。我们首先检测基础模型内部的特定领域知识分布,随后构建与模型现有知识分布相匹配的训练数据组合。在后续的训练过程中,我们会根据各领域的可学习潜力和遗忘程度动态调整领域权重。实验结果表明,VersaTune在多领域能力培养方面效果显著,与均匀领域权重设置相比,整体多能力表现提升了35.21%。此外,我们发现Qwen-2.5-32B结合VersaTune的表现甚至超过了GPT-4o、Claude3.5-Sonnet和DeepSeek-V3等前沿模型,超出幅度分别为0.86%、4.76%和4.60%。另外,在需要灵活扩展特定领域的场景下,VersaTune将其他领域的性能下降幅度降低了38.77%,同时保留了目标领域的训练效果。
英文摘要:
As demonstrated by the proprietary Large Language Models (LLMs) such as GPT and Claude series, LLMs have the potential to achieve remarkable proficiency across a wide range of domains, including law, medicine, finance, science, code, etc., all within a single model. These capabilities are further augmented during the Supervised Fine-Tuning (SFT) phase. Despite their potential, existing work mainly focuses on domain-specific enhancements during fine-tuning, the challenge of which lies in catastrophic forgetting of knowledge across other domains. In this study, we introduce **VersaTune**, a novel data composition framework designed for enhancing LLMs' overall multi-domain capabilities during training. We begin with detecting the distribution of domain-specific knowledge within the base model, followed by the training data composition that aligns with the model's existing knowledge distribution. During the subsequent training process, domain weights are dynamically adjusted based on their learnable potential and forgetting degree. Experimental results indicate that VersaTune is effective in multi-domain fostering, with an improvement of 35.21\% in the overall multi-ability performances compared to uniform domain weights. Furthermore, we find that Qwen-2.5-32B + VersaTune even surpasses frontier models, including GPT-4o, Claude3.5-Sonnet and DeepSeek-V3 by 0.86\%, 4.76\% and 4.60\%. Additionally, in scenarios where flexible expansion of a specific domain is required, VersaTune reduces the performance degradation in other domains by 38.77\%, while preserving the training efficacy of the target domain.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。