Geometry-Aware Directional Alignment for Coherent Model Merging

Zhikang Chen, Sen Cui, Deheng Ye, Min Zhang, Gang Niu, Yu Zhang, Masashi Sugiyama, Tingting ZhuNeurIPS 2026

TL;DR

When you merge multiple fine-tuned neural networks into one shared model, simply scaling and averaging their weights often causes them to clash because their internal representations point in conflicting directions. Inspired by the mathematical geometry of well-trained classifiers, this paper introduces Merging with Directional Alignment (MDA)—a framework that rotates and aligns both model weights and internal features onto a shared geometric template. The result is a single, coherent multi-task model that avoids catastrophic interference and generalizes better to unseen tasks, all without expensive joint retraining.

What Problem Does This Paper Address?

Imagine fine-tuning a foundation model for twenty different tasks. Storing twenty separate copies of the weights—or even twenty sets of adapters—quickly becomes a deployment headache. Model merging solves this by squishing those independently fine-tuned models back into a single model, usually via "task vectors" (the weight differences between a fine-tuned model and its pretrained parent).

Existing merging methods largely obsess over magnitude—finding the right mixing coefficients or pruning noisy weights. What they overlook is direction. Vectors in high-dimensional space have both length and orientation. When models are trained independently, they encode task-specific knowledge along misaligned, arbitrary directions. Adding them together naively creates destructive interference, much like two waves canceling each other out.

To fix this, the authors look to Neural Collapse: a curious phenomenon where, at the end of training on balanced data, a network's final-layer class features naturally snap into a maximally separated, symmetric geometric structure called a simplex Equiangular Tight Frame (ETF) (think of the vertices of a regular tetrahedron, generalized to higher dimensions). Independent models each form their own structured geometry, but rotated differently. Without aligning these geometries, merged models fall short of true multi-task training.

Figure 1: Left: Comparison with prior methods. Our approach builds a simplex Equiangular Tight Frame (ETF) to align task-specific parameter directions, achieving better directional consistency and more closely approximating multi-class joint training. M1, N1, M2, N2 denote fusion coefficients rather than model or classifier weights. Right: Correlation between directional deviation ∆ETF (from the ideal ETF) and the performance gap ∆diff across tasks. Compared with task singular vectors (TSV) [Gargiulo et al., 2025], our method shows a clear relationship: larger deviations from the ETF structure consistently correspond to larger performance gaps.

Methods

The authors propose Merging with Directional Alignment (MDA), which operates in two sequential stages depending on whether you have access to unlabeled test data:

  1. Parameter-Space Alignment (Data-Free / MDA TA): Starting purely with model weights, the method uses Singular Value Decomposition (SVD)—a standard matrix compression technique—to extract the top principal components from each task's weight updates and concatenate them into a shared low-rank subspace. What’s new: Instead of partitioning tasks into isolated subspaces like prior work, MDA projects this shared parameter space directly onto a predefined, idealized simplex ETF reference frame, enforcing global directional harmony across layers.
  2. Feature-Space Alignment (Data-Based / MDA AM): When unlabeled data is available, standard methods like AdaMerging optimize layer-wise mixing coefficients by minimizing prediction entropy (encouraging confident outputs). What’s new: MDA jointly optimizes those mixing coefficients alongside task-specific rotation matrices applied to the extracted features. Using the model's own confident predictions as pseudo-labels, it nudges features toward fixed ETF targets while regularizing the rotations via an orthogonal Procrustes objective (finding the cleanest rigid rotation without distorting feature lengths or angles).

Datasets

No new benchmarks are introduced; instead, the authors evaluate MDA across a wide sweep of existing vision, language, and specialized medical benchmarks:

  • Vision: Suites of 8, 14, and 20 image classification tasks (using CLIP ViT-B/32, B/16, and L/14), including SUN397, Stanford Cars, RESISC45, DTD, SVHN, GTSRB, MNIST, and EuroSAT.
  • Standard NLP: Eight text classification datasets from the GLUE benchmark (using Flan-T5-base).
  • Healthcare QA: Four heterogeneous bilingual (English/Chinese) and multi-format (multiple-choice and open-ended generation) datasets—MedQA, CMExam, HealthcareMagic, and cMedQA2—evaluated by merging LoRA experts on Qwen2-7B-Instruct.

Key Insights and Ideas

  • Geometry explains merging failures: Across vision benchmarks, the authors found a direct empirical correlation: the further a merged model's weights deviate from an ideal simplex ETF geometry, the larger its accuracy drop compared to an oracle model.
  • Global coherence beats subspace isolation: Recent state-of-the-art data-free methods slice parameter space into separate subspaces to stop tasks from stepping on each other's toes. MDA shows that keeping a unified space and aligning directions globally preserves shared knowledge much better, especially as task counts scale up to 20.
  • Alignment acts as a structural regularizer: Through theoretical Rademacher complexity bounds, the authors prove that constraining weights and feature rotations to an ETF neighborhood shrinks the effective hypothesis space. Practically, this means aligned models don't just memorize seen tasks—they transfer better to completely unseen datasets.

Key Results

  • Scaling Vision Tasks (Data-Free): On ViT-B/32, MDA TA achieves 87.4%, 81.9%, and 77.3% average accuracy on 8, 14, and 20 tasks respectively—consistently beating strong SVD-based baselines like TSV (85.7%, 79.8%, 76.4%) and ISO-CTS (83.8%, 79.7%, 76.6%). Similar gains hold up to ViT-L/14 (93.6% on 8 tasks).
  • Zero-Shot Generalization: When merging six ViT-B/32 models and testing on two held-out tasks (MNIST and EuroSAT), MDA TA hits 66.6% unseen accuracy (vs. 59.1% for Task Arithmetic and 64.1% for TSV). Adding feature-space alignment (MDA AM) pushes seen accuracy to 87.5% and unseen accuracy to 67.5%.
  • 7B LLM Merging: When merging Qwen2-7B-Instruct LoRA experts across bilingual medical tasks, Task Arithmetic breaks open-ended text generation on cMedQA2 (dropping BLEU-4 from 9.77 pretrained down to 5.55). MDA TA preserves generative fluency while boosting accuracy, achieving top marks on MedQA (58.47% accuracy) and cMedQA2 (12.64 BLEU-4, 25.31 ROUGE-L) with zero inference overhead.

Limitations and Future Work

  • Computational Overhead: Optimizing $d \times d$ rotation matrices during feature-space alignment adds non-trivial compute cost for massive models, motivating lighter-weight alignment approximations.
  • Same-Architecture Constraint: Like most weight-fusion techniques, MDA requires all merged models to share the exact same architecture and pretrained initialization. Extending geometric alignment to cross-architecture or multimodal model merging—and testing its robustness under severe data distribution shifts—remains open for future work.

Summary updated

Abstract

Model merging has emerged as a practical paradigm for integrating multiple independently trained models into a single model without joint retraining. Prior work shows that parameter fusion techniques, such as parameter decomposition, coefficient optimization, and subspace learning, can achieve strong performance while avoiding the cost of joint training. However, these approaches largely treat merging as a parameter aggregation problem, implicitly assuming compatibility in the underlying directional structures. We argue that this assumption rarely holds. In practice, independently trained models often exhibit misaligned dominant directions in both parameter and feature spaces. Naïve merging can therefore disrupt structural coherence, leading to significant performance degradation, especially in heterogeneous settings such as healthcare, where models trained on tasks like medical QA or clinical text understanding develop distinct representational geometries. Moreover, coefficient-based methods rely on well-aligned feature directions, an assumption contradicted by insights from Neural Collapse, which suggest that class features follow structured yet model-specific directional patterns. In this work, we identify directional alignment as the key principle for effective model merging. We propose Merging with Directional Alignment (\method{}), a unified geometric framework that explicitly enforces consistency in directional structures across both parameter and feature spaces. Our analysis shows that directional alignment preserves structural coherence during merging, and extensive experiments across multiple benchmarks, including healthcare QA, demonstrate consistent improvements across model scales and task settings.
BibTeX
@inproceedings{chen2026geometry,
  author = {Zhikang Chen and Sen Cui and Deheng Ye and Min Zhang and Gang Niu and Yu Zhang and Masashi Sugiyama and Tingting Zhu},
  title = {{Geometry-Aware Directional Alignment for Coherent Model Merging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5rpJ5pgTQv},
}

Loading related content...

Figure