ET:从Softmax到混合注意力的高效转换框架
ET: Efficient Transfer from Softmax to Hybrid Attention
ET框架实现预训练softmax Transformer向混合注意力转换,仅需在少量无标注样本上通过交替最小二乘校准新增参数、无需梯度更新。在ImageNet-1K上,DeiT-S和DeiT-B分别达到79.64%和81.55% top-1精度,与softmax教师模型差距在0.25个百分点内。
arXiv:2611.31770v1 Announce Type: new Abstract: 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\times768$, ET outperforms T$^5$ 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$\times$ inference speedup.
来源:arXiv (AI + Vision + Imaging) · arxiv.org