Approaching Effective Merging in Model Embedding Space

Wei Chen, Zhenyuan Dong, Qiang QiuNeurIPS 2026

TL;DR

Why does averaging two fine-tuned AI models usually produce gibberish instead of a multi-talented super-model? Because standard fine-tuning methods like LoRA update weights in misaligned, task-specific directions that clash when combined. This paper solves this by viewing pre-trained layers as autoencoders and restricting all fine-tuning to a shared, intrinsic bottleneck—a "model embedding space"—where merging models becomes clean, mathematically principled, and remarkably effective.

What Problem Does This Paper Address?

We live in an era of foundation model proliferation. Take one pre-trained checkpoint, apply Parameter-Efficient Fine-Tuning (PEFT) like LoRA, and suddenly you have thousands of specialized variants—one great at reading receipts, another at identifying birds, a third at medical reasoning.

Naturally, we want model merging: fusing these specialized checkpoints into a single, capable multi-task model without expensive multi-task retraining. The simplest approach is naive weight averaging, or adding "task vectors" together. Unfortunately, this often fails miserably. When you fine-tune with LoRA directly in the model's weight space, each task carves out its own arbitrary low-rank subspace. Because these subspaces aren't aligned, averaging them causes destructive interference, wrecking task performance and distorting the model's original pre-trained knowledge. The core missing piece is a shared geometric arena where updates from different tasks actually speak the same coordinate language.

Figure 2: (a) Conventional fine-tuning methods such as LoRA [28] directly operate in the model weight space, but the resulting updates ∆W typically reside in task-specific subspaces that differ across fine-tuning tasks. When the updates are not aligned, i.e., they span different subspaces, simply fusing or averaging these weights becomes ill-posed and may degrade performance. (b) In contrast, our method first encodes the weight space into a low-dimensional representation, which we define as model embedding space S, and constrains adaptation to occur only within S. This ensures that all updates ∆S lie in a common representational space, making direct merging of multiple adaptations meaningful. (c) Illustration of tuning model embedding space in multi-head attention (MHA). Model embeddings are denoted as ∆S(1), · · · , ∆S(H).

Methods

Instead of slapping low-rank updates onto raw weight matrices like LoRA does, the authors look inside the pre-trained model's existing geometry. They introduce two main innovations:

  1. The Model Embedding Space ($\mathcal{S}$): The authors reinterpret a frozen pre-trained layer as an autoencoder. Large pre-trained weights naturally project high-dimensional inputs down into a low-intrinsic-dimension latent bottleneck (via an "encoder" derived from the frozen weights) and project them back out (via a "decoder"). For example, in Multi-Head Attention, each attention head naturally projects features from model dimension $d$ down to head dimension $d_h$ ($W_v$), and projects back up ($W_o$). Instead of modifying the weights, the authors freeze the encoder/decoder and insert a tiny learnable matrix $\Delta \mathbf{S}$ right inside that low-dimensional bottleneck. Fine-tuning only updates $\Delta \mathbf{S}$ (initialized to zero), forcing all adaptations to live on the pre-trained model's intrinsic manifold.
  2. Aligned Subspace Merging: Even within $\mathcal{S}$, different tasks might emphasize slightly different directions. Rather than just taking a simple arithmetic average of task updates $\{\Delta \mathbf{S}_i\}$, the authors extract each update's row-space basis via Singular Value Decomposition (SVD), stack them, and run a second SVD to find the top-$r$ shared basis vectors $\mathbf{B}$. They project all task updates onto $\mathbf{B}$, average them cleanly in that aligned subspace, and project back. (Bonus: this alignment trick is data-free and can also be retrofitted onto standard LoRA checkpoints!)
Figure 1: (a) The pre-trained weights map features from the input space Rdi to the output space Rdo. (a-1) The most common fine-tuning approach, i.e., LoRA [28], is applied to the weight space ∆W ∈Rdo×di. (a-2) In our framework, we reinterpret the pre-trained model through an autoencoder perspective, where it transforms inputs to outputs via a pathway of low intrinsic dimension ri ≪di. Both the encoder Φ and decoder Ψ are derived solely from the pre-trained weights. We construct a model embedding space S ⊆Rro×ri in which adaptation to downstream tasks is performed only within this space. The detailed case design can be found in Section 2.5. (b) In S, the model adaptation and merging are more effective. While LoRA adapts a low-rank subspace of the weights to downstream data, it risks distorting the original pre-trained distribution. In contrast, our method facilitates updates while preserving the integrity of the pre-trained structure. Consequently, our merged model generates samples that align more closely with real data, whereas the LoRA model tends to exhibit distribution shifts that deviate from the pre-trained knowledge.

Datasets

No new benchmarks are introduced; the authors evaluate across standard toy, vision, and multimodal suites:

  • Controlled / Toy: SVHN (pre-trained on digits 0–5, adapted/merged on 6–9) and MNIST (masked-image reconstruction).
  • Vision (ViT): 8-task image classification benchmark (Cars, DTD, EuroSAT, GTSRB, MNIST, RESISC45, SUN397, SVHN), plus ImageNet for testing knowledge retention (with 14- and 20-dataset results in the appendix).
  • Multimodal LLMs: MM-MergeBench (built on LLaVA), evaluating 8 seen tasks (SciQA, ImageNet, VQA, REC, OCR, VizWiz, Flickr, IconQA) and 4 unseen zero-shot generalization tasks (AVQA, ImageNet-R, Screen2Words, TabMWP).

Key Insights and Ideas

  • Transformers already have built-in encoders and decoders: You don't need to train an autoencoder to find a model's intrinsic manifold—Multi-Head Attention's value ($W_v$) and output ($W_o$) projections already form a zero-reconstruction-error bottleneck!
  • Less is more for adaptation: Constraining updates to the bottleneck space doesn't handicap learning. On ViT-B/32, fine-tuning $\Delta \mathbf{S}$ beats LoRA's individual task accuracy while cutting trainable parameters nearly in half (0.58M vs. 1.18M).
  • Staying on the manifold prevents catastrophic forgetting: Because updates are sandwiched between frozen pre-trained projections, the merged model barely forgets its foundational knowledge—dropping only 0.15% Top-1 accuracy on ImageNet after merging 8 vision tasks, whereas full-parameter and LoRA merging drop 7.3% and 1.95%, respectively.
  • Plug-and-play compatibility: Existing merging algorithms (like Task Arithmetic, TSV, and ISO-C) immediately jump by ~2% accuracy simply by operating in $\mathcal{S}$ instead of LoRA weight space.

Key Results

  • Vision Merging (ViT-B/32 across 8 tasks): Simple arithmetic averaging in $\mathcal{S}$ beats LoRA averaging (53.48% vs. 50.97%). Adding Aligned Subspace Merging pushes accuracy to 64.82%, outperforming specialized weight-space mergers like KnOTS (60.50%) and Core (62.53%).
  • Multimodal LLMs (MM-MergeBench): On 8 seen tasks, $\mathcal{S}$ + Aligned Subspace achieves the highest average score of 58.75 (beating RobustMerge at 57.33 and LoRA averaging at 51.21), with ~10% jumps on ScienceQA and ImageNet. On 4 unseen tasks, it hits 39.73 (vs. 35.02 for LoRA averaging), showing strong cross-task transferability under distribution shifts.
  • SVHN Subspace Geometry: Measuring principal angles between task updates confirms that $\mathcal{S}$ naturally produces tightly aligned subspaces, achieving lower reconstruction MSE (13.56 vs. LoRA's 17.79) with far fewer parameters (16k vs. 84k).

Limitations and Future Work

  • Limitations: Specific methodological limitations are deferred by the authors to Appendix G, which is not included in the main text provided. However, one practical trade-off apparent from the main text is that leveraging the model embedding space $\mathcal{S}$ requires fine-tuning models using the proposed $\Delta \mathbf{S}$ formulation from the start—though their Aligned Subspace Merging step can still be applied to existing public LoRA checkpoints with competitive results.
  • Future Work: In their broader impact discussion, the authors highlight extending this shared-subspace framework beyond classification and MLLMs to concept composition in image generation, complex reasoning, continual learning, and federated learning across distributed clients.

Summary updated

Abstract

With the growing number of fine-tuned variants derived from pre-trained models, model merging emerges as a key challenge: effectively integrating task-specific adaptations while preserving performance. However, naive weight averaging often fails when parameter updates are misaligned, revealing the need for a structured space in which merging becomes principled. In this work, we hypothesize that pre-trained models possess an intrinsic low-rank structure. Specifically, we posit that the transformation from input to output is mediated by a latent bottleneck of low intrinsic dimensionality; we leverage this low-dimensional space to construct a model embedding space. This space ensures that fine-tuned updates, i.e., model embeddings, of all adaptations remain confined within the intrinsic structure of the pre-trained model. As model embeddings lie in the same low-dimensional space, model merging via direct averaging becomes more effective. Moreover, we further introduce an aligned subspace of these model embeddings to improve the efficacy of model merging. Experiments across vision and multimodal tasks, including ViT and multimodal LLMs, demonstrate that our approach enables effective model merging and provides a unified geometric view of adaptation and combination in pre-trained models.
BibTeX
@inproceedings{chen2026approaching,
  author = {Wei Chen and Zhenyuan Dong and Qiang Qiu},
  title = {{Approaching Effective Merging in Model Embedding Space}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=o8ovLEF82T},
}
Figure