Dynamic Model Merging Made Slim

arXiv:2605.18904 · cs.LG, cs.AI, cs.CL · Submitted 2026-05-17 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Hi, I'm Tom.

Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.

Tom: We're looking at the paper: "Dynamic Model Merging Made Slim".

Jane: Here's the gist of the paper. The gist The DiDi-Merging framework is a slim dynamic merging framework that leverages differentiable rank allocation to balance shared and expert parameters, achieving near-original accuracy with minimal overhead and outperforming prior dynamic baselines across vision, language, and multimodal tasks<ref:2605.18904#pg2>.

Tom: How it works DiDi-Merging addresses the two failure modes in existing dynamic merging methods by balancing shared and task-specific components through differentiable rank allocation<ref:2605.18904#pg3>.

Jane: It formulates parameter budgeting as differentiable rank optimization in low-rank modules and introduces a data-free refinement step to recover task fidelity<ref:2605.18904#pg5>.

Tom: The process involves three key steps: (1) Task vectors are statically merged into a shared knowledge vector, with per-task residuals as expert vectors (exact but parameter-heavy)<ref:2605.18904#pg6>, (2) Low-rank decomposition recasts parameter budgeting as a differentiable rank allocation problem, learned end-to-end against a task-vector reconstruction objective<ref:2605.18904#pg7>, and (3) The truncated low-rank parameters are refined in a data-free pass to recover task-specific performance<ref:2605.18904#pg8>.

Paper summary: Tom: So we’re moving on to summarizing this paper's core argument. The authors of "Dynamic Model Merging Made Slim" are proposing a slim dynamic merging framework that reuses fine-tuned models without joint training or access to original data, which is the whole thesis.

Jane: They claim they improved flexibility by selectively activating task-relevant parameters and efficiently composing experts across multiple tasks, but they point out that existing dynamic methods have problems because they either keep a full shared model with tiny experts or they allocate too much capacity to those experts.

Lu: DiDi-Merging specifically targets the balanced shared–expert router regime, where both the shared component and the per-task experts are kept small, which is achieved through differentiable rank optimization.

Meng: It seems like they’re trying to solve a specific trade-off problem that most dynamic merging papers struggle with when trying to balance parameter efficiency and accuracy.

Jane: They claim that by formulating parameter budgeting as differentiable rank optimization in low-rank modules and adding a data-free refinement step, DiDi-Merging matches prior dynamic baselines at only one point two four times the parameters of a single fine-tuned model and surpasses them at one point four times <ref:2605.18904#pg1,the parameters of a single fine-tuned model and surpasses them at>.

Tom: That's the big number here—matching or beating previous methods at just one point two four times the parameter count, which is substantially more compact than methods that require two times or more storage <ref:2605.18904#pg1,substantially more compact than methods>.

Jane: And they show this applies across vision, language, and multimodal tasks, which makes it a pretty comprehensive result for merging techniques.

Lu: The idea is that by decomposing the knowledge into low-rank modules and using learnable ranks to control how much information is kept in each module, you can achieve better parameter efficiency than fixed allocation methods.

Meng: So, the key mechanism here isn't just merging; it’s this differentiable rank optimization that lets the system decide dynamically how to allocate its budget between the shared knowledge and the task-specific parts.

Jane: It really is about making sure you don't waste capacity on a component when it’s not needed for a specific task, which is exactly what they are trying to achieve here.

Tom: So, the paper lays out this idea of balancing those two knowledge components using rank optimization as the central mechanism before showing the actual performance gains.

Conclusion: Tom: Wrapping up this discussion on "Dynamic Model Merging Made Slim," the authors are Guodong Du Wanyu Lin, and this framework is about using differentiable rank allocation to find the right balance between shared and expert parameters so you get near-original accuracy with minimal overhead.

Jane: The implication is that for deploying specialized AI models, this technique could drastically reduce both the storage costs and the serving costs associated with running collections of these models.

Lu: It means that we can deploy expert ensembles without having to retrain or exposing patient data, which is particularly promising in high-stakes multimodal scenarios like medical diagnosis.

Meng: It’s about lowering the barrier for deploying specialized models because you don't have to retain all that raw data just to use the merged version.

Jane: So, in simple terms, this paper shows a way to make dynamic model merging much more parameter efficient by using smarter ways to budget those parameters through differentiable rank optimization.

Guodong Du Wanyu Lin

The Hong Kong Polytechnic University

cs.LG, cs.AI, cs.CL

Submitted: 2026-05-17

Updated: 2026-10-20

Comments: Camera-ready version accepted at NeurIPS 2026. 38 pages including references, appendices, and checklist. Code: https://github.com/WanyuGroup/NeurIPS2026-DiDi-Merging

Code: https://github.com/WanyuGroup/NeurIPS2026-DiDi-Merging

License: http://creativecommons.org/licenses/by/4.0/

The gist: The gist The DiDi-Merging framework is a slim dynamic merging framework that leverages differentiable rank allocation to balance shared and expert parameters, achieving near-original accuracy with

Key concepts

Differentiable Rank Allocation
This technique treats parameter budgeting as an optimization problem where the optimal size (rank) for shared and expert modules is determined continuously. Instead of guessing ranks, the model learns them end-to-end by minimizing a loss function that balances reconstruction quality against a compression penalty.
Heavy Shared Knowledge
This approach involves merging task vectors into a single shared knowledge vector. The goal is to keep the shared component small while allocating more capacity to task-specific expert components, which are defined as the residuals between the full model and this shared representation.
Data-Free Parameter-Space Refinement
After initial low-rank truncation, a data-free refinement step is used to recover task fidelity. This process uses a lightweight optimization (like Adam) to update only the low-rank factors, allowing the system to regain performance lost during aggressive compression without needing access to the original training data.

Terminology

Summary

The gist The DiDi-Merging framework is a slim dynamic merging framework that leverages differentiable rank allocation to balance shared and expert parameters, achieving near-original accuracy with minimal overhead and outperforming prior dynamic baselines across vision, language, and multimodal tasks<ref:2605.18904#pg2>.

How it works

DiDi-Merging addresses the two failure modes in existing dynamic merging methods by balancing shared and task-specific components through differentiable rank allocation<ref:2605.18904#pg3>. It formulates parameter budgeting as differentiable rank optimization in low-rank modules and introduces a data-free refinement step to recover task fidelity<ref:2605.18904#pg5>. The process involves three key steps: (1) Task vectors are statically merged into a shared knowledge vector, with per-task residuals as expert vectors (exact but parameter-heavy)<ref:2605.18904#pg6>, (2) Low-rank decomposition recasts parameter budgeting as a differentiable rank allocation problem, learned end-to-end against a task-vector reconstruction objective<ref:2605.18904#pg7>, and (3) The truncated low-rank parameters are refined in a data-free pass to recover task-specific performance<ref:2605.18904#pg8>.

Key Mechanisms

((a) Heavy Shared Knowledge (b) Heavy Experts Knowledge (c) Balanced Shared–Expert)

The framework targets the balanced regime where both shared and expert components are kept small, which is achieved via differentiable rank optimization<ref:2605.18904#pg3>. This contrasts with prior methods that either keep a full-size shared model with tiny per-task experts or allocate excessive capacity to experts<ref:2605.18904#pg4>.

((b) Heavy Shared Knowledge (a) Heavy Experts Knowledge (b) Balanced Shared–Expert)

The core of the method involves decomposing both shared and expert knowledge into low-rank modules<ref:2605.18904#pg5>. The shared matrix Ms is obtained via static merging of the task vectors Tt, e.g., by averaging<ref:2605.18904#pg6>, and each expert matrix Mt is defined as the residual relative to the shared component<ref:2605.18904#pg6>. This decomposition is then subjected to Singular Value Decomposition (SVD) to obtain low-rank modules M˜(r)s and M˜(r)t<ref:2605.18904#pg5>.

Optimization and Refinement

((b) Differentiable Optimization of Ranks)

To efficiently determine the optimal rank of each shared and expert module in a layer, DiDi-Merging leverages a differentiable approach based on the smooth truncation of the singular values from the SVD of the matrix M<ref:2605.18904#pg5>. A smooth truncation function σ˜i = σi / (0.5 · tanh β(r − i) + 0.5) is used, where r is a learnable continuous rank parameter<ref:2605.18904#pg5>. Jointly minimizing a task reconstruction loss and a compression penalty yields a slim allocation for each module<ref:2605.18904#pg8>.

((c) Low-rank Module Update)

After obtaining the optimal rank allocation, LoRA-style modules are instantiated to recover performance lost from rank truncation<ref:2605.18904#pg8>. The task reconstruction loss Ltask is defined as the mean squared error over all tasks and layers between the reconstructed vector τ˜t,l and the original task vector τ t,l<ref:2605.18904#pg8>. This loss is minimized using a lightweight, data-free optimization with Adam to update only the LoRA factors At,lBt,l<ref:2605.18904#pg8>.

Performance and Efficiency

DiDi-Merging achieves superior performance across vision, language, and multimodal tasks by matching prior dynamic baselines at 1.24× the single-model parameter count and surpassing them at 1.4×<ref:2605.18904#pg8>. Across vision, language, and multi-modal (audio / video / point-cloud) tasks, DiDi-Merging retains ≥ 98% of fine-tuned accuracy at 1.24× the single-model parameter count<ref:2605.18904#pg8>. In LLM merging settings, DiDi-Merging consistently outperforms prior methods by +5.4% on average, with the largest gains on instruction-following benchmarks<ref:2605.18904#pg8>.

Comparative Advantages

The paper makes three contributions: (1) We identify two failure modes in existing dynamic merging methods (heavy shared and heavy expert), both stemming from one-sided shared/expert allocation<ref:2605.18904#pg8>. (2) We propose DiDi-Merging, a dynamic merging framework with differentiable rank allocation: ranks are jointly optimized for shared and per-task expert components against task-vector reconstruction targets, without access to original training data<ref:2605.18904#pg8>. (3) Across vision, LLM, and multimodal benchmarks, DiDi-Merging achieves near-lossless performance (≥ 98% retention) at a 1.24× parameter budget, smaller than every prior dynamic baseline<ref:2605.18904#pg8>.

Computational Cost and Scaling

The framework is computationally efficient; DiDi-Merging achieves the highest accuracy at a modest compute footprint (1.1 GB GPU memory; ∼10 min Find-Optimal-Rank + ∼4 min Low-rank Module Update), well below WUDIMerging’s 4.0 GB<ref:2605.18904#pg9>. The storage cost is decomposed into backbone, router, shared low-rank, and per-task experts<ref:2605.18904#pg8>. The analysis shows that the optimal ranks scale with module size and that the per-module ratio between the two budgets is roughly constant (∼1.7×), consistent with the linear scaling of the budget delta from 0.24× to 0.4×<ref:2605.18904#pg9>.

Broader Impact

DiDi-Merging reduces the storage and serving cost of multi-task systems, lowering the deployment barrier for collections of specialised models<ref:2605.18904#pg8>. This offers a path to deploy expert ensembles without retraining or exposing underlying patient data, which is particularly promising in high-stakes multimodal deployments such as medical diagnosis<ref:2605.18904#pg8>. The framework inherits the biases of its source checkpoints, but its efficiency allows for deployment in low-resource personalization and on-device multi-task inference<ref:2605.18904#pg8>.

Limitations

DiDi-Merging has three known limitations: First, we evaluate under the ideal router setting (task identity at inference; §3.1); learning a router from raw inputs is orthogonal future work, and the reported numbers should be read as an upper bound on capacity utilization<ref:2605.18904#pg8>. Second, while merging is data-free, it requires storing the fine-tuned task vectors Tt (and thus the fine-tuned checkpoints), so the pipeline cannot run in storage-constrained settings where checkpoints are not retained<ref:2605.18904#pg8>. Third, the Find-Optimal-Rank stage is sequential per task (∼10 min on 8 tasks; Tab. 7) and is the dominant wall-clock cost<ref:2605.18904#pg8>.

Data and Code Availability

The code will be released upon acceptance<ref:2605.18904#pg32>. All datasets used in the paper are public benchmarks (image classification, GLUE, AudioCaps, ScienceQA, ModelNet40, etc.); the appendix lists their sources<ref:2605.18904#pg32>. The method, hyperparameters, and baselines are fully described in the main paper and appendix so that the experiments can be reproduced from the manuscript alone<ref:2605.18904#pg32>. All datasets used in the paper are public benchmarks (image classification, GLUE, AudioCaps, ScienceQA, ModelNet40, etc.); the appendix lists their sources<ref:2605.18904#pg32>. The method, hyperparameters, and baselines are fully described in the main paper and appendix so that the experiments can be reproduced from the manuscript alone<ref:2605.18904#pg32>. The code will be released upon acceptance<ref:2605.

Improvements for AI systems

  1. Precise Parameter Allocation for Efficiency: The system can balance shared and expert parameters using differentiable rank allocation to match prior dynamic baselines at 1.24x or surpass them at 1.4x, substantially more compact than methods requiring two times the storage of a single fine-tuned model.

  2. Data-Free Task Fidelity Recovery: The system employs a data-free refinement step to recover task fidelity after low-rank truncation by using the stored task vectors as reconstruction targets, ensuring near-lossless performance at 1.24x the parameter count.

  3. Adaptive Knowledge Representation: Instead of heavy shared or heavy expert regimes, the system represents both shared and expert knowledge as low-rank modules with flexible rank allocation that adapts capacity to task similarity via an optimal shared rank ratio learned through differentiable optimization.

  4. Robust Performance Across Modalities: The framework achieves near-lossless performance (≥ 98% retention) across vision, language, and multimodal tasks, including MLLMs like audio and video, demonstrating that shared knowledge across modalities provides additional information that enhances model performance.

  5. Scalable PEFT Merging: The method extends seamlessly to PEFT settings where each fine-tuned model is parameterized as LoRA adapters; it merges these adapters dynamically while preserving near-lossless performance with a slim parameter footprint.

Abstract

Model merging consolidates independently fine-tuned checkpoints without joint training or access to task data. Dynamic methods retain task-specific capacity, but must divide a limited storage budget between shared and expert parameters. We propose DiDi-Merging, which jointly allocates low-rank capacity to these components through differentiable rank selection, followed by data-free parameter-space refinement. On the eight-task ViT-B/32 benchmark, the small configuration reaches 89.3% average accuracy (98.7% normalized retention) at 1.24x the storage of one backbone, including that backbone; the medium configuration reaches 89.8% at 1.4x. Removing refinement reduces the medium configuration by 4.3 percentage points, while static-merge plus uniform-recovery controls are 4.7-8.9 points below the small configuration. Additional evaluations cover language and multimodal models at their separately reported budgets. The main results assume known task identity; practical routing and accuracy under larger task counts at fixed capacity remain distinct evaluation questions. Code is available at https://github.com/WanyuGroup/NeurIPS2026-DiDi-Merging.

Sources

Related papers