Control LLM: Controlled Evolution for Intelligence Retention in LLM
本文提出了一种名为Control LLM的方法,通过在预训练和扩展的Transformer块之间进行隐藏状态对齐,有效地缓解了大型语言模型中的灾难性遗忘问题,同时实现了新知识的无缝集成。
更新于 2025-01-24。作者:Haichao Wei、Yunxiang Ren、Zhoutong Fu、Aman Lunia、Yi-Lin Chen、Alice Leung、Ya Xu。
中文摘要
大型语言模型(LLMs)需要大量的计算资源,因此在无需从头开始重新训练的情况下提升其能力变得至关重要。在这个领域的一个关键挑战是灾难性遗忘(CF),它阻碍了在持续预训练(CPT)和持续监督微调(CSFT)过程中的性能。我们提出了一种名为“控制LLM”的新方法,该方法利用并行预训练和扩展的Transformer块,通过插值策略对它们的隐藏状态进行对齐。这种方法在保留现有任务性能的同时,无缝地整合新知识。大量实验证明了Control LLM在CPT和CSFT中的有效性。在Llama3.1-8B-Instruct上,它在数学推理(Math-Hard上提高了14.4%)和编码性能(MBPP-PLUS上提高了10%)方面取得了显著提升。在Llama3.1-8B上,它增强了多语言能力(C-Eval上提高了10.6%,CMMLU上提高了6.8%,CMMLU-0shot-CoT上提高了30.2%)。它超越了现有方法,在从同一基础模型微调的开源模型中实现了SOTA,同时使用了大量的数据和计算。关键的是,这些收益是在保持强大原始能力的同时实现的,与开源数学和编码模型相比,其性能下降最小(MMLU上小于4.3%),而后者在35%以上。这种方法已经在LinkedIn的基于GenAI的求职者和广告单元产品中得到成功应用。为了支持进一步的研究,我们将训练和评估代码(https://github.com/linkedin/ControlLLM)以及基于公共数据集训练的模型(https://huggingface.co/ControlLLM)发布到社区中。
英文摘要
Large Language Models (LLMs) demand significant computational resources, making it essential to enhance their capabilities without retraining from scratch. A key challenge in this domain is catastrophic forgetting (CF), which hampers performance during Continuous Pre-training (CPT) and Continuous Supervised Fine-Tuning (CSFT). We propose Control LLM, a novel approach that leverages parallel pre-trained and expanded transformer blocks, aligning their hidden-states through interpolation strategies This method effectively preserves performance on existing tasks while seamlessly integrating new knowledge. Extensive experiments demonstrate the effectiveness of Control LLM in both CPT and CSFT. On Llama3.1-8B-Instruct, it achieves significant improvements in mathematical reasoning (+14.4% on Math-Hard) and coding performance (+10% on MBPP-PLUS). On Llama3.1-8B, it enhances multilingual capabilities (+10.6% on C-Eval, +6.8% on CMMLU, and +30.2% on CMMLU-0shot-CoT). It surpasses existing methods and achieves SOTA among open-source models tuned from the same base model, using substantially less data and compute. Crucially, these gains are realized while preserving strong original capabilities, with minimal degradation (<4.3% on MMLU) compared to >35% in open-source Math and Coding models. This approach has been successfully deployed in LinkedIn's GenAI-powered job seeker and Ads unit products. To support further research, we release the training and evaluation code (https://github.com/linkedin/ControlLLM) along with models trained on public datasets ( https://huggingface.co/ControlLLM) to the community.
解读
一句话总结
本文提出了一种名为Control LLM的方法,通过在预训练和扩展的Transformer块之间进行隐藏状态对齐,有效地缓解了大型语言模型中的灾难性遗忘问题,同时实现了新知识的无缝集成。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:大型语言模型(LLM)在持续预训练(CPT)和持续监督微调(CSFT)过程中存在灾难性遗忘(CF)问题,导致模型在处理新任务时遗忘旧知识。 • 现有方案不足:现有的缓解CF的方法包括数据混合、正则化、参数高效微调(PEFT)和知识蒸馏等,但各有局限性,如数据难以混合、正则化计算成本高、PEFT可能限制学习能力等。 • 研究目标:提出Control LLM方法,通过整合可训练块和冻结的预训练Transformer块,实现CPT和CSFT过程中的知识保留和新技能的获取。
问题2:论文的核心创新点是什么?
• 技术创新:Control LLM采用并行预训练和扩展的Transformer块,通过插值策略对齐它们的隐藏状态。 • 方法改进:提出了一种隐藏状态对齐的方法,以在保留先验知识的同时学习新任务。 • 优势:与现有方法相比,Control LLM在数学、编码和双语任务上实现了性能提升,同时保持了原始能力的强健性,且所需数据和计算量更少。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在Llama3.1-8B-Instruct上,Control LLM在数学推理(Math-Hard)上提高了14.4%,在编码性能(MBPP-PLUS)上提高了10%;在Llama3.1-8B上,在多语言能力上分别提高了10.6%(C-Eval)、6.8%(CMMLU)和30.2%(CMMLU-0shot-CoT)。 • 性能提升:Control LLM在数学和编码任务上优于基线方法,在多语言任务上也实现了显著提升。 • 对比结果:Control LLM在数学和编码任务上的性能提升超过了35%的基线模型,在多语言任务上的提升也超过了现有的开源模型。
问题4:这个研究的实际应用价值是什么?
• 应用场景:Control LLM适用于需要保持广泛能力以应对现实应用场景、同时在高QPS、低延迟场景下运行的系统。 • 实施建议:将Control LLM部署到实际应用中,如LinkedIn的GenAI驱动的求职者和广告单元产品。 • 局限与展望:Control LLM在多模态和强化微调任务上的应用以及隐藏状态对齐的理论基础仍需进一步研究。