arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.15609cs.SDeess.AS
收藏

局部性问题:一种用于自动语音识别的局部偏向线性注意力

Locality Matters: A Locality-Biased Linear Attention for Automatic Speech Recognition

SenseTime Research(商汤科技研究院);Beijing University of Posts and Telecommunications(北京邮电大学)

Jingyu Sun, Guiping Zhong, Dinghao Zhou, Baoxiang Li, Yiran Zhong

摘要:

Conformer在自动语音识别(ASR)方面在许多公共基准测试中都取得了巨大的成功。其关键缺点之一是相对于输入序列长度的二次时间-空间复杂度,这禁止模型按比例放大以及处理更长的输入音频序列。为了解决这个问题,已经提出了许多线性注意力方法。然而,这些方法通常在ASR上具有有限的性能,因为它们在建模中平等地对待令牌,忽略了相邻令牌通常比距离较远的令牌连接得更多的事实。在本文中,我们考虑到这一事实,并提出了一个新的局部偏向线性注意力的构象。它不仅比vanilla Conformer具有更高的精度,而且具有线性时空计算复杂性。具体来说,我们在Conformer块中用局部偏向的线性注意力(LBLA)机制取代softmax注意力。LBLA包含一个核函数来确保线性复杂度,以及一个余弦重新加权矩阵来对相邻令牌施加更多权重。LibriSpeech语料库上的大量实验表明,通过将这种局部偏差引入到Conformer中,我们的方法在推理速度超过22%的情况下实现了较低的单词出错率。

英文摘要:

Conformer has shown a great success in automatic speech recognition (ASR) on many public benchmarks. One of its crucial drawbacks is the quadratic time-space complexity with respect to the input sequence length, which prohibits the model to scale-up as well as process longer input audio sequences. To solve this issue, numerous linear attention methods have been proposed. However, these methods often have limited performance on ASR as they treat tokens equally in modeling, neglecting the fact that the neighbouring tokens are often more connected than the distanced tokens. In this paper, we take this fact into account and propose a new locality-biased linear attention for Conformer. It not only achieves higher accuracy than the vanilla Conformer, but also enjoys linear space-time computational complexity. To be specific, we replace the softmax attention with a locality-biased linear attention (LBLA) mechanism in Conformer blocks. The LBLA contains a kernel function to ensure the linear complexities and a cosine reweighing matrix to impose more weights on neighbouring tokens. Extensive experiments on the LibriSpeech corpus show that by introducing this locality bias to the Conformer, our method achieves a lower word error rate with more than 22% inference speed.

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

↑