面向资源的混合精度量化:提升嵌入式FPGA上时间序列预测Transformer部署性
Resource-aware Mixed-precision Quantization for Enhancing Deployability of Transformers for Time-series Forecasting on Embedded FPGAs
AI总结:
本文提出面向资源的混合精度量化方法,通过灵活的资源类型选择和BRAM高效利用,解决嵌入式FPGA上整数量化Transformer部署难题,提升模型部署效率和适用性。
摘要:
本研究针对整数仅量化Transformer在资源受限的嵌入式FPGA(Xilinx Spartan-7 XC7S15)上的部署挑战,通过引入可选的资源类型来存储中间结果,提高了VHDL模板的灵活性,从而突破了部署瓶颈。此外,我们开发了一种面向资源的混合精度量化方法,使研究者能够在不需深入神经架构搜索专业知识的情况下探索硬件级量化策略。该方法提供了高精度的资源利用率估计,其精度偏差低至3%,相较于实际部署指标。与先前工作相比,我们的方法成功实现了混合精度量化的模型配置部署,从而克服了五个之前无法部署的统一量化位宽配置的限制。因此,本研究增强了Transformer在嵌入式系统中的适用性,促进了更多基于Transformer的应用在边缘设备上的广泛应用。
英文摘要:
This study addresses the deployment challenges of integer-only quantized Transformers on resource-constrained embedded FPGAs (Xilinx Spartan-7 XC7S15). We enhanced the flexibility of our VHDL template by introducing a selectable resource type for storing intermediate results across model layers, thereby breaking the deployment bottleneck by utilizing BRAM efficiently. Moreover, we developed a resource-aware mixed-precision quantization approach that enables researchers to explore hardware-level quantization strategies without requiring extensive expertise in Neural Architecture Search. This method provides accurate resource utilization estimates with a precision discrepancy as low as 3%, compared to actual deployment metrics. Compared to previous work, our approach has successfully facilitated the deployment of model configurations utilizing mixed-precision quantization, thus overcoming the limitations inherent in five previously non-deployable configurations with uniform quantization bitwidths. Consequently, this research enhances the applicability of Transformers in embedded systems, facilitating a broader range of Transformer-powered applications on edge devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。