Dynamic model merging aims to retain the efficiency of a unified model while better preserving task-specific expertise through input-dependent routing at both the task and head levels. However, even the routing components of the state-of-the-art approach remain limited: the task routing is highly sensitive to the choice of routing layer, whereas the head routing relies on simple max-logit competition. To address these limitations, we propose multi-layer aggregated routing evidence (MATE) as a unified mechanism for improving both task and head routing. Specifically, we first introduce a metric to quantify task routing separability across different layers. Empirical analysis of this metric reveals that different layers provide complementary evidence for identifying the tasks relevant to an input. Motivated by this observation, MATE selects multiple informative layers according to their routing separability and aggregates their layer-wise routing scores to produce a more robust signal that can be directly used for task selection. Moreover, we observe that this signal also encodes useful information about the suitability of the corresponding classification heads. This motivates us to further combine the MATE signal with the max-logit score to guide classification head selection. Extensive experiments on vision benchmarks demonstrate that MATE consistently achieves state-of-the-art performance.
Figures & tables
Figure 1: Empirical motivation for our method. (a) Relative projection residual margins across MLP layers of ViT-B/32 with 8 tasks. (b) With the true task among multiple candidates, Router reports how often it has the highest routing score. Simple and Ours respectively report its head’s win rate under simple and routing-guided max-logit competition. More details are provided in Appendix A .
Method
ViT-B/32
ViT-B/16
ViT-L/14
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
Fine-tuned
90.31
89.07
89.51
92.42
91.37
91.92
94.23
93.43
94.00
Static
Task Arithmetic
68.82
64.62
64.03
72.96
70.64
69.01
84.39
80.37
76.85
TSV-M
83.21
78.62
75.55
85.52
81.38
78.80
91.25
88.78
87.49
Iso-C
82.85
78.44
73.23
87.47
79.82
75.29
92.58
89.64
86.82
Table 1: Average classification accuracy (%) of model merging methods across three ViT backbones and different task scales. Bold indicates the best result among model merging methods.
Method
ViT-B/32
ViT-B/16
ViT-L/14
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
Single-Layer (MASS)
97.34
94.25
84.08
99.11
96.86
83.08
99.46
97.99
90.17
MATE
98.69
96.27
86.28
99.32
97.67
84.50
99.63
98.32
91.12
Table 2: Routing performance of the single-layer baseline and MATE across ViT backbones and task scales. (a) Top-1 task accuracy; (b) Task survival. Bold indicates the better result.
Figure 2: Task-averaged relative projection residual margins in the ViT-B/32 8-task setting.
Multi-Layer Routing Aggregation
Routing-Guided Head Decision
ViT-B/32
ViT-B/16
ViT-L/14
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
8 tasks
14 tasks
20 tasks
×
×
87.08
82.90
81.17
90.60
87.83
81.11
92.97
90.95
90.84
×
✓
88.52
83.77
81.43
91.31
88.17
80.95
93.55
91.39
90.55
✓
×
87.34
84.34
81.82
90.35
88.20
83.36
93.00
91.08
91.11
✓
✓
88.91
85.09
82.25
91.44
88.55
82.95
93.66
91.58
91.00
Table 3: Average classification accuracy (%) with different combinations of multi-layer routing aggregation and routing-guided head decision. ✓ and × indicate enabled and disabled components. Bold indicates the best result in each configuration.
Proxy examples per task
Matching runs
Match rate (%)
8
44/45
97.8
16
45/45
100.0
32 (default)
45/45
100.0
Table 4: Stability of candidate layer selection under proxy resampling. Each proxy size is evaluated across nine configurations with five sampling seeds per configuration. A match indicates the same candidate layer set as in the corresponding main experiment, regardless of internal ordering.
Backbone
Tasks
Single-Layer (MASS)
Proxy-Best Single
Random-5
All-MLP
MATE Top-5
ViT-B/32
8
88.52
88.20
86.86±2.45
87.22
88.91
14
83.77
83.65
83.40±1.70
84.55
85.09
20
81.43
77.87
78.59±1.04
80.89
82.25
ViT-B/16
8
91.31
91.31
90.78±0.50
91.05
91.44
14
88.17
83.97
86.14±3.16
88.54
88.55
20
80.95
80.51
79.99±3.05
81.36
82.95
Table 5: Average classification accuracy (%) under different routing layer selection and aggregation strategies. All variants use routing-guided head decision. Random-5 reports mean ± standard deviation over three layer-selection seeds. Bold indicates the highest reported accuracy in each configuration.
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 3: Relative projection residual margins across MLP layers for ViT-B/32.
Figure 4: Relative projection residual margins across MLP layers for ViT-B/16.
Figure 5: Relative projection residual margins averaged across tasks at each MLP layer of ViT-L/14 in the 20-task setting.
Dataset
Task scales
Cars ( Krause et al., 2013 )
8, 14, 20
DTD ( Cimpoi et al., 2014 )
EuroSAT ( Helber et al., 2019 )
GTSRB ( Stallkamp et al., 2011 )
MNIST ( LeCun et al., 1998 )
RESISC45 ( Cheng et al., 2017 )
Appendix
Table 6: Datasets used in the three model merging benchmarks. The final column lists the task scales at which each dataset is included.
Figure 6: Sensitivity to the routing threshold η and the maximum candidate task count KT on ViT-B/32.
Backbone
Tasks
Candidate layer count KL
1
2
3
4
5
8
All
ViT-B/32
8
88.20
88.50
88.27
88.75
88.91
88.87
87.22
14
83.65
83.36
84.06
84.55
85.09
85.46
84.55
20
77.87
80.79
81.86
81.98
82.25
80.99
80.89
ViT-B/16
8
91.31
91.25
91.00
91.31
91.44
91.29
91.05
14
83.97
87.53
87.51
88.13
88.55
89.01
88.54
Appendix
Table 7: Average classification accuracy (%) for different candidate layer counts KL . All denotes aggregation over all MLP layers.
Backbone
Tasks
Post-Softmax (MATE)
Pre-Softmax Standardized
Pre-Softmax Raw
ViT-B/32
8
88.91
88.91
88.96
14
85.09
85.16
84.83
20
82.25
82.24
82.11
ViT-B/16
8
91.44
91.42
91.30
14
88.55
88.74
88.47
20
82.95
83.12
83.20
Appendix
Table 8: Average classification accuracy (%) under different routing aggregation strategies. The final row reports the equally weighted mean across the nine configurations. Bold indicates the highest accuracy in each row.
Configuration
Method
E2E (ms)
Routing (ms)
Peak VRAM (GiB)
Disk storage (GiB)
ViT-B/32, 8-task
MASS
102.16
0.80
5.97
13.46
MATE
72.54
2.95
6.43
13.46
ViT-B/16, 20-task
MASS
72.06
1.03
12.21
19.58
MATE
64.46
3.60
11.83
19.58
ViT-L/14, 20-task
MASS
149.27
1.08
38.33
59.98
MATE
143.29
4.60
38.41
59.98
Appendix
Table 9: Online inference and deployment resource costs.