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

合并来自不同初始化的文本Transformer模型

Merging Text Transformer Models from Different Initializations

Johns Hopkins University(约翰斯·霍普金斯大学);Meta

Neha Verma, Maha Elbayad

AI总结:

本研究提出一种模型合并技术,探究不同初始化Transformer极小值间关系,发现其损失障碍低于模型平均,表明极小值更平缓且不孤立,为合并独立训练的Transformer模型奠定基础。

摘要:

近期关于基于置换的模型合并的研究表明,完全不同的初始化之间的模型具有令人印象深刻的低或零障碍模式连通性。然而,这一研究方向尚未扩展到Transformer架构,尽管Transformer在语言领域占据主导地位。因此,在本工作中,我们研究了不同的Transformer极小值学习相似特征的程度,并提出了一种模型合并技术来探究损失景观中这些极小值之间的关系。架构的特定细节,如其残差连接、多头注意力以及离散的序列输入,需要特定的干预措施来计算保持在同一功能等价类内的模型置换。通过我们的方法合并这些模型时,我们一致地发现,与模型平均相比,在掩码语言建模任务上训练的模型或在语言理解基准上微调的模型,其极小值之间的损失障碍更低。我们的结果表明,这些模型的极小值比之前所理解的更不尖锐且更不孤立,并为未来合并单独训练的Transformer模型的工作提供了基础。

英文摘要:

Recent work on permutation-based model merging has shown impressive low- or zero-barrier mode connectivity between models from completely different initializations. However, this line of work has not yet extended to the Transformer architecture, despite its dominant popularity in the language domain. Therefore, in this work, we investigate the extent to which separate Transformer minima learn similar features, and propose a model merging technique to investigate the relationship between these minima in the loss landscape. The specifics of the architecture, like its residual connections, multi-headed attention, and discrete, sequential input, require specific interventions in order to compute model permutations that remain within the same functional equivalence class. In merging these models with our method, we consistently find lower loss barriers between minima compared to model averaging, across models trained on a masked-language modeling task or fine-tuned on a language understanding benchmark. Our results show that the minima of these models are less sharp and isolated than previously understood, and provide a basis for future work on merging separately trained Transformer models.

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

↑