arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.09891cs.CLcs.AIcs.LG
收藏

用于语言模型合并的 Fisher 掩码节点

Fisher Mask Nodes for Language Model Merging

Indian Institute of Information Technology Kottayam(印度信息技术学院科塔亚姆分校)

Thennal D K, Ganesh Nathan, Suchithra M S

AI总结:

本文提出一种基于 Transformer 掩码节点 Fisher 信息的模型合并方法,以极低计算成本在 BERT 系列模型上实现显著性能提升并大幅加速。

摘要:

微调预训练模型在下游性能方面具有显著优势。诸如 BERT 及其衍生模型在自然语言处理中的普遍存在,也导致了大量针对特定任务的微调模型的出现。由于这些模型通常只能很好地执行单一任务,在多任务场景中就需要额外的训练或集成。日益发展的模型合并领域提供了一种解决方案,应对将多个特定任务模型组合成单个多任务模型的挑战。在本研究中,我们提出了一种新颖的面向 Transformer 的模型合并方法,结合了先前 Fisher 加权平均研究以及 Fisher 信息在模型剪枝中的应用的见解。利用 Transformer 架构中掩码节点的 Fisher 信息,我们设计了一种计算高效的加权平均方案。我们的方法在 BERT 系列的各种模型中表现出规律且显著的性能提升,以极低的计算成本超越了全规模 Fisher 加权平均,基线性能提升最高可达 +6.5,并且在不同模型上的加速比介于 57.4 倍到 321.7 倍之间。我们的结果证明了该方法在当前多任务学习环境中的潜力,并表明其对新模型架构和学习场景的可扩展性与适应性。

英文摘要:

Fine-tuning pre-trained models provides significant advantages in downstream performance. The ubiquitous nature of pre-trained models such as BERT and its derivatives in natural language processing has also led to a proliferation of task-specific fine-tuned models. As these models typically only perform one task well, additional training or ensembling is required in multi-task scenarios. The growing field of model merging provides a solution, dealing with the challenge of combining multiple task-specific models into a single multi-task model. In this study, we introduce a novel model merging method for Transformers, combining insights from previous work in Fisher-weighted averaging and the use of Fisher information in model pruning. Utilizing the Fisher information of mask nodes within the Transformer architecture, we devise a computationally efficient weighted-averaging scheme. Our method exhibits a regular and significant performance increase across various models in the BERT family, outperforming full-scale Fisher-weighted averaging in a fraction of the computational cost, with baseline performance improvements of up to +6.5 and a speedup between 57.4x and 321.7x across models. Our results prove the potential of our method in current multi-task learning environments and suggest its scalability and adaptability to new model architectures and learning scenarios.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑