arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2302.04907cs.CLcs.LG
收藏

二值化神经机器翻译

Binarized Neural Machine Translation

Cornell University(康奈尔大学);Google Research(谷歌研究院)

Yichi Zhang, Ankush Garg, Yuan Cao, Łukasz Lew, Behrooz Ghorbani, Zhiru Zhang, Orhan Firat

AI总结:

本文提出首个面向机器翻译 Transformer 的二值化方法 BMT,通过额外 LayerNorm 与残差连接缓解一比特点积方差问题,实现16倍压缩且保持翻译质量,并验证其良好缩放与泛化能力。

摘要:

语言模型规模的快速扩展正在推动使用低位宽量化的研究。在本工作中,我们提出了一种用于机器翻译的 Transformer 新型二值化技术(BMT),这是同类方法中的首个。我们识别并解决了在使用一比特权重和激活时点积方差膨胀的问题。具体而言,BMT 利用额外的 LayerNorm 和残差连接来提升二值化质量。在 WMT 数据集上的实验表明,仅权重一比特的 Transformer 能够达到与浮点 Transformer 相同的质量,同时体积缩小16倍。一比特激活会导致不同程度的质量下降,但所提出的架构改动可缓解这一问题。我们进一步使用生产规模翻译数据集开展了缩放定律研究,结果表明一比特权重 Transformer 在域内和域外设置中均具有良好的缩放性和泛化性。基于 JAX/Flax 的实现将开源。

英文摘要:

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.

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

↑