FLARE:面向容错、快速且高效 Transformer 加速的无 FP PTQ 与低 ENOB ADC 基 AMS-PiM
FLARE: FP-Less PTQ and Low-ENOB ADC Based AMS-PiM for Error-Resilient, Fast, and Efficient Transformer Acceleration
AI总结:
本文提出 AMS-PiM 架构 RAP,通过消除 DQ-Q 过程、无 FPU 非线性处理和低 ENOB ADC 稀疏矩阵向量乘法,在保持数值稳定性的同时提升 Transformer 加速的容错性、能效与速度。
摘要:
基于编码器的 Transformer 借助自注意力层,以其上下文感知表示彻底改变了机器学习。然而,它们在计算和内存需求上的二次增长带来了显著瓶颈。模拟混合信号存内处理(AMS-PiM)架构通过实现高效的片上处理来应对这些挑战。传统上,AMS-PiM 依赖量化感知训练(QAT),这种方式硬件效率高,但需要大量重新训练以使模型适配 AMS-PiM,对于 Transformer 模型而言越来越不切实际。训练后量化(PTQ)减轻了这种训练开销,但引入了显著的硬件低效问题。PTQ 依赖反量化-量化(DQ-Q)过程、浮点单元(FPU)以及高 ENOB(有效位数)模数转换器(ADC)。特别是,高 ENOB ADC 在面积和能耗上呈指数级扩展($2^{ENOB}$),降低传感裕度,并增加对工艺、电压和温度(PVT)变化的敏感性,进一步加剧了 PTQ 在 AMS-PiM 系统中的挑战。为克服这些限制,我们提出了 RAP,一种 AMS-PiM 架构,它消除了 DQ-Q 过程,引入了无 FPU 和无除法的非线性处理,并采用基于低 ENOB ADC 的稀疏矩阵向量乘法技术。利用所提出的技术,RAP 在保持数值稳定性的同时,提高了容错能力、面积/能效和计算速度。实验结果表明,RAP 在能效、延迟和精度方面优于最先进的 GPU 和传统 PiM 架构,使其成为高效部署 Transformer 的可扩展解决方案。
英文摘要:
Encoder-based transformers, powered by self-attention layers, have revolutionized machine learning with their context-aware representations. However, their quadratic growth in computational and memory demands presents significant bottlenecks. Analog-Mixed-Signal Process-in-Memory (AMS-PiM) architectures address these challenges by enabling efficient on-chip processing. Traditionally, AMS-PiM relies on Quantization-Aware Training (QAT), which is hardware-efficient but requires extensive retraining to adapt models to AMS-PiMs, making it increasingly impractical for transformer models. Post-Training Quantization (PTQ) mitigates this training overhead but introduces significant hardware inefficiencies. PTQ relies on dequantization-quantization (DQ-Q) processes, floating-point units (FPUs), and high-ENOB (Effective Number of Bits) analog-to-digital converters (ADCs). Particularly, High-ENOB ADCs scale exponentially in area and energy ($2^{ENOB}$), reduce sensing margins, and increase susceptibility to process, voltage, and temperature (PVT) variations, further compounding PTQ's challenges in AMS-PiM systems. To overcome these limitations, we propose RAP, an AMS-PiM architecture that eliminates DQ-Q processes, introduces FPU- and division-free nonlinear processing, and employs a low-ENOB-ADC-based sparse Matrix Vector multiplication technique. Using the proposed techniques, RAP improves error resiliency, area/energy efficiency, and computational speed while preserving numerical stability. Experimental results demonstrate that RAP outperforms state-of-the-art GPUs and conventional PiM architectures in energy efficiency, latency, and accuracy, making it a scalable solution for the efficient deployment of transformers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。