HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Incorporating a Local Translation Mechanism into Non-autoregressive Translation

Xiang Kong Zhisong Zhang Eduard Hovy

Incorporating a Local Translation Mechanism into Non-autoregressive Translation

Abstract

In this work, we introduce a novel local autoregressive translation (LAT) mechanism into non-autoregressive translation (NAT) models so as to capture local dependencies among tar-get outputs. Specifically, for each target decoding position, instead of only one token, we predict a short sequence of tokens in an autoregressive way. We further design an efficient merging algorithm to align and merge the out-put pieces into one final output sequence. We integrate LAT into the conditional masked language model (CMLM; Ghazvininejad et al.,2019) and similarly adopt iterative decoding. Empirical results on five translation tasks show that compared with CMLM, our method achieves comparable or better performance with fewer decoding iterations, bringing a 2.5xspeedup. Further analysis indicates that our method reduces repeated translations and performs better at longer sentences.

Code Repositories

shawnkx/NAT-with-Local-AT
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
machine-translation-on-wmt2014-english-germanCMLM+LAT+4 iterations
BLEU score: 27.35
Hardware Burden:
Operations per network pass:
machine-translation-on-wmt2014-english-germanCMLM+LAT+1 iterations
BLEU score: 25.20
Hardware Burden:
Operations per network pass:
machine-translation-on-wmt2014-german-englishCMLM+LAT+1 iterations
BLEU score: 29.91
machine-translation-on-wmt2014-german-englishCMLM+LAT+4 iterations
BLEU score: 32.04
machine-translation-on-wmt2016-english-1CMLM+LAT+4 iterations
BLEU score: 32.87
machine-translation-on-wmt2016-english-1CMLM+LAT+1 iterations
BLEU score: 30.74
machine-translation-on-wmt2016-romanianCMLM+LAT+1 iterations
BLEU score: 31.24
machine-translation-on-wmt2016-romanianCMLM+LAT+4 iterations
BLEU score: 33.26

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp