betaFeedback

WorksComputer Science

Change Partners at Every Layer: Balanced Random Regrouping for Model Merging

Abstract

Model merging combines fine-tuned experts into one model that serves many tasks without retraining, but merging many experts this way substantially reduces accuracy. Grouping offers a middle ground: at every layer or weight matrix, the NN experts are divided into K<NK<N groups, the experts in a group are merged into one shared module, and a task uses the module merged from its expert's group. Natural choices are to keep the same partners across layers or to group similar experts. Surprisingly, we find that randomly changing partners at every layer outperforms both. We call this Balanced Random Regrouping (BRR): it independently partitions the experts into KK equal-sized random groups at each layer (BRR-layer) or weight matrix (BRR-matrix) and merges each group with an existing method. With validation-selected merge scales, both BRR variants outperform reusing one grouping across layers in all 24 CLIP settings, by 1.0-6.8 points, and BRR-matrix also outperforms the similarity-based FlexMerge in every setting. A first-order analysis explains this gain. At each layer, merging a task's expert with its partners shifts the task's output features; when the partners are the same at every layer, these shifts tend to point in similar directions and add up, whereas with new partners at every layer they vary independently and add up less on average. A series of experiments supports this analysis, which further guides a grouping search that can outperform BRR.

Introduction

Model merging combines fine-tuned experts into one model that serves many tasks without retraining [5, 7, 18], but accuracy drops substantially when many experts are merged. Keeping every expert avoids this loss but costs one full model per task, whereas many deployments can store only a few models [4]. Merging the experts in groups lies between these two extremes: at each layer, the NN experts are divided into K<NK < N groups, and each group is merged into one shared module.

At inference, the task identity is known, so each input is routed at every layer to the module merged from its task’s expert group. The grouping can differ from layer to layer. The core question is therefore which experts to merge together at each layer.

Two design choices seem natural. One reuses a single grouping across layers, which yields KK merged models with each expert keeping the same partners at every layer. The other groups experts by parameter similarity, as FlexMerge [4] does for attention and MLP blocks and Channel Merging [20] does for rows of weight matrices. Surprisingly, we find that randomly changing partners at every layer outperforms both choices. We call this method Balanced Random Regrouping (BRR). Specifically, at each transformer layer, BRR randomly divides the experts into KK balanced (equal-sized) groups, independently of other layers (Figure 1(a)). The corresponding parameters within each group are merged with an existing method, such as Task Arithmetic [7], TSV-M [5], Iso-CTS [9], or ACE-Merging [17]. We further extend the grouping from layers to weight matrices, allowing partners to change at a finer granularity; we call the two variants BRR-layer and BRR-matrix.

Figure 1. Shared grouping versus BRR (schematic). (a) Four tasks (T1–T4) and three units (layers or weight matrices); at each unit, the experts are merged in two equal-sized groups. Shared grouping reuses one grouping, whereas BRR draws one independently at each unit; the red line follows the modules selected by T1. The accuracies shown are those of shared grouping and BRR-layer on 100 ViT-B/32 tasks (TSV-M, K=10K=10, α=1\alpha=1). (b) Under a first-order approximation, each red arrow shows the shift that merging at one unit adds to T1’s final output features, and the dashed arrow is their sum. In this illustration, fixed partners give shifts in similar directions that accumulate, whereas new partners give shifts in different directions that accumulate less.

We evaluate BRR on 100-task CLIP [11] expert pools with two backbones, four merging methods, and three budgets. With merge scales selected on validation data for each method, both BRR variants outperform shared grouping (one random grouping reused across layers) in all 24 configurations, and BRR-matrix also achieves higher mean accuracy than the similarity-based FlexMerge [4] in every configuration. On two vision-language models, BRR-matrix outperforms both baselines with all four merging methods on InternVL2.5-1B [2], and improves on shared grouping by 0.60 points on average on Qwen2-VL-7B [16].

To understand these gains, we analyze how merging at different layers jointly changes a task’s final output features. Intuitively (Figure 1(b)), merging at each layer shifts the final output features; with fixed partners, these shifts tend to reinforce one another, whereas changing partners reduces this accumulation. Our first-order analysis makes this precise: reusing partners adds a correlation between the shifts of different layers, and regrouping independently at each layer removes it, which lowers the expected feature error to first order whenever this correlation is positive overall. Under Task Arithmetic on ViT-B/32, our estimates of this correlation are positive for each of the 100 tasks. The analysis also lets us predict the accuracy of merged models from those of shared grouping and BRR. For 27 groupings that reuse partners at only some units, whose gains over shared grouping range from 0.6 to 4.3 points, predictions fixed before their accuracies were available are off by only 0.16 points on average. It further guides a grouping search that uses a few unlabeled validation images to choose partners and can outperform BRR.

Our contributions are summarized as follows:

  • We show that randomly changing partners at every layer outperforms both natural choices, keeping the same partners and grouping similar experts, and propose BRR, which draws balanced random groups independently at each layer or weight matrix; its grouping step needs no data or search and works with existing merging methods.

  • On 100-task CLIP pools, both BRR variants outperform shared grouping in all 24 configurations, and BRR-matrix also outperforms FlexMerge in every configuration; on InternVL2.5-1B, BRR-matrix outperforms both shared grouping and FlexMerge with all four merging methods.

  • A first-order analysis explains why changing partners lowers feature error; a series of experiments supports this analysis, which further guides a grouping search that can outperform BRR.

Related Work

Model merging. Task Arithmetic [7] merges experts by adding their task vectors, the differences between fine-tuned and pre-trained weights. Later work proposes different ways to reduce the resulting interference. Some methods modify task vectors in weight space: TIES [18] trims small updates and resolves sign conflicts, while TSV-M [5] and Iso-CTs [9] decompose each layer’s task updates with SVD and reduce interference between the resulting task subspaces. Others use input statistics: RegMean [8] and ACE-Merging [17] use measured or estimated statistics to keep each layer’s output close to that of the experts. EMR-Merging [6] and TALL masks [15] instead recover task-specific models with per-task masks or scaling factors. BRR is complementary to these methods: it only decides which experts are merged together at each layer, and any of them can be applied within each group.

Merging experts in groups. Some works merge experts into several models or shared modules instead of one, using more storage than a single merged model to retain task performance. FlexMerge [4] groups network blocks by similarity, and Channel Merging [20] groups task vectors at the level of output channels. For LoRA adapters, D2CD^2C [1] uses a small set of task examples to optimize the clustering before merging each group, and K-Merge [13] merges newly arriving LoRAs online without data under a fixed adapter budget. In contrast, BRR forms its groups at random, without any similarity or clustering criterion, and asks a different question: whether an expert should keep the same partners across layers or change them.

Analyzing merging errors. Task Arithmetic in the Tangent Space [10] studies task arithmetic through linearization and connects it to weight disentanglement. Zhou et al. [21] provide a related empirical observation: interpolating weights fine-tuned from a common checkpoint approximately interpolates layer-wise features. SurgeryV2 [19] observes that the representation bias introduced by merging at each layer accumulates through the network and corrects it with trained modules. We instead use a first-order approximation to write the output-feature change as a sum of per-layer contributions, which shows that reusing partners adds a correlation between these contributions and that independent regrouping removes this added correlation.

BRR and Empirical Performance

Balanced random regrouping

Problem setting. Let θ1,…,θN\theta_1, \ldots, \theta_N be NN experts fine-tuned from the same pretrained model θ0\theta_0, with task vectors τj=θj−θ0\tau_j = \theta_j - \theta_0. We split the network into UU units, each a transformer layer or a single weight matrix. At unit uu, a grouping gug_u divides the experts into K<NK < N groups Gu,1,…,Gu,KG_{u,1}, \ldots, G_{u,K}. Each group is merged into one module, so every unit keeps KK modules and the stored model is as large as KK backbones; we call KK the budget.

Grouping construction. BRR draws the grouping of each unit independently (Figure 1(a)): at unit uu, it takes a uniformly random permutation of the NN experts and splits it into KK consecutive groups of equal size q=N/Kq = N/K. This step uses only the expert indices and requires no data, similarity computation or search. Shared grouping, one of our main baselines, draws one such grouping and reuses it at every unit. The two schemes therefore have the same group sizes and the same distribution of groupings at each unit; they differ only in whether the units share one grouping.

Merging and inference. At unit uu, the kk-th module is the pretrained weight plus the merged task vectors of group Gu,kG_{u,k}:

θ^u,k=θ0,u+αM({τj,u:j∈Gu,k}).(1)\hat{\theta}_{u,k} = \theta_{0,u} + \alpha\mathcal{M}(\{\tau_{j,u} : j \in G_{u,k}\}). \tag*{(1)}

Here, θ0,u\theta_{0,u} is the pretrained weight at unit uu and τj,u\tau_{j,u} is the task vector of expert jj at that unit; M\mathcal{M} is an existing merging method that maps the task vectors of a group to one merged update, and α\alpha scales this update. Once the pretrained model, the experts, M\mathcal{M} and α\alpha are fixed, the modules at unit uu depend only on its grouping gug_u. BRR changes only this grouping, that is, which task vectors are merged together, not how they are merged. At inference, the task identity tt is known, and each unit uu uses the module θ^u,πu(t)\hat{\theta}_{u,\pi_u(t)}, where πu(t)\pi_u(t) is the index of the group containing expert tt.

Granularity and deployment. BRR-layer draws a grouping at each transformer layer, and BRR-matrix at each weight matrix; with six weight matrices per layer, this gives 12 and 72 units for ViT-B/32 and 24 and 144 units for ViT-L/14. For shared grouping and both BRR variants, each sample passes through one module per unit, so its backbone computation equals that of a single model; any extra cost comes from routing, which depends on the serving implementation (Sec. F).

Experimental setup

Tasks and models. We fine-tune CLIP [11] ViT-B/32 and ViT-L/14 separately on each of 100 image-classification tasks spanning natural images and specialized domains (Sec. A.1), which gives 100 task experts per backbone. For these experts, we use budgets K∈{5,10,20}K \in\{5, 10, 20\}. For vision-language evaluation, we use InternVL2.5-1B [2] and Qwen2-VL-7B [16] with budget K=2K = 2 on ten tasks: six visual question-answering and four multiple-choice image-classification tasks. Each vision-language expert is obtained by fine-tuning all language-model parameters while keeping the visual components frozen.

Baselines. One of our baselines is shared grouping (§ 3.1), which reuses one grouping at every unit; comparing it with BRR tests whether changing partners across units helps. The other two, FlexMerge [4] and Channel Merging [20], group experts by similarity: FlexMerge clusters experts by the similarity of their task vectors in each attention or MLP sublayer, and Channel Merging clusters the corresponding rows of each weight matrix. BRR, shared grouping and FlexMerge are each combined with four merging methods: Task Arithmetic (TA) [7], TSV-M [5], Iso-CTS [9] and ACE-Merging [17]. Channel Merging merges each cluster with its own TA-style rule, so it yields one result per backbone and budget.

Evaluation protocol. Every method, including FlexMerge and Channel Merging, uses a single merge scale α\alpha for all tasks and units, selected on labeled validation data as in Task Arithmetic [7] (Sec. A.3.2). For randomized methods, α\alpha is selected separately for each of five grouping seeds, and we report the mean and standard deviation over seeds of the average test score across tasks.

Results on CLIP and VLMs

Partner reuse and grouping granularity. Table 1 reports CLIP accuracy for two backbones, three budgets and four merging methods; in all 24 configurations, mean accuracy follows BRR-matrix >> BRR-layer >> shared grouping. On ViT-B/32 at K=10K = 10, BRR-matrix improves on shared grouping by 3.02 (ACE-Merging) to 4.59 (TSV-M) points. These gains are statistically significant in all 24 configurations for both BRR variants (95% paired bootstrap intervals; Sec. B.1). Regrouping at a finer granularity helps further: BRR-matrix is above BRR-layer in all 24 configurations, by 0.12 to 2.09 points. The gains persist at a fixed merge scale: with α=1\alpha= 1 on ViT-B/32, both BRR variants still outperform shared grouping for every merging method and budget (Sec. B.2). The gains also hold for pools of 20 and 50 tasks (Sec. B.7).

KKMethodViT-B/32 TAViT-B/32 TSV-MViT-B/32 Iso-CTSViT-B/32 ACEViT-L/14 TAViT-L/14 TSV-MViT-L/14 Iso-CTSViT-L/14 ACE
NNZero-shot42.0548.11
Experts85.6889.79
1One model43.2653.9054.5857.2248.8164.7466.7468.36
Channel Merging53.55±0.11\mathbf{53.55}\pm0.1164.07±0.07\mathbf{64.07}\pm0.07
5FlexMerge51.1866.9066.1370.3660.4676.1377.4179.36
Shared50.31±0.4050.31\pm0.4068.32±0.1968.32\pm0.1968.39±0.3168.39\pm0.3172.65±0.2172.65\pm0.2162.25±0.6962.25\pm0.6978.25±0.5178.25\pm0.5180.83±0.3680.83\pm0.3682.03±0.5382.03\pm0.53
BRR-layer51.38±0.3051.38\pm0.3071.45±0.1071.45\pm0.1072.01±0.2272.01\pm0.2275.73±0.1875.73\pm0.1863.74±0.0963.74\pm0.0980.65±0.1480.65\pm0.1483.29±0.0583.29\pm0.0583.99±0.0683.99\pm0.06
BRR-matrix51.50±0.2551.50\pm0.2572.35±0.27\mathbf{72.35}\pm0.2773.16±0.14\mathbf{73.16}\pm0.1476.22±0.18\mathbf{76.22}\pm0.1863.98±0.1063.98\pm0.1080.86±0.10\mathbf{80.86}\pm0.1083.55±0.06\mathbf{83.55}\pm0.0684.31±0.11\mathbf{84.31}\pm0.11
Channel Merging53.65±0.1453.65\pm0.1464.41±0.0564.41\pm0.05
10FlexMerge59.5472.1169.2376.0469.8881.3481.6283.60
Shared57.40±0.1757.40\pm0.1773.79±0.2773.79\pm0.2773.07±0.2773.07\pm0.2777.81±0.2077.81\pm0.2070.12±0.2670.12\pm0.2682.03±0.2782.03\pm0.2783.85±0.5483.85\pm0.5485.12±0.5185.12\pm0.51
BRR-layer61.10±0.4361.10\pm0.4377.53±0.1677.53\pm0.1676.31±0.1776.31\pm0.1780.40±0.1180.40\pm0.1174.07±0.2374.07\pm0.2384.77±0.1784.77\pm0.1785.84±0.0885.84\pm0.0886.70±0.1686.70\pm0.16
BRR-matrix61.87±0.15\mathbf{61.87}\pm0.1578.38±0.15\mathbf{78.38}\pm0.1577.58±0.18\mathbf{77.58}\pm0.1880.83±0.07\mathbf{80.83}\pm0.0774.54±0.16\mathbf{74.54}\pm0.1684.96±0.12\mathbf{84.96}\pm0.1286.13±0.10\mathbf{86.13}\pm0.1086.84±0.09\mathbf{86.84}\pm0.09
Channel Merging55.29±0.1655.29\pm0.1665.67±0.1065.67\pm0.10
20FlexMerge69.8276.5172.0079.1879.0883.9982.4585.64
Shared67.84±0.4367.84\pm0.4378.02±0.5978.02\pm0.5974.59±0.2274.59\pm0.2280.67±0.6280.67\pm0.6279.36±0.1979.36\pm0.1985.36±0.3585.36\pm0.3585.10±0.1985.10\pm0.1987.03±0.6587.03\pm0.65
BRR-layer72.57±0.2472.57\pm0.2481.22±0.1981.22\pm0.1978.03±0.2178.03\pm0.2182.62±0.0582.62\pm0.0583.20±0.2083.20\pm0.2087.00±0.1887.00\pm0.1886.61±0.1686.61\pm0.1688.02±0.1288.02\pm0.12
BRR-matrix74.66±0.13\mathbf{74.66}\pm0.1381.99±0.05\mathbf{81.99}\pm0.0578.99±0.23\mathbf{78.99}\pm0.2383.10±0.08\mathbf{83.10}\pm0.0883.68±0.16\mathbf{83.68}\pm0.1687.18±0.11\mathbf{87.18}\pm0.1186.77±0.10\mathbf{86.77}\pm0.1088.15±0.08\mathbf{88.15}\pm0.08

Table 1. CLIP accuracy when merging 100 experts into KK modules per unit. Mean test accuracy (%) over 100 tasks; randomized methods report mean ±\pm standard deviation over five seeds, with validation-selected merge scales. FlexMerge and K=1K = 1 are point estimates. Channel Merging uses its own TA-style merging rule and reports one result per backbone and budget; for bold, it is compared with the TA column. Bold marks the best mean per budget and method column. Paired bootstrap intervals: Sec. B.1.

Comparison with existing grouping methods. In Table 1, BRR-matrix is more accurate than both similarity-based baselines in nearly every setting. It outperforms

FlexMerge in all 24 configurations, by 2.33 (TA) to 8.35 (Iso-CTS) points on ViT-B/32 at K=10K = 10. Against Channel Merging, BRR-matrix with TA is more accurate in four of the six backbone–budget settings and less accurate only at K=5K = 5. BRR-layer, which regroups only once per layer, also outperforms FlexMerge in all 24 configurations and matches the record of BRR-matrix against Channel Merging. Shared random grouping already exceeds FlexMerge in 21 of the 24 configurations, and independent regrouping further improves accuracy.

Public checkpoints. To test whether the gains depend on our expert pool, we repeat the comparison on the public 8-, 14- and 20-task CLIP checkpoints of Wang et al. [15]. Averaged over all eight settings, BRR-matrix is the most accurate method in every column of Table 2, 0.6–2.3 points above shared grouping and 0.3–2.4 points above FlexMerge (per-setting results: Sec. B.8).

MethodViT-B/32 TAViT-B/32 TSV-MViT-L/14 TAViT-L/14 TSV-M
Channel Merging80.57–88.61–
FlexMerge81.5086.8489.6792.71
Shared80.7887.8989.1592.43
BRR-layer82.5988.9790.1392.91
BRR-matrix83.1289.2490.2793.00

Table 2. Public 8-, 14- and 20-task checkpoints. Mean test accuracy (%), averaged with equal weight over eight settings: 8 tasks (K=2,4K = 2, 4), 14 tasks (K=2,7K = 2, 7) and 20 tasks (K=2,4,5,10K = 2, 4, 5, 10). Randomized methods use five grouping seeds; Channel Merging uses its own TA-style merging rule and is listed only in the TA columns.

Vision-language models. Table 3 shows that the gains of BRR carry over to InternVL2.5-1B, whereas on Qwen2-VL-7B they depend on the merging method. On InternVL2.5-1B, mean scores follow BRR-matrix >> BRR-layer >> shared grouping for all four merging methods; BRR-matrix improves on shared grouping by 0.35–0.85 points and exceeds FlexMerge in all four settings. On Qwen2-VL-7B with TA, BRR-matrix is 1.93 points above shared grouping but below FlexMerge. With TSV-M, Iso-CTS and ACE-Merging, the four grouping methods score almost the same: FlexMerge, shared grouping, BRR-layer and BRR-matrix differ by at most 0.5 points. For these methods, a single merged model on Qwen2-VL-7B is already within 0.3–2.7 points of the experts, which may explain why grouping methods differ little here. At a larger budget (K=5K = 5) and across task types, the gains remain consistent on InternVL2.5-1B and method-dependent on Qwen2-VL-7B (Sec. G.2).

KKMethodInternVL2.5-1B TATSV-MIso-CTSACEQwen2-VL-7B TATSV-MIso-CTSACE
NNExperts81.0686.98
1One model66.6874.5775.7576.6979.3685.0884.2786.66
Channel Merging70.55±0.2370.55\pm0.2383.13±0.5483.13\pm0.54
FlexMerge70.3276.8577.1778.8583.9486.4683.9986.98
2Shared71.19±0.7371.19\pm0.7377.73±0.3877.73\pm0.3877.29±0.2077.29\pm0.2079.21±0.4479.21\pm0.4481.28±1.9481.28\pm1.9486.25±0.1986.25\pm0.1984.25±0.2084.25\pm0.2087.10\pm0.06
BRR-layer71.94±0.0871.94\pm0.0878.30±0.2178.30\pm0.2177.61±0.1877.61\pm0.1879.59±0.1079.59\pm0.1083.15±0.0683.15\pm0.0686.39±0.1986.39\pm0.1984.44±0.0884.44\pm0.0887.08±0.1087.08\pm0.10
BRR-matrix72.04±0.0972.04\pm0.0978.41±0.2078.41\pm0.2077.64±0.1777.64\pm0.1779.75±0.0879.75\pm0.0883.21±0.0683.21\pm0.0686.48±0.1686.48\pm0.1684.48±0.0584.48\pm0.0587.09±0.0687.09\pm0.06

Table 3. Vision-language results at K=2K = 2. Macro-average test scores (%) over ten tasks; experts fine-tune all language-model parameters with the visual components frozen. Randomized methods report mean and sample standard deviation over five seeds; FlexMerge and K=1K = 1 are point estimates. For TA, FlexMerge uses its stronger group-mean scaling (Sec. G.1). Channel Merging uses its own merging rule, with one result per backbone. Bold marks the best mean among FlexMerge, Shared, BRR-layer and BRR-matrix in each method column.

Effect of balance, independence and similarity

BRR combines two design choices, balanced group sizes and independent grouping. Table 4(a) crosses them on ViT-B/32 with TSV-M and K=10K = 10, using unbalanced groups of 25 down to 3 experts: independent grouping improves on shared grouping by about 4.5 points with or without balance, and balance adds about 1.4 points in either case (more results in Sec. B.4).

GroupsSharedPer matrix
Unbalanced72.3876.90
Balanced73.7978.38

Table 4. Effect of balance, independence and similarity. Mean test accuracy (%) over 100 tasks with ViT-B/32, K=10K=10 and validation-selected α\alpha. Shared reuses one grouping across all matrices; Per matrix samples random groups independently or clusters experts separately at each matrix. Random groupings are averaged over five seeds; similarity-based groupings are deterministic. Full results: Tables 10 and Table 12.

ScopeMembersTATSV-MIso-CTSACE
SharedRandom57.4073.7973.0777.81
Similarity57.7371.2269.6775.37
Per matrixRandom61.8778.3877.5880.83
Similarity60.3775.2673.6978.54

Table 12. Random versus similarity-clustered balanced groups. Mean test accuracy (%) on ViT-B/32, 100 tasks, K=10K = 10, validation-selected α\alpha. Random groupings are means over five seeds; similarity groupings are deterministic (one run). Bold: the higher of random and similarity grouping for the same grouping scheme and operator.

FlexMerge differs from BRR in two respects at once: its groups are highly unbalanced (at K=10K = 10, eight experts are kept alone) and its partners are chosen by similarity rather than at random. To isolate partner selection, we cluster the experts into ten equal-sized groups by task-vector cosine similarity, either once for the whole network or separately for each weight matrix. Random groups are more accurate in seven of the eight comparisons of Table 4(b), by 1.5–3.9 points; the exception is TA with a shared grouping. Across 20 comparisons on both backbones, several merging methods and budgets, similarity-based groups are less accurate in 17 (Sec. B.5). For groupings that vary across units, Table 5 offers one possible explanation: similar experts tend to be grouped together at every unit, so FlexMerge and per-matrix similarity clustering repeat about 30% of partner pairs between weight matrices, against 9% for BRR-matrix. By the analysis of § 4.1, such partner reuse can make the errors added at different units accumulate.

GroupingPartner-repeat rate
Shared1.00
FlexMerge0.30
Similarity, per matrix0.27
BRR-layer0.15
BRR-matrix0.09

Table 5. Partner repetition across units. Probability that two experts merged together at one weight matrix are also merged together at another, averaged over all pairs of the 72 weight matrices (ViT-B/32, 100 tasks, K=10K=10). Under BRR-layer, matrices of the same layer share a grouping.

Mechanism Analysis and Validation

How changing partners affects feature error

§ 3 shows consistent accuracy gains from changing partners on CLIP; to understand them, we analyze how merging at different units changes a task’s output features.

Feature error. For task tt, we measure the feature error

Dt=Ex∥z(x)−zt∗(x)∥2,(2)D_t = \mathbb{E}_{x}\left\|z(x)-z_t^*(x)\right\|^2, \tag*{(2)}
MergingShared RandomShared SimilarityPer matrix RandomPer matrix Similarity
TA57.4057.7361.8760.37
TSV-M73.7971.2278.3875.26
Iso-CTS73.0769.6777.5873.69
ACE77.8175.3780.8378.54

Table 4b.

where z(x)z(x) is the ℓ2\ell_2-normalized output of the CLIP ViT image encoder assembled for task tt from the merged modules, zt∗(x)z_t^*(x) is that of the task-tt expert, and the expectation is over the validation images of task tt. CLIP classifies an image by the inner products of z(x)z(x) with fixed text embeddings of the class names, so DtD_t measures how much merging moves the features that the classifier uses.

Local linear approximation. Following the tangent-space analysis of Task Arithmetic [10], we approximate the feature change from merging with its first-order Taylor expansion around the weights of the task-tt expert. At unit uu, merging changes the expert’s weights by Δu=θ^u,πu(t)−θt,u\Delta_u = \hat{\theta}_{u,\pi_u(t)} - \theta_{t,u}; for brevity, we omit the task subscript on these unit-level quantities. To first order, this weight change shifts the final normalized feature by ϕu(x)=Ju(x)Δu\phi_u(x) = J_u(x)\Delta_u, where Ju(x)J_u(x) is the Jacobian of z(x)z(x) with respect to unit uu’s weights. The total first-order feature change is then ∑uϕu(x)\sum_u \phi_u(x).

Replacing z(x)−zt∗(x)z(x) - z_t^*(x) in Eq. (2) by this sum gives the linearized feature error

Dtlin=Ex∥∑uϕu(x)∥2=∑uEx∥ϕu(x)∥2+2∑u<vEx⟨ϕu(x),ϕv(x)⟩.(3)\begin{aligned} D_t^{\mathrm{lin}} = \mathbb{E}_x \left\| \sum_u \phi_u(x) \right\|^2 \\ &= \sum_u \mathbb{E}_x \left\| \phi_u(x) \right\|^2 + 2 \sum_{u<v} \mathbb{E}_x \langle\phi_u(x), \phi_v(x) \rangle. \tag*{(3)} \end{aligned}

The first term adds up the error that each unit would cause if it were merged alone. The second term adds up how the shifts of each pair of units combine: shifts pointing in similar directions (Ex⟨ϕu(x),ϕv(x)⟩>0\mathbb{E}_x\langle\phi_u(x),\phi_v(x)\rangle> 0) reinforce each other and increase the error, whereas shifts pointing in opposing directions partly offset each other and reduce it. This is a local approximation; § 4.2 checks how accurate it is for the weight changes of actual merging.

Covariance from reusing a grouping. For a fixed merging method and merge scale, shared and independent grouping draw the grouping at each unit from the same distribution, so the single-unit terms of Eq. (3) have the same expectation under both; any difference comes from the cross-unit terms. The shift at unit uu depends on its grouping gug_u, which we make explicit by writing ϕu(gu,x)\phi_u(g_u,x). We split it into its average over random balanced groupings, ϕˉu(x)=Egu[ϕu(gu,x)]\bar{\phi}_u(x) = \mathbb{E}_{g_u}[\phi_u(g_u,x)], and the remaining deviation ϕ~u(gu,x)=ϕu(gu,x)−ϕˉu(x)\tilde{\phi}_u(g_u,x) = \phi_u(g_u,x) - \bar{\phi}_u(x). Taking the expectation of a cross-unit term over the groupings then gives

Egu,gvEx⟨ϕu(gu,x),ϕv(gv,x)⟩=Ex⟨ϕˉu(x),ϕˉv(x)⟩+ExEgu,gv⟨ϕ~u(gu,x),ϕ~v(gv,x)⟩.\mathbb{E}_{g_u,g_v}\mathbb{E}_x\langle\phi_u(g_u,x),\phi_v(g_v,x)\rangle = \mathbb{E}_x\langle\bar{\phi}_u(x),\bar{\phi}_v(x)\rangle+ \mathbb{E}_x\mathbb{E}_{g_u,g_v}\langle\tilde{\phi}_u(g_u,x),\tilde{\phi}_v(g_v,x)\rangle.

The first term is the same under both groupings. Under independent grouping, gug_u and gvg_v are drawn independently, so the second term is zero. Under shared grouping, both units use the same grouping gg, so the second term becomes the cross-unit covariance

Γuv=ExEg⟨ϕ~u(g,x),ϕ~v(g,x)⟩.\Gamma_{uv} = \mathbb{E}_x\mathbb{E}_g\langle\tilde{\phi}_u(g,x),\tilde{\phi}_v(g,x)\rangle.

Proposition 1 (covariance identity). Let Dt,sharedlinD_{t,\mathrm{shared}}^{\mathrm{lin}} and Dt,indeplinD_{t,\mathrm{indep}}^{\mathrm{lin}} be the linearized feature errors under shared and independent grouping. Suppose that the merged modules at each unit depend only on that unit’s grouping, and that both groupings use the same merging method, merge scale and grouping distribution at each unit. Then the difference between their expected values, with expectations over the groupings, is

Eg[Dt,sharedlin]−Eg[Dt,indeplin]=2∑u<vΓuv.(4)\mathbb{E}_g\left[D_{t,\mathrm{shared}}^{\mathrm{lin}}\right] - \mathbb{E}_g\left[D_{t,\mathrm{indep}}^{\mathrm{lin}}\right] = 2\sum_{u<v}\Gamma_{uv}. \tag*{(4)}

The proof is in Sec. C.1.

A positive Γuv\Gamma_{uv} means that, under shared grouping, the deviations at uu and vv tend to reinforce each other, and a negative value means that they tend to offset each other. Independent grouping therefore has lower expected linearized feature error exactly when ∑u<vΓuv>0\sum_{u<v}\Gamma_{uv} > 0, and § 4.2 tests this condition.

Covariance under Task Arithmetic. To analyze the covariance further, we consider the most classic merging method, Task Arithmetic (TA), which adds a scaled sum of the group’s task vectors to the pretrained weights:

θ^u,k=θ0,u+λ∑j∈Gu,kτj,u.\hat{\theta}_{u,k} = \theta_{0,u} + \lambda\sum_{j\in G_{u,k}} \tau_{j,u}.

where λ>0\lambda> 0 is the scaling coefficient of TA. Each group containing task tt’s expert also contains q−1q-1 partners drawn from the other N−1N-1 experts, whose average task vector at unit uu is τˉu=1N−1∑j≠tτj,u\bar{\tau}_u = \frac{1}{N-1}\sum_{j\ne t}\tau_{j,u}. We define partner jj’s contribution at unit uu as ψj,u(x)=Ju(x)(τj,u−τˉu)\psi_{j,u}(x) = J_u(x)(\tau_{j,u} - \bar{\tau}_u), which measures, to first order, how much choosing partner jj changes the output relative to an average partner.

Under shared grouping, task tt keeps the same partners at every unit, so we measure how well each partner’s contributions at two units uu and vv align:

Huv=Ej≠tEx⟨ψj,u(x),ψj,v(x)⟩,H_{uv} = \mathbb{E}_{j\ne t}\mathbb{E}_x\langle\psi_{j,u}(x),\psi_{j,v}(x)\rangle,

which is positive when these contributions tend to point in similar directions.

Proposition 2 (partner covariance). For TA with uniformly sampled balanced groups of size q=N/Kq = N/K and N>2N > 2,

Γuv=cHuv,c=λ2(q−1)(N−q)N−2,(5)\Gamma_{uv} = cH_{uv}, \qquad c = \lambda^2\frac{(q-1)(N-q)}{N-2}, \tag*{(5)}

and c>0c > 0 whenever 1<K<N1 < K < N, so Γuv\Gamma_{uv} and HuvH_{uv} have the same sign; the proof is in Sec. C.2.

With S=∑u<vHuvS = \sum_{u<v} H_{uv}, Propositions 1 and 2 give a gap of 2cS2cS in Eq. (4), so independent grouping has lower expected linearized feature error when S>0S > 0. The condition S>0S > 0 means that the same partner’s contributions at different units align positively in aggregate across partners and

unit pairs; individual partners or unit pairs may still contribute negatively. Proposition 2 does not establish that SS is positive; Sec. C.6.1 discusses one possible reason, and § 4.2 estimates SS for the actual experts.

Verification of the analysis

First-order approximation. Our analysis relies on a first-order approximation, so we first check how well it predicts the change in the output features caused by merging. On 100 ViT-B/32 tasks with TA and TSV-M at K=10K = 10, we scale the weight change from merging at every unit by ϵ∈{0.25,0.5,1}\epsilon\in\{0.25, 0.5, 1\}, giving weights θt,u+ϵΔu\theta_{t,u} + \epsilon\Delta_u, while all other parameters stay at the expert’s values; ϵ=1\epsilon= 1 applies the full change to the grouped weights. Let rϵ(x)r_{\epsilon}(x) be the actual change in the output feature of image xx; we compare it with its first-order prediction ϵ∑uϕu(x)\epsilon\sum_u\phi_u(x) through the relative error

Rϵ=Eg,x∥rϵ(x)−ϵ∑uϕu(x)∥2Eg,x∥rϵ(x)∥2.R_{\epsilon} = \sqrt{\frac{\mathbb{E}_{g,x}\left\lVert r_{\epsilon}(x)-\epsilon\sum_u\phi_u(x)\right\rVert^2}{\mathbb{E}_{g,x}\left\lVert r_{\epsilon}(x)\right\rVert^2}}.

averaged over sampled groupings gg and 32 validation images per task. The median RϵR_{\epsilon} grows from about 0.3 at ϵ=0.25\epsilon= 0.25 to about 1 at ϵ=1\epsilon= 1 (Table 6(a)). The approximation is thus closer for small weight changes, but at ϵ=1\epsilon= 1 its error is of the same order as the feature change itself.

(a) Relative error RϵR_{\epsilon} of the first-order approximation
MethodGroupingϵ=0.25\epsilon= 0.25ϵ=0.5\epsilon= 0.5ϵ=1\epsilon= 1
TAShared0.370.671.08
BRR-layer0.370.671.07
BRR-matrix0.370.671.07
TSV-MShared0.300.560.95
BRR-layer0.280.520.91
BRR-matrix0.280.520.90
(b) Partner alignment S^\widehat{S}
Tasks with S^>0\widehat{S} > 0100/100
Adjacent layer pairs with H^uv>0\widehat{H}_{uv} > 01100/1100

Table 6. Checks of the analysis on 100 ViT-B/32 tasks (K=10K = 10). (a) Median over tasks; Rϵ=1R_{\epsilon} = 1 means the approximation error is as large as the feature change (interquartile ranges: Table 21). (b) Number of positive estimates, from ten sampled partners and 32 validation images per task.

Feature-error gap. What matters for our analysis, however, is not each feature change but the difference in feature error between shared and independent grouping, which Proposition 1 predicts. We measure the actual gap as the feature error of Eq. (2) under shared grouping minus that under independent grouping. For each of the four merging methods and each ϵ\epsilon, we compare it with the first-order prediction 2ϵ2∑u<vΓuv2\epsilon^2\sum_{u<v}\Gamma_{uv} of Proposition 1, both summed over the 100 tasks (Figure 2). In every setting, the actual gap is positive, as predicted: independent grouping lowers the actual feature error, not only its first-order approximation. Its size also matches closely for small weight changes (ratio 0.89–1.01 at ϵ=0.25\epsilon= 0.25) and stays within the same order of magnitude at ϵ=1\epsilon= 1 (ratio 0.3–1.3).

Figure 2. Ratio of measured to predicted feature-error gaps (shared minus independent grouping, summed over 100 ViT-B/32 tasks) against the scale ϵ\epsilon of the merging-induced weight changes; ϵ=1\epsilon= 1 applies the full change to the grouped weights, and ϵ=1.5\epsilon= 1.5 extrapolates beyond it. A ratio of 1 means agreement. Bars: 95% task-bootstrap intervals.

Partner alignment. By Proposition 2, independent grouping lowers the linearized feature error under TA whenever S=∑u<vHuv>0S = \sum_{u<v}H_{uv} > 0. Each HuvH_{uv} averages, over partners, the inner product between a partner’s contributions at units uu and vv, so S>0S > 0 means that partners tend to shift the output in similar directions at different units. Computing HuvH_{uv} requires one Jacobian–vector product per partner and unit, so averaging over all 99 candidate partners is costly. For each task, we therefore estimate HuvH_{uv} from ten randomly sampled partners on 32 validation images, an unbiased estimate of the average (Sec. D.1). The estimate S^\widehat{S} is positive for all 100 tasks, and H^uv\widehat{H}_{uv} is positive for all 11 pairs of adjacent layers in each of the 100 tasks (1100 pairs; Table 6(b)). These estimates support the positive-alignment condition for our expert pool, and by Propositions 1 and 2, independent grouping lowers the expected linearized feature error under TA, consistent with the positive gap measured above.

Applications of the analysis

Predicting the accuracy of partially shared groupings. Beyond explaining why BRR outperforms shared grouping, the analysis can predict the accuracy of groupings in between, which share a grouping between some pairs of units but not others. If units uu and vv share one grouping draw with probability puvp_{uv} and draw independently otherwise, the pair adds 2puvΓuv2p_{uv}\Gamma_{uv} to the expected linearized feature error relative to independent grouping (Sec. D.3); shared grouping has puv=1p_{uv} = 1 for all pairs and BRR has puv=0p_{uv} = 0. We convert this into accuracy using the measured gain AA of BRR over shared grouping: a grouping aa is predicted to gain

A^(a)=F(a)A,F(a)=∑u<v(1−puv)Γuv∑u<vΓuv,\widehat{A}(a) = F(a) A,\qquad F(a) = \frac{\sum_{u<v}(1-p_{uv})\Gamma_{uv}}{\sum_{u<v}\Gamma_{uv}},

where F(a)F(a) is the fraction of the covariance that aa removes, so that F=0F = 0 for shared grouping, F=1F = 1 for BRR, and groupings in between are interpolated linearly.

We test these predictions on 27 partially shared groupings on ViT-B/32 (Sec. D.3.1). Figure 3 compares each grouping’s predicted and measured accuracy gains; points on the diagonal indicate exact agreement. The measured gains range from 0.6 to 4.3 points, and the predictions are off by 0.16 points on average (results by type: Table 23). These results support using cross-unit covariance to predict the accuracy gains of partially shared groupings.

Figure 3. Predicted versus measured accuracy gain over shared grouping for 27 groupings on ViT-B/32 (five-seed means). Predictions were fixed in advance and calibrated on the measured gain of BRR over shared grouping, so the shared-grouping and BRR endpoints match by construction; the dotted line marks equality.

FamilyArmsCovarianceUniformAdjacent
Cycling / copy-refresh90.170.680.61
Blocks of layers60.170.950.85
Placement of changes60.131.020.71
Ties within a layer60.170.332.44
All270.160.741.09

Table 23. Mean absolute prediction error (accuracy points, ViT-B/32), averaged over the arms of each family. Cycling uses TSV-M; the other families use TSV-M and TA. All rules use the same endpoint calibration. Bold: lowest error in each row. See Sec. D.3.1 for the timing of the two additional TSV-M matrix predictions.

Searching for better groupings. Instead of drawing groupings at random as BRR does, we can choose the groupings that minimize the feature error, estimated either with our first-order analysis or by running the merged model. At each unit, we draw 64 random permutations to obtain 64 balanced candidate groupings, and select one candidate per unit to minimize an objective summed over all tasks. We consider three objectives, from coarse to fine: the single-unit objective, which scores each unit as if it were the only one merged and so ignores interactions between units; the linearized objective, which also includes these interactions; and the actual objective, the true feature error. As there are too many combinations to enumerate, for each objective we first choose candidates unit by unit greedily, then repeatedly revisit each unit and switch it to the candidate that minimizes the objective given the others, until no unit improves. Comparing the first two objectives shows whether accounting for interactions helps, and comparing the last two shows whether the first-order approximation suffices. All three use only unlabeled validation images,

with TSV-M on 100 ViT-B/32 tasks at K=10K = 10, five seeds and a fixed merge scale (Sec. E).

Accounting for interactions helps (Table 7): the linearized objective selects more accurate groupings than the single-unit objective in all five seeds, by 0.29 points at layer level and 0.22 at matrix level. The actual objective adds little further accuracy (0.06–0.09 points), so the first-order approximation largely suffices for this search. The linearized objective also searches faster, because it computes each candidate’s first-order output change once and never runs the merged model during the search, whereas the actual objective runs it for every candidate it considers (Sec. E).

UnitSelection objectiveActual error ↓\downarrowLinear. error ↓\downarrowAccuracy (%) ↑\uparrow
LayerRandom BRR0.5280.68877.53 ±\pm 0.16
Single-unit0.5220.64277.60 ±\pm 0.13
Linearized0.5180.63177.89 ±\pm 0.10
Actual0.5020.65477.95 ±\pm 0.19
MatrixRandom BRR0.4780.62678.38 ±\pm 0.15
Single-unit0.4640.57778.66 ±\pm 0.07
Linearized0.4580.55878.88 ±\pm 0.07
Actual0.4450.59178.97 ±\pm 0.07

Table 7. Random BRR versus group selection under three objectives (TSV-M, 100 ViT-B/32 tasks, K=10K = 10, α=1.4\alpha= 1.4). Held-out feature errors and test accuracies are averaged over five seeds; ±\pm is the standard deviation of accuracy (errors’ standard deviations: Table 32).

Even the best search, however, improves on random BRR by only about half a point, whereas BRR-matrix exceeds shared grouping by 4.59 points (Table 1). Random regrouping thus already obtains most of the gain over shared grouping, while the analysis can still guide a small further improvement.

Conclusion and Future Work

We proposed BRR, which independently draws a balanced random grouping at each layer or weight matrix and merges each group with an existing method; choosing the groups requires no data and only a random permutation of expert indices. By changing merge partners across layers without increasing the module budget, both variants outperform shared grouping in all 24 CLIP configurations. BRR-matrix also outperforms FlexMerge in all 24 configurations and with all four merging methods on InternVL2.5-1B. Our first-order analysis shows that reusing partners introduces correlations between the output-feature shifts caused by merging at different layers. When these correlations are positive overall, the shifts accumulate; independent regrouping removes these correlations and lowers the expected linearized feature error. A series of experiments supports this analysis, which further guides a grouping search that can outperform BRR.

Future work. An important next step is to account for nonlinear feature changes when predicting and selecting groupings. Another is to extend BRR to settings where task identities are unavailable, by selecting shared modules from the input.

LLM Usage Statement

We used OpenAI Codex and Anthropic Claude to help implement and review code and to polish the language of the manuscript.

Experimental setup and reproducibility

Tasks and experts

For each of the 100 image classification tasks, we separately fine-tuned two CLIP [11] image encoders, ViT-B/32 and ViT-L/14, yielding 100 experts per backbone. Across the 100 tasks, fine-tuning increased mean test accuracy from a zero-shot baseline of 42.05% to 85.68% on ViT-B/32 and from 48.11% to 89.79% on ViT-L/14. The README in the code repository (https://github.com/kaiyangli-ml/brr-merging) links to all 200 experts on Hugging Face.

Datasets and splits. We obtained 91 tasks from 86 Hugging Face Hub datasets, cassava from the iCassava 2019 release distributed with TFDS, and eight MedMNIST+ tasks from Zenodo. Table 8 lists the tasks by benchmark suite or application domain and gives the number of classes for each. At the top level of the code repository, TASKS_V3_100.csv lists each dataset’s source, revision, available license information and split sizes, along with per-task expert and zero-shot test accuracies for both backbones.

For 81 tasks, we held out a stratified 10% sample of the training split for validation. For another 17 tasks, we used the published validation splits, which hold out entire slides in PCam and entire videos in the KITTI distance task. For the two smallNORB tasks, we kept all images of the same toy in the same split. Within each category, we used all images of toy 9 for validation, toys 4, 6, 7 and 8 for training, and toys 0, 1, 2, 3 and 5 for testing.

For 86 tasks, including both smallNORB tasks, we used the official test split. For another ten tasks, we used a fixed hash-based rule to select 20% of a published split as the test set. For the remaining four tasks (food101, tomato_leaf, fairface_age and chess_pieces), we used the published validation split for testing and held out a stratified 10% sample of the training split for validation.

Expert training. We fine-tuned only the image encoder and kept the zero-shot classifier built from class-name prompts fixed. We trained each expert for 4,000 steps using Adam with a batch size of 128, a learning rate of 10−510^{-5}, a cosine learning rate schedule and no weight decay.

Overlap audit and sensitivity. After removing byte-identical images across splits within each task, we compared pixel hashes across all 5.76 million images and found 99 within-task matches between training and test images across three tasks. The only cross-task overlap we detected was between tomato_leaf and plantvillage, with about 2,500 test images from each task appearing in the other task’s training split. In total, five tasks had test images that also appear in a training split, and four of them had more than two each: brain_tumor_mri, food101, tomato_leaf and plantvillage.

On ViT-B/32 with TSV-M and K=10K = 10, we kept all 100 experts and their merged models fixed and averaged the test accuracy gain of BRR-layer over shared grouping first across all 100 tasks and then across the 95 tasks without detected overlap. Excluding the five affected tasks changed the mean gain from 3.75 to 3.76 percentage points at the validation-selected α\alpha and from 2.07 to 2.08 percentage points at α=1\alpha= 1.

Grouping baselines and statistics

Grouping baselines. We compare shared grouping and both BRR variants at the same storage budget, using the same merge operator and the same set of grouping seeds. At each of the 53 module positions in ViT-B/32, we use FlexMerge’s [4] official greedy complete-linkage procedure to group the corresponding expert modules. For each output channel, Channel Merging clusters the corresponding task-vector rows across experts using spherical KK-means and merges each cluster using Eq. (3) of the Channel Merging paper [20].

Statistical reporting. For each task, we average the accuracy difference between methods over grouping seeds. We count tasks with a positive average difference as improved and, unless otherwise noted, compute 95% confidence intervals for the mean gain by resampling these task-level differences with replacement (2,000 bootstrap resamples). The intervals for Table 1 also account for variation across grouping seeds (Sec. B.1).

Evaluation protocol and scale selection

Evaluation precision

We evaluate all merged models in FP32 with TF32 matrix multiplication disabled.

Scale selection and candidate grids

For each CLIP backbone and budget, and for each combination of grouping method, merge operator and applicable grouping seed, we evaluate candidate values of α\alpha on a fixed validation sample of up to 1,000 images per task. We select the value with the highest mean validation accuracy across tasks and use it for all tasks and units in that run. The initial grid depends on the merge operator, with shared grouping, BRR and FlexMerge using the same candidates for a given operator.

Initial CLIP merge-scale grids
MethodInitial α\alpha grid (K>1K > 1)
TSV-M0.8, 1.0, 1.2, 1.4, 1.6, 2.0
Task Arithmetic1.0, 1.4, 1.6, 2.0, 2.5, 3.0
Iso-CTS0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 2.0, 2.5, 3.0
ACE-Merging0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 2.0
Channel Merging0.25, 0.5, 0.75, 1.0, 1.4, 1.6, 2.0, 2.5, 3.0

Table 8. Initial CLIP merge-scale grids

Group (count)Tasks
FusionBench (TALL20) (20)sun397 (397), stanford cars (196), resisc45 (45), eurosat (10), svhn (10), gtsrb (43), mnist (10), dtd (47), oxford flowers102 (102), pcam (2), fer2013 (7), oxford pets (37), stl10 (10), cifar100 (100), cifar10 (10), food101 (101), fashion mnist (10), emnist letters (26), kmnist (10), rendered sst2 (2)
VTAB / ELEVATER (12)caltech101 (102), fgvc aircraft (100), country211 (211), clevr count (8), clevr distance (6), dmlab (6), dsprites orientation (40), dsprites location (32), smallnorb azimuth (18), smallnorb elevation (9), diabetic retinopathy (5), kitti distance (4)
Fine-grained and food (12)cub200 (200), stanford dogs (120), birds525 (525), butterflies100 (34), fruits360 (113), pokemon (150), inat wildflowers25 (25), ip102 insects (102), vietnamese food (30), indian food (20), food11 (11), sports100 (100)
Objects and scenes (5)mit indoor67 (67), imagewoof (10), tiny imagenet (200), caltech256 (257), intel scenes (6)
DomainNet (6)domainnet clipart (345), domainnet infograph (345), domainnet painting (345), domainnet quickdraw (345), domainnet real (345), domainnet sketch (345)
Remote sensing (4)whu rs19 (19), rsscn7 (7), patternnet (38), uc merced (21)
Agriculture (6)beans (3), plantvillage (38), cassava (5), cotton leaf (7), tomato leaf (9), fruit ripeness (4)
Medical (18)colorectal histology (8), dermamnist (7), hyper kvasir (23), malaria cells (2), retinamnist (5), breastmnist (2), bloodmnist (8), tissuemnist (8), organamnist (11), organcmnist (11), organsmnist (11), brain tumor mri (4), alzheimer mri (4), chest xray covid (3), dermnet (23), brain hemorrhage (2), lc25000 (5), eeg seizure spectrogram (2)
Characters, documents, people, other (17)usps (10), asl hand gestures (36), bangla vs assamese script (2), rvl cdip (16), galaxy10 decals (10), human action (15), yoga poses (5), fairface age (9), wikiart style (27), wonders of world (12), clothes (7), hagrid gestures (24), deepfake vs real (2), music genre spectrogram (12), chess pieces (13), football players (22), person presence (2)

Table 8 (PDF p. 11). The 100 tasks of our expert pool, grouped by benchmark suite or application domain. The number after each task name gives its class count.

For CLIP Task Arithmetic, α=1\alpha= 1 gives 1.5 times the group-mean task vector. At K=1K = 1, the TSV-M, Task Arithmetic and Iso-CTS grids extend down to 0.2.

A.3.3 Grid-boundary checks. TA or Iso-CTS selected the upper bound of α=3.0\alpha= 3.0 in 56 runs across 12 configurations; for these we tested three additional values (3.5, 4.0 and 5.0) on the same validation data. Only Iso-CTS on ViT-L/14 at K=20K = 20 selected a larger scale: BRR-matrix chose 3.5 in all five runs and BRR-layer chose 3.5 in four of five, while shared grouping (all five runs) and FlexMerge retained 3.0. Table 1 reports this configuration at the extended selection. TSV-M and ACE-Merging never selected the top of their grids (2.0). In the three configurations where Channel Merging selected the lower bound of 0.25, all 15 runs still selected 0.25 after we extended the grid down to 0.05 in steps of 0.05.

Full results and grouping controls

Paired accuracy differences

Within each setting of Table 1, we computed test accuracy differences between methods on the same task and grouping seed. We resampled both tasks and seeds 4,000 times to estimate a 95% confidence interval for each mean difference. We summarize these intervals by counting how many lie entirely above zero. For each BRR variant compared with shared grouping, all 24 do. For BRR-matrix over BRR-layer, it lay above zero in 15 settings: 11 of 12 on ViT-B/32 and 4 of 12 on ViT-L/14.

Fixed and selected merge scale

At a fixed merge scale of α=1\alpha= 1, both BRR variants achieved higher mean accuracy than shared grouping in all 24 CLIP settings (Table 9). With TSV-M, Iso-CTS and ACE-Merging, both variants also outperformed FlexMerge at every budget on both backbones, covering all 18 settings for these three operators. With Task Arithmetic at the same fixed scale, FlexMerge was more accurate than both BRR variants in five of six settings. When each method used its validation-selected scale, both BRR variants outperformed FlexMerge in all six Task Arithmetic settings (Table 1).

KKMethodViT-B/32 TAViT-B/32 TSV-MViT-B/32 Iso-CTSViT-B/32 ACEViT-L/14 TAViT-L/14 TSV-MViT-L/14 Iso-CTSViT-L/14 ACE
5FlexMerge49.7466.9066.1370.3656.8675.4976.4378.99
Shared48.7368.3267.2772.6557.5577.6677.6481.95
BRR-layer49.0570.5469.0875.7357.6579.2878.5383.54
BRR-matrix49.0271.1969.4976.2557.6979.3678.6283.74
10FlexMerge57.6771.5866.2976.0465.3979.9576.6283.40
Shared54.2773.2167.8377.8064.5381.0877.0985.14
BRR-layer55.2775.2868.7980.4065.0182.6677.8286.54
BRR-matrix55.3375.8269.1780.8365.1682.7777.8386.66
20FlexMerge68.1475.6364.5679.1875.3982.7373.8885.64
Shared64.7577.1065.0880.5973.9184.1775.2187.03
BRR-layer66.2479.0765.8882.6274.9585.2475.5588.02
BRR-matrix66.7279.4766.0483.1075.1085.3975.6788.15

Table 9. Mean test accuracy (%) over 100 tasks at α=1\alpha= 1. Random groupings are averaged over five seeds. FlexMerge uses one deterministic grouping. Bold marks the highest accuracy for each backbone, budget and merge operator.

Balance and independence at K=10K=10 on ViT-B/32

Using TSV-M on 100 ViT-B/32 tasks at K=10K = 10, we compared shared grouping with independent grouping at each weight matrix under two conditions: equal group sizes and unequal sizes fixed before evaluation (Table 10). At validation-selected scales, independent grouping improved mean test accuracy by 4.59 points with equal group sizes and by 4.52 points with unequal sizes, improving 95 and 92 of the 100 tasks, respectively. Equal group sizes added 1.41 points under shared grouping and 1.48 points under independent grouping. At fixed α=1\alpha= 1, independent grouping still added more (2.61 and 2.71 points) than equal group sizes (1.23 and 1.13 points).

Balance and independence across settings

Table 11 extends this comparison to six additional settings covering other merge operators, budgets and ViT-L/14. In all six settings, both independent grouping and equal group sizes improved mean test accuracy, with a larger gain from independent grouping.

BackboneMergingKKUnbalanced sizes sharedUnbalanced sizes independentBalanced sizes sharedBalanced sizes independent
ViT-B/32TA1056.1861.5157.4061.87
ViT-B/32Iso-CTS1069.9275.0573.0777.58
ViT-B/32ACE-Merging1076.0779.8077.8180.83
ViT-B/32TSV-M565.5770.1668.3272.35
ViT-B/32TSV-M2076.8981.1878.0281.99
ViT-L/14TSV-M1081.0183.8882.0384.96

Table 11. Balance and independent regrouping in six further settings. Mean test accuracy (%) over 100 tasks at validation-selected scales, averaged over five grouping seeds; independent grouping draws a partition per matrix. At K=10K = 10, unequal group sizes are as in Table 10. For K=5K = 5, adjacent groups are combined (43, 25, 16, 10, 6). For K=20K = 20, each group is halved as evenly as possible.

Balanced grouping by task-vector similarity

With group sizes held equal, does grouping experts by task-vector cosine similarity improve on random grouping? We use negative cosine similarity as the pairwise cost, computed over the whole network for shared grouping or separately within each weight matrix for per-matrix grouping. We embed the cost matrix [12], run balanced KK-means from eight initializations, and refine each partition by swapping task pairs. Before evaluating accuracy, we select the partition with the lowest cost.

Group sizesSharedIndependentGain
Validation-selected α\alpha
Balanced73.7978.38+4.59
Unbalanced72.3876.90+4.52
Balance gain+1.41+1.48–
Fixed α=1\alpha= 1
Balanced73.2175.82+2.61
Unbalanced71.9874.69+2.71
Balance gain+1.23+1.13–

Table 10 (PDF p. 12). (b) Accuracy and gains at K=10K = 10

Table 10. Balance and independent regrouping on ViT-B/32 with TSV-M at K=10K = 10, 100 tasks, averaged over five grouping seeds. (a) 95% intervals for gains (points) and counts of improved tasks at validation-selected scales. (b) Mean test accuracy (%) and gains (points) at selected and fixed scales. Independent grouping draws a partition per matrix. Unequal group sizes are 25, 18, 14, 11, 9, 7, 6, 4, 3 and 3.

Condition95% CITasks improved
Independent minus shared
Balanced[3.71, 5.56]95/100
Unbalanced[3.53, 5.54]92/100
Balanced minus unbalanced
Shared[0.58, 2.18]73/100
Independent[1.14, 1.87]91/100

Table 10. (a) Gains at the validation-selected α\alpha

Clustered and random groupings use the same validation grid. Clustering gives lower mean accuracy in 17 of 20 comparisons (Tables 12 to 14). Its three gains all occur with TA and range from 0.28 to 0.61 percentage points. On ViT-B/32 at K=10K = 10, expert pairs grouped together at one matrix remain together at another in 27% of cases under per-matrix clustering, compared with 9% under BRR-matrix (Table 5). Section C.5 gives the expected repeat rate under random grouping.

BRR-matrix gains across merge operators

On 100 ViT-B/32 tasks at K=10K = 10, BRR-matrix improves on shared grouping with all four grouping-only operators (Table 15). At validation-selected scales, the gains range from 3.02 to 4.59 points, every 95% interval lies above zero, and 93 to 99 of the 100 tasks improve. At α=1\alpha= 1, the gains are smaller for TA, TSV-M and Iso-CTS (1.06 to 2.61 points) and essentially unchanged for ACE-Merging (3.03 versus 3.02 points). With the mask-based operators, which keep task-specific masks, the gains are 0.72 points with EMR-Merging and 0.20 points with TALL masks, both with intervals above zero (Table 15).

Merge operatorSelected α\alphaα=1\alpha=1
SharedBRR-layerBRR-matrixgain [95% CI], tasks improvedgain
Task Arithmetic57.4061.1061.87+4.47 [3.61, 5.30], 99/100+1.06
TSV-M73.7977.5378.38+4.59 [3.71, 5.56], 95/100+2.61
Iso-CTS73.0776.3177.58+4.51 [3.62, 5.51], 93/100+1.34
ACE-Merging77.8180.4080.83+3.02 [2.45, 3.68], 94/100+3.03
EMR-Merging81.8782.4782.58+0.72 [0.42, 1.00], 77/100+0.61
TALL masks84.4984.6884.70+0.20 [0.07, 0.32], 70/100+0.17

Table 15. Mean test accuracy (%) over 100 ViT-B/32 tasks at K=10K = 10, averaged over five seeds. Gains compare BRR-matrix with shared grouping (percentage points, computed before rounding). EMR and TALL store additional task-specific masks (Table 35). TA accuracy is lower at α=1\alpha= 1 for all three groupings (Table 1 and Table 9).

MethodKKMembersSharedPer matrix
TSV-M5Random68.3272.35
Similarity67.0870.27
20Random78.0281.99
Similarity75.0078.53
TA5Random50.3151.50
Similarity50.9251.78
20Random67.8474.66
Similarity64.8768.91

Table 13. Similarity clustering on ViT-B/32 at K=5K = 5 and 20. Values are mean accuracy (%) on 100 tasks at validation-selected scales. Random groupings use five seeds; similarity clustering uses one deterministic run. Bold: the higher of random and similarity grouping for the same grouping scheme and operator.

ScopeMembersTATSV-M
ViT-L/14, K=10K = 10
SharedRandom70.1282.03
Similarity68.5780.07
Per matrixRandom74.5484.96
Similarity70.7782.86

Table 14. Mean test accuracy (%) for random and similarity-clustered balanced groups on ViT-L/14 at K=10K = 10, using TA and TSV-M at validation-selected scales. Random groupings use five seeds; similarity clustering uses one deterministic run. Bold: the higher of random and similarity grouping for the same grouping scheme and operator.

Backbone, task counts and budgets

Task counts and storage budgets. The number of tasks and the storage budget together determine how many partners each expert has at a unit. Across nine combinations of task count and budget on ViT-B/32, BRR-matrix gains 1.61–4.99 points over shared grouping with TSV-M (Table 16). The 95% interval lies above zero in every setting, and 78–97% of tasks improve within each setting. Across the 16 ViT-B/32 rows shown for Iso-CTS and ACE-Merging, gains range from 1.29 to 4.78 points, with all intervals above zero.

BackboneOperatorNNKKshared groupingBRR-matrixgain [95% CI]tasks improved
ViT-L/14TA1001070.1274.54+4.42 [3.47, 5.36]95/100
ViT-L/14TSV-M1001082.0384.96+2.93–
ViT-L/14Iso-CTS1001083.8586.13+2.28 [1.58, 3.14]88/100
ViT-L/14ACE-Merging1001085.1286.84+1.72 [1.00, 2.57]83/100
ViT-B/32TSV-M100259.7161.71+2.00 [1.54, 2.46]88/100
ViT-B/32TSV-M100568.3272.35+4.03 [3.01, 5.05]87/100
ViT-B/32TSV-M1001073.7978.38+4.59 [3.71, 5.56]95/100
ViT-B/32TSV-M1002078.0281.99+3.97 [3.01, 4.97]97/100
ViT-B/32TSV-M50568.6873.67+4.99 [2.71, 7.87]39/50
ViT-B/32TSV-M501074.2078.55+4.35 [3.03, 5.78]45/50
ViT-B/32TSV-M20280.2382.36+2.12 [0.75, 3.77]16/20
ViT-B/32TSV-M20484.3486.66+2.32 [1.43, 3.31]18/20
ViT-B/32TSV-M20585.6687.26+1.61 [1.01, 2.32]18/20
ViT-B/32Iso-CTS100260.2862.67+2.39 [1.82, 2.95]90/100
ViT-B/32Iso-CTS100568.3973.16+4.78 [3.79, 5.76]96/100
ViT-B/32Iso-CTS1002074.5978.99+4.40 [3.44, 5.39]92/100
ViT-B/32Iso-CTS50567.9872.56+4.58 [3.46, 5.79]47/50
ViT-B/32Iso-CTS501070.5575.00+4.45 [2.80, 6.26]40/50
ViT-B/32Iso-CTS20278.5681.49+2.93 [0.88, 5.50]14/20
ViT-B/32Iso-CTS20481.5484.80+3.27 [1.69, 5.27]18/20
ViT-B/32Iso-CTS20581.9784.64+2.67 [1.32, 4.53]16/20
ViT-B/32ACE-Merging100263.1565.25+2.10 [1.24, 2.97]67/100
ViT-B/32ACE-Merging100572.6576.22+3.57 [2.93, 4.28]95/100
ViT-B/32ACE-Merging1002080.6783.10+2.43 [1.64, 3.43]84/100
ViT-B/32ACE-Merging50572.9177.03+4.11 [2.15, 6.26]45/50
ViT-B/32ACE-Merging501077.8380.16+2.32 [1.20, 3.67]42/50
ViT-B/32ACE-Merging20283.5585.78+2.22 [1.28, 3.46]20/20
ViT-B/32ACE-Merging20486.6588.47+1.82 [0.98, 2.86]19/20
ViT-B/32ACE-Merging20587.4688.75+1.29 [0.85, 1.82]19/20

Table 16. BRR-matrix versus shared grouping at validation-selected scales. Accuracy is the mean test accuracy (%) over NN tasks. Rows with N=100N = 100 and K∈{5,10,20}K \in\{5, 10, 20\} use five grouping seeds; all other rows use three. Smaller pools use the first NN tasks in a fixed order. For TSV-M on ViT-L/14, only the mean gain is available.

Larger budgets. At K=25K = 25 on ViT-B/32, BRR-matrix gains 3.20 points over shared grouping with TSV-M and 5.85 with TA. At K=50K = 50, where each expert has just one partner per unit, the gains are 1.79 with TSV-M and 2.60 with TA, the latter with every TA run at the lower grid boundary α=1\alpha= 1 (Table 17).

KKMethodSharedBRR-layerBRR-matrix
25TSV-M79.60±0.1379.60 \pm0.1382.15±0.1182.15 \pm0.1182.80±0.1682.80 \pm0.16
25TA71.55±0.1371.55 \pm0.1376.28±0.4176.28 \pm0.4177.40±0.1177.40 \pm0.11
50TSV-M82.73±0.1682.73 \pm0.1684.34±0.1284.34 \pm0.1284.52±0.0984.52 \pm0.09
50TA†80.52±0.2980.52 \pm0.2982.71±0.0982.71 \pm0.0983.12±0.1583.12 \pm0.15

Table 17. Larger budgets on ViT-B/32, N=100N = 100. Mean test accuracy (%) and sample standard deviation over three grouping seeds, validation-selected α\alpha. †: at K=50K = 50, every TA run selected the lower boundary of the grid (α=1\alpha= 1).

Regrouping publicly released CLIP experts

To test whether regrouping also helps with experts trained outside our pipeline, we evaluated TA and TSV-M on the public checkpoints released by Wang et al. [15] for the 8-, 14- and 20-task CLIP suites. Our 100-task pool includes the TALL20 tasks in FusionBench [14], for which we trained our own experts. We selected merge scales on the public validation splits. The initial grids started at 1.0 for TA and 0.8 for TSV-M. If validation selected the lower bound, we also tested {0.4,0.6,0.8}\{0.4, 0.6, 0.8\} for TA or {0.4,0.6}\{0.4, 0.6\} for TSV-M. Whether the released experts saw any of the validation images during training is unknown.

Across eight task-count and budget combinations, two backbones and two merge operators, BRR-matrix achieved higher mean test accuracy than shared grouping in all 32 settings (Table 18). BRR-layer did so in 31 settings, with the sole exception of TSV-M on ViT-L/14 at N=20N = 20 and K=10K = 10. At least one BRR variant outperformed FlexMerge in 25 of the 32 settings. BRR-matrix with TA outperformed Channel Merging in 14 of 16 comparisons.

Table 18. Mean test accuracy (%) on the public 8-, 14- and 20-task suites [15]. Randomized methods report mean ±\pm standard deviation over five grouping seeds. FlexMerge is deterministic. Channel Merging uses its own merge rule and appears in the TA columns. Bold marks the highest mean among grouping methods for each backbone, operator and budget.

NNKKMethodViT-B/32 TAViT-B/32 TSV-MViT-L/14 TAViT-L/14 TSV-M
8–Experts92.9395.87
–Zero-shot48.0265.32
1One model70.6485.6284.8492.96
2Channel Merging84.25±\pm0.15–92.09±\pm0.08–
FlexMerge83.2889.4891.6594.42
Shared81.54±\pm0.3589.33±\pm0.3091.86±\pm0.2694.80±\pm0.13
BRR-layer83.75±\pm0.4390.59±\pm0.0892.86±\pm0.1595.23±\pm0.05
BRR-matrix84.44±\pm0.2490.91±\pm0.0993.05±\pm0.1295.31±\pm0.03
4Channel Merging90.74±\pm0.09–95.00±\pm0.03–
FlexMerge89.2491.3194.2395.13
Shared90.17±\pm0.1791.94±\pm0.1695.25±\pm0.0995.60±\pm0.05
BRR-layer91.44±\pm0.1092.51±\pm0.0795.56±\pm0.0395.83±\pm0.02
BRR-matrix91.71±\pm0.1692.60±\pm0.1095.62±\pm0.0395.82±\pm0.03
14–Experts90.9494.33
–Zero-shot57.0668.55
1One model65.3079.9179.5989.20
2Channel Merging74.81±\pm0.12–85.33±\pm0.11–
FlexMerge76.2883.3686.2591.30
Shared73.01±\pm0.2884.68±\pm0.4484.74±\pm0.1891.19±\pm0.20
BRR-layer74.60±\pm0.4385.80±\pm0.1386.10±\pm0.1692.17±\pm0.06
BRR-matrix75.04±\pm0.2086.27±\pm0.1486.14±\pm0.1492.21±\pm0.07
7Channel Merging86.52±\pm0.20–90.96±\pm0.11–
FlexMerge87.7889.2592.7493.47
Shared87.79±\pm0.3689.57±\pm0.1993.08±\pm0.1493.66±\pm0.05
BRR-layer89.29±\pm0.2290.17±\pm0.2093.65±\pm0.0693.98±\pm0.05
BRR-matrix89.61±\pm0.1290.37±\pm0.1293.76±\pm0.0494.09±\pm0.04
20–Experts91.4194.76
–Zero-shot56.0065.48
1One model61.2476.6076.0387.67
2Channel Merging68.10±\pm0.10–82.36±\pm0.10–
FlexMerge69.6380.6081.9390.12
Shared66.33±\pm0.5782.50±\pm1.2780.74±\pm0.1589.63±\pm0.53
BRR-layer67.78±\pm0.2584.38±\pm0.2081.74±\pm0.1290.87±\pm0.31
BRR-matrix68.08±\pm0.1384.60±\pm0.2181.78±\pm0.0990.88±\pm0.09
4Channel Merging75.43±\pm0.28–85.95±\pm0.06–
FlexMerge77.1984.9488.5091.86
Shared78.06±\pm1.1886.86±\pm0.6087.52±\pm0.8391.42±\pm1.24
BRR-layer80.14±\pm0.3188.47±\pm0.1389.25±\pm0.1591.91±\pm0.32
BRR-matrix81.19±\pm0.3288.78±\pm0.1789.27±\pm0.1491.83±\pm0.13
5Channel Merging78.08±\pm0.16–87.02±\pm0.07–
FlexMerge80.7386.4789.5592.22
Shared80.76±\pm0.8088.00±\pm0.2388.50±\pm1.0891.19±\pm1.17
BRR-layer83.80±\pm0.2789.19±\pm0.1690.19±\pm0.1591.55±\pm0.11
BRR-matrix84.60±\pm0.1689.54±\pm0.1190.63±\pm0.2391.92±\pm0.19
10Channel Merging86.64±\pm0.12–90.20±\pm0.09–
FlexMerge87.8389.3192.4993.15
Shared88.54±\pm0.3090.23±\pm0.1391.52±\pm0.9391.93±\pm1.07
BRR-layer89.90±\pm0.1590.67±\pm0.1491.69±\pm0.0791.71±\pm0.07
BRR-matrix90.28±\pm0.0590.88±\pm0.0991.94±\pm0.1391.95±\pm0.14

Table 18.

Theory and proofs

Details for the covariance analysis

Proof of Proposition 1 (covariance identity). Fix a task tt, the merging method and the merge scale. With ϕu\phi_u and ϕ~u\tilde{\phi}_u as in § 4.1, the first-order feature shift at unit uu is ϕu(gu,x)=ϕ~u(x)+ϕ~u(gu,x)\phi_u(g_u,x)=\tilde{\phi}_u(x)+\tilde{\phi}_u(g_u,x), and the deviation ϕ~u(gu,x)\tilde{\phi}_u(g_u,x) has mean zero over gug_u for each fixed xx. Both schemes draw gug_u from the same distribution, and the update at unit uu depends only on gug_u. Thus the expected single-unit error, EguEx∥ϕu(gu,x)∥2\mathbb{E}_{g_u}\mathbb{E}_x\lVert\phi_u(g_u,x)\rVert^2, is the same under both schemes. These terms cancel when we subtract the two expected errors in Eq. (3).

Now consider two distinct units uu and vv. For a fixed input xx, expanding the inner product of their shifts gives four terms. We suppress the arguments for readability.

⟨ϕu,ϕv⟩=⟨ϕˉu,ϕˉv⟩+⟨ϕˉu,ϕ~v⟩+⟨ϕ~u,ϕˉv⟩+⟨ϕ~u,ϕ~v⟩.\langle\phi_u,\phi_v\rangle= \langle\bar{\phi}_u,\bar{\phi}_v\rangle+ \langle\bar{\phi}_u,\tilde{\phi}_v\rangle + \langle\tilde{\phi}_u,\bar{\phi}_v\rangle+ \langle\tilde{\phi}_u,\tilde{\phi}_v\rangle.

The first term is the same under both schemes because each unit has the same mean shift under both. The two mixed terms have expectation zero under either scheme. For example, at fixed xx, ϕˉu(x)\bar{\phi}_u(x) is fixed and ϕ~v(gv,x)\tilde{\phi}_v(g_v,x) has mean zero. Only the last term can differ between the schemes.

Under shared grouping, both units use the same draw gg. Averaging the last term over groupings and inputs gives the cross-unit covariance defined in § 4.1,

ExEg[ϕ~u(g,x),ϕ~v(g,x)]=Γuv.\mathbb{E}_x\mathbb{E}_g[\tilde{\phi}_u(g,x),\tilde{\phi}_v(g,x)] = \Gamma_{uv}.

Under independent grouping, the units draw gug_u and gvg_v independently. For each fixed xx, the expected inner product therefore factors into the inner product of the two means,

Egu,gv[ϕ~u(gu,x),ϕ~v(gv,x)]=⟨Eguϕ~u(gu,x),Egvϕ~v(gv,x)⟩=0.\mathbb{E}_{g_u,g_v}[\tilde{\phi}_u(g_u,x),\tilde{\phi}_v(g_v,x)] = \langle\mathbb{E}_{g_u}\tilde{\phi}_u(g_u,x),\mathbb{E}_{g_v}\tilde{\phi}_v(g_v,x)\rangle= 0.

The shared-minus-independent difference for this pair is therefore Γuv\Gamma_{uv}. In the squared norm in Eq. (3), each unordered pair contributes twice, once in each order. Summing over pairs gives Eq. (4):

Eg[Dt,sharedlin]−Eg[Dt,indeplin]=2∑u<vΓuv.\mathbb{E}_g[D_{t,\mathrm{shared}}^{\mathrm{lin}}] - \mathbb{E}_g[D_{t,\mathrm{indep}}^{\mathrm{lin}}] = 2\sum_{u<v}\Gamma_{uv}.

From linearized to true feature error. Fix the merge scale α\alpha and multiply each weight change from the expert by ϵ\epsilon. The linearized feature error then scales as ϵ2\epsilon^2. If the output is smooth in ϵ\epsilon near the expert (ϵ=0\epsilon= 0), the true feature-error gap satisfies

E[Dt,shared]−E[Dt,indep]=2ϵ2∑u<vΓuv+O(ϵ3).(6)\mathbb{E}\left[D_{t,\mathrm{shared}}\right]-\mathbb{E}\left[D_{t,\mathrm{indep}}\right]=2\epsilon^2\sum_{u<v}\Gamma_{uv}+O(\epsilon^3). \tag*{(6)}

Here Γuv\Gamma_{uv} uses the full weight displacements (ϵ=1\epsilon= 1) and the Jacobians evaluated at the expert. The multiplier ϵ\epsilon scales the displacement from the expert, whereas α\alpha scales the merged update.

Layer and matrix grouping. Pairs of matrices in different layers draw independent groupings under both BRR-layer and BRR-matrix, whereas pairs in the same layer share a grouping under BRR-layer but not under BRR-matrix. Summing the covariances of the same-layer pairs gives the expected linearized feature error under BRR-layer minus that under BRR-matrix, 2∑b∑m<n∈bΓmn2\sum_b\sum_{m<n\in b}\Gamma_{mn}, where bb indexes layers.

Proof of Proposition 2 (partner covariance)

Fix a task tt. In a uniformly sampled balanced grouping, its expert belongs to a group of size q=N/Kq=N/K. The expert itself is always in the group, so only its partners vary across draws. Let AA denote the set of r=q−1r=q-1 partners sampled without replacement from the M=N−1M=N-1 other experts. As in § 4.1, let τˉu\bar{\tau}_u be the mean task vector of these MM candidates at unit uu, and write ψj,u(x)=Ju(x)(τj,u−τˉu)\psi_{j,u}(x)=J_u(x)(\tau_{j,u}-\bar{\tau}_u) for partner jj’s contribution relative to that mean. Under TA, the centered feature shift is the scaled sum over the selected partners, while the contributions over all candidates sum to zero:

ϕ~u(g,x)=λ∑j∈Aψj,u(x),∑j≠tψj,u(x)=0.\tilde{\phi}_u(g,x)=\lambda\sum_{j\in A}\psi_{j,u}(x),\qquad\sum_{j\ne t}\psi_{j,u}(x)=0.

Under shared grouping, units uu and vv use the same partner set AA. Fix xx and omit it from the notation. Expanding the inner product gives

⟨ϕ~u,ϕ~v⟩=λ2∑j∈A∑k∈A⟨ψj,u,ψk,v⟩.\langle\tilde{\phi}_u,\tilde{\phi}_v\rangle=\lambda^2\sum_{j\in A}\sum_{k\in A}\langle\psi_{j,u},\psi_{k,v}\rangle.

A term with j=kj=k appears whenever partner jj is selected, with probability r/Mr/M. A term with j≠kj\ne k requires both partners to be selected, with probability r(r−1)/[M(M−1)]r(r-1)/[M(M-1)].

To combine these terms, sum over all MM candidate partners. Since their centered contributions sum to zero at each unit,

0=⟨∑jψj,u,∑kψk,v⟩=∑j⟨ψj,u,ψj,v⟩+∑j≠k⟨ψj,u,ψk,v⟩.0=\left\langle\sum_j\psi_{j,u},\sum_k\psi_{k,v}\right\rangle =\sum_j\langle\psi_{j,u},\psi_{j,v}\rangle+\sum_{j\ne k}\langle\psi_{j,u},\psi_{k,v}\rangle.

Thus the sum over distinct partners is the negative of the sum over identical partners. Averaging the latter over target images gives MHuvMH_{uv}, since HuvH_{uv} is the mean alignment over the MM candidates. Weighting the two sums by their inclusion probabilities and substituting r=q−1r=q-1 and M=N−1M=N-1 gives Eq. (5):

Γuv=λ2[rM−r(r−1)M(M−1)]MHuv=λ2r(M−r)M−1Huv=λ2(q−1)(N−q)N−2Huv.(7)\begin{aligned} \Gamma_{uv} &=\lambda^2\left[\frac{r}{M}-\frac{r(r-1)}{M(M-1)}\right]MH_{uv}\\ &=\lambda^2\frac{r(M-r)}{M-1}H_{uv}\\ &=\lambda^2\frac{(q-1)(N-q)}{N-2}H_{uv}. \tag*{(7)} \end{aligned}

For N>2N>2, λ>0\lambda>0 and 1<K<N1<K<N, the coefficient cc is positive. □

By Proposition 1, the expected linearized feature error under shared grouping minus that under independent grouping is therefore 2cS2cS, where S=∑u<vHuvS=\sum_{u<v}H_{uv}. Independent grouping has lower expected linearized error exactly when S>0S>0.

Budget dependence. With the coefficient of the group mean held fixed at β=qλ\beta=q\lambda (β=1.5α\beta=1.5\alpha in our CLIP experiments), the budget KK enters through the group size q=N/Kq=N/K, giving c=β2(q−1)(N−q)/[q2(N−2)]c=\beta^2(q-1)(N-q)/[q^2(N-2)]. For N=100N=100, this is 0.010β20.010\beta^2, 0.083β20.083\beta^2 and 0.155β20.155\beta^2 at K=2K=2, 1010 and 2020, so at a fixed merge scale the covariance available to remove depends on KK.

Optimal merge scale

Proposition 1 compares shared and independent grouping at a fixed merge scale. Here we ask whether independent grouping still gives lower expected feature error when each scheme uses its own optimal scale. We take the pretrained model as the reference and assume that features vary linearly with the weight updates over the scales considered, with the same Jacobians at every scale. Let ee be the expert’s feature change relative to the pretrained model, and let aa be the corresponding change for one random grouping at α=1\alpha=1. At scale α\alpha, the merged model’s feature change is αa\alpha a.

Both schemes have the same mean response aˉ=Eg[a]\bar{a}=\mathbb{E}_g[a] because they use the same grouping distribution at each unit. Let V=Eg∥a−aˉ∥2V=\mathbb{E}_g\lVert a-\bar{a}\rVert^2 measure how much the response varies across groupings. With squared norms and inner products averaged over target images, the expected feature error is

E(α)=Eg∥αa−e∥2=∥αaˉ−e∥2+α2V.\mathcal{E}(\alpha)=\mathbb{E}_g\lVert\alpha a-e\rVert^2=\lVert\alpha\bar{a}-e\rVert^2+\alpha^2V.

The first term is the same for both schemes. Because the Jacobians do not change with the scale, the argument of Proposition 1 applies to the centered response a−aˉa-\bar{a} and gives Vshared−Vindep=2∑u<vΓuvV_{\mathrm{shared}}-V_{\mathrm{indep}}=2\sum_{u<v}\Gamma_{uv}, with the covariances evaluated at α=1\alpha=1. When their sum is positive, independent grouping has smaller VV and hence lower expected error at every positive scale.

Minimizing E(α)\mathcal{E}(\alpha) gives

α⋆=⟨aˉ,e⟩∥aˉ∥2+V,E(α⋆)=∥e∥2−⟨aˉ,e⟩2∥aˉ∥2+V.\alpha^\star= \frac{\langle\bar{a},e\rangle}{\lVert\bar{a}\rVert^2+V}, \qquad\mathcal{E}(\alpha^\star)=\lVert e\rVert^2-\frac{\langle\bar{a},e\rangle^2}{\lVert\bar{a}\rVert^2+V}.

If ⟨aˉ,e⟩>0\langle\bar{a},e\rangle>0 and both optima lie inside the allowed range, the smaller VV under independent grouping gives a larger optimal scale. Its error is already lower at the optimum for shared grouping and decreases further at its own optimum. This calculation minimizes expected feature error over a continuous range of scales. In the experiments, we select the scale from a discrete grid using validation accuracy.

Layer alignment at the first step

Can a shared training signal make updates at different layers shift the output in similar directions? Consider one gradient descent step, using the same network and images to compute the update and measure its effect on the output. Fix the layer Jacobians and let all layers receive the same output gradient ss, with mean zero and identity covariance. If JuJ_u is the output Jacobian for layer uu and η\eta is the step size, updating that layer alone changes the output by δu=−ηJuJuTs\delta_u=-\eta J_uJ_u^{\mathsf{T}}s to first order. For two layers uu and vv, the expected inner product of their output changes is

Es⟨δu,δv⟩=η2∥JuJvT∥F2≥0.\mathbb{E}_s\langle\delta_u,\delta_v\rangle=\eta^2\lVert J_uJ_v^{\mathsf{T}}\rVert_F^2\ge0.

Thus a shared gradient gives a nonnegative interaction on average. If the two layers receive independent zero-mean gradients, the expected interaction is zero. For Gaussian ss, the first step of bias-corrected Adam gives the same nonnegativity in the sign limit, by Sheppard’s formula.

In our experiments, each partner expert trains on its own images, and we measure the effect of its updates on the target task’s images. On ViT-B/32, we examined 352 combinations of four partners, eight target tasks and eleven adjacent layer pairs. A sufficient condition for positive interaction is that the Frobenius distance between the training and readout kernels is smaller than the Frobenius norm of the readout kernel. On target images, we measured responses at either the pretrained or the target expert weights, using whole blocks or their second MLP matrices. Across these four settings, the fraction meeting the condition ranged from 2.0% (target expert, MLP matrices) to 6.5% (pretrained, whole blocks). With the actual training signal, 98.6–100% of adjacent-block interactions were positive across both readouts and both update rules (gradient descent and Adam). Positive interactions thus occurred frequently even when the sufficient condition did not hold.

Partner repetition under random grouping

Consider two experts that belong to the same group at one unit. Under shared grouping they remain together at every unit, while under independent balanced grouping each of the N−1N-1 other experts is equally likely to occupy one of the N/K−1N/K-1 partner positions at another unit. The probability that the pair remains together is therefore

N/K−1N−1.(8)\frac{N/K-1}{N-1}. \tag*{(8)}

For N=100N=100 and K=10K=10, this gives 9/99≈9.1%9/99\approx9.1\%, consistent with the 9% repeat rate measured for BRR-matrix (Table 5).

Understanding positive cross-layer partner interactions

Shared training signals and conditional alignment

For TA with 1<K<N1<K<N, the sign of the expected linearized feature-error gap depends on the sum of the partner interactions HuvH_{uv} (see Sec. C.2). In Sec. C.4, a shared output gradient gives a nonnegative expected interaction at the first step when training and readout use the same network and images. Here a partner trains on its own images, and we ask when two layers transmit differences between partners in similar directions on the target images.

Assume gradient flow from θ0\theta_0 with fixed Jacobians and a fixed positive diagonal preconditioner PP. For partner jj, let RjR_j be the output gradient integrated over training on its images Dj\mathcal{D}_j. The update to layer uu and its response on the target images Xt\mathcal{X}_t are

Tj,u=−PuJu(Dj)TRj,yj,u=Ju(Xt)Tj,u.T_{j,u}=-P_uJ_u(\mathcal{D}_j)^{\mathsf{T}}R_j,\qquad y_{j,u}=J_u(\mathcal{X}_t)T_{j,u}.

Thus yj,u=−Bu(j)Rjy_{j,u}=-B_u^{(j)}R_j, where Bu(j)=Ju(Xt)PuJu(Dj)TB_u^{(j)}=J_u(\mathcal{X}_t)P_uJ_u(\mathcal{D}_j)^{\mathsf{T}}. Layers share the signal RjR_j but map it to the target output through different Bu(j)B_u^{(j)}.

To compare partners, subtract the mean response of the MM candidates at each layer. The interaction HuvH_{uv} averages the inner product of the same partner’s centered responses at two layers:

ψj,u=yj,u−1M∑kyk,u,Huv=1M∑j⟨ψj,u,ψj,v⟩.\psi_{j,u}=y_{j,u}-\frac{1}{M}\sum_k y_{k,u},\qquad H_{uv}=\frac{1}{M}\sum_j\langle\psi_{j,u},\psi_{j,v}\rangle.

Inner products include the average over target images.

Proposition 3. Let Bu=[Bu(1),…,Bu(M)]B_u=[B_u^{(1)},\ldots,B_u^{(M)}] collect the partner maps for layer uu. Form one vector per partner by placing RjR_j in block jj and zeros elsewhere, let ρj\rho_j be this vector minus its mean over partners, and let Σ=M−1∑jρjρjT\Sigma=M^{-1}\sum_j\rho_j\rho_j^{\mathsf{T}}. Then

Huv=tr⁡(BuΣBvT),H_{uv}=\operatorname{tr}(B_u\Sigma B_v^{\mathsf{T}}),
HuvHuuHvv=cos⁡∠(BuΣ1/2,BvΣ1/2).(9)\frac{H_{uv}}{\sqrt{H_{uu}H_{vv}}}=\cos\angle(B_u\Sigma^{1/2},B_v\Sigma^{1/2}). \tag*{(9)}

When Huu,Hvv>0H_{uu},H_{vv}>0, the normalized interaction is positive exactly when the two signal-weighted maps form an acute angle. Positive S=∑u<vHuvS=\sum_{u<v}H_{uv} requires positive pair contributions to outweigh negative ones, but not every pair to be positive.

Proof. With the block vectors, BuB_u applies the matching partner map, so ψj,u=−Buρj\psi_{j,u}=-B_u\rho_j. Averaging over partners gives

Huv=1M∑j⟨Buρj,Bvρj⟩=⟨BuΣ1/2,BvΣ1/2⟩F.H_{uv}=\frac{1}{M}\sum_j\langle B_u\rho_j,B_v\rho_j\rangle=\langle B_u\Sigma^{1/2},B_v\Sigma^{1/2}\rangle_F.

Writing the Frobenius inner product as a trace gives the first identity. Dividing by the two Frobenius norms gives the second. □\square

The derivation holds the Jacobians and preconditioner fixed, whereas both change during Adam training; § 4.2 therefore measures SS directly.

Signal and partner controls

Shared versus independent signals. We fix the expert maps and compare the real training signal with two replacements: a random signal shared across layers and independent random signals for each layer. On both backbones, the shared random signal preserves most of the adjacent-layer correlation observed with the real signal, while independent signals give correlations near zero (Table 19).

Output signalViT-B/32ViT-L/14
Real training signal0.5350.582
Shared random0.517 ± 0.0160.557 ± 0.010
Independent random−0.003 ± 0.0220.003 ± 0.015

Table 19. Adjacent-layer correlation by signal. Means over 12 tasks per backbone. For fixed-norm random signals, ± is the mean within-task population SD across four seeds.

Same partner, different batches. Does the same partner produce aligned layer responses when the training batch changes? For each of 12 target tasks, we compute the first gradient step from θ0\theta_0 for ten partners, using batches of 128 training images, and measure how the resulting updates to adjacent fc2 layers affect the target expert’s output on 32 validation images. Using different training batches for the same partner retains 89% of the same-batch interaction (Table 20).

Layer-pair settingObserved local interaction
Same partner, same batchPositive in 132/132 task–layer-pair cases (reference).
Different partners, cyclic shiftsPositive in 2% of shift cases.
Same partner, different batchesRetains 89% of the reference interaction; positive in 132/132 cases.

Table 20. Partner alignment across batches. Same-partner counts cover 132 task–layer pairs (12 tasks, 11 adjacent pairs). The 2% covers 1,188 cyclic shifts (nine per pair). Centering over ten partners makes the mean shifted interaction −1/9-1/9 of the same-partner value, so different-partner interactions are negative on average, consistent with only 2% being positive.

Checking the analysis and predicting arrangements

Feature-error validation

Proposition 1 (Eq. (4)) gives the expected linearized feature-error gap between shared and independent grouping. We first test how accurately the first-order approximation predicts the feature shift of an individual image. We then compare the gap predicted by Proposition 1 with the difference in actual feature error between the two grouping schemes.

Experimental setup. With 100 ViT-B/32 experts and a budget of K=10K=10, each balanced group contains ten experts. For each target expert, we draw nine partners at random from the other 99 experts, repeating this procedure to form six candidate groups. Both schemes use these same six groups. Under shared grouping, we use one group at all units and average the results over the six choices. Under independent grouping, each unit chooses uniformly from the six groups, and we average the results over 24 independently assembled models.

Feature shifts and error gaps. We scale the weight changes at the regrouped units by ϵ\epsilon, keeping the remaining weights at the target expert’s values. At ϵ=1\epsilon=1 the regrouped units receive the full weight change. On 32 validation images per task, we compare the first-order prediction with the actual feature shift. For TA and TSV-M, the median relative residual is close to one at ϵ=1\epsilon=1: the prediction error is comparable in size to the feature shift itself (Table 21). The feature-error gap compares two squared errors, so it can still be predicted well when this vector residual is large.

MethodGroupingϵ=0.25\epsilon= 0.25ϵ=0.5\epsilon= 0.5ϵ=1\epsilon= 1
TAShared0.37 [0.27, 0.47]0.67 [0.51, 0.80]1.08 [0.91, 1.28]
TABRR-layer0.37 [0.26, 0.46]0.67 [0.50, 0.80]1.07 [0.89, 1.27]
TABRR-matrix0.37 [0.26, 0.46]0.67 [0.50, 0.80]1.07 [0.88, 1.27]
TSV-MShared0.30 [0.26, 0.38]0.56 [0.48, 0.68]0.95 [0.85, 1.11]
TSV-MBRR-layer0.28 [0.24, 0.36]0.52 [0.45, 0.65]0.91 [0.79, 1.06]
TSV-MBRR-matrix0.28 [0.23, 0.36]0.52 [0.44, 0.64]0.90 [0.77, 1.05]

Table 21. Relative output residual of the first-order approximation. Median [interquartile range] over 100 ViT-B/32 tasks. Shared-grouping results are identical at layer and matrix granularity because every unit uses the same candidate group.

For the gap in Eq. (4), we subtract the measured feature error under independent grouping from that under shared grouping. We sum the measured and predicted gaps separately over the 100 tasks and compare the two sums. At ϵ=0.25\epsilon=0.25, the ratio of the measured sum to the predicted sum is close to one for all four methods (0.89–1.01). At ϵ=1\epsilon=1, independent grouping gives lower measured feature error on at least 87% of tasks for each method, but the ratio varies by method (0.32–1.29).

Direct check of Proposition 2. On 12 prespecified tasks, covariance sums estimated from 65,536 sampled TA groups per task agree with cHcH computed from all 99 partners within Monte Carlo uncertainty (Table 22).

UnitsRelative error (%)Sum gap (%)Max. ∣z∣\lvert z\rvert
MeanMax.
Layer0.230.320.031.26
Matrix0.300.430.021.17

Table 22. Direct check of Γ=cH\Gamma= cH on 12 tasks. We estimate Γ\Gamma from 65,536 balanced TA groups per task (64 batches) and HH from all 99 partners (q=10q = 10, λ=0.15\lambda= 0.15, 32 images). Relative error is the Frobenius norm of the upper-triangular discrepancy divided by that of cHcH. Sum gap is the mean absolute relative difference between covariance sums. The statistic zz is the difference between the estimated and analytic covariance sums divided by the Monte Carlo standard error of that difference.

Partner alignment. For TA, Propositions 1 and 2 give a shared-minus-independent expected linearized feature-error gap of 2cS2cS, with c>0c > 0. Independent grouping therefore gives lower error when S=∑u<vHuvS = \sum_{u<v} H_{uv} is positive. We estimate SS for each task to test whether feature shifts from the same partner tend to reinforce one another across units in our expert pools.

To reduce computation, we sample ten of the 99 candidate partners per task. At each unit, we subtract the ten partners’ mean response from each partner’s response, then take the inner product of the same partner’s centered responses at units uu and vv. We divide the mean inner product by (9/10)(99/98)(9/10)(99/98) to correct the finite-sample bias. This positive correction preserves the sign of SS. On both backbones, all 100 task estimates are positive, supporting the positive-alignment condition for TA. The tasks share candidate partners, so their estimates are dependent.

Auxiliary parameters in complete deployments

Proposition 1 (Eq. (4)) shows how reusing a grouping across units affects expected linearized feature error. In the full model, how much of BRR-layer’s accuracy gain comes from grouping the auxiliary parameters separately, and how much comes from changing partners across the main layers?

We start with one grouping shared by all parameters. In the first step, the main layers keep this grouping, and we draw one separate grouping for the embeddings, layer norms and biases to share. This is the p=1p = 1 control in Sec. D.3. In the second step, we keep the same grouping rule for the auxiliary parameters and draw a grouping independently for each main layer, giving BRR-layer.

On ViT-B/32 with TSV-M at K=10K = 10 and the validation-selected merge scale, mean accuracy over five seeds changes by −0.03-0.03 points from fully shared grouping to the p=1p = 1 control (95% interval [−0.52,0.43][-0.52, 0.43]), then rises by 3.78 points from that control to BRR-layer ([2.92, 4.76]). Changing partners across the main layers therefore accounts for most of the gain in this setting.

Predicting grouping arrangements

Overview of the 27 arrangements

Can the covariance in Proposition 1 predict accuracy when only some units share a grouping? Let puvp_{uv} be the probability that units uu and vv use the same draw, with independent draws otherwise. For two arrangements with the same grouping distribution at each unit, Proposition 1 gives

E[DAlin]−E[DBlin]=2∑u<v(puvA−puvB)Γuv.(10)\mathbb{E}\left[D_A^{\mathrm{lin}}\right]-\mathbb{E}\left[D_B^{\mathrm{lin}}\right]=2\sum_{u<v}\left(p_{uv}^{A}-p_{uv}^{B}\right)\Gamma_{uv}. \tag*{(10)}

To predict accuracy, we first compute the fraction of shared-grouping covariance that an arrangement removes,

F=∑u<v(1−puv)Γuv∑u<vΓuv.F=\frac{\sum_{u<v}(1-p_{uv})\Gamma_{uv}}{\sum_{u<v}\Gamma_{uv}}.

If accuracy gain is proportional to this reduction, the predicted gain over shared grouping is AFAF, where AA is the measured gain of the corresponding BRR endpoint. The uniform rule weights all pairs equally. The adjacent rule weights only neighboring pairs.

On ViT-B/32 (N=100N = 100, K=10K = 10), we made 27 comparisons across four families of grouping arrangements with five grouping seeds. For blocks, placements and matrix ties, we used validation-selected scales and each operator’s own covariance and endpoint. Covariances come from § 4.2: TSV-M uses all 100 tasks, and TA’s layer-pair covariance matrix uses the 20 tasks for which every entry was recorded. The auxiliary parameters follow the default BRR grouping (Sec. D.2).

Across the 27 comparisons, the covariance rule predicts accuracy gains with a mean absolute error of 0.16 points, below both comparison rules (Table 23). For two TSV-M matrix arrangements (Table 29), all ten runs had finished before the predictions were recorded. One result was available to us and was not used. Across the other 25 comparisons, for which predictions preceded access to results, mean absolute error remains 0.16 points to two decimal places.

Tied setsMeasuredCovarianceUniformAdjacent
TSV-M
Best (fc2 alone)78.12 ± 0.1278.0478.1675.28
Worst (query alone)77.74 ± 0.1277.2878.1675.28
Two sets77.83 ± 0.1977.7078.2375.28
Three sets77.89 ± 0.1677.7278.3276.05
TA
Best (fc2 alone)61.60 ± 0.1661.6461.6658.85
Worst (query alone)61.01 ± 0.2160.8961.6658.85

Table 29. Tying the matrices of a layer (ViT-B/32, K=10K = 10). Mean test accuracy (%) and sample standard deviation over five seeds, with predictions fixed before the runs (for the TSV-M two- and three-set arrangements, see Sec. D.3.1 for timing). Two sets: the four attention matrices and the two MLP matrices; three sets: query and key, value and output, and the two MLP matrices. Endpoints: shared grouping 73.79 (TSV-M) and 57.40 (TA); BRR-matrix 78.38 and 61.87.

Results by arrangement

Cycling and copy-refresh. Six fixed patterns vary how often the 12 layers cycle through groupings: AAAAAABBBBBB, AAABBBAAABBB, AAAAABBB-BCCCC, ABABABABABAB, ABCABCABCABC and ABCDABCDABCD. Each letter denotes an independent balanced draw. In copy-refresh, each layer after the first copies the preceding grouping with probability pp and draws a fresh one otherwise. Layers b<cb < c therefore share a draw with probability pc−bp^{c-b}.

Predictions used TSV-M layer covariances and the previously measured BRR-layer endpoint; these predictions and both comparison rules were fixed on 2026-10-30 (SHA-256 2acfc8fc...). Measured gains use the matched p=1p = 1 control in Sec. D.2, with paired gains averaged over five seeds and intervals bootstrapped over tasks (2,000 resamples). More frequent copying lowers mean accuracy at both scales, and the covariance rule has less than half the prediction error of either comparison rule (Tables 24 and Table 25).

ArrangementMeasured [95% CI]CovarianceUniformAdjacent
6+6 switch+0.96 [0.68, 1.27]+0.81+2.04+0.34
3+3+1.60 [1.24, 1.96]+1.71+2.04+1.02
segments of 4+1.38 [0.95, 1.85]+1.40+2.72+0.68
ABAB+2.37 [1.75, 3.10]+2.70+2.04+3.75
ABC cycle+3.20 [2.42, 4.10]+3.36+2.72+3.75
ABCD cycle+3.40 [2.64, 4.27]+3.59+3.06+3.75
copy-refresh p=0.25p=0.25+3.02 [2.27, 3.91]+3.12+3.54+2.81
copy-refresh p=0.5p=0.5+2.21 [1.60, 2.86]+2.34+3.18+1.87
copy-refresh p=0.75p=0.75+1.70 [1.23, 2.22]+1.34+2.36+0.94

Table 25. Measured and predicted accuracy gains (points) for nine cycling and copy-refresh arrangements at validation-selected scale. Measured gains use the matched p=1p=1 arm. Predictions use the earlier BRR-layer gain over shared grouping (+3.75). Relative to the matched p=1p=1 arm, the same BRR-layer run gives +3.78 (Sec. D.2), and a separate five-seed run at p=0p=0 gives +3.55 ([2.75, 4.43]). Intervals use paired bootstrap resampling over tasks.

Using the same nine arrangements and TSV-M fractions FF, we calibrated predictions to the ACE-Merging and Iso-CTS endpoints before evaluation. The covariance rule has the lowest error for both operators at the selected scale and for ACE-Merging at α=1\alpha= 1. It ties the uniform rule for Iso-CTS at α=1\alpha= 1 (Table 26).

OperatorScaleCovarianceUniformAdjacent
ACE-Mergingα=1\alpha=10.160.400.52
ACE-Mergingselected0.150.400.51
Iso-CTSα=1\alpha=10.160.160.28
Iso-CTSselected0.320.530.64

Table 26. Table 26. Mean absolute error of predictions fixed in advance for other operators. Accuracy points over the nine arrangements, ViT-B/32, 100 tasks, K=10K=10. Bold: lowest error in a row when it is unique.

Blocks of layers. Shortening independently grouped blocks from six layers to three and then two increases mean accuracy for both operators, as predicted (Table 27). Three comparisons among the 27 repeat a design with fresh draws: the six-layer TSV-M block repeats the 6+6 switch, and evenly spaced changes repeat the three-layer block for both operators.

MethodLayers/blockMeasuredCovarianceUniformAdjacent
TSV-M674.92±0.3074.92 \pm0.3074.6075.8374.13
375.62±0.2075.62 \pm0.2075.6276.8574.81
276.52±0.2876.52 \pm0.2876.3477.1975.49
TA658.43±0.2558.43 \pm0.2558.2059.4257.74
359.11±0.5259.11 \pm0.5259.1960.4358.41
260.17±0.3660.17 \pm0.3659.9760.7659.08

Table 27. Table 27. Blocks of consecutive layers sharing a grouping. Measured mean test accuracy (%) and sample standard deviation over five seeds, and the accuracies predicted by the covariance rule (fixed before measurement) and by the two comparison rules. Endpoints: shared grouping 73.79 (TSV-M) and 57.40 (TA); BRR-layer 77.53 and 61.10.

Placement of three changes. Here every arrangement has exactly three changes of grouping along the 12 layers, so the layers form four contiguous segments. For each operator, we compare the placements with the largest and smallest predicted gains among the 165 possible placements, together with evenly spaced changes. For TSV-M, the predicted-best placement beats the predicted-worst in every seed but has no consistent advantage over even spacing. The uniform rule also captures the best-to-worst gap and is closer for TA; the adjacent rule predicts no difference (Table 28).

Layers per segmentMeasuredCovarianceUniformAdjacent
TSV-M
Best (4, 2, 2, 4)75.64 ± 0.1875.7176.7474.81
Even (3, 3, 3, 3)75.58 ± 0.3375.6276.8574.81
Worst (1, 9, 1, 1)74.42 ± 0.4074.5775.4974.81
TA
Best (4, 2, 3, 3)59.57 ± 0.3459.2360.3758.41
Even (3, 3, 3, 3)59.36 ± 0.4859.1860.4358.41
Worst (1, 1, 9, 1)58.27 ± 0.4558.2859.0858.41

Table 28. Three partner changes at different layers (ViT-B/32, K=10K = 10). Measured mean test accuracy (%) and sample standard deviation over five seeds, with the covariance, uniform and adjacent predictions fixed before measurement. Best and worst are the placements with the largest and smallest predicted FF for each operator. Endpoints: shared grouping 73.79 (TSV-M) and 57.40 (TA); BRR-layer 77.53 and 61.10.

Tying matrices within a layer. With matrices as units, the six weight matrices of every layer (in forward order: query, key, value and output projections, then the two MLP matrices) are tied into sets that share a grouping; all sets are independent of one another. We considered all five ways to split the six matrices into two contiguous sets. Using only the 72×7272 \times72 covariance, we selected the split with the largest FF (the second MLP matrix alone) and the split with the smallest FF (the query projection alone). Each split isolates one end matrix, so the two splits tie the same number of pairs overall and the same number of adjacent pairs. Each comparison rule therefore predicts the same gain for the two splits.

For both TSV-M and TA, the covariance rule favors isolating the second MLP matrix, and this split wins in every seed. For TSV-M the rule overestimates the difference (Table 29). For the additional two- and three-set TSV-M arrangements in Table 29, both predicted and measured accuracies were close.

Placement of a single switch. To test whether the ranking of the cycling arrangements above can be explained by the number of switches alone, we use two groupings and exactly one switch in every arrangement: layers 1,…,s1,\ldots,s use grouping AA and the remaining layers use grouping BB, with s∈{2,4,6,8,10}s \in\{2,4,6,8,10\}. For each seed, these arrangements reuse the first two cycling groupings, so s=6s=6 coincides with the 6+6 switch. These five arrangements are not among the 27 arms and are evaluated at α=1\alpha= 1 only.

At fixed budget, the covariance rule correctly orders the mean gains for eight of ten pairs of switch points, but its task-level success rate is only 61% (ties excluded, inter-

ArrangementMeasured [95% CI]CovarianceUniformAdjacent
6+6 switch+0.59 [0.35, 0.84]+0.45+1.13+0.19
3+3+1.04 [0.79, 1.28]+0.94+1.13+0.56
segments of 4+0.86 [0.50, 1.19]+0.78+1.51+0.38
ABAB+1.42 [1.13, 1.70]+1.49+1.13+2.07
ABC cycle+1.85 [1.48, 2.22]+1.86+1.51+2.07
ABCD cycle+1.98 [1.60, 2.37]+1.98+1.69+2.07
copy-refresh p=0.25p=0.25+1.91 [1.51, 2.30]+1.72+1.96+1.55
copy-refresh p=0.5p=0.5+1.45 [1.10, 1.79]+1.29+1.76+1.03
copy-refresh p=0.75p=0.75+1.17 [0.86, 1.48]+0.74+1.31+0.52

caption: Table 24. Measured and predicted accuracy gains (points) for nine cycling and copy-refresh arrangements at α=1\alpha=1. Measured gains use the matched p=1p=1 arm. Predictions use the earlier BRR-layer gain over shared grouping (+2.07). A separate five-seed run at p=0p=0 gives +2.09 ([1.67, 2.53]). Intervals use paired bootstrap resampling over tasks.

:::

val [0.57, 0.66]). A post-hoc rule using only the covariance across the switch has the same rank correlation but larger magnitude errors (Table 30).

predictionMAE, error ratioMAE, accuracy (pp)
covariance F(s)F(s) (fixed in advance)0.0290.113
uniform rule (fixed in advance)0.2680.504
adjacent rule (fixed in advance)0.0760.239
adjacent pair, Γ\Gamma-weighted (post hoc)0.0650.214

Table 30. Where to switch: the covariance prediction has the smallest error. Equal-budget arrangements (two groupings, one switch at s∈{2,4,6,8,10}s \in\{2, 4, 6, 8, 10\}), TSV-M, ViT-B/32, 100 tasks, K=10K=10, five seeds, α=1\alpha=1. Error ratio: feature-error gap normalized by the gap between the shared grouping and BRR-layer. Bold: lowest error in each column.

Rules evaluated after the runs. With the same endpoint calibration, a rule using only layer distance has a mean absolute error of 0.23 points across all 27 comparisons, against 0.16 for covariance. For the matrix ties tested here, matrix type and layer distance reproduce the full covariance predictions (Table 31).

FamilynnCov.Unif.Adj.Avg.Dist.Type+dist.Geom.
Nine arrangements (TSV-M)90.170.680.610.190.190.190.15
Blocks, TSV-M30.170.940.880.150.250.250.19
Blocks, TA30.170.970.830.230.220.220.17
Placement, TSV-M30.091.150.660.370.230.230.33
Placement, TA30.180.890.750.240.300.300.19
Ties, TSV-M20.270.232.651.210.320.27–
Ties, TA20.080.362.461.050.300.08–
Second tie pair, TSV-M20.150.412.200.890.140.15–
All270.160.741.090.410.230.210.19*

Table 31. Mean absolute error of the covariance rule and of simpler rules on ViT-B/32 (points; all rules use the same end-point calibration). Cov., Unif., Adj.: the covariance prediction and the uniform and adjacent rules. See Sec. D.3.1 for prediction timing in the second TSV-M tie pair. The remaining columns were computed after all accuracies were known: Avg., the mean of the uniform and adjacent predictions; Dist., Γuv\Gamma_{uv} replaced by its mean over unit pairs at the same layer distance; Type+dist., by its mean over pairs with the same matrix types and layer distance (equal to Dist. for layer-level arrangements); Geom., Γbc∝0.6∣b−c∣\Gamma_{bc} \propto0.6^{|b-c|} (layer-level arrangements only). *: the 21 layer-level arms only.

Analysis-guided group selection

Search setup. We test whether accounting for interactions between units helps select better groupings. At each unit, either a layer or a weight matrix, all three objectives choose from the same 64 balanced candidate groupings, including the one used by random BRR. Each search uses 16 unlabeled validation images per task. We measure feature error on a separate set of 16 images per task and classification accuracy on the test sets. We use TSV-M on 100

ViT-B/32 tasks at K=10K = 10, with fresh candidates for each of five seeds. All comparisons use α=1.4\alpha= 1.4. Validation selected this scale in every run except one matrix-level search with the actual objective, which selected 1.6 (Table 32).

GranularitySelectionActual held-out feature errorLinearized held-out feature errorTest accuracy (%)
LayerRandom BRR0.5283 ± 0.00190.6875 ± 0.008177.53 ± 0.16
Single-unit objective0.5216 ± 0.00440.6423 ± 0.001577.60 ± 0.13
Linearized objective0.5177 ± 0.00440.6312 ± 0.003477.89 ± 0.10
Actual objective0.5023 ± 0.00260.6543 ± 0.011677.95 ± 0.19
MatrixRandom BRR0.4776 ± 0.00450.6262 ± 0.002278.38 ± 0.15
Single-unit objective0.4641 ± 0.00230.5765 ± 0.003178.66 ± 0.07
Linearized objective0.4583 ± 0.00120.5579 ± 0.004878.88 ± 0.07
Actual objective0.4452 ± 0.00350.5912 ± 0.002678.97 ± 0.07

Table 32. Group selection under three objectives. Held-out feature errors and test accuracy at fixed α=1.4\alpha= 1.4, reported as means and sample standard deviations over five seeds. Bold marks the lowest mean error or highest mean accuracy at each granularity. In the one matrix-level run that selected α=1.6\alpha= 1.6, test accuracy was 78.89% at 1.6 and 78.99% at 1.4.

Let ϕt,u(x)\phi_{t,u}(x) be the first-order change in the final normalized feature of expert tt when unit uu is merged. The single-unit objective sums the squared feature shifts, so each unit can choose its grouping independently. The full linearized

objective also accounts for how shifts from different units interact (Eq. (3)):

Lfull=1N∑t∑uEx∥ϕt,u(x)∥2⏟Lunit+2N∑t∑u<vEx⟨ϕt,u(x),ϕt,v(x)⟩.(11)\mathcal{L}_{\mathrm{full}} = \frac{1}{N}\underbrace{\sum_t\sum_u \mathbb{E}_x\lVert\phi_{t,u}(x)\rVert^2}_{\mathcal{L}_{\mathrm{unit}}} + \frac{2}{N}\sum_t\sum_{u<v}\mathbb{E}_x\langle\phi_{t,u}(x),\phi_{t,v}(x)\rangle. \tag*{(11)}

The third objective runs the assembled model and measures its actual feature error relative to each task expert (Eq. (2)), averaged over tasks. For the full linearized and actual objectives, we initialize the search greedily, then revisit one unit at a time with the other groupings fixed until a full pass changes no grouping.

Selection results. Including cross-unit interactions improves test accuracy over single-unit selection in all five seeds at both granularities (Table 33). Selecting groups by actual feature error reduces held-out actual error further in every seed, but adds only 0.06 percentage points to mean test accuracy for layers and 0.09 for matrices. The selected models also have higher mean linearized error than those chosen by the linearized objective (Table 32). Thus, the two objectives favor different groupings even though their mean test accuracies are close.

GranularityComparisonTest accuracy (points): DifferenceTest accuracy (points): Higher inActual held-out feature error: DifferenceActual held-out feature error: Lower in
LayerLinearized − random+0.36 ± 0.185/5−0.0105 ± 0.00425/5
Single-unit − random+0.06 ± 0.182/5−0.0067 ± 0.00335/5
Linearized − single-unit+0.30 ± 0.125/5−0.0038 ± 0.00634/5
Actual − random+0.42 ± 0.185/5−0.0260 ± 0.00275/5
Actual − linearized+0.06 ± 0.183/5−0.0154 ± 0.00345/5
MatrixLinearized − random+0.50 ± 0.165/5−0.0193 ± 0.00555/5
Single-unit − random+0.28 ± 0.204/5−0.0135 ± 0.00435/5
Linearized − single-unit+0.22 ± 0.085/5−0.0058 ± 0.00245/5
Actual − random+0.59 ± 0.185/5−0.0323 ± 0.00505/5
Actual − linearized+0.09 ± 0.035/5−0.0130 ± 0.00405/5

Table 33. Paired differences between selection objectives. Differences are computed within each seed at α=1.4\alpha= 1.4 and reported as mean ± sample standard deviation. Counts show how often the first objective gives higher accuracy or lower error. For layer-level accuracy, the mean paired gain of linearized over single-unit selection is 0.30 points. Subtracting the rounded means in Table 7 gives 0.29.

Search cost. Linearized search computes each candidate’s feature shift once and reuses it to score combinations. Direct evaluation runs the assembled model for each combination it considers. Including precomputation, linearized search costs slightly more per seed at layer level and less at matrix level than direct evaluation (Table 34).

UnitsObjectiveSearch timeTotal cost (GPU-hours)
LayerLinearized3–10 s≈ 2.6
Actual0.5–1.1 h2.22
MatrixLinearized14–69 s≈ 5.1
Actual3.7–5.4 h6.33

Table 34. Search time and total cost per seed. Search times are wall-clock ranges on shared GPUs. Total costs include candidate preparation. Direct-evaluation costs are means over five seeds. Linearized costs are approximate, with timings available for four layer-level seeds and three matrix-level seeds.

Storage and deployment

Deployment storage. At the same budget KK, shared grouping, BRR-layer and BRR-matrix each store KK backbones’ worth of merged weights to serve all 100 tasks. Finer grouping increases only the routing table, which stores one byte per task for each distinct grouping and occupies at most 7.3 KB (Table 35).

DeploymentMerged weights (backbones)routingtotal
grouping-only operator, any grouping, KK merged unitsKK≤7.3\le7.3 KBKK
FlexMerge official, K=10K=10 / K=5K=5 budget9.95 / 4.965.2 KB9.95 / 4.96
EMR or TALL masks, K=10K=1010 (+1 base)≤7.3\le7.3 KB14.13
100 experts100–100

Table 35. Deployment storage for 100 ViT-B/32 tasks. Merged weights and total storage are measured in backbone equivalents (0.326 GiB each in FP32). Routing indices are included in the totals but are too small to affect the displayed values. The mask-based deployment adds 4.13 backbone equivalents: one for the base weights and 3.13 for the packed masks and, for EMR, its rescaling factors. FlexMerge stops at the first merge that brings storage below its target budget.

Routed inference. Shared grouping, BRR-layer, BRR-matrix and FlexMerge select one stored module per sample in each unit, so each requires the same backbone computation as a single model. Our implementation processes the samples that use the same module together and reorders their activations whenever the grouping changes. A ViT-B/32 forward pass requires one such reordering for shared grouping, 13 for BRR-layer, 73 for BRR-matrix and 25 for FlexMerge, which applies one grouping to all matrices of an attention or MLP block. Channel Merging clusters each output channel separately, so a task’s weight matrix is not one of the stored matrices. We serve it by gathering, for each matrix and each task in the batch, that task’s rows from the stored copies and applying the gathered matrix to the task’s samples. Computing all ten cluster outputs and then selecting one per channel was 2.4–4.2 times slower. For every method, on three tasks, the maximum absolute difference in pooled features between routed inference and a model assembled for the individual task was at most 9.1×10−69.1 \times10^{-6}.

We timed all five methods in a single run on ViT-B/32 with 100 tasks, K=10K = 10 and α=1\alpha= 1. The grouping methods use TSV-M merges, and Channel Merging uses its own merge rule; latency does not depend on the merged values. Measurements used one NVIDIA RTX 6000 Ada GPU that ran no other process, with tasks sampled uniformly and identical batches for all methods.

At batch sizes 64 and 256, BRR-layer added 2% latency relative to shared routing, FlexMerge 6%, BRR-matrix 14%–16% and Channel Merging 81%–142% (Table 36). At batch size 16, where the reorderings are amortized over fewer samples, these overheads were 22%, 28%, 82% and 93%. FlexMerge’s authors instead serve each task through its own view of the merged weights and process the tasks’ sub-batches in parallel. Running these sub-batches one after another took 1.96–3.51 times as long as shared routing when tasks were drawn uniformly from all 100, which bounds the cost of parallel execution from above. This serving style runs one assembled model per task, so its cost is the same for shared grouping, BRR and FlexMerge. At the validation-selected scale, BRR-layer retains about 82% of BRR-matrix’s accuracy gain over shared grouping in this TSV-M setting (computed from unrounded gains; Table 1), with much lower routing overhead at batch sizes 64 and 256.

BatchMethodMedian (ms)vs. dense
16Channel Merging28.63.55
16FlexMerge18.92.34
16shared14.81.83
16BRR-layer18.02.23
16BRR-matrix26.93.34
64Channel Merging91.93.10
64FlexMerge40.41.36
64shared38.01.28
64BRR-layer38.71.31
64BRR-matrix44.21.49
256Channel Merging250.32.11
256FlexMerge147.11.24
256shared138.41.17
256BRR-layer140.61.19
256BRR-matrix158.01.33

Table 36. Routed inference latency. Median latency and its ratio to a single assembled model (“dense”; 8.1, 29.7 and 118.5 ms at batch sizes 16, 64 and 256), with tasks sampled uniformly. Each of three passes tested all methods and batch sizes in random order, with five warm-up and 20 timed forward passes per condition and seed. We report the median of the 60 timed forward passes for each seed, averaged over three grouping seeds (Channel Merging: three clustering seeds; FlexMerge: its single deterministic grouping). Channel Merging gathers each task’s rows per matrix; all other methods route samples to stored modules.

Other experts and tasks

Vision-language experiment details

Experts, tasks and metrics

We use six visual question-answering (VQA) tasks—ScienceQA-IMG, IconQA, VSR, TallyQA, PathVQA and VizWiz—and four image-classification tasks presented as four-way multiple choice: Stanford Cars, FGVC-Aircraft, DTD and RESISC45. We score VizWiz by VQA accuracy, the other VQA tasks by exact or relaxed match, and the multiple-choice tasks by classification accuracy. The overall score is the unweighted mean of the ten task scores.

For each task, we fine-tune InternVL2.5-1B [2] and Qwen2-VL-7B [16] separately, updating all language-model parameters while keeping the vision tower and projector frozen. Both models train for 1,000 steps with batch size 16, AdamW, weight decay 0.01, 3% warmup and a cosine learning-rate schedule. Learning rates selected on three pilot tasks are 10−510^{-5} for InternVL and 5×10−65 \times10^{-6} for Qwen.

Merge scale and uncertainty

For FlexMerge with TA, Table 3 and Table 37 report the stronger variant, which scales the mean task vector in each group. The task-type breakdown in Table 38 uses the sum of the task vectors for this baseline. Shared grouping, both BRR variants and the single merged model use group-sum scaling with TA throughout.

MethodInternVL2.5-1B TAInternVL2.5-1B TSV-MInternVL2.5-1B Iso-CTSInternVL2.5-1B ACEQwen2-VL-7B TAQwen2-VL-7B TSV-MQwen2-VL-7B Iso-CTSQwen2-VL-7B ACE
Channel Merging78.66±0.0578.66 \pm0.0587.10±0.0787.10 \pm0.07
FlexMerge75.7679.0578.1680.1386.4086.9185.6487.15
Shared79.27±0.0879.27 \pm0.0880.04±0.2180.04 \pm0.2178.37±0.2678.37 \pm0.2680.76±0.0880.76 \pm0.0886.71±0.3286.71 \pm0.3287.00±0.1887.00 \pm0.1884.47±0.1484.47 \pm0.1487.34 ±0.05\pm0.05
BRR-layer79.88±0.2579.88 \pm0.2580.21±0.2080.21 \pm0.2078.46±0.1978.46 \pm0.1980.94±0.0680.94 \pm0.0687.05±0.0687.05 \pm0.0687.07 ±0.10\pm0.1084.50±0.0884.50 \pm0.0887.23±0.2187.23 \pm0.21
BRR-matrix80.16±0.2580.16 \pm0.2580.29±0.2480.29 \pm0.2478.64±0.0678.64 \pm0.0681.04±0.0481.04 \pm0.0487.07±0.0587.07 \pm0.0587.05±0.1187.05 \pm0.1184.58±0.0684.58 \pm0.0687.18±0.1387.18 \pm0.13

Table 37. Vision-language results with two experts per balanced group (K=5K = 5). Scores are ten-task macro-averages (%). Randomized methods report the mean and sample standard deviation over five seeds. FlexMerge uses one grouping and group-mean scaling for TA. Channel Merging uses its own merge rule and yields one score per backbone. Bold marks the highest mean among FlexMerge, Shared, BRR-layer and BRR-matrix in each column.

MergingGroupingK=2K = 2 InternVL2.5-1B VQAK=2K = 2 InternVL2.5-1B MCK=2K = 2 Qwen2-VL-7B VQAK=2K = 2 Qwen2-VL-7B MCK=5K = 5 InternVL2.5-1B VQAK=5K = 5 InternVL2.5-1B MCK=5K = 5 Qwen2-VL-7B VQAK=5K = 5 Qwen2-VL-7B MC
TAFlexMerge62.3776.7471.7489.9468.2079.0579.4794.03
Shared65.2580.1274.0692.1174.6886.1681.1695.03
BRR-layer66.4780.1576.1493.6675.4686.4981.7095.08
BRR-matrix66.6080.2176.2793.6375.8786.6081.7495.06
TSV-MFlexMerge72.0983.9980.7994.9775.3484.6181.6694.79
Shared72.8185.1280.3895.0575.6486.6481.6095.10
BRR-layer73.5385.4780.5495.1775.8986.6981.6595.19
BRR-matrix73.6985.4880.7195.1275.9986.7581.6395.17
Iso-CTSFlexMerge72.5484.1276.7894.8074.7783.2580.2493.74
Shared72.4984.5077.3494.6173.7285.3377.7194.62
BRR-layer72.8584.7577.6194.6873.8685.3777.7194.68
BRR-matrix73.0484.5477.7194.6474.1085.4477.8494.69
ACEFlexMerge74.8884.8081.5995.0676.3985.7381.8195.16
Shared74.7585.8981.7695.1176.6486.9682.1495.14
BRR-layer75.3186.0081.7695.0576.9087.0181.9895.09
BRR-matrix75.5086.1381.7495.1076.9587.1881.9295.06

Table 38. Vision-language scores by task type at K=2K = 2 and K=5K = 5. VQA is the mean score over six question-answering tasks, and MC is the mean accuracy over four multiple-choice tasks. Scores (%) are averaged over seeds for randomized methods. FlexMerge with TA uses group-sum scaling in this table.

We select the merge scale on validation data for each grouping seed. All four merging methods start from the grid {0.1,0.3,0.5,0.7,1.0,1.5}\{0.1, 0.3, 0.5, 0.7, 1.0, 1.5\}. When an endpoint gives the highest validation score, we extend the grid in that direction. The search stops at 0.02 on the lower end and 4.0 on the upper end. Ties are resolved in favor of the smaller scale. In 23 Iso-CTS runs, validation selected the final upper bound of 4.0. For randomized methods, we first average the ten task scores within each seed, then report the mean and sample standard deviation across five seeds. FlexMerge uses one grouping.

Additional vision-language results

Results at K=5K = 5

With ten experts and five balanced groups, each expert has just one partner per unit. On InternVL2.5-1B, mean scores still follow BRR-matrix > BRR-layer > shared grouping for all four merging methods (Table 37). On Qwen2-VL-7B, the three schemes are within 0.4 points of one another for each method, and the direction of the BRR-matrix gain over shared grouping depends on the method.

Question-answering and multiple-choice tasks

Table 38 separates the two task types to check whether an overall gain conceals a decline in either category. On InternVL2.5-1B, BRR-matrix scores higher than shared grouping in both category means at both budgets for all four merging methods. On Qwen2-VL-7B, the result depends on the method. With ACE-Merging at K=5K = 5, for example, both category means are slightly lower under BRR-matrix.

References

  1. [1]Ondrej Bohdal, Taha Ceritli, Mete Ozay, Jijoong Moon, Kyeng-Hun Lee, Hyeonmok Ko, and Umberto Michieli. Data-driven clustering and merging of adapters for on-device large language models. In ICASSP, 2026. 2
  2. [2]Zhe Chen, Weiyun Wang, Yue Cao, Yangzhou Liu, Zhangwei Gao, Erfei Cui, Jinguo Zhu, Shenglong Ye, Hao Tian, Zhaoyang Liu, et al. Expanding performance boundaries of open-source multimodal models with model, data, and test-time scaling. arXiv preprint arXiv:2412.05271, 2024. 1, 3, 24arxiv.org/abs/2412.05271
  3. [4]Akash Dhasade, Divyansh Jhunjhunwala, Milos Vujasinovic, Gauri Joshi, and Anne-Marie Kermarrec. Navigating the accuracy-size trade-off with flexible model merging. In ICLR, 2026. 1, 2, 3, 10arxiv.org/abs/2505.23209
  4. [5]Antonio Andrea Gargiulo, Donato Crisostomi, Maria Sofia Bucarelli, Simone Scardapane, Fabrizio Silvestri, and Emanuele Rodola. Task singular vectors: Reducing task interference in model merging. In CVPR, 2025. 1, 2, 3arxiv.org/abs/2412.00081
  5. [6]Chenyu Huang, Peng Ye, Tao Chen, Tong He, Xiangyu Yue, and Wanli Ouyang. EMR-Merging: Tuning-free high-performance model merging. In NeurIPS, 2024. 2arxiv.org/abs/2405.17461
  6. [7]Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannah Hajishirzi, and Ali Farhadi. Editing models with task arithmetic. In ICLR, 2023. 1, 2, 3arxiv.org/abs/2212.04089
  7. [8]Xisen Jin, Xiang Ren, Daniel Preotiuc-Pietro, and Pengxiang Cheng. Datasets knowledge fusion by merging weights of language models. In ICLR, 2023. 2arxiv.org/abs/2212.09849
  8. [9]Daniel Marczak, Simone Magistri, Sebastian Cygert, Bartłomiej Twardowski, Andrew D. Bagdanov, and Joost van de Weijer. No task left behind: Isotropic model merging with common and task-specific subspaces. In ICML, 2025. 1, 2, 3
  9. [10]Guillermo Ortiz-Jimenez, Alessandro Favero, and Pascal Frossard. Task arithmetic in the tangent space: Improved editing of pre-trained models. In NeurIPS, 2023. 2, 6
  10. [11]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In ICML, 2021. 1, 3, 10arxiv.org/abs/2103.00020
  11. [12]Volker Roth, Julian Laub, Motoaki Kawanabe, and Joachim M. Buhmann. Optimal cluster preserving embedding of nonmetric proximity data. IEEE Transactions on Pattern Analysis and Machine Intelligence, 25(12):1540–1551, 2003. 11DOI
  12. [13]Donald Shenaj, Ondrej Bohdal, Taha Ceritli, Mete Ozay, Pietro Zanuttiigh, and Umberto Michieli. K-merge: Online continual merging of adapters for on-device large language models. In ACL, 2026. 2
  13. [14]Anke Tang, Li Shen, Yong Luo, Enneng Yang, Han Hu, Lefei Zhang, Bo Du, and Dacheng Tao. FusionBench: A unified library and comprehensive benchmark for deep model fusion. Journal of Machine Learning Research, 26(307):1–38, 2025. 13arxiv.org/abs/2406.03280
  14. [15]Ke Wang, Nikolaos Dimitriadis, Guillermo Ortiz-Jimenez, François Fleuret, and Pascal Frossard. Localizing task information for improved model merging and compression. In ICML, 2024. 2, 4, 13, 15arxiv.org/abs/2405.07813
  15. [16]Peng Wang, Shuai Bai, Sinan Tan, Shijie Wang, Zhihao Fan, Jinze Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Yang Fan, Kai Dang, Mengfei Du, Xuancheng Ren, Rui Men, Daiyheng Liu, Chang Zhou, Jingren Zhou, and Junyang Lin. Qwen2-VL: Enhancing vision-language model’s perception of the world at any resolution. arXiv preprint arXiv:2409.12191, 2024. 1, 3, 24arxiv.org/abs/2409.12191
  16. [17]Bo Xu, Haotian Wu, Hehai Lin, Weiquan Huang, Beier Zhu, Yao Shu, and Chengwei Qin. ACE-Merging: Data-free model merging with adaptive covariance estimation. In CVPR, 2026. 1, 2, 3arxiv.org/abs/2603.02945
  17. [18]Prateek Yadav, Derek Tam, Leshem Choshen, Colin Raffel, and Mohit Bansal. TIES-merging: Resolving interference when merging models. In NeurIPS, 2023. 1, 2arxiv.org/abs/2306.01708
  18. [19]Enneng Yang, Li Shen, Zhenyi Wang, Guibing Guo, Xingwei Wang, Xiaojun Cao, Jie Zhang, and Dacheng Tao. SurgeryV2: Bridging the gap between model merging and multi-task learning with deep representation surgery. arXiv preprint arXiv:2410.14389, 2024. 2arxiv.org/abs/2410.14389
  19. [20]Mingyang Zhang, Jing Liu, Guanggui Ding, Linlin Ou, Xinyi Yu, and Bohan Zhuang. Channel merging: Preserving specialization for merged experts. In AAAI, 2025. 1, 2, 3, 10arxiv.org/abs/2412.15283
  20. [21]Zhanpeng Zhou, Zijun Chen, Yilan Chen, Bo Zhang, and Junchi Yan. On the emergence of cross-task linearity in pretraining-finetuning paradigm. In ICML, 2024. 2arxiv.org/abs/2402.03660

Paper details

vlnc:W_pj5pya6s
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Codex, Anthropic Claude

View statement
Looking for related papers…
Contents