TL;DR
This paper uncovers a fascinating paradox in model merging: why expensive, iterative optimization loops outperform exact mathematical closed-form solutions. By framing model merging as a noisy linear inverse problem, the authors show that iterative descent acts as an implicit spectral filter, and they leverage this insight to create SWUDI and SWUDI-A—closed-form spectral solvers that match or exceed state-of-the-art accuracy while delivering up to a 72× speedup and 50% memory savings.
What Problem Does This Paper Address?
Model merging allows researchers to combine multiple specialized "expert" neural networks (e.g., a vision expert, a math expert, and a coding expert) into a single multi-task model without needing any original training data.
State-of-the-art merging methods like WUDI and OptMerge do this by minimizing a quadratic proxy loss that models parameter interference between layers. Mathematically, this objective has an exact, closed-form minimum via a pseudoinverse solution. Paradoxically, plugging in this exact solution yields terrible downstream accuracy. Instead, practitioners have had to rely on running hundreds of iterations of gradient descent (like Adam or SGD) and stopping early. This iterative loop is incredibly expensive; for a 3B-parameter model, it can take 85 minutes and swallow 42 GB of GPU memory.
This paper addresses two core questions:
- Why does an incomplete iterative solver outperform the exact mathematical minimizer of the same objective?
- Can we replace this slow, resource-intensive optimization loop with an intelligent, regularized closed-form solution?
Methods
The authors demonstrate that model merging is fundamentally an ill-posed, noisy linear inverse problem ($\tau C = D$). The exact closed-form solution fails because the interference operator ($C$) contains a long tail of very small eigenvalues. Inverting these small eigenvalues drastically amplifies proxy noise, destroying model performance. Early-stopped gradient descent works because it implicitly acts as a spectral filter, updating large-eigenvalue directions first and stopping before the noise-amplifying tail can corrupt the weights.
Using this insight, the authors propose two explicit closed-form spectral filtering methods that require only a single symmetric eigendecomposition per linear layer:
- SWUDI (Spectrally Regularized WUDI): A closed-form solver that applies a two-factor spectral filter. It combines a soft exponential filter (which mathematically mirrors the trajectory of gradient flow) with a hard top-K truncation to completely zero out the noise-amplifying tail.
- SWUDI-A (Adaptive SWUDI): An upgrade that eliminates hyperparameter tuning. It uses the eigenspectrum of each individual layer to dynamically calculate the optimal rank cutoff ($K_\ell$). It employs a Participation-Square-Root rule for smoothly decaying, heavy-tailed spectra (common in LoRA) and a Marchenko–Pastur Gavish–Donoho rule for spiked-noise spectra (common in full-parameter tuning).
Datasets
The authors evaluated their methods across several established vision and language benchmarks, alongside a newly introduced multimodal benchmark:
- Vision: CLIP-ViT backbones (B/32, B/16, L/14) evaluated on the 8-task TA8 benchmark and a 20-task extension (TALL20).
- Language (LoRA): Flan-T5-base evaluated on eight GLUE tasks.
- Language (Full-Parameter): Llama-3.2-3B evaluated on MergeBench (covering math, code, instruction following, safety, and multilingual tasks).
- MLLMerging Benchmark (New): A comprehensive benchmark introduced by the authors to evaluate Multimodal Large Language Models (MLLMs). It aggregates 1.37M instruction-tuning samples across five core capabilities: VQA, Geometry, Chart understanding, OCR, and Grounding. It also features a modality-merging track combining separate vision, audio, and video experts.
Key Insights and Ideas
- Optimization as Regularization: The iterative loop in model merging doesn't succeed because it finds a better global minimum; it succeeds precisely because it fails to reach the minimum. It acts as an early-stopping spectral filter.
- The Danger of the Tail: Small eigenvalues correspond to directions that are weakly supported by any task vector. In these directions, proxy noise dominates, and full pseudoinversion blows this noise up exponentially.
- Spectral Heterogeneity: Eigenspectra vary drastically across different layers (e.g., attention layers vs. MLPs) and fine-tuning regimes (LoRA vs. full-parameter). A global truncation hyperparameter is fundamentally suboptimal, which makes layer-wise adaptive truncation rules essential.
Key Results
The proposed spectral solvers consistently match or outperform iterative methods while shifting the entire accuracy-cost Pareto frontier to the upper left.
- Massive Speedups: SWUDI/SWUDI-A achieve a 28× to 72× speedup in wall-clock time compared to iterative baselines. For example, on a Qwen2-VL-7B model, the merging step drops from nearly 4 hours to just 8 minutes.
- Memory Efficiency: By eliminating optimizer states and iterative workspaces, peak GPU memory usage is cut by up to 50% (e.g., dropping from 22 GB to 11 GB on Qwen2-VL-7B).
- Competitive Accuracy: On the Qwen2-VL LoRA capability merge, SWUDI-A achieves an average accuracy of 62.72%, outperforming iterative OptMerge (62.62%) and coming within 0.4 points of a costly joint mixture-training baseline.
Limitations and Future Work
- Linear Subspace Dependent: The underlying theory relies on the assumption that fine-tuned experts remain within a loose linear subspace around the base model. If experts undergo massive, highly non-linear parameter shifts during training, the quadratic proxy loss may break down.
- Computational Scaling of Eigendecomposition: While a single symmetric eigendecomposition per layer is vastly cheaper than hundreds of Adam steps, it scales cubically ($O(d_i^3)$) with the layer dimension. For extremely wide future architectures, this step could become a bottleneck.
- Future Directions: The authors suggest extending this explicit spectral perspective to test-time adaptation methods and dynamic, Mixture-of-Experts (MoE) style model merging.
Summary updated