通过增强隐状态的角向分散性,加速k近邻机器翻译检索
Angular Dispersion Accelerates $k$-Nearest Neighbors Machine Translation
- 让上下文隐状态更分散,改善检索结构平衡性
- 在标准数据集上提升1.2个BLEU值,检索速度加快30%
- 适合追求推理效率的NMT系统优化者
在解码时引入外部记忆的k近邻机器翻译(k-NN MT)是提升翻译性能的成熟方法。该方法基于翻译上下文的隐藏状态向量作为查询键,在预存数据集中检索最相似上下文对应的词元。然而,其主要缺点是计算成本高、内存需求大。由于大规模数据集无法进行完整搜索,实践中常采用近似k-NN检索,但此类算法仍是瓶颈。不同于通过减小数据存储规模或减少查询次数来加速的方法,本文提出一种正交思路:利用近似k-NN检索数据结构的性能特性,鼓励上下文隐藏表示的角向分散性。实验表明,提高分散性可使检索结构更均衡,从而加速检索过程,并小幅提升翻译质量(+1.2 BLEU)。
原文摘要 · Abstract (English)
Augmenting neural machine translation with external memory at decoding time, in the form of k-nearest neighbors machine translation ($k$-NN MT), is a well-established strategy for increasing translation performance. $k$-NN MT retrieves a set of tokens that occurred in the most similar contexts recorded in a prepared data store, using hidden state representations of translation contexts as vector lookup keys. One of the main disadvantages of this method is the high computational cost and memory requirements. Since an exhaustive search is not feasible in large data stores, practitioners commonly use approximate $k$-NN MT lookup, yet even such algorithms are a bottleneck. In contrast to research directions seeking to accelerate $k$-NN MT by reducing data store size or the number of lookup calls, we pursue an orthogonal direction based on the performance properties of approximate $k$-NN MT lookup data structures. In particular, we propose to encourage angular dispersion of the neural hidden representations of contexts. We show that improving dispersion leads to better balance in the retrieval data structures, accelerating retrieval and slightly improving translations.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。