优化上下文语音识别:利用向量量化实现高效检索
Optimizing Contextual Speech Recognition Using Vector Quantization for Efficient Retrieval
AI总结:
提出基于向量量化的近似交叉注意力评分,结合检索式上下文偏置,实现大规模目录的高效利用,显著降低错误率并减少计算和内存开销。
摘要:
神经上下文偏置使语音识别模型能够利用上下文相关信息,从而提高转录准确性。然而,偏置机制通常基于音频与偏置条目目录之间的交叉注意力模块,这意味着计算复杂度可能对偏置目录的大小造成严重的实际限制,进而影响准确性提升。这项工作提出了一种基于向量量化的交叉注意力评分的近似方法,并实现了对大型偏置目录的计算和内存高效利用。我们建议将此技术联合用于基于检索的上下文偏置方法。首先,我们使用高效的量化检索模块,通过音频对偏置条目进行候选筛选。然后,我们使用检索到的条目进行偏置。由于所提出的方法与偏置方法无关,我们研究了使用完整交叉注意力、LLM提示以及两者的组合。我们表明,基于检索的候选筛选使系统能够高效利用包含数千条目的偏置目录,在个人实体识别中实现了高达71%的相对错误率降低。同时,与标准的点积交叉注意力相比,所提出的近似算法在多达一百万个条目的列表中,将计算时间减少了20%,内存使用减少了85-95%。
英文摘要:
Neural contextual biasing allows speech recognition models to leverage contextually relevant information, leading to improved transcription accuracy. However, the biasing mechanism is typically based on a cross-attention module between the audio and a catalogue of biasing entries, which means computational complexity can pose severe practical limitations on the size of the biasing catalogue and consequently on accuracy improvements. This work proposes an approximation to cross-attention scoring based on vector quantization and enables compute- and memory-efficient use of large biasing catalogues. We propose to use this technique jointly with a retrieval based contextual biasing approach. First, we use an efficient quantized retrieval module to shortlist biasing entries by grounding them on audio. Then we use retrieved entries for biasing. Since the proposed approach is agnostic to the biasing method, we investigate using full cross-attention, LLM prompting, and a combination of the two. We show that retrieval based shortlisting allows the system to efficiently leverage biasing catalogues of several thousands of entries, resulting in up to 71% relative error rate reduction in personal entity recognition. At the same time, the proposed approximation algorithm reduces compute time by 20% and memory usage by 85-95%, for lists of up to one million entries, when compared to standard dot-product cross-attention.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。