Sequence-to-Sequence (seq2seq) tasks transcribe the input sequence to a target sequence. The Connectionist Temporal Classification (CTC) criterion is widely used in multiple seq2seq tasks. Besides predicting the target sequence, a side product of CTC is to predict the alignment, which is the most probable input-long sequence that specifies a hard aligning relationship between the input and target units. As there are multiple potential aligning sequences (called paths) that are equally considered in CTC formulation, the choice of which path will be most probable and become the predicted alignment is always uncertain. In addition, it is usually observed that the alignment predicted by vanilla CTC will drift compared with its reference and rarely provides practical functionalities. Thus, the motivation of this work is to make the CTC alignment prediction controllable and thus equip CTC with extra functionalities. The Bayes risk CTC (BRCTC) criterion is then proposed in this work, in which a customizable Bayes risk function is adopted to enforce the desired characteristics of the predicted alignment. With the risk function, the BRCTC is a general framework to adopt some customizable preference over the paths in order to concentrate the posterior into a particular subset of the paths. In applications, we explore one particular preference which yields models with the down-sampling ability and reduced inference costs. By using BRCTC with another preference for early emissions, we obtain an improved performance-latency trade-off for online models. Experimentally, the proposed BRCTC reduces the inference cost of offline models by up to 47% without performance degradation and cuts down the overall latency of online systems to an unseen level.
翻译:将输入序列转换为目标序列(seq2seq) 。 连接时间分类(CTC) 标准在多个后继2seq 任务中被广泛使用。 除了预测目标序列之外, CTC的副产品是预测匹配, 这是最有可能的输入序列- 序列, 规定了输入单位和目标单位之间的硬协调关系。 由于在CTC的配方中同样考虑到多种潜在的对齐序列( 所谓的路径), 选择哪条路径最有可能, 并成为预测的匹配线总是不确定的。 此外, 人们通常会发现, Vanilla CTC 预测的对齐标准将与其引用值相比会漂移, 并且很少提供实用功能。 因此, 这项工作的动力是让CTC 匹配预测序列可以控制并因此使CTC 具有额外的功能。 这项工作中提出了Bayes 风险 CTC (BRTC) 标准, 其中采用可定制的 Bayes 风险功能, 以落实预测的偏向下偏差的偏差特征。 有了风险函数, BRICCTC 是一个总体框架, 以采用某些可定制的偏差偏差偏向在线路径的偏向路径的偏差偏差,,,,,, 将选择在直向直线模型的路径上的偏向上, 一种直线路径直线路的路径,,,,,, 一种直为我们浏览,,, 直为我们选择,, 选择 直路 直路,, 选择 直为 直为我们 直路,,,, 直路,,,,,, 直为 直为,,, 的 直 直 的 的 的 的 的 的 的 的 的 的 的 的 的 的 的 的, 的 的 的, 的 的, 的 的 的 的 的 的,, 直 的 的 的 的 的,,,,,,,,,, 直 直 直 直 直 直 直