BiT: Robustly Binarized Multi-distilled Transformer

Zechun Liu, Barlas Oguz, Aasish Pappu, Lin Xiao, Scott Yih +3 more
5/25/2022
cs.LGcs.CL

Official code: facebookresearch/bit (114 stars, last commit 2023-06-26).

Abstract

Modern pre-trained transformers have rapidly advanced the state-of-the-art in machine learning, but have also grown in parameters and computational complexity, making them increasingly difficult to deploy in resource-constrained environments. Binarization of the weights and activations of the network can significantly alleviate these issues, however, is technically challenging from an optimization perspective. In this work, we identify a series of improvements that enables binary transformers at a much higher accuracy than what was possible previously. These include a two-set binarization scheme, a novel elastic binary activation function with learned parameters, and a method to quantize a network to its limit by successively distilling higher precision models into lower precision students. These approaches allow for the first time, fully binarized transformer models that are at a practical level of accuracy, approaching a full-precision BERT baseline on the GLUE language understanding benchmark within as little as 5.9%. Code and models are available at: https://github.com/facebookresearch/bit.

View on arXivView PDF

Code Implementations(1)

Code repo for the paper BiT Robustly Binarized Multi-distilled Transformer

11414Shell, PythonSep 23, 20223 years agoNOASSERTION

Similar Papers

Cite this paper

@article{liu2022bit,
  title  = {BiT: Robustly Binarized Multi-distilled Transformer},
  author = {Zechun Liu and Barlas Oguz and Aasish Pappu and Lin Xiao and Scott Yih and Meng Li and Raghuraman Krishnamoorthi and Yashar Mehdad},
  year   = {2022},
  eprint = {2205.13016},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.13016}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.13016.svg)](https://codeofpaper.com/paper/2205.13016)

Discussion