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

基于解码步骤的神经机器翻译定时采样

Scheduled Sampling Based on Decoding Steps for Neural Machine Translation

Tencent Inc(腾讯公司);Beijing Jiaotong University(北京交通大学)

Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, Jie Zhou

摘要:

调度采样被广泛用于减轻神经机器翻译的曝光偏差问题。它的核心动机是在训练过程中模拟推理场景,用预测的令牌替换地面实况令牌,从而弥合训练和推理之间的差距。然而,香草调度采样仅基于训练步骤,并且平等地对待所有解码步骤。也就是说,它模拟了具有均匀出错率的推理场景,这与真实的推理场景不一致,在真实的推理场景中,由于错误累积,较大的解码步骤通常具有较高的出错率。为了缓解上述差异,我们提出了基于解码步骤的预定采样方法,随着解码步骤的增加,预测令牌的选择机会增加。因此,我们可以在训练过程中更逼真地模拟推理场景,从而更好地弥合训练和推理之间的差距。此外,我们研究了基于训练步骤和解码步骤的预定采样,以进一步改进。实验上,我们的方法显着优于Transformer基线和香草计划采样三个大规模的WMT任务。此外,我们的方法也很好地推广到两个流行的基准测试的文本摘要任务。

英文摘要:

Scheduled sampling is widely used to mitigate the exposure bias problem for neural machine translation. Its core motivation is to simulate the inference scene during training by replacing ground-truth tokens with predicted tokens, thus bridging the gap between training and inference. However, vanilla scheduled sampling is merely based on training steps and equally treats all decoding steps. Namely, it simulates an inference scene with uniform error rates, which disobeys the real inference scene, where larger decoding steps usually have higher error rates due to error accumulations. To alleviate the above discrepancy, we propose scheduled sampling methods based on decoding steps, increasing the selection chance of predicted tokens with the growth of decoding steps. Consequently, we can more realistically simulate the inference scene during training, thus better bridging the gap between training and inference. Moreover, we investigate scheduled sampling based on both training steps and decoding steps for further improvements. Experimentally, our approaches significantly outperform the Transformer baseline and vanilla scheduled sampling on three large-scale WMT tasks. Additionally, our approaches also generalize well to the text summarization task on two popular benchmarks.

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

↑