本文在NVIDIA Jetson Orin Nano上系统评估了不同ASR模型在FP32、FP16和INT8量化下的能耗、内存与准确率权衡,发现FP16可使能耗减半且性能损失极小,为边缘端高效ASR部署提供了实证依据。
摘要:
近年来,基于Transformer的自动语音识别(ASR)模型已实现低于4%的词错误率(WER),超越了人类标注员的准确率,然而这些模型需要大量服务器资源,导致显著的碳足迹。传统的基于服务器的ASR架构还存在隐私问题,以及因网络依赖而产生的可靠性和延迟问题。相比之下,端侧(边缘)ASR通过有效平衡特定应用中的能耗与准确率,增强了隐私保护、提升了性能并促进了可持续性。本研究考察了量化、内存需求和能耗对NVIDIA Jetson Orin Nano上各种ASR模型推理性能的影响。通过在干净和含噪数据集上分析使用FP32、FP16和INT8量化的各模型的WER和转录速度,我们揭示了准确率、速度、量化、能效和内存需求之间的关键权衡。我们发现,将精度从FP32改为FP16可使不同模型的音频转录能耗减半,且性能退化极小。更大的模型规模和参数量既不能保证更好的抗噪能力,也不能预测给定转录负载下的能耗。这些发现以及其他若干发现为在能源和内存受限的环境中优化ASR系统提供了新颖的见解,这对于开发高效的端侧ASR解决方案至关重要。复现本文结果所需的代码和输入数据已开源,可在[https://github.com/zzadiues3338/ASR-energy-jetson]获取。
英文摘要:
Recent transformer-based ASR models have achieved word-error rates (WER) below 4%, surpassing human annotator accuracy, yet they demand extensive server resources, contributing to significant carbon footprints. The traditional server-based architecture of ASR also presents privacy concerns, alongside reliability and latency issues due to network dependencies. In contrast, on-device (edge) ASR enhances privacy, boosts performance, and promotes sustainability by effectively balancing energy use and accuracy for specific applications. This study examines the effects of quantization, memory demands, and energy consumption on the performance of various ASR model inference on the NVIDIA Jetson Orin Nano. By analyzing WER and transcription speed across models using FP32, FP16, and INT8 quantization on clean and noisy datasets, we highlight the crucial trade-offs between accuracy, speeds, quantization, energy efficiency, and memory needs. We found that changing precision from fp32 to fp16 halves the energy consumption for audio transcription across different models, with minimal performance degradation. A larger model size and number of parameters neither guarantees better resilience to noise, nor predicts the energy consumption for a given transcription load. These, along with several other findings offer novel insights for optimizing ASR systems within energy- and memory-limited environments, crucial for the development of efficient on-device ASR solutions. The code and input data needed to reproduce the results in this article are open sourced are available on [https://github.com/zzadiues3338/ASR-energy-jetson].
Boost Vision Transformer with GPU-Friendly Sparsity and Quantization
Academy for Engineering and Technology, Fudan University(复旦大学工程与应用技术研究院);NVIDIA Corporation(英伟达公司);School for Information Science and Technology, Fudan University(复旦大学信息科学与工程学院)
Automatic heterogeneous quantization of deep neural networks for low-latency inference on the edge for particle detectors
Palo Alto Networks(帕洛阿尔托网络公司);Google LLC(谷歌有限责任公司);Institute of Physics Belgrade(贝尔格莱德物理研究所);European Organization for Nuclear Research (CERN)(欧洲核子研究组织(CERN));California Institute of Technology(加州理工学院)