arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.14047cs.CVcs.AR
收藏

进化层特定标量函数用于硬件感知的Transformer适应

Evolving Layer-Specific Scalar Functions for Hardware-Aware Transformer Adaptation

Department of Machine Learning and Neural Computing(机器学习与神经计算系);Donders Institute for Brain, Cognition, and Behaviour(大脑、认知与行为多纳尔斯研究所)

Kieran Carrigg, Sigur de Vries, Amirhossein Sadough, Marcel van Gerven

AI总结:

本文提出一种高效硬件感知框架,通过遗传编程进化层特定标量函数,避免重新训练,提升Transformer在边缘设备上的性能。

摘要:

Vision Transformers (ViTs) 在挑战性视觉任务上表现优异,但在边缘设备部署受层归一化计算复杂性和全局缩减瓶颈限制。最近的方法通过替换归一化层为硬件友好的标量近似来解决这一问题,但这些同质替换无法适应所有层的行为且需昂贵的模型重训练。本文提出一个高效、硬件感知的框架,利用遗传编程(GP)从预训练权重中进化异质、层特定的标量函数。结合新的后训练重对齐策略,该方法完全消除了重新训练的需要。进化表达式准确近似目标归一化行为,相比同质基线捕获91.6%的方差(R²),使修改后的架构在仅20个epoch内恢复84.25%的ImageNet-1K准确率。通过保留此性能并消除全局缩减瓶颈,该方法在算术复杂性和离芯片内存流量之间建立了有利的权衡,消除了ViTs在边缘加速器上高效部署的主要障碍。

英文摘要:

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 weights. Coupled with a novel post-training re-alignment strategy, our approach eliminates the need to retrain models from scratch entirely. Our evolved expressions accurately approximate the target normalization behaviours, capturing $90$-$93\%$ of the variance ($R^2$) compared to only $70$-$76\%$ for homogeneous baselines, allowing our modified architecture to recover $84.32\%$ Top-1 ImageNet-1K accuracy on ViT-B and $85.74\%$ on ViT-L in only 20 epochs. By retaining near-baseline accuracy while eliminating the global reduction bottleneck, our approach achieves a strict reduction in both arithmetic complexity and off-chip memory traffic compared to standard LayerNorm, removing a primary barrier to the efficient deployment of ViTs on edge accelerators.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑