arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.00659cs.CL
收藏

束搜索译码中标记平滑的隐式长度偏差

The Implicit Length Bias of Label Smoothing on Beam Search Decoding

Google Research(谷歌研究院)

Bowen Liang, Pidong Wang, Yuan Cao

摘要:

标签平滑广泛应用于神经机器翻译(NMT)训练。虽然标签平滑在模型训练期间提供了期望的正则化效果,但在本文中,我们证明了它在束搜索解码过程中引入了长度偏差。我们的分析表明,标签平滑隐式地将长度惩罚项应用于输出序列,导致偏向于较短的翻译。我们还表明,对于一个完全优化的模型与标签平滑,翻译长度是隐含的上限由一个固定的常数独立于输入。我们验证了我们的理论,在推理时应用一个简单的整流功能,以恢复无偏分布的标签平滑模型预测。这种校正方法使WMT英语-德语、英语-法语、英语-捷克语和英语-中文任务的质量得到了一致的改善,在光束尺寸4时达到了+0.3 BLEU,在光束尺寸200时达到了+2.8 BLEU。

英文摘要:

Label smoothing is ubiquitously applied in Neural Machine Translation (NMT) training. While label smoothing offers a desired regularization effect during model training, in this paper we demonstrate that it nevertheless introduces length biases in the beam search decoding procedure. Our analysis shows that label smoothing implicitly applies a length penalty term to output sequence, causing a bias towards shorter translations. We also show that for a model fully optimized with label smoothing, translation length is implicitly upper bounded by a fixed constant independent of input. We verify our theory by applying a simple rectification function at inference time to restore the unbiased distributions from the label-smoothed model predictions. This rectification method led to consistent quality improvements on WMT English-German, English-French, English-Czech and English-Chinese tasks, up to +0.3 BLEU at beam size 4 and +2.8 BLEU at beam size 200.

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

↑