arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.08641cs.CL
收藏

神经机器翻译中分割粒度的优化

Optimizing Segmentation Granularity for Neural Machine Translation

Carnegie Mellon University(卡内基梅隆大学);Karlsruhe Institute of Technology(卡尔斯鲁厄理工学院)

Elizabeth Salesky, Andrew Runge, Alex Coda, Jan Niehues, Graham Neubig

摘要:

在神经机器翻译(NMT)中,使用子词单元进行翻译以允许开放的词汇表并提高对不频繁单词的准确性已经成为标准。字节对编码(BPE)及其变体是生成这些子字的主要方法,因为它们是无监督的、无资源的并且经验上有效。然而,这些子字单元的粒度是一个超参数,需要使用网格搜索等方法针对每种语言和任务进行调整。由于资源限制,调优可能会被无穷尽地完成或完全跳过,从而导致次优性能。在本文中,我们提出了一种方法来自动调整这个参数,只使用一个训练通过。我们根据保留的验证损失在网上逐步引入新的词汇,从较小的一般子词开始,在训练过程中添加较大的更具体的单元。我们的方法匹配网格搜索的结果,优化分割粒度,无需任何额外的训练时间。我们还展示了训练效率和稀有词性能提高的好处,这是由于通过组合来自较小单元的嵌入来增量构建较大单元的嵌入的方式。

英文摘要:

In neural machine translation (NMT), it is has become standard to translate using subword units to allow for an open vocabulary and improve accuracy on infrequent words. Byte-pair encoding (BPE) and its variants are the predominant approach to generating these subwords, as they are unsupervised, resource-free, and empirically effective. However, the granularity of these subword units is a hyperparameter to be tuned for each language and task, using methods such as grid search. Tuning may be done inexhaustively or skipped entirely due to resource constraints, leading to sub-optimal performance. In this paper, we propose a method to automatically tune this parameter using only one training pass. We incrementally introduce new vocabulary online based on the held-out validation loss, beginning with smaller, general subwords and adding larger, more specific units over the course of training. Our method matches the results found with grid search, optimizing segmentation granularity without any additional training time. We also show benefits in training efficiency and performance improvements for rare words due to the way embeddings for larger units are incrementally constructed by combining those from smaller units.

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

↑