We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Towards Fully 8-bit Integer Inference for the Transformer Model

Abstract: 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.
Comments: accepted by IJCAI2020
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:2009.08034 [cs.CL]
  (or arXiv:2009.08034v2 [cs.CL] for this version)

Submission history

From: Ye Lin [view email]
[v1] Thu, 17 Sep 2020 03:09:10 GMT (38kb,D)
[v2] Fri, 18 Sep 2020 06:12:27 GMT (38kb,D)

Link back to: arXiv, form interface, contact.