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

MoCE:面向基于字节的神经机器翻译的自适应上下文专家混合

MoCE: Adaptive Mixture of Contextualization Experts for Byte-based Neural Machine Translation

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Key Laboratory of AI Safety, Chinese Academy of Sciences(中国科学院人工智能安全重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Washington University in St. Louis(圣路易斯华盛顿大学)

Langlin Huang, Mengyu Bu, Yang Feng

AI总结:

本文提出MoCE方法,通过自适应选择和混合注意力头作为上下文专家,解决基于字节的神经机器翻译中字节语义信息有限及跨语言编码规则差异问题,在Ted-59数据集上以更少参数超越子词模型。

摘要:

基于字节的机器翻译系统在大规模多语言场景中展现出显著潜力。Unicode编码将每个字符映射到特定的一个或多个字节,即使在新语言中也能消除未知词的出现。这避免了多语言翻译中的集外词风险,并实现了广泛的语言可扩展性。然而,字节级分词产生的序列由于每个字节的语义信息有限而难以解释。局部上下文化已被证明能有效为词元赋予初始语义,从而提升句子理解能力。尽管如此,不同语言之间编码规则的差异要求采用自适应方法来实现有效的上下文化。为此,我们提出上下文专家混合(MoCE),自适应地选择并混合被视为上下文专家的注意力头。这增强了上下文化尺度的灵活性,并使模型能够搜索更好的上下文化组合。实验结果表明,我们的方法在无需大量手动调整超参数的情况下优于现有方法,并在Ted-59数据集上以更少的参数量超越了基于子词的模型。我们的代码可在https://github.com/ictnlp/MoCE获取。

英文摘要:

Byte-based machine translation systems have shown significant potential in massively multilingual settings. Unicode encoding, which maps each character to specific byte(s), eliminates the emergence of unknown words, even in new languages. This avoids out-of-vocabulary risk in multilingual translation and enables broad language scalability. However, byte-level tokenization results in sequences that are hard to interpret due to limited semantic information per byte. Local contextualization has proven effective in assigning initial semantics to tokens, improving sentence comprehension. Nevertheless, variations in encoding rules across languages necessitate an adaptive approach for effective contextualization. To this end, we propose Mixture of Contextualization Experts (MoCE), adaptively selecting and mixing attention heads, which are treated as contextualization experts. This enhances the flexibility of contextualization scales and allows models to search for better contextualization combinations. Experiment results show that our method outperforms existing methods without extensive manual adjustment of hyper-parameters and surpasses subword-based models with fewer parameters in Ted-59 dataset. Our code is available at https://github.com/ictnlp/MoCE.

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

↑