arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.08034cs.CL

Towards Fully 8-bit Integer Inference for the Transformer Model

Natural Language Processing Lab., Northeastern University(东北大学自然语言处理实验室);NiuTrans Research(小牛翻译研究院);CAS Key Laboratory of Behavioral Science, Institute of Psychology, CAS(中国科学院心理研究所行为科学重点实验室)

Ye Lin, Yanyang Li, Tengbo Liu, Tong Xiao, Tongran Liu, Jingbo Zhu

英文摘要:

8-bit integer inference, as a promising direction in reducing both the latency and storage of deep neural networks, has made great progress recently. On the other hand, previous systems still rely on 32-bit floating point for certain functions in complex models (e.g., Softmax in Transformer), and make heavy use of quantization and de-quantization. In this work, we show that after a principled modification on the Transformer architecture, dubbed Integer Transformer, an (almost) fully 8-bit integer inference algorithm Scale Propagation could be derived. De-quantization is adopted when necessary, which makes the network more efficient. Our experiments on WMT16 En<->Ro, WMT14 En<->De and En->Fr translation tasks as well as the WikiText-103 language modelling task show that the fully 8-bit Transformer system achieves comparable performance with the floating point baseline but requires nearly 4x less memory footprint.

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

↑