BiViT: Exploring Binary Vision Transformers
Abstract
We introduce BiViT, a Binary Vision Transformer that tackles the extremely difficult problem of quantizing both the weights and activations of a ViT model to just 1 bit. Initially, we observe that the techniques used to binarize transformers in NLP don't work on Vision Transformers (ViTs). To address this, we introduce some simple yet critical architectural changes, improving 28% over a baseline binarized ViT. Then, we improve 11% over from-scratch training by employing our normalized BiViT distillation scheme, which we find to be crucial for dense distillation in vision. Overall, BiViT can achieve a 58x reduction in operations and a 20x compression in model size, while bringing top-1 accuracy on ImageNet-1k in line with similar benchmarks for binary transformers in NLP. We hope BiViT can be the first step toward even more powerful binary ViT models.
BibTeX
@misc{bolya2022bivit,
author = {Daniel Bolya and Sachit Kuhar and Judy Hoffman},
title = {{BiViT: Exploring Binary Vision Transformers}},
year = {2022},
url = {https://openreview.net/forum?id=lXBzOtKn20t},
howpublished = {OpenReview},
}Ask Althea to put this paper to the test.
Loading related content...