Converting pretrained softmax Transformers to efficient attention often causes substantial performance degradation, while recovery typically requires costly fine-tuning. We propose ET (Efficient Transfer), a framework for high-fidelity attention conversion with minimal optimization cost. ET combines exact local and shared-key softmax attention with a mean-anchored, scan-free global linear correction and adaptive gating, achieving linear complexity in sequence length. To preserve pretrained knowledge, ET freezes pretrained weights and calibrates only newly introduced parameters through alternating least squares on a small set of unlabeled samples, without gradient updates. On ImageNet-1K, ET achieves 79.64% and 81.55% top-1 accuracy on DeiT-S and DeiT-B, respectively, within 0.25 percentage points of their softmax teachers. At 768×768, ET outperforms T5 by 3.59 percentage points at comparable inference FLOPs, without gradient-based fine-tuning. On DiT-XL/2, ET achieves an FID-50K of 2.59 with only 250 LoRA updates. On Stable Diffusion 3.5 Medium, ET matches the teacher's GenEval score at 1K resolution with just 0.73 A100 GPU-hours of gradient-free conversion and a 1.39× inference speedup.
Figures & tables
Figure 1: Left: 20482 image generated by SD3.5-ET D+ (ET with a Delta-rule scan); right: 10242 images generated by SD3.5-ET D+ . ET D+ is converted without gradients and then adapted with 800 LoRA updates.
Figure 2: Overview of ET. Each softmax attention becomes a hybrid attention (left): exact attention on a local window and a few shared keys, plus the exact remote mean and a correction read from one shared state S , mixed by a gate. Step 1 constructs the hybrid architecture while inheriting pretrained weights. Step 2 calibrates the newly introduced parameters through layer-specific least squares without backpropagation.
Model
Epochs
Ratio
Top-1
#Params
FLOPs
DeiT-T † [ 28 ]
300
100%
72.05
5.7M
1.25G
Linear [ 20 ]
30
10%
63.30
5.7M
1.13G
LiT [ 29 ]
30
10%
69.52
5.7M
1.14G
CLEAR [ 24 ]
30
10%
68.66
5.7M
1.11G
Hedgehog [ 38 ]
30
10%
NaN
5.8M
1.25G
T 5 -T [ 23 ]
30
10%
71.19
6.2M
1.34G
Table 1: Image classification results on ImageNet-1K. DeiT-T † is the GAP DeiT-T released by T 5 [ 23 ] ; Epochs and Ratio count gradient-based updates.
Model
Epochs
Ratio
Top-1
#Params
FLOPs
DeiT-S [ 28 ]
300
100%
79.83
22.1M
4.60G
T 5 -S [ 23 ]
1
0.33%
73.68
23.0M
4.78G
T 5+ -S [ 23 ]
1
0.33%
77.26
23.0M
4.82G
MA-S [ 35 ]
0
0%
73.72
22.1M
4.42G
FNA-S [ 25 ]
0
0%
74.67
22.1M
5.55G
ET G+ -S (ours)
0
0%
79.64
22.4M
4.63G
Table 2: Image classification results on ImageNet-1K with DeiT-S and DeiT-B. Epochs and Ratio count gradient-based updates.
Teacher
Softmax
MA
FNA
LoLCATs ‡
ET (ours)
DeiT-III-L
84.78
83.29
83.65
83.88
84.60
DINOv2-L v
77.99
59.51
73.48
72.95
77.74
CLIP-L z
73.47
59.24
49.32
70.26
72.53
SigLIP-L z
78.63
74.75
58.87
77.10
77.78
DeiT-B@ 3842
83.10
80.52
75.30
81.13
82.00
Table 3: Image classification results of larger and non-supervised teachers. ‡ 2,560 attention-transfer and 2,560 LoRA steps; v ImageNetV2; z zero-shot head.
Model
Epochs
FT-Ratio
FID ↓
IS ↑
Replace
Distill
DiT-XL/2 [ 27 ]
1400
–
2.27
278.2
–
–
LiT-XL/2 [ 29 ]
280
20%
2.32
265.2
100%
✓
Hyena-X [ 4 ]
∼ 28 †
2%
2.74
273.30
50%
✗
Hyena-Y [ 4 ]
∼ 28 †
2%
2.72
273.37
50%
✗
DiT 5 -XL/2 [ 23 ]
8
0.57%
2.48
267.9
100%
✗
Gradient-free conversion
Table 4: Comparison on class-conditional ImageNet 256×256 . DiT-XL/2-LoRA is the softmax teacher trained with the same rank-8 LoRA recipe; for DiT 5 -LoRA, 1 × /10 × is the learning-rate multiplier of its new TTT parameters. FT: fine-tuning. † Two-stage training.
DPG-Bench ↑
GenEval ↑
Latency (s) ↓
Method
Global
Entity
Attribute
Relation
Other
Overall
Single
Two
Count
Color
Position
Color Attri.
Overall
1024
2048
SD3.5-Medium [ 9 ]
84.42
89.92
88.35
93.29
80.20
84.16
1.00
0.84
0.60
0.83
0.20
0.53
0.67
25.70
257.26
SD3.5-MA [ 35 ]
81.46
85.74
84.16
91.72
78.50
78.37
0.95
0.64
0.47
0.75
0.15
0.43
0.57
–
–
SD3.5-ET G+ (ours)
85.11
89.85
87.88
93.33
79.90
84.04
1.00
0.82
0.62
0.81
0.21
0.54
0.67
18.55
153.40
SD3.5-ET D+ (ours)
84.35
90.09
88.25
93.91
80.90
84.52
1.00
0.83
0.67
0.81
0.21
0.55
0.68
19.33
156.66
Δ (ET G+ vs. Medium)
+ 0.69
− 0.07
− 0.47
+ 0.04
− 0.30
− 0.12
0.00
− 0.02
+ 0.02
− 0.02
+ 0.01
+ 0.01
0.00
1.39 ×
1.68 ×
Table 5: Quantitative comparison between SD3.5-Medium and its converted models on DPG-Bench and GenEval. We also report latency (seconds) at different resolutions. -LoRA rows use 800 rank-8 LoRA updates; SD3.5-Medium-LoRA is the teacher trained with the same recipe.
Figure 3: MACs and latency versus resolution on DeiT-S (a), DiT-XL/2 (b) and SD3.5-Medium (c, d). Latency is measured on one H200 GPU. The efficiency advantage of ET becomes more pronounced as the sequence length grows.
Model
Method
Updates
A100 ⋅ h
Quality
DeiT-S
T 5 / T 5+
625
1.08 / 2.09
73.68 / 77.26
ET G+ (ours)
0
0.009
79.64
DeiT-B
T 5 / T 5+
625
3.09 / 5.48
77.30 / 79.91
ET G+ (ours)
0
0.019
81.55
DiT-XL/2
DiT 5
8 ep
–
2.48
DiT 5 -LoRA (1 × / 10 × )
1000
1.71
15.94 / 7.66
Table 6: Conversion and recovery costs on one A100-80GB GPU. A100 GPU-hours include gradient-free calibration and any optional LoRA recovery. ET performs data-dependent calibration without gradient updates, whereas T 5 /T 5+ use gradient-based adaptation. Quality is measured by ImageNet top-1 accuracy, FID-50K, or GenEval, depending on the task.
DeiT-T
DeiT-S
DeiT-B@ 3842
Softmax teacher
72.13
79.83
83.10
(a) Remote branch (NAT7+32 exact set)
Exact set only (no remote branch)
67.69
78.16
78.92
Remote mean only
70.54
78.99
81.05
Global correction only (no mean)
70.35
78.88
81.45
Mean + Global correction (ours)
71.76
79.64
82.00
Table 7: Ablation of ET components on ImageNet-1K. All ET variants use gradient-free conversion with no gradient updates. (a) Contributions of remote mean anchoring and global correction. (b) Effect of analytical calibration and refinement. (c) Effect of exact-set coverage and Global versus Delta-rule correction. The DeiT-T results use the CLS checkpoint, unlike the GAP checkpoint in Tab. 1 .
Table 8: Ablation on the number of unlabeled calibration images on DeiT-S.
Figure 4: Accuracy–efficiency trade-off across resolutions on DeiT-B. ET uses 191 exact keys with inference FLOPs comparable to T 5 . At 768×768 , ET achieves 3.59 percentage points higher top-1 accuracy than T 5 while requiring 29% fewer MACs than the softmax teacher.
Attention mechanisms let neural networks weight information from other tokens or regions according to relevance, enabling context-dependent processing.