arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.03791cs.LG
收藏

GPU上RNN-T语音识别模型的光速精确贪心解码

Speed of Light Exact Greedy Decoding for RNN-T Speech Recognition Models on GPU

NVIDIA(英伟达)

Daniel Galvez, Vladimir Bataev, Hainan Xu, Tim Kaldewey

AI总结:

本文利用CUDA图条件节点提出GPU上的精确贪心解码方法,消除RNN-T解码中约80%的GPU空闲时间,使11亿参数模型端到端加速2.5倍,并证明RNN-T模型可接近CTC模型的高吞吐推理性能。

摘要:

如今,RNN Transducer(RNN-T)模型的绝大部分推理时间都花在解码上。当前最先进的RNN-T解码实现使GPU约80%的时间处于空闲状态。利用CUDA 12.4的新特性——CUDA图条件节点,我们提出了一种基于GPU的RNN-T模型贪心解码精确实现,消除了这种空闲时间。我们的优化使一个11亿参数的RNN-T模型端到端速度提升了2.5倍。该技术也可应用于“标签循环”替代贪心解码算法,在分别应用于11亿参数的RNN-T模型和Token and Duration Transducer模型时,实现了1.7倍和1.4倍的端到端加速。这项工作使一个11亿参数的RNN-T模型运行速度仅比同等规模的CTC模型慢16%,打破了RNN-T模型不适合高吞吐量推理的普遍看法。该实现已在NVIDIA NeMo中提供。

英文摘要:

The vast majority of inference time for RNN Transducer (RNN-T) models today is spent on decoding. Current state-of-the-art RNN-T decoding implementations leave the GPU idle ~80% of the time. Leveraging a new CUDA 12.4 feature, CUDA graph conditional nodes, we present an exact GPU-based implementation of greedy decoding for RNN-T models that eliminates this idle time. Our optimizations speed up a 1.1 billion parameter RNN-T model end-to-end by a factor of 2.5x. This technique can applied to the "label looping" alternative greedy decoding algorithm as well, achieving 1.7x and 1.4x end-to-end speedups when applied to 1.1 billion parameter RNN-T and Token and Duration Transducer models respectively. This work enables a 1.1 billion parameter RNN-T model to run only 16% slower than a similarly sized CTC model, contradicting the common belief that RNN-T models are not suitable for high throughput inference. The implementation is available in NVIDIA NeMo.

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

↑