Multi-Head Attention (MHA). Sum of $H$ heads:
MLP block. Two linear projections separated by a nonlinearity $\sigma(\cdot)$:
Relative functional error along linear interpolations between equivalent factorizations, grows rapidly with the scalar $c$.
SLOA aligns the effective local operators (QK, VO, MLP, LayerNorm), merges them sequentially under partially-merged activations, then factorizes each operator back into transformer-compatible weights.
Unified alignment objective
Local operators & data-aware metrics
| Component | Local operator $\bm{\theta}$ | Behavior map $\mathcal{A}(\mathbf{Z};\bm{\theta})$ | Metric |
|---|---|---|---|
| LayerNorm | $(\bm{\gamma},\bm{\beta})$ | $\nu(\mathbf{X})\,\mathrm{diag}(\bm{\gamma})+\mathbf{1}\bm{\beta}^{\!\top}$ | $\mathrm{Cov}(\nu(\chi))$ |
| Linear map | $\mathbf{W}$ | $\mathbf{X}\mathbf{W}$ | $\bm{\Lambda}$ |
| QK component | $\dfrac{1}{\sqrt{d_k}}\mathbf{W}_Q\mathbf{W}_K^{\!\top}$ | $\mathbf{X}\bm{\theta}\mathbf{X}^{\!\top}$ | $\bm{\Lambda}\otimes\bm{\Lambda}$ |
| VO component | $\mathbf{W}_V\mathbf{W}_O$ | $\mathbf{A}\mathbf{X}\bm{\theta}$ | $\bm{\Lambda}$ |
$\nu(\mathbf{X})$ is the LayerNorm-normalized input; $\mathbf{A}$ is the attention matrix; $\bm{\Lambda}=\alpha\,\mathrm{diag}\bigl(\mathrm{Cov}(\mathbf{X})\bigr)+\epsilon\mathbf{I}$.
After merging the QK / VO operator in $\mathbb{R}^{d\times d}$, SVD the operator $\bar{\bm{\theta}}=\mathbf{U}\bm{\Sigma}\mathbf{V}^{\!\top}$ and factorize at chosen rank $r_j$.
QK circuit (with denominator $c_j=\sqrt{r_j}$):
VO circuit:
No gradients, no labels — one deterministic pass through the operator graph.
Table 1. Average classification accuracy (%) of the merged model under three increasingly difficult settings: 8, 14, and 20 task-specific ViT-B/32 models. Higher is better; training-free methods use 256 calibration examples per task. For SLOA, $r$ is the retained QK/VO factorization rank ($r{=}64$ matches the original head dimension).
| Method | Samples | Avg. Accuracy (%) $\uparrow$ | |||
|---|---|---|---|---|---|
| 8 tasks | 14 tasks | 20 tasks | |||
| Fine-tuned | – | 90.39 | 89.26 | 89.78 | |
| Data-Free | Weight Averaging | – | 66.29 | 65.37 | 61.08 |
| Task Arithmetic | – | 69.49 | 66.47 | 60.60 | |
| TIES-Merging | – | 71.70 | 67.58 | 62.76 | |
| TSV-M | – | 83.04 | 79.11 | 73.66 | |
| Iso-C | – | 82.64 | 77.94 | 71.16 | |
| Iso-CTS | – | 82.87 | 79.24 | 73.41 | |
| Training-Free | Fisher Merging | 256 | 69.12 | 66.26 | 61.74 |
| RegMean | 256 | 82.63 | 77.93 | 72.20 | |
| RegMean++ | 256 | 84.37 | 80.06 | 74.51 | |
| SLOA ($r{=}64$) | 256 | 84.89 | 81.94 | 80.06 | |
| SLOA ($r{=}128$) | 256 | 85.50 | 82.61 | 81.03 | |
Table 2. Per-task and average Metric of the merged RoBERTa model on seven GLUE tasks (CoLA, SST-2, MRPC, QQP, MNLI, QNLI, RTE). Higher is better; training-free methods use 256 calibration examples per task. SLOA ($r{=}64$) preserves the original head rank; SLOA ($r{=}128$) expands the QK/VO factorization rank.
| Method | Samples | Metric $\uparrow$ | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| CoLA | SST-2 | MRPC | QQP | MNLI | QNLI | RTE | Avg | |||
| Individual | – | 0.6018 | 0.9404 | 0.8922 | 0.9141 | 0.8720 | 0.9271 | 0.7906 | 0.8483 | |
| Data-Free | Weight Averaging | – | 0.1808 | 0.8188 | 0.8116 | 0.7381 | 0.4383 | 0.7106 | 0.6173 | 0.6165 |
| Task Arithmetic | – | 0.2909 | 0.8463 | 0.8188 | 0.7869 | 0.5591 | 0.7584 | 0.6462 | 0.6724 | |
| TIES-Merging | – | 0.1951 | 0.8429 | 0.8333 | 0.8351 | 0.6501 | 0.7309 | 0.4260 | 0.6448 | |
| TSV-M | – | 0.3477 | 0.8739 | 0.8446 | 0.8286 | 0.6163 | 0.8124 | 0.6606 | 0.7120 | |
| Iso-C | – | 0.2639 | 0.8601 | 0.8130 | 0.8211 | 0.7303 | 0.7882 | 0.7040 | 0.7115 | |
| Iso-CTS | – | 0.4136 | 0.7798 | 0.6385 | 0.6500 | 0.5277 | 0.6590 | 0.6534 | 0.6174 | |
| Training-Free | Fisher Merging | 256 | 0.1126 | 0.8719 | 0.7419 | 0.7808 | 0.4227 | 0.5311 | 0.5150 | 0.5680 |
| RegMean | 256 | 0.2797 | 0.8933 | 0.8069 | 0.7915 | 0.7251 | 0.8336 | 0.6161 | 0.7066 | |
| RegMean++ | 256 | 0.2433 | 0.9170 | 0.7740 | 0.8099 | 0.7543 | 0.8299 | 0.6691 | 0.7139 | |
| SLOA ($r{=}64$) | 256 | 0.5608 | 0.9232 | 0.8814 | 0.8152 | 0.7678 | 0.8755 | 0.7100 | 0.7906 | |
| SLOA ($r{=}128$) | 256 | 0.5721 | 0.9239 | 0.8810 | 0.8166 | 0.7753 | 0.8824 | 0.7341 | 0.7979 | |
bold = best in column; underline = second best. SLOA is best on 6/7 tasks; +8.4 avg. pts over the strongest baseline at $r{=}128$.
Component ablation (20 tasks)
Decoupling QK and OV ranks
Scaling with calibration & rank (ViT-B/32, 20 tasks)
Sensitivity to regularization $\alpha$
From left to right: ViT-B/32 on 20 vision tasks vs. data-free / vs. training-free baselines; RoBERTa on 7 GLUE tasks vs. data-free / vs. training-free baselines. SLOA ($r{=}128$) consistently outperforms both data-free and training-free baselines.
Take-aways
Limitations
Future work