Skip to main content
QUICK REVIEW

[论文解读] Transformer Transducer: One Model Unifying Streaming and Non-streaming Speech Recognition

Anshuman Tripathi, Jaeyoung Kim|arXiv (Cornell University)|Oct 7, 2020
Speech Recognition and SynthesisComputer Science参考文献 11被引用 30
一句话总结

提出 Transformer Transducer 架构,具有可变右上下文层,支持在单一模型中实现流式(低延迟)与非流式(高准确率)语音识别,采用 Y-model 并行解码和受限对齐训练以平衡延迟与准确性。

ABSTRACT

In this paper we present a Transformer-Transducer model architecture and a training technique to unify streaming and non-streaming speech recognition models into one model. The model is composed of a stack of transformer layers for audio encoding with no lookahead or right context and an additional stack of transformer layers on top trained with variable right context. In inference time, the context length for the variable context layers can be changed to trade off the latency and the accuracy of the model. We also show that we can run this model in a Y-model architecture with the top layers running in parallel in low latency and high latency modes. This allows us to have streaming speech recognition results with limited latency and delayed speech recognition results with large improvements in accuracy (20% relative improvement for voice-search task). We show that with limited right context (1-2 seconds of audio) and small additional latency (50-100 milliseconds) at the end of decoding, we can achieve similar accuracy with models using unlimited audio right context. We also present optimizations for audio and label encoders to speed up the inference in streaming and non-streaming speech decoding.

研究动机与目标

  • 建立一个能够同时处理流式和非流式 ASR 任务的单一端到端模型。
  • 开发能够在 Transformer 层中实现可变右上下文的训练技术。
  • 引入 Y-model 架构,用于高效并行的低时延和高时延解码。
  • 为流式和非流式部署提供推理优化。
  • 评估延迟-准确性权衡以及受限对齐以降低延迟。

提出的方法

  • 提出基于 Transformer 层的音频编码器和标签编码器的 Transformer Transducer,与 RNN-T 损失共同训练。
  • 引入变量右上下文训练,在每一层采样右上下文长度以实现灵活推理。
  • 提出 Y-model 架构,其倒数第二层使用可变上下文进行训练,从而实现并行的低时延和高时延解码。
  • 应用受限对齐训练,在 RNN-T 损失中屏蔽基于参考全注意力模型的高延迟对齐路径。
  • 讨论推理优化,包括流式与非流式编码器实现以及标签编码器缓存以提升速度。
  • 评估解码配置并对延迟与准确性进行优化,使用有限右上下文前瞻(例如 2.4 秒)。

实验结果

研究问题

  • RQ1单一的端到端 Transformer 基模型是否能够在不使用单独模型的情况下同时支持流式(低延迟)和非流式(高准确率)ASR 模式?
  • RQ2变量右上下文训练是否能够在几乎不需要再训练的情况下实现低延迟和高延迟解码模式之间的有效切换?
  • RQ3在流式使用有限右上下文而最终结果使用全右上下文时,延迟-准确性权衡是什么?
  • RQ4受限对齐训练是否能够在不牺牲整体 WER 的情况下降低词对齐延迟?
  • RQ5哪些推理优化最有效地加速 Transformer Transducer 的流式与非流式解码?

主要发现

  • 单一的 Transformer Transducer 模型可以同时支持低时延流式和高准确度的非流式解码模式。
  • Y-model 架构实现不同右上下文前瞻的并行解码,在有限前瞻(2.4 秒)下达到接近全上下文的准确性。
  • 有限右上下文(2.4s)在维持较小的解码结束延迟的同时,能够接近无限上下文的准确性。
  • 受限对齐训练显著降低词对齐延迟(例如在 Y-model2 低延迟配置中从约 767 ms 降至约 119 ms),对 WER 的影响因模式而异。
  • 标签编码器设计(小上下文 Transformer 或二元嵌入)和缓存显著加速解码,几乎不影响 WER。
  • 推理优化(批处理步数、查询切片,以及流式与非流式编码)在 TPU 和 CPU 上带来可观的加速。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。