CLLGFeb 9, 2023

Binarized Neural Machine Translation

DeepMind
arXiv:2302.04907v121 citationsh-index: 46Has Code
Originality Highly original
AI Analysis

This work addresses the challenge of scaling language models efficiently for machine translation, offering a significant reduction in model size with maintained performance.

The paper tackles the problem of inflated dot-product variance in binarized Transformers for machine translation, proposing a novel binarization technique that achieves the same quality as float models while being 16x smaller in size.

The rapid scaling of language models is motivating research using low-bitwidth quantization. In this work, we propose a novel binarization technique for Transformers applied to machine translation (BMT), the first of its kind. We identify and address the problem of inflated dot-product variance when using one-bit weights and activations. Specifically, BMT leverages additional LayerNorms and residual connections to improve binarization quality. Experiments on the WMT dataset show that a one-bit weight-only Transformer can achieve the same quality as a float one, while being 16x smaller in size. One-bit activations incur varying degrees of quality drop, but mitigated by the proposed architectural changes. We further conduct a scaling law study using production-scale translation datasets, which shows that one-bit weight Transformers scale and generalize well in both in-domain and out-of-domain settings. Implementation in JAX/Flax will be open sourced.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes