arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.13016cs.LGcs.CL
收藏

BiT:稳健的二进制多蒸馏Transformer

BiT: Robustly Binarized Multi-distilled Transformer

Reality Labs, Meta Inc.(Meta公司现实实验室);Meta AI;Peking University(北京大学)

Zechun Liu, Barlas Oguz, Aasish Pappu, Lin Xiao, Scott Yih, Meng Li, Raghuraman Krishnamoorthi, Yashar Mehdad

摘要:

现代预训练的Transformers已经迅速推进了机器学习的最新技术,但参数和计算复杂性也在增长,使得它们越来越难以在资源受限的环境中部署。网络的权重和激活的二进制化可以显着缓解这些问题,然而,从优化的角度来看,这在技术上是具有挑战性的。在这项工作中,我们确定了一系列的改进,使二进制Transformers在一个更高的精度比以前可能。其中包括两组二进制化方案,一种新的弹性二进制激活函数与学习参数,和一种方法,通过连续提取高精度模型到低精度的学生,将网络扩展到其极限。这些方法首次允许完全二进制化的Transformer模型达到实用的精度水平,在GLUE语言理解基准测试中接近全精度BERT基线,误差仅为5.9%。代码和模型可在https://github.com/facebookresearch/bit上获得。

英文摘要:

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.

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

↑