← 研踪 PaperTrailarXiv:2605.14047 · v4
Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation
首次提交 2026-05-14 03:08
版本更新 2026-12-02 23:40
雷达观测 2026-12-03 12:51
摘要
Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization. Recent methods attempt to bypass this by replacing normalization layers with hardware-friendly scalar approximations. However, these homogeneous replacements do not optimally fit to all layers' behaviour and rely on expensive model retraining. In this work, we propose a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained network activations. Because each layer receives its own expression, the evolved functions adapt to the changing normalization behaviour across network depth. Coupled with a novel post-training re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. After only 20 epochs of re-alignment, our modified models recover Top-1 ImageNet-1K accuracy on ViT-B and on ViT-L. Across four pre-trained architectures (ViT-B, ViT-L, Swin-B, and ConvNeXt-B), our best variant stays within of the pre-trained model, and our expressions outperform the homogeneous Dynamic Tanh (DyT) baseline in 11 of 12 settings. By retaining near-baseline accuracy while removing the global reduction bottleneck, our expressions make normalization cheaper on edge hardware. In register-transfer level (RTL) simulations of two chips, they need about three times fewer compute cycles than LayerNorm and half of its off-chip reads on edge devices with small on-chip memory.
作者备注:37 pages, 11 figures. v4: extended experiments to Swin-B and ConvNeXt-B; added Derf baseline, RTL hardware simulations, and robustness and ablation experiments
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v4 · 2026-12-02 23:40 · 最新观测版本
Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation
Vision Transformers (ViTs) achieve state-of-the-art performance on challenging vision tasks, but their deployment on edge devices is hindered by the computational complexity and global reduction bottleneck imposed by layer normalization. Recent methods attempt to bypass this by replacing normalization layers with hardware-friendly scalar approximations. However, these homogeneous replacements do not optimally fit to all layers' behaviour and rely on expensive model retraining. In this work, we propose a highly efficient, hardware-aware framework that utilizes genetic programming (GP) to evolve heterogeneous, layer-specific scalar functions directly from pre-trained network activations. Because each layer receives its own expression, the evolved functions adapt to the changing normalization behaviour across network depth. Coupled with a novel post-training re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. After only 20 epochs of re-alignment, our modified models recover Top-1 ImageNet-1K accuracy on ViT-B and on ViT-L. Across four pre-trained architectures (ViT-B, ViT-L, Swin-B, and ConvNeXt-B), our best variant stays within of the pre-trained model, and our expressions outperform the homogeneous Dynamic Tanh (DyT) baseline in 11 of 12 settings. By retaining near-baseline accuracy while removing the global reduction bottleneck, our expressions make normalization cheaper on edge hardware. In register-transfer level (RTL) simulations of two chips, they need about three times fewer compute cycles than LayerNorm and half of its off-chip reads on edge devices with small on-chip memory.
查看此版本解读 →查看此版本原文 ↗