正交模型融合
Orthogonal Model Merging
AI总结:
正交模型融合通过在正交群流形上进行融合操作,有效保留模型权重的几何结构,减少灾难性遗忘并提升多任务性能。
摘要:
将微调后的大型语言模型(LLMs)进行融合已成为整合多样化能力到单一统一模型的重要步骤。然而,现有的模型融合方法依赖于欧几里得空间中的线性算术,这往往破坏了预训练权重的内在几何属性,如超球面能量。为了解决这个问题,我们提出了正交模型融合(OrthoMerge),一种在由正交群形成的黎曼流形上执行融合操作的方法,以保持模型权重的几何结构。通过将通过正交微调(OFT)学习到的任务特定正交矩阵映射到李代数,OrthoMerge实现了既能考虑适应方向又能考虑适应强度的原理性且高效的整合。除了直接利用通过OFT获得的正交矩阵外,我们还进一步将这种方法扩展到使用非OFT方法微调的一般模型(即低秩微调、全微调)通过正交残差解耦策略。该技术通过解决正交Procrustes问题提取专家模型的正交成分,然后在正交群的流形上进行融合,而剩余的线性残差则通过标准加法融合处理。广泛的实证结果表明,OrthoMerge在缓解灾难性遗忘和在多样化任务中维持模型性能方面效果显著。
英文摘要:
Merging finetuned Large Language Models (LLMs) has become increasingly important for integrating diverse capabilities into a single unified model. However, prevailing model merging methods rely on linear arithmetic in Euclidean space, which often destroys the intrinsic geometric properties of pretrained weights, such as hyperspherical energy. To address this, we propose Orthogonal Model Merging (OrthoMerge), a method that performs merging operations on the Riemannian manifold formed by the orthogonal group to preserve the geometric structure of the model's weights. By mapping task-specific orthogonal matrices learned by Orthogonal Finetuning (OFT) to the Lie algebra, OrthoMerge enables a principled yet efficient integration that takes into account both the direction and intensity of adaptations. In addition to directly leveraging orthogonal matrices obtained by OFT, we further extend this approach to general models finetuned with non-OFT methods (i.e., low-rank finetuning, full finetuning) via an Orthogonal-Residual Decoupling strategy. This technique extracts the orthogonal components of expert models by solving the orthogonal Procrustes problem, which are then merged on the manifold of the orthogonal group, while the remaining linear residuals are processed through standard additive merging. Extensive empirical results demonstrate the effectiveness of OrthoMerge in mitigating catastrophic forgetting and maintaining model performance across diverse tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。