Skip to content
conftrace_
2022 EMNLP EMNLP 2022

Revisiting Locality Sensitive Hashing for Vocabulary Selection in Fast Neural Machine Translation

AbstractNeural machine translation models often contain large target vocabularies. The calculation of logits, softmax and beam search is computationally costly over so many classes. We investigate the use of locality sensitive hashing (LSH) to reduce the number of vocabulary items that must be evaluated and explore the relationship between the hashing algorithm, translation speed and quality. Compared to prior work, our LSH-based solution does not require additional augmentation via word-frequency lists or alignments. We propose a training procedure that produces models, which, when combined with our LSH inference algorithm increase translation speed by up to 87% over the baseline, while maintaining translation quality as measured by BLEU. Apart from just using BLEU, we focus on minimizing search errors compared to the full softmax, a much harsher quality criterion.

🌉 Interdisciplinary Bridge - Artificial Intelligence and Natural Language Processing
🐣 Hot Topic Early Bird - inference acceleration

More from EMNLP 2022

All EMNLP 2022 papers →