arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.05966cs.LGcs.AI
收藏

消失特征:诊断模型合并及其超越

Vanishing Feature: Diagnosing Model Merging and Beyond

Mohamed bin Zayed University of Artificial Intelligence (MBZUAI)(穆罕默德·本·扎耶德人工智能大学(MBZUAI))

Xingyu Qu, Samuel Horvath

AI总结:

本文诊断模型合并中的“消失特征”现象,提出保留优先合并策略,使合并模型无需后训练即可超越原模型,并扩展至剪枝场景,提升高稀疏度剪枝性能。

摘要:

模型合并提供了一种高效组合预训练神经网络的方法,但常常面临性能不一致的问题,尤其是在合并具有不同初始化的模型时。我们识别出“消失特征”现象,即输入诱导的特征在通过合并模型传播时逐渐减弱,导致性能下降。通过理论和实证分析,我们揭示这一现象是方差崩溃等挑战的根源,并解释了基于排列的合并、合并后归一化等技术。我们表明,通过精准针对消失特征问题,可以增强现有的归一化策略。利用这些见解,我们提出了“保留优先合并”(PFM)策略,该策略侧重于保留早期层特征,使合并后的模型首次在高级设置中无需后训练即可超越原始模型。此外,我们证明消失特征现象也适用于其他场景,如模型剪枝。应用剪枝后归一化来缓解该问题,显著提高了高稀疏度下的一次性剪枝性能,提供了一种简单有效的剪枝后解决方案。代码可在 https://github.com/XingyuQu/VF 获取。

英文摘要:

Model merging offers an efficient way to combine pre-trained neural networks but often suffers from inconsistent performance, especially when merging models with different initializations. We identify the ``vanishing feature'' phenomenon, where input-induced features diminish during propagation through the merged model, degrading performance. Through theoretical and empirical analysis, we reveal that this phenomenon underpins challenges like variance collapse and explains techniques like permutation-based merging, post-merging normalization, etc. We show that existing normalization strategies can be enhanced by precisely targeting the vanishing feature issue. Leveraging these insights, we propose the ``Preserve-First Merging'' (PFM) strategy, which focuses on preserving early-layer features, enabling the merged models, for the first time, to outperform the original models in advanced settings without post-training. Furthermore, we demonstrate that the vanishing feature phenomenon extends to other contexts, such as model pruning. Applying post-pruning normalization to mitigate the issue significantly improves one-shot pruning performance at high sparsity, offering a simple and effective post-pruning solution. The code is available at https://github.com/XingyuQu/VF.

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

↑