少即是多:基于二进制任务切换的高效模型合并
Less is More: Efficient Model Merging with Binary Task Switch
AI总结:
针对模型合并的冗余参数冲突与存储负担问题,本研究发现任务向量的脉冲状特征,提出二值化任务向量的T-Switch方法及Auto-Switch自动组合机制,在仅需1-3%存储的情况下实现性能提升。
摘要:
作为一种无需额外训练即可赋予模型多任务能力的有效方法,模型合并已受到广泛关注。然而,现有方法面临冗余参数冲突和参数存储负担过重的挑战。在本研究中,通过对照实验,我们发现对于任务向量而言,只有那些幅度超过特定阈值的参数才对任务有积极贡献,呈现出脉冲状特征。随后,我们尝试利用这一特征对任务向量进行二值化处理,以降低存储开销。进一步的对照实验表明,二值化后的任务向量在微调与合并性能上几乎没有下降,甚至在冗余参数比例增加时表现出更强的性能提升。基于这些发现,我们提出了任务切换(T-Switch),将任务向量分解为三个部分:1)由二值化掩码向量实例化的激活开关;2)由二值化符号向量实例化的极性开关;3)由标量系数实例化的缩放旋钮。通过以二值化形式存储任务向量,T-Switch在确保任务参数高效存储的同时缓解了参数冲突。此外,为了在T-Switch中实现自动开关组合,我们进一步引入了Auto-Switch,它通过从小型查询集中检索实现无需训练的开关组合。实验表明,我们的方法相较于现有基线实现了显著的性能提升,仅需全精度参数1-3%的存储空间。
英文摘要:
As an effective approach to equip models with multi-task capabilities without additional training, model merging has garnered significant attention. However, existing methods face challenges of redundant parameter conflicts and the excessive storage burden of parameters. In this work, through controlled experiments, we reveal that for task vectors, only those parameters with magnitudes above a certain threshold contribute positively to the task, exhibiting a pulse-like characteristic. We then attempt leveraging this characteristic to binarize the task vectors and reduce storage overhead. Further controlled experiments show that the binarized task vectors incur almost no decrease in fine-tuning and merging performance, and even exhibit stronger performance improvements as the proportion of redundant parameters increases. Based on these insights, we propose Task Switch (T-Switch), which decomposes task vectors into three components: 1) an activation switch instantiated by a binarized mask vector, 2) a polarity switch instantiated by a binarized sign vector, and 3) a scaling knob instantiated by a scalar coefficient. By storing task vectors in a binarized form, T-Switch alleviates parameter conflicts while ensuring efficient task parameter storage. Furthermore, to enable automated switch combination in T-Switch, we further introduce Auto-Switch, which enables training-free switch combination via retrieval from a small query set. Experiments indicate that our methods achieve significant performance improvements over existing baselines, requiring only 1-3% of the storage space of full-precision parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。