[论文解读] An Online Sequence-to-Sequence Model Using Partial Conditioning
本文提出一种在线序列到序列模型,通过基于部分输入和输出序列的条件预测实现增量推理,采用帧率编码器和分块传输连接RNN结合束搜索解码。在TIMIT数据集上达到19.8%的音素错误率(PER),且在长输入下性能下降极小,在低延迟场景中优于标准序列到序列模型。
Sequence-to-sequence models have achieved impressive results on various tasks. However, they are unsuitable for tasks that require incremental predictions to be made as more data arrives. This is because they generate an output sequence conditioned on an entire input sequence. In this paper, we present a new model that can make incremental predictions as more input arrives, without redoing the entire computation. Unlike sequence-to-sequence models, our method computes the next-step distribution conditioned on the partial input sequence observed and the partial sequence generated. It accomplishes this goal using an encoder recurrent neural network (RNN) that computes features at the same frame rate as the input, and a transducer RNN that operates over blocks of input steps. The transducer RNN extends the sequence produced so far using a local sequence-to-sequence model. During training, our method uses alignment information to generate supervised targets for each block. Approximate alignment is easily available for tasks such as speech recognition, action recognition in videos, etc. During inference (decoding), beam search is used to find the most likely output sequence for an input sequence. This decoding is performed online - at the end of each block, the best candidates from the previous block are extended through the local sequence-to-sequence model. On TIMIT, our online method achieves 19.8% phone error rate (PER). For comparison with published sequence-to-sequence methods, we used a bidirectional encoder and achieved 18.7% PER compared to 17.6% from the best reported sequence-to-sequence model. Importantly, unlike sequence-to-sequence our model is minimally impacted by the length of the input. On artificially created longer utterances, it achieves 20.9% with a unidirectional model, compared to 20% from the best bidirectional sequence-to-sequence models.
研究动机与目标
- 为解决标准序列到序列模型在处理增量式、流式输入时的局限性,实现数据到达时的实时预测。
- 设计一种模型,基于部分输入和已生成输出计算输出分布,避免完整重新计算。
- 在保持高准确率的同时最小化计算开销,尤其针对长序列。
- 通过在输入块上进行束搜索,实现在线推理,确保低延迟和可扩展性。
提出的方法
- 模型使用一个RNN编码器,以与输入信号相同的帧率处理输入,捕捉实时特征。
- 一个传输连接RNN在输入块上运行,通过局部序列到序列机制扩展当前输出序列。
- 训练期间,使用近似对齐为每个块生成监督目标,实现端到端学习。
- 推理期间,在每个块结束时应用束搜索,利用局部模型扩展前一个块的最佳候选。
- 模型使用双向编码器进行训练以提升性能,但支持单向推理以实现在线使用。
- 该架构确保输入长度对性能影响极小,因为计算被限制在每个块内,不随完整序列长度增长而扩展。
实验结果
研究问题
- RQ1能否在不重新处理整个输入的前提下,将序列到序列模型适配为在线增量预测?
- RQ2对部分输入和部分输出进行部分条件化,如何影响模型的准确率和延迟?
- RQ3该模型能否在标准模型性能下降的长序列上维持低错误率?
- RQ4在训练中使用近似对齐对分块预测有何性能增益?
- RQ5与标准序列到序列模型相比,该模型在错误率和计算效率方面表现如何?
主要发现
- 所提出的在线模型在使用双向编码器的TIMIT数据集上达到19.8%的音素错误率(PER)。
- 使用单向编码器时,模型在人工延长的语音样本上仍保持稳健性能,PER为20.9%,优于最佳双向序列到序列模型的20%。
- 与标准序列到序列模型在输入长度增加时性能显著下降不同,该模型表现出极小的性能退化。
- 在训练中使用近似对齐,可有效实现对分块预测的监督,而无需在推理时获取完整对齐。
- 在块边界应用束搜索解码,可实现高效、低延迟的在线推理,同时保持高准确率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。