Merging multiple expert models offers a promising approach for performing multi-task learning without accessing their original data. Existing methods attempt to alleviate task conflicts by sparsifying task vectors or promoting orthogonality among them. However, they overlook the fundamental target of model merging: the merged model performs as closely as possible to task-specific models on respective tasks. We find these methods inevitably discard task-specific information that, while causing conflicts, is crucial for performance. Based on our findings, we frame model merging as a constrained optimization problem ($\textit{i.e.}$, minimizing the gap between the merged model and individual models, subject to the constraint of retaining shared knowledge) and solve it via adaptive projective gradient descent. Specifically, we align the merged model with individual models by decomposing and reconstituting the loss function, alleviating conflicts through $\textit{data-free}$ optimization of task vectors. To retain shared knowledge, we optimize this objective by projecting gradients within a $\textit{shared subspace}$ spanning all tasks. Moreover, we view merging coefficients as adaptive learning rates and propose a task-aware, training-free strategy. Experiments show that our plug-and-play approach consistently outperforms previous methods, achieving state-of-the-art results across diverse architectures and tasks in both vision and NLP domains.
Merging Beyond: Streaming LLM Updates via Activation-Guided Rotations
City University of Hong Kong, Hong Kong SAR(香港城市大学);Tsinghua University(清华大学);Huawei Noah’s Ark Lab, Hong Kong SAR(华为诺亚实验室(香港));University of Hong Kong(香港大学);Hong Kong University of Science and Technology (Guangzhou)(香港理工大学(广州))
深度学习的成功在很大程度上归功于我们相对轻松地解决某些大规模非凸优化问题的能力。虽然非凸优化是NP难的,但简单的算法--通常是随机梯度下降的变体--在实践中拟合大型神经网络时表现出惊人的有效性。我们认为,神经网络损失景观通常包含(几乎)一个单一的盆地后,考虑到所有可能的置换对称性的隐藏单元la Entezari et al. 2021。我们介绍了三种算法来置换一个模型的单元,使它们与参考模型对齐,以便在权重空间中合并两个模型。该变换产生一组功能等效的权重,这些权重位于参考模型附近的近似凸盆中。在实验上,我们在各种模型架构和数据集上展示了单流域现象,包括第一次(据我们所知)在CIFAR-10上独立训练的ResNet模型之间的零障碍线性模式连接。此外,我们还发现了模型宽度和训练时间与模式连接性之间的有趣现象。最后,我们讨论了线性模式连通性假设的缺点,包括一个反例的单盆地理论。
FeatCal: Feature Calibration for Post-Merging Models
The Hong Kong Polytechnic University (PolyU)(香港理工大学);The Chinese University of Hong Kong(香港中文大学);PolyU-Daya Bay Technology and Innovation Research Institute(PolyU-大亚湾技术与创新研究院)
QAM: Quadratic-Accurate Checkpoint Merging via Sequential Consistency
University of Wisconsin – Madison(威斯康星大学麦迪逊分校);Baidu Inc.(百度公司);University of Arizona(亚利桑那大学);University of Toronto(多伦多大学);Wilfrid Laurier University(威尔弗里德·劳里埃大学);York University(约克大学)
Planning Neural Dynamics with Lie Group Embedding through Supervised Projective Manifold Learning
School of Informatics(信息学院);School of Mathematics(数学学院);University of Edinburgh(爱丁堡大学);School of Computer Science(计算机科学学院);School of MACS(MACS学院);Beijing Institute of Technology(北京理工大学);Heriot-Watt University(赫瑞-瓦特大学)