先吃果酱还是奶油?基于SCONES的神经机器翻译歧义建模
Jam or Cream First? Modeling Ambiguity in Neural Machine Translation with SCONES
摘要:
神经机器翻译中的softmax层旨在对互斥令牌的分布进行建模。然而,机器翻译本质上是不确定的:同一个源语句可以有多个语义等价的翻译。因此,我们建议用多标签分类层代替softmax激活,这样可以更有效地对模糊性进行建模。我们称我们的损失函数为非排他性序列的单标签对比目标(SCONES)。我们表明,多标签输出层仍然可以使用SCONES损失函数在单个参考训练数据上进行训练。SCONES在六个翻译方向上产生一致的BLEU分数增益,特别是对于中等资源语言对和小波束大小。通过使用更小的光束尺寸,我们可以将推理速度提高3.9倍,并且仍然匹配或提高使用softmax获得的BLEU分数。此外,我们证明了SCONES可以用于训练NMT模型,该模型将最高概率分配给适当的翻译,从而减轻“束搜索诅咒”。对具有不同不确定性水平的合成语言对的额外实验表明,SCONES的改进可以归因于更好地处理歧义。
英文摘要:
The softmax layer in neural machine translation is designed to model the distribution over mutually exclusive tokens. Machine translation, however, is intrinsically uncertain: the same source sentence can have multiple semantically equivalent translations. Therefore, we propose to replace the softmax activation with a multi-label classification layer that can model ambiguity more effectively. We call our loss function Single-label Contrastive Objective for Non-Exclusive Sequences (SCONES). We show that the multi-label output layer can still be trained on single reference training data using the SCONES loss function. SCONES yields consistent BLEU score gains across six translation directions, particularly for medium-resource language pairs and small beam sizes. By using smaller beam sizes we can speed up inference by a factor of 3.9x and still match or improve the BLEU score obtained using softmax. Furthermore, we demonstrate that SCONES can be used to train NMT models that assign the highest probability to adequate translations, thus mitigating the "beam search curse". Additional experiments on synthetic language pairs with varying levels of uncertainty suggest that the improvements from SCONES can be attributed to better handling of ambiguity.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。