[论文解读] How Much Does Tokenization Affect Neural Machine Translation?
本研究评估了五种分词器——SentencePiece、Mecab、Stanford Word Segmenter、Moses 和 OpenNMT——在十个语言对上的神经机器翻译(NMT)质量影响。研究发现,分词显著影响翻译性能,BLEU得分最高提升12点,TER得分最高提升15点,且最优分词器因语言对而异,不存在适用于所有设置的单一最佳分词器。
Tokenization or segmentation is a wide concept that covers simple processes such as separating punctuation from words, or more sophisticated processes such as applying morphological knowledge. Neural Machine Translation (NMT) requires a limited-size vocabulary for computational cost and enough examples to estimate word embeddings. Separating punctuation and splitting tokens into words or subwords has proven to be helpful to reduce vocabulary and increase the number of examples of each word, improving the translation quality. Tokenization is more challenging when dealing with languages with no separator between words. In order to assess the impact of the tokenization in the quality of the final translation on NMT, we experimented on five tokenizers over ten language pairs. We reached the conclusion that the tokenization significantly affects the final translation quality and that the best tokenizer differs for different language pairs.
研究动机与目标
- 评估不同分词策略在多种语言对上的神经机器翻译(NMT)质量影响。
- 确定是否存在一个在多个语言对上始终最优的分词器,还是性能因语言对而异。
- 比较形态学、统计和基于规则的分词器在NMT系统中的有效性。
- 为预处理对NMT性能的影响提供实证证据,尤其针对低资源或形态丰富的语言。
提出的方法
- 将五种分词器应用于十个语言对:SentencePiece(unigram模型,32k词表)、Mecab(日语形态分析器)、Stanford Word Segmenter(中文分词)、Moses(标准NLP分词器)和OpenNMT(仅基于标点符号的分词器)。
- 使用每种分词器对NMT训练、开发和测试集进行预处理。
- 所有实验均采用基于双向LSTM编码器和注意力增强解码器网络的标准NMT架构。
- 使用随机梯度下降训练模型,以在平行单语语料上最大化对数似然。
- 通过计算BLEU和TER得分来评估所有语言对和分词器的翻译质量。
- 对翻译输出进行定性分析,以评估流畅性、准确性和词级错误。
实验结果
研究问题
- RQ1不同分词器的选择如何影响神经机器翻译在不同语言对上的BLEU和TER得分?
- RQ2是否存在一个在所有语言对上始终优于其他分词器的最优分词器?
- RQ3与简单的标点符号分词器相比,形态学和子词分词器在翻译质量方面表现如何?
- RQ4像SentencePiece这样的子词分词器的性能在多大程度上取决于训练数据的规模和性质?
- RQ5为何某些分词器在形态复杂的语言中能生成更流畅、更准确的翻译,而其他分词器则不能,其原因是什么?
主要发现
- 分词对NMT质量有显著影响,不同分词器之间的性能差异最高可达12 BLEU点和15 TER点。
- SentencePiece在阿拉伯语到英语的翻译中表现最佳,但在其他语言对中,其他分词器表现更优。
- Moses分词器在定性示例中产生了最准确的翻译,其在测试的两个英语到德语案例中与参考译文最为接近。
- SentencePiece和OpenNMT分词器生成的翻译中出现了重复或遗漏词汇的情况,例如在某例中'pilot'被遗漏,'motor'被重复。
- 仅基于标点符号的OpenNMT分词器表现较差,尤其在形态复杂的语言中,因其分词粒度过粗,导致分割不足。
- 不存在适用于所有语言对的单一最优分词器;最佳分词器因语言对及其方向而异。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。