BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin et al., 2019, BERT (Proceedings of the 2019 Conference of the North American Chapter of ACL: Human Language Technologies (NAACL-HLT 2019))
Subscriber deck — free during early access
2 cards in “3.2 Fine-tuning BERT” · whole deck
3.2 Fine-tuning BERT
- How is BERT fine-tuned for different tasks?Plug task inputs into the A/B slots (sentence pairs, hypothesis–premise, question–passage, or text with an empty B) and outputs into a new layer: token representations for tagging or span prediction, \(C\) for classification. All parameters are fine-tuned end to end; self-attention over the packed pair gives cross-attention between the texts.
- Devlin et al., 2019, BERT (Proceedings of the 2019 Conference of the North American Chapter of ACL: Human Language Technologies (NAACL-HLT 2019)), §3.2, p. 4175
- How expensive is fine-tuning BERT compared with pretraining?Cheap: every result in the paper could be reproduced in at most an hour on a Cloud TPU or a few hours on a GPU from the same pretrained model. GLUE tasks used batch size 32, 3 epochs, and the best of four learning rates (5e-5 to 2e-5).
- Devlin et al., 2019, BERT (Proceedings of the 2019 Conference of the North American Chapter of ACL: Human Language Technologies (NAACL-HLT 2019)), §3.2, p. 4175
Source
- Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova. 2019. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2019), pp. 4171–4186. License: CC BY 4.0. Flashcards adapted from this work. doi:10.18653/v1/N19-1423 https://aclanthology.org/N19-1423/