KWT-Tiny:基于RISC-V的嵌入式关键词检测Transformer
KWT-Tiny: RISC-V Accelerated, Embedded Keyword Spotting Transformer
AI总结:
KWT-Tiny通过RISC-V平台实现基于Transformer的关键词检测模型在边缘设备上的高效部署,通过量化和定制指令实现模型压缩和加速,精度损失小且能耗显著降低。
摘要:
本文探讨了通过在RISC-V平台上的量化和硬件加速将基于Transformer的模型适应边缘设备的方法。该模型旨在使用定制开发的边缘AI库在64kB RAM上用裸金属C语言运行。KWT-1重新训练后缩小了369倍,仅以10%的精度损失将输出类别从35减少到2。重新训练和量化将模型大小从2.42 MB减少到1.65 kB。定制RISC-V指令的集成加速了GELU和SoftMax操作,使推理速度提升了5倍,从而实现了约5倍的能耗降低,推理时钟周期数从2600万次减少到550万次,同时带来了约29%的小面积开销。结果表明,这是一种在低功耗物联网设备中移植和加速基于Transformer的模型的有效方法。
英文摘要:
This paper explores the adaptation of Transformerbased models for edge devices through the quantisation and hardware acceleration of the ARM Keyword Transformer (KWT) model on a RISC-V platform. The model was targeted to run on 64kB RAM in bare-metal C using a custom-developed edge AI library. KWT-1 was retrained to be 369 times smaller, with only a 10% loss in accuracy through reducing output classes from 35 to 2. The retraining and quantisation reduced model size from 2.42 MB to 1.65 kB. The integration of custom RISC-V instructions that accelerated GELU and SoftMax operations enabled a 5x speedup and thus ~5x power reduction in inference, with inference clock cycle counts decreasing from 26 million to 5.5 million clock cycles while incurring a small area overhead of approximately 29%. The results demonstrate a viable method for porting and accelerating Transformer-based models in low-power IoT devices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。