Skip to main content
Image arXiv is now an independent nonprofit! Learn more
archive
Search Submit Donate Log in
Press Enter to search · Advanced search

Computer Science > Computation and Language

arXiv:2009.12812 (cs)
[Submitted on 27 Sep 2020 (v1), last revised 10 Oct 2020 (this version, v3)]

Title:TernaryBERT: Distillation-aware Ultra-low Bit BERT

Authors:Wei Zhang, Lu Hou, Yichun Yin, Lifeng Shang, Xiao Chen, Xin Jiang, Qun Liu
View a PDF of the paper titled TernaryBERT: Distillation-aware Ultra-low Bit BERT, by Wei Zhang and 6 other authors
View PDF
Abstract:Transformer-based pre-training models like BERT have achieved remarkable performance in many natural language processing this http URL, these models are both computation and memory expensive, hindering their deployment to resource-constrained devices. In this work, we propose TernaryBERT, which ternarizes the weights in a fine-tuned BERT model. Specifically, we use both approximation-based and loss-aware ternarization methods and empirically investigate the ternarization granularity of different parts of BERT. Moreover, to reduce the accuracy degradation caused by the lower capacity of low bits, we leverage the knowledge distillation technique in the training process. Experiments on the GLUE benchmark and SQuAD show that our proposed TernaryBERT outperforms the other BERT quantization methods, and even achieves comparable performance as the full-precision model while being 14.9x smaller.
Comments: Accepted by EMNLP 2020
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG); Sound (cs.SD); Audio and Speech Processing (eess.AS)
Cite as: arXiv:2009.12812 [cs.CL]
  (or arXiv:2009.12812v3 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2009.12812
arXiv-issued DOI via DataCite

Submission history

From: Wei Zhang [view email]
[v1] Sun, 27 Sep 2020 10:17:28 UTC (5,865 KB)
[v2] Tue, 29 Sep 2020 01:56:35 UTC (5,865 KB)
[v3] Sat, 10 Oct 2020 07:24:54 UTC (5,865 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled TernaryBERT: Distillation-aware Ultra-low Bit BERT, by Wei Zhang and 6 other authors
  • View PDF
  • TeX Source
view license

Current browse context:

cs.CL
< prev   |   next >
new | recent | 2020-09
Change to browse by:
cs
cs.LG
cs.SD
eess
eess.AS

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

1 blog link

(what is this?)

DBLP - CS Bibliography

listing | bibtex
Wei Zhang
Lu Hou
Yichun Yin
Lifeng Shang
Xiao Chen
…
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Simons Foundation International Schmidt Sciences
Advertisement
Advertisement