Large-scale Model Merging via Recovery-aware Task Weighting
Organizations: University of Connecticut · NEC Laboratories America
Abstract
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.
Figures & tables
| Mean | tail20 | Mean | tail20 | Mean | tail20 | ||||||||||||||
| Method | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | |||||||
| Zero-shot CLIP | 65.61 | 32.6 | 53.20 | 13.4 | 48.11 | 12.1 | |||||||||||||
| Expert average | 93.70 | 100.0 | 92.18 | 100.0 | 89.79 | 100.0 | |||||||||||||
| Aggregation | Task Arithmetic [ 10 ] | 73.30 | 76.04 | 44.0 | 66.9 | 58.82 | 59.59 | 17.5 | 24.3 | 51.64 | 51.91 | 14.3 | 16.9 | ||||||
| Fisher [ 16 ] | 73.47 | 74.74 | 50.7 | 64.6 | 57.19 | 58.05 | 15.7 | 18.4 | 50.34 | 51.69 | 12.1 | 14.7 | |||||||
| Mean | tail20 | Mean | tail20 | Mean | tail20 | ||||||||||||||
| Method | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | Native | +RaTW | |||||||
| Zero-shot CLIP | 55.65 | 22.0 | 46.66 | 9.1 | 42.05 | 9.3 | |||||||||||||
| Expert average | 89.15 | 100.0 | 88.68 | 100.0 | 85.69 | 100.0 | |||||||||||||
| Aggregation | Task Arithmetic [ 10 ] | 61.62 | 61.21 | 33.0 | 41.4 | 48.64 | 48.69 | 10.1 | 13.2 | 43.17 | 43.21 | 10.7 | 11.3 | ||||||
| Fisher [ 16 ] | 62.03 | 62.54 | 30.7 | 41.7 | 49.28 | 49.51 | 9.7 | 13.0 | 43.34 | 43.98 | 10.2 | 12.4 | |||||||
| (a) Effects of weighting and hyperparameters | |||
| Setting | Weights only | Hyperparam. only | Both (+RaTW) |
| ISO-CTS 20 | +0.45 / +3.6 | 1.15 / 4.7 | +1.27 / +15.1 |
| ISO-CTS 50 | +1.54 / +7.7 | 0 / 0 | +1.54 / +7.7 |
| RegMean 20 | +1.97 / +16.3 | 0.04 / +0.0 | +1.86 / +16.6 |
| RegMean 50 | +1.49 / +10.7 | 0 / 0 | +1.49 / +10.7 |
| ViT-L/14 | ViT-B/32 | |||||||||||||
| Statistics | Method | Rounds | Mean | tail20 | Mean | tail20 | Mean | tail20 | Mean | tail20 | Mean | tail20 | Mean | tail20 |
| DF-stat | ReForge | 1 | 89.96 | 89.3 | 83.29 | 70.4 | 72.45 | 38.6 | 80.10 | 74.2 | 70.15 | 46.5 | 61.19 | 29.3 |
| ReForge | 3 | 90.27 | 90.4 | 84.37 | 74.6 | 73.20 | 40.1 | 80.46 | 76.6 | 70.71 | 49.0 | 61.57 | 30.2 | |
| ReForge++ | 1 | 90.82 | 93.3 | 84.72 | 79.8 | 73.58 | 45.4 | 81.91 | 85.7 | 71.56 | 56.0 | 62.04 | 34.2 | |
| ReForge++ | 3 | 91.02 | 93.8 | 85.31 | 80.9 | 74.54 | 46.9 | 82.38 | 86.7 | 72.08 | 56.0 | 62.41 | 34.0 | |
| InternVL2.5-1B | Qwen2-VL-7B | |||
| Method | Native | +RaTW | Native | +RaTW |
| Task Arithmetic | 68.93 / 66.2 | 70.62 / 74.7 | 82.56 / 72.2 | 83.63 / 85.7 |
| TIES | 70.31 / 70.7 | 70.48 / 71.7 | 84.94 / 88.4 | 85.18 / 89.8 |
| OptMerge | 67.74 / 63.1 | 68.53 / 68.8 | 85.16 / 90.9 | 85.66 / 92.9 |
| ReForge-DF | 71.50 / 72.6 | 71.82 / 73.4 | 85.50 / 90.6 | 85.99 / 93.3 |
| ReForge-DA | 74.05 / 78.3 | 74.95 / 83.8 | 87.10 / 96.2 | 87.30 / 97.7 |
Appendix figures & tables18 assets
Supplementary material from the paper’s appendix.
Appendix
| Split rule | Split size | Expert acc. | ||||||||||
| Task | Set | Source | Test | Val | Train | Val | Test | Dups | ND | L/14 | B/32 | Sub. |
| sun397 | 20 | tg/sun397 | P | R | 17,865 | 1,985 | 19,850 | 0/0/0 | 0.3 | 82.22 | 73.27 | 1000 |
| stanford-cars | 20 | tg/stanford_cars | P | R | 7,337 | 784 | 8,041 | 15/4/4 | 0.2 | 92.07 | 73.29 | 784 |
| resisc45 | 20 | tg/resisc45 | P | R | 17,008 | 1,890 | 6,300 | 1/1/0 | 0.0 | 97.08 | 94.78 | 1000 |
| eurosat | 20 | tg/eurosat | P | R | 19,440 | 2,160 | 2,700 | 0/0/0 | 2.7 | 99.44 | 99.11 | 1000 |
| svhn | 20 | ufldl-stanford/svhn | P | R | 65,931 | 7,326 | 26,032 | 0/0/0 | 3.4 | 97.87 | 97.05 | 1000 |
| Split rule | Split size | Expert acc. | ||||||||||
| Task | Set | Source | Test | Val | Train | Val | Test | Dups | ND | L/14 | B/32 | Sub. |
| fgvc_aircraft | 100 | cb:fgvc_aircraft | P | R | 3,034 | 300 | 3,333 | 0/0/0 | 0.1 | 58.90 | 36.27 | 300 |
| country211 | 100 | cb:country211 | P | R | 28,485 | 3,165 | 21,100 | 0/0/0 | 1.0 | 36.16 | 18.71 | 1000 |
| clevr_count | 100 | cbv:clevr_count_all | P | R | 56,700 | 6,300 | 15,000 | 0/0/0 | 0.5 | 96.00 | 91.67 | 1000 |
| dmlab | 100 | cbv:dmlab | P | P † | 58,994 | 22,628 | 22,735 | 0/0/0 | 0.1 | 78.04 | 71.02 | 1000 |
| dsprites_location | 100 | cbv:dsprites_label_x_position | P | R | 525,174 | 58,601 | 73,728 | 3,088/2,580/381 | 100.0 | 99.99 | 99.98 | 1000 |
| Backbone | |||
| ViT-L/14 | 87.74 / 82.7 | 77.51 / 50.3 | 68.16 / 31.8 |
| ViT-B/32 | 73.63 / 56.6 | 64.24 / 31.2 | 56.30 / 22.2 |
| Method | Candidate configurations | |
| Task Arithmetic | . | 13 |
| Fisher | . | 10 |
| TIES | Sum: . Mean: . Here is the trimming threshold. | 71 |
| TSV-M | . | 15 |
| ISO-CTS | , where is the common-space fraction. | 57 |
| RegMean | . | 28 |
| Variable | Per | # | Range | Scale |
| Task-vector scale | segment | 3 | linear | |
| , stacked q/k/v projection | segment | 3 | log | |
| , attention output | segment | 3 | log | |
| , MLP fc1 | segment | 3 | log | |
| , MLP fc2 | segment | 3 | log |
| head80 | tail20 | head80 | tail20 | head80 | tail20 | ||||||||
| Method | Native | +RaTW | Native | +RaTW | Native | +RaTW | |||||||
| ViT-L/14 | |||||||||||||
| Aggr. | Task Arithmetic | 86.8 | 84.4 | 75.1 | 74.4 | 67.4 | 67.0 | ||||||
| Fisher | 85.5 | 81.6 | 73.3 | 72.5 | 66.1 | 66.0 | |||||||
| TIES | 87.9 | 86.0 | 75.3 | 75.3 | 68.0 | 67.9 | |||||||
| Method | Mean | tail20 | Mean | tail20 | Mean | tail20 |
| Task Arithmetic | 0.41 [ 0.56, 0.26] | +8.4 [+7.8, +9.0] | +0.05 [ 0.09, +0.19] | +3.0 [+2.8, +3.3] | +0.04 [ 0.04, +0.12] | +0.7 [+0.5, +0.8] |
| Fisher | +0.51 [+0.31, +0.71] | +11.0 [+10.0, +12.0] | +0.23 [+0.08, +0.38] | +3.3 [+3.1, +3.6] | +0.63 [+0.51, +0.75] | +2.2 [+2.0, +2.4] |
| TIES | +0.16 [ 0.02, +0.33] | +15.5 [+14.9, +16.1] | +0.30 [+0.11, +0.49] | +4.8 [+4.4, +5.1] | +0.03 [ 0.07, +0.13] | +1.8 [+1.7, +2.0] |
| TSV-M | +1.74 [+1.60, +1.89] | +14.5 [+13.8, +15.1] | +1.01 [+0.86, +1.15] | +9.3 [+8.9, +9.7] | +0.34 [+0.23, +0.45] | +1.9 [+1.6, +2.4] |
| ISO-CTS | +1.27 [+1.07, +1.46] | +15.1 [+14.6, +15.7] | +1.54 [+1.41, +1.68] | +7.7 [+7.3, +8.2] | +0.63 [+0.49, +0.77] | +3.4 [+3.2, +3.6] |
| Method | Mean | tail20 | Mean | tail20 | Mean | tail20 |
| Task Arithmetic | +2.77 [+2.63, +2.91] | +22.9 [+22.3, +23.5] | +0.77 [+0.63, +0.92] | +6.9 [+6.5, +7.2] | +0.27 [+0.15, +0.39] | +2.6 [+2.3, +2.8] |
| Fisher | +1.27 [+1.12, +1.42] | +14.0 [+13.2, +14.8] | +0.86 [+0.70, +1.03] | +2.7 [+2.4, +3.0] | +1.35 [+1.20, +1.50] | +2.7 [+2.4, +3.0] |
| TIES | +3.71 [+3.58, +3.84] | +24.8 [+24.2, +25.5] | +0.52 [+0.42, +0.62] | +2.7 [+2.5, +2.9] | +0.02 [ 0.04, +0.09] | +0.4 [+0.3, +0.6] |
| TSV-M | +2.04 [+1.95, +2.14] | +10.6 [+10.2, +11.1] | +2.37 [+2.19, +2.54] | +19.0 [+18.2, +19.8] | +0.80 [+0.69, +0.91] | +4.8 [+4.5, +5.2] |
| ISO-CTS | +1.42 [+1.30, +1.53] | +4.9 [+4.6, +5.3] | +3.01 [+2.84, +3.19] | +18.4 [+17.5, +19.3] | +2.13 [+2.00, +2.26] | +6.8 [+6.3, +7.3] |
| / | Tail lift | Tail | Head | Response | ||||
| L/14 | 20 | 10/10 | 1.0 | 2.33 | 0.74 | 14.9 | ||
| 50 | 10/10 | 1.0 | 2.40 | 0.74 | 12.7 | |||
| 100 | 10/10 | 1.0 | 1.95 | 0.68 | 8.3 | |||
| B/32 | 20 | 10/10 | 1.0 | 2.15 | 0.68 | 16.7 | ||
| 50 | 10/10 | 1.3 | 2.29 | 0.73 | 11.7 | |||
| 100 | 10/10 | 1.1 | 1.91 | 0.70 | 4.9 |
| Method | Coefficients | |||
| ISO-CTS | Native (uniform) | 73.63 / 56.6 | 64.94 / 31.5 | 56.30 / 22.2 |
| MetaGPT | 73.10 / 56.1 | 57.62 / 23.4 | 50.89 / 19.0 | |
| NAN | 73.24 / 55.6 | 59.45 / 22.8 | 55.24 / 20.2 | |
| AdaMerging | 73.82 / 56.6 | 66.29 / 32.1 | 57.01 / 20.1 | |
| +RaTW | 74.90 / 71.7 | 66.48 / 39.2 | 56.93 / 25.6 | |
| TSV-M | Native (uniform) | 74.79 / 62.8 | 62.94 / 31.1 | 53.96 / 22.0 |
| Mean / tail20 | ||||||
| Method | Coefficients | Cand./steps | Time | Peak GPU mem. | ||
| Task Arithmetic | Native (uniform) | 48.64 / 10.1 | 43.17 / 10.7 | 13 | 1.3 / 2.5 min | 30.7 / 36.2 GB |
| +RaTW | 48.69 / 13.2 | 43.21 / 11.3 | 65 | 6.5 / 12.6 min | 30.7 / 36.2 GB | |
| Supervised cross-entropy | 49.62 / 13.5 | 44.17 / 12.9 | 4,000 steps | 32 / 67 min | 41.1 / 46.4 GB | |
| MetaGPT | 48.11 / 9.7 | 43.05 / 10.4 | 13 | 1.3 / 2.5 min | 30.7 / 36.2 GB | |
| NAN | 49.23 / 10.4 | 43.75 / 11.0 | 13 | 1.3 / 2.5 min | 30.7 / 36.2 GB | |
| Method | Native | Fixed pipeline | Searched pipeline | |
| ISO-CTS | 50 | 6.02 | 9.30 | 26.78 |
| Task Arithmetic | 50 | 4.12 | 7.62 | 9.66 |
| Task Arithmetic | 100 | 6.23 | 11.49 | 16.70 |
| TSV-M | 50 | 4.22 | 7.97 | 9.99 |
| Setting | ReForge (3 rounds) | ReForge++ (3 rounds) | Recovery scoring only | |
| 50 DF-stat | 19.61 | 25.83 | 0.45 |
| 20 DA-stat | 100 DF-stat | |||
| Images per task | Mean | tail20 | Mean | tail20 |
| Uniform weights | 80.14 | 74.5 | 61.19 | 29.3 |
| 32 | ||||
| 64 | ||||
| 128 | ||||
| All ( ) | 80.99 | 80.3 | 61.46 | 30.7 |
| Backbone, statistics | Mean | tail20 | Mean | tail20 | Mean | tail20 |
| ViT-L/14, DF-stat | +0.74 [+0.65, +0.84] | +3.4 [+3.1, +3.7] | +0.94 [+0.82, +1.05] | +6.4 [+5.5, +6.8] | +1.34 [+1.23, +1.45] | +6.8 [+6.3, +7.4] |
| ViT-L/14, DA-stat | +0.91 [+0.82, +1.00] | +4.5 [+4.2, +4.7] | +1.07 [+0.96, +1.19] | +5.6 [+5.1, +6.1] | +1.08 [+0.95, +1.20] | +5.6 [+5.1, +6.1] |
| ViT-B/32, DF-stat | +1.92 [+1.79, +2.05] | +10.0 [+9.5, +10.5] | +1.37 [+1.19, +1.54] | +7.0 [+6.2, +7.9] | +0.84 [+0.71, +0.96] | +3.8 [+3.3, +4.1] |
| ViT-B/32, DA-stat | +1.14 [+1.03, +1.25] | +6.2 [+5.8, +6.6] | +1.06 [+0.93, +1.19] | +7.4 [+6.9, +7.9] | +0.56 [+0.45, +0.66] | +2.9 [+2.7, +3.2] |
| ReForge | ReForge++ | ||||
| Setting | Seed | Mean | tail20 | Mean | tail20 |
| ViT-B/32 | |||||
| 100 DF-stat | 0 | 61.57 | 30.2 | 62.41 | 34.0 |
| 1 | 61.58 | 30.1 | 62.70 | 34.7 | |
| 2 | 61.62 | 30.3 | 62.57 | 34.1 | |
| mean std | |||||
| Backbone | Setting | ReForge | ReForge++ |
| ViT-B/32 | 20 DF-stat | / | / |
| 20 DA-stat | / | / | |
| 50 DF-stat | / | / | |
| 50 DA-stat | / | / | |
| ViT-L/14 | 20 DF-stat | / | / |
| 20 DA-stat | / | / |
| B/32, DA-stat | B/32, DF-stat | L/14, DA-stat (seed 1) | L/14, DF-stat (seed 1) | |
| Uniform (ReForge) | 63.75 / 33.5 | 61.57 / 30.2 | 76.03 / 47.4 | 73.13 / 39.9 |
| fixed after round 1 | 64.29 / 36.2 | 62.70 / 35.1 | 76.91 / 52.3 | 74.21 / 45.8 |
| recomputed (ReForge++) | 64.31 / 36.4 | 62.41 / 34.0 | 76.75 / 51.6 | 74.34 / 46.6 |
| InternVL2.5-1B | Qwen2-VL-7B | |||||
| Method | Native | +RaTW | Native | +RaTW | ||
| Base model | 59.59 / 50.6 | – | – | 24.14 / 0.0 | – | – |
| Expert average | 81.77 / 100.0 | – | – | 87.87 / 100.0 | – | – |
| Task Arithmetic | 68.93 / 66.2 | 70.62 / 74.7 | +1.69 / +8.5 | 82.56 / 72.2 | 83.63 / 85.7 | +1.07 / +13.5 |
| TIES | 70.31 / 70.7 | 70.48 / 71.7 | +0.17 / +1.0 | 84.94 / 88.4 | 85.18 / 89.8 | +0.24 / +1.4 |
| OptMerge | 67.74 / 63.1 | 68.53 / 68.8 | +0.79 / +5.7 | 85.16 / 90.9 | 85.66 / 92.9 | +0.49 / +2.0 |
Model Merging
Model merging combines trained model weights or adapters to reuse capabilities while reducing the cost of joint training or ensembles.
See all 226 papers