Orthogonal Model Merging
Sihan Yang, Kexuan Shi, Weiyang Liu
TL;DR
OrthoMerge tackles the problem of merging task-specific finetuned LLMs without eroding the geometric structure of pretrained weights. It achieves this by performing merging on the orthogonal group, mapping to the Lie algebra $\mathfrak{so}(d)$ for magnitude-correct averaging, and using the Cayley transform to return to the orthogonal manifold; non-OFT models are handled via Orthogonal-Residual Decoupling that separates an explicit orthogonal component from Euclidean residuals. The approach yields consistent improvements over Euclidean-space baselines across language and multimodal domains, reduces catastrophic forgetting, and preserves both general and task-specific capabilities. These results demonstrate a scalable, geometry-aware path to composing diverse intelligent behaviors without retraining.
Abstract
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.
