Organizations: University of British Columbia · Independent Researcher · Technische Universität Darmstadt · Northwestern University · University of Toronto · Token Canopy · University of California, Los Angeles
Model merging combines experts fine-tuned from a shared backbone, such as LoRA adapters of a large language model, into one multi-task model without further training. Existing methods apply one rule to every task, yet the accuracy they lose is uneven across tasks. We show that the lost accuracy remains recoverable from each task's residual, its task vector minus the merged update, and that a task's validation headroom, the share of its expert validation accuracy the merge loses, indicates where recovery pays off. Residuals from different tasks interfere, so they must be merged rather than summed. We propose HR-Merge, a training-free wrapper around any merging method. It weights each residual by its task's headroom, re-merges the weighted residuals with the base operator, and adds the result back at a strength selected on validation, falling back to the base merge when no strength helps. On six NLI adapters of LLaMA-3 8B, HR-Merge lifts TIES from 93.29 to 94.29 normalized accuracy, above all tested bases, mainly by recovering its weakest task. In vision, on three CLIP backbones, up to 20 tasks, and LoRA merging, it generally improves or preserves base accuracy and yields the best model in every setting.
Figures & tables
Figure 1: The HR-Merge pipeline. HR-Merge wraps a base merging method, re-merging headroom-weighted residuals and adding them back at a fail-closed strength.
Figure 2: The three motivating observations, all on the DC-Merge base. (a) Accuracy recovery versus residual budget k (normalized, ViT-B/32, 8 tasks): the sacrificed accuracy is recoverable from a small fraction of the residual. (b) Cross-task interference: each entry (i,j) is the accuracy change on task j from adding back task i ’s top- 10% residual; self-patches (diagonal, blue) help, while cross-task patches (red) hurt. (c) Gain under headroom weighting: one point per task, validation headroom gt against test gain, pooled over nine cells and colored by backbone.
ΔM0
=M({Δt}t=1T),θ0=θ0+α0ΔM0.
(6)
Algorithm 1 Headroom-weighted residual refinement in HR-Merge
Method
LoRA space
SNLI
MNLI
SICK
QNLI
RTE
SciTail
Avg
Abs. accuracy (experts)
92.50
90.31
91.58
94.49
89.86
96.52
92.54
TSV
Full
94.71
97.15
84.29
85.20
99.19
97.12
92.94
+ HR
Full
94.82
97.32
84.87
85.66
99.19
97.17
93.17 (+0.23)
TIES
Full
95.48
96.31
83.71
69.56
100.81
96.93
90.46
KnOTS
87.89
94.09
90.34
85.03
100.00
97.03
92.40
Core
92.12
93.54
93.43
83.63
99.19
97.81
93.29
Table 1: Per-task test normalized accuracy on the six-task NLI LoRA benchmark with LLaMA-3 8B. Shaded rows apply HR-Merge to the base above them; parentheses give the gain in average normalized accuracy.
Method
ViT-B/32
ViT-B/16
ViT-L/14
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
Zero-shot
48.12
57.12
56.04
55.45
61.32
59.74
65.39
68.59
65.50
Individual
90.51
89.56
90.45
92.68
91.64
92.39
94.10
93.33
94.05
Weight Avg.
Base
65.34(72.6)
64.13(71.7)
60.86(67.9)
71.82(77.4)
69.41(75.4)
65.37(70.9)
79.19(84.1)
76.77(81.8)
71.67(76.2)
+ HR
67.02(74.2)
66.89(74.3)
60.86(67.9)
72.53(78.2)
70.94(77.1)
65.60(70.9)
80.52(85.5)
78.13(83.5)
75.70(80.2)
Task Arith.
Base
69.99(77.1)
65.09(72.6)
61.21(68.2)
75.50(81.1)
70.59(76.6)
65.85(71.4)
83.90(88.9)
79.47(84.7)
73.89(78.4)
Table 2: Test-split absolute accuracy under full fine-tuning. Parenthesized subscripts report normalized accuracy. Six base methods are shown with their HR-Merge variants. Bold marks an improvement over the paired base. Identical paired cells return the base model with α1⋆=0 . The symmetric Iso-CTS variant returns the base in every setting and is omitted. The dagger and shading mark the main configuration. Zero-shot and Individual are our evaluations.
Figure 3: Per-task test normalized accuracy of two vision LoRA cells on ViT-B/32, with the change above each pair (bold for gains). Table 8 lists all twelve cells.
ViT-B/16
Stage-1 weighting
8 tasks
14 tasks
20 tasks
uniform ( wt=1 )
+0.03
+0.13
+0.01
hard selection
+0.09
+0.18
+0.33
soft, fixed τ=0.2
+0.14
+0.22
+0.31
headroom, permuted †
+0.04
+0.10
+0.02
HR-Merge (adaptive τ )
+0.23
+0.45
+0.92
Table 3: Stage-1 weighting ablation on ViT-B/16: gain in normalized accuracy over the DC-Merge base. † Mean over three random reassignments of the HR-Merge weights across tasks (Appendix K ).
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8
ViT-B/32
ViT-B/16
ViT-L/14
Base
c
8t
14t
20t
8t
14t
20t
8t
14t
20t
Weight Avg.
2.4
T1 /.10
T1 /.20
T1 /.00
T1 /.15
T1 /.30
T1 /.15
T1 /.20
T1 /.25
T1 /.15
Task Arith.
1.4
.23/.00
.13/.05
.07/.00
.27/.05
.13/.00
.07/.00
.30/.00
.17/.00
.13/.05
TIES
0.3
1.0/.00
1.0/.10
.63/.00
1.0/.00
1.0/.00
.93/.15
1.0/.10
.97/.15
1.0/.10
TSV-M
1.4
1.0/.00
0.9/.10
0.9/.15
1.0/.00
1.0/.10
1.0/.10
1.1/.15
1.0/.20
1.0/.20
Iso-CTS (sym. M1 )
1.4
1.5/.00
1.2/.00
1.1/.00
1.6/.00
1.2/.00
1.1/.00
1.9/.00
1.5/.00
1.2/.00
Appendix
Table 4: Per-cell coefficients for every base method as base scale over refinement strength ( α0/α1⋆ ), with the per-method temperature constant c . Weight averaging fixes α0=1/T by definition; α1⋆=.00 entries are fail-closed fallbacks. TIES’s c is calibrated on B/32 14-task via the flat-cell fallback rule (Section 5.2 ).
Operator
Space
α0
α1⋆
Base
+HR
Δ
TSV
Full
0.7
0.40
92.94
93.17
+0.23
KnOTS
0.3
0.03
91.45
91.48
+0.03
Core
0.5
0.00
94.19
94.19
0.00
TIES
Full
0.9
0.50
90.46
90.96
+0.50
KnOTS
0.9
0.15
92.40
92.38
−0.02
Core
1.1
0.40
93.29
94.29
+1.00
Appendix
Table 5: Coefficients and test normalized accuracy of the LLaMA-3 NLI cells. Bold marks the best model and underline the strongest base; where validation selects α1⋆=0 , HR-Merge returns the base. Full denotes the complete LoRA parameter space, not full fine-tuning. We use c=1.4 throughout, so τ=c⋅std(g) varies only with the headroom spread of each cell.
Operator
Space
α0
c
α1⋆
Δ
TSV+Iso-C
Full
4.4
0.1
0.10
+0.12
KnOTS
4.4
0.1
0.00
0.00
Core
0.9
0.1
0.40
+0.78
CART+Iso-C
Full
3.0
1.9
0.40
+1.78
KnOTS
2.0
1.9
0.00
0.00
Core
5.1
0.1
0.00
0.00
Appendix
Table 6: Coefficients of all twelve cells of the 8-task vision LoRA suite (Section 7.2.2 ); Δ is the test normalized gain over the paired base at the same α0 .
Task
Base
+HR-Merge
Δ
gt
wt
SNLI
92.12
92.13
+0.01
0.078
0.84
MNLI
93.54
92.91
−0.63
0.061
0.64
SICK
93.43
94.30
+0.87
0.069
0.72
QNLI
83.63
90.02
+6.39
0.160
3.07
RTE
99.19
99.19
+0.00
0.031
0.39
SciTail
97.81
97.17
−0.64
0.022
0.34
Appendix
Table 7: Per-task breakdown of Core-space TIES on the LLaMA-3 8B NLI benchmark. The table combines test normalized accuracy with validation headroom gt and residual weight wt .
Method
Space
Cars
DTD
EuroSAT
GTSRB
MNIST
RESISC45
SUN397
SVHN
Avg
Abs. accuracy (experts)
74.0
58.3
99.0
92.7
99.3
88.4
64.5
96.2
84.05
TSV+Iso-C
Full
80.20
82.11
61.99
65.80
66.43
80.24
99.30
42.57
72.33
+ HR (Full)
80.25
81.29
61.84
66.91
66.84
79.83
99.25
43.38
72.45 (+0.12)
KnOTS
80.54
83.39
56.19
75.18
68.10
79.87
98.44
50.24
73.99
Core
82.93
85.12
50.88
84.30
71.03
84.21
99.29
53.57
76.42
+ HR (Core)
83.02
84.76
60.83
77.07
76.22
82.90
99.19
53.62
77.20 (+0.78)
Appendix
Table 8: Per-task test normalized accuracy for all twelve cells of the eight-task Vision LoRA suite. A HR-Merge row appears for each active cell. Cells without one select α1⋆=0 and return their base model.
Figure 6: Gain of HR-Merge over each base method of Table 2 , in test normalized accuracy. Grey cells select α1⋆=0 and return the base; bold marks a gain.
Task
ViT-B/32
ViT-B/16
ViT-L/14
Base
+ HR
Δ
Base
+ HR
Δ
Base
+ HR
Δ
KMNIST
74.95
77.59
+2.6
67.62
84.16
+16.5
90.43
88.78
−1.6
SVHN
76.45
91.39
+14.9
84.90
89.69
+4.8
90.42
95.43
+5.0
Cars
56.26
59.67
+3.4
69.44
70.91
+1.5
85.92
86.21
+0.3
CIFAR100
69.65
69.37
−0.3
74.01
74.75
+0.7
83.65
84.57
+0.9
SUN397
66.91
67.13
+0.2
70.32
70.84
+0.5
76.38
76.64
+0.3
Appendix
Table 9: Absolute per-task accuracy of DC-Merge and HR-Merge on the 20-task suite, sorted by the ViT-B/16 gain.
Setting
n
b
c
p
ρ^
w/o SVHN
B/32, 8
87,433
2620
1022
10−159
4.2%
0.063
B/32, 14
155,197
3997
1461
10−268
3.5%
8×10−6
B/32, 20
252,268
7117
3386
10−296
4.2%
0.048†
B/16, 8
87,433
916
367
10−54
1.5%
0.85†
B/16, 14
155,197
2242
933
10−123
2.0%
10−37
B/16, 20
252,268
5033
2533
10−185
3.0%
10−58
Appendix
Table 10: Exact two-sided McNemar test of HR-Merge against its DC-Merge base, pooled over the test images of each setting. b counts images only HR-Merge classifies correctly, c those only the base does, and ρ^=(b+c)/n is the test disagreement rate. The last column gives the p -value without SVHN. † Here c>b .
All tasks
Without SVHN
Setting
Tasks ↑ / ↓
Median Δt
Δ
p
Δ
p
B/32, 8
3/5
−0.13
+0.57±0.20
<10−4
−0.20±0.23
0.085
B/32, 14
5/9
−0.08
+0.83±0.12
<10−4
+0.20±0.13
0.002
B/32, 20
9/11
−0.09
+0.85±0.12
<10−4
+0.09±0.13
0.18
B/16, 8
3/5
−0.08
+0.23±0.11
<10−4
−0.05±0.12
0.43
B/16, 14
7/7
+0.01
+0.45±0.10
<10−4
+0.28±0.10
<10−4
Appendix
Table 11: Task-level view of the same runs: tasks improved/declined, median per-task change, and mean normalized change (equal task weights, as in Table 2 ) with a task-stratified 95% interval and p -value.
8 tasks
14 tasks
20 tasks
seed 0
+0.10 (0.10)
+0.00 (0)
+0.00 (0)
seed 1
+0.00 (0)
+0.29 (0.30)
+0.00 (0)
seed 2
+0.01 (0.05)
+0.00 (0)
+0.06 (0.05)
summed
+0.00 (0)
+0.00 (0)
+0.00 (0)
single stage
−6.58 (1.4)
−4.39 (1.5)
–
HR-Merge
+0.23 (0.25)
+0.45 (0.35)
+0.92 (0.45)
Appendix
Table 12: Stage-1 controls on ViT-B/16: test gain in normalized accuracy over the DC-Merge base, with the selected α1⋆ in parentheses (for the single-stage variant, the re-selected α0 ). The seeds permute the HR-Merge weights across tasks; the other two controls are described in the text.
Tasks
10%
25%
50%
100%
8
+0.31 ( +0.00 )
+0.74 ( +0.55 )
+0.70 ( +0.62 )
+0.59
14
+0.45 ( +0.14 )
+0.49 ( +0.33 )
+0.78 ( +0.73 )
+0.83
20
+0.60 ( +0.35 )
+0.89 ( +0.84 )
+0.84 ( +0.76 )
+0.85
Appendix
Table 13: Validation budget on ViT-B/32: test gain in normalized accuracy over the DC-Merge base when the headroom and α1 use a random fraction of every validation split. Each entry is the mean over three subsamples, with the smallest in parentheses; the 100% column is the deployed run, which uses no subsample.
Std. across tasks ( ↓ )
Worst task ( ↑ )
Bottom quartile ( ↑ )
Setting
Base
+ HR
Base
+ HR
Base
+ HR
DC-Merge, B/32, 8 tasks
3.36
2.81
87.96
89.58
89.21
90.43
DC-Merge, B/32, 14 tasks
6.43
5.47
77.99
81.88
82.91
85.33
DC-Merge, B/32, 20 tasks
7.91
6.94
71.96
76.32
77.45
79.90
DC-Merge, B/16, 8 tasks
2.19
1.88
92.84
93.37
93.36
93.91
DC-Merge, B/16, 14 tasks
4.20
3.78
85.88
88.20
88.51
89.54
Appendix
Table 14: Imbalance of per-task test normalized accuracy before and after HR-Merge. The bottom quartile averages the worst ⌈T/4⌉ tasks of each model. Bold marks an improvement. None of these statistics enters the strength selection, which maximizes the mean.
Figure 7: Headroom against recoverability on DC-Merge with eight tasks, one point per task. (a) Accuracy recovered by adding back the task’s top- 10% residual alone; the dashed line is full recovery. (b) Gain of the same patch on its own task divided by the mean damage it causes to the other tasks.
Reported
Ours
Eight tasks
Experts
Joint MTL
Experts
HR-Merge
ViT-B/32
90.5
88.9
90.51
85.21
ViT-L/14
94.2
93.5
94.10
92.55
Appendix
Table 15: Average absolute test accuracy of individual experts and of one model trained jointly on all eight tasks, as reported by Yang et al. (2024b) , next to our experts and the DC-Merge variant of HR-Merge.
Setting
mintnt
ρ^
ε
εnorm
ViT-B/32, 8 tasks
376
4.2%
8.14
9.79
ViT-B/32, 14 tasks
102
2.5%
14.27
15.81
ViT-B/32, 20 tasks
102
2.2%
11.81
13.28
ViT-B/16, 8 tasks
376
0.9%
6.83
7.87
ViT-B/16, 14 tasks
102
1.1%
13.51
14.55
ViT-B/16, 20 tasks
102
1.9%
11.39
12.40
Appendix
Table 16: Slack of the bound over tasks on our validation splits: ε in accuracy points, εnorm in normalized points.
Model merging combines separately fine-tuned models by adding their task vectors to a shared backbone. Interference is typically assessed only after constructing and evaluating a candidate merge, making coefficient search expensive. We show that a first-order directional derivative of task A's outputs along task B's vector can predict interference, but only when evaluated at the appropriate model. At the receiver model, this derivative forecasts nearby merges per task and per example, halves the accuracy error of a no-change baseline, and identifies most examples whose predictions flip. For full multi-task merges, a single evaluation is insufficient; two evaluations along the merge path are needed. At the shared pretrained backbone, however, the derivative is nearly orthogonal to realized changes in our vision experiments and only partly predictive in LoRA language-model pilots. Controls link this failure to displacement along the receiver's own task vector, not simply parameter distance; the mismatch appears within the first few dozen fine-tuning steps. Freezing receiver-local responses produces a surrogate affine in the merge coefficients. We use it to construct LR-Merge, a label-free correction that optimizes coefficients through convex teacher matching on unlabeled probes, without backpropagation through merged networks. LR-Merge improves all tested closed-form, isotropic, and sparsified base mergers, with gains generally increasing as more tasks are merged. Using pretrained rather than receiver-local responses instead degrades the base merge. LR-Merge matches exact teacher matching through a merged network, which takes roughly three times longer to converge and performs similarly at an equal compute budget. Once built, the surrogate answers new coefficient and task-subset queries in seconds.
Ido Nitzan Hidekel, Dan Raviv
School of Electrical and Computer Engineering, Tel Aviv University
Model merging combines multiple task-specific expert models into a single model. However, merging preserves expert capabilities unevenly across tasks. This imbalance is particularly pronounced in large-scale settings, where some tasks can suffer severe capability losses even when average accuracy remains high. To address this imbalance, we introduce Recovery-aware Task Weighting (RaTW), a model merging framework that assigns larger weights to tasks whose expert capabilities are poorly retained by an initial merged model. We quantify these recovery opportunities as the fraction of a task's labeled validation samples that its expert predicts correctly but the initial merged model gets wrong, and use the resulting task weights to re-merge the experts. To evaluate merging at large scale, we construct CLIPMerge-100, a 100-task benchmark with task-specific experts on CLIP ViT-L/14 and ViT-B/32. Across eleven merging methods with 20, 50, and 100 tasks on two CLIP backbones, RaTW improves both mean accuracy and tail20 (the mean expert-normalized accuracy of the 20% worst-retained tasks) in all 33 ViT-L/14 settings and 32 of 33 ViT-B/32 settings. We further introduce ReForge++, which combines RaTW with iterative model refinement and outperforms all evaluated baselines, including a matched-budget control, in both mean accuracy and tail20 across all settings.
Kaiyang Li, Shaobo Han, Boming Chen +2
University of Connecticut · NEC Laboratories America
Model merging combines independently fine-tuned checkpoints without joint multi-task training. In the era of foundation-model, fine-tuning with Low-Rank Adaptation (LoRA) is prevalent, making LoRA merging a promising target. Existing approaches can work in homogeneous settings where all target tasks are classification but often fail when tasks span classification and regression. Approaches using entropy-based surrogates do not apply to regression and are costly for large language models due to long token sequences. We introduce Null-Space Compression (NSC) Merging, a label-free, output-agnostic method that sets merge weights from adapter geometry. Our key observation is that during LoRA finetuning the down-projection factor A in ΔW=BA compresses its null space, and the compression correlates with performance. NSC uses this as an optimization signal for merging that can generalize across classification, regression, and sequence generation. NSC achieves state-of-the-art performance across twenty heterogeneous vision tasks with balanced gains where prior methods overfit subsets of tasks. It also outperforms baselines on six NLI benchmarks and on vision-language evaluations for VQA and image captioning, demonstrating scalability and effectiveness.