paper-with-me

홈 › Papers

Efficient Fine-Tuning of BERT Models on the Edge

2022-05-03 · Danilo Vucetic, Mohammadreza Tayaranian, Maryam Ziaeefard, James J. Clark, Brett H. Meyer, Warren J. Gross

Resource-constrained devices are increasingly the deployment targets of machine learning applications. Static models, however, do not always suffice for dynamic environments. On-device training of models allows for quick adaptability to new scenarios. With the increasing size of deep neural networks, as noted with the likes of BERT and other natural language processing models, comes increased resource requirements, namely memory, computation, energy, and time. Furthermore, training is far more resource intensive than inference. Resource-constrained on-device learning is thus doubly difficult, especially with large BERT-like models. By reducing the memory usage of fine-tuning, pre-trained BERT models can become efficient enough to fine-tune on resource-constrained devices. We propose Freeze And Reconfigure (FAR), a memory-efficient training regime for BERT-like models that reduces the memory usage of activation maps during fine-tuning by avoiding unnecessary parameter updates. FAR reduces fine-tuning time on the DistilBERT model and CoLA dataset by 30%, and time spent on memory operations by 47%. More broadly, reductions in metric performance on the GLUE and SQuAD datasets are around 1% on average.

📄 PDF Abstract BibTeX arXiv:2205.01541

Code (0)

등록된 구현이 없습니다.

Tasks

CoLA

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Weight Decay 설명 없음
Adam 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…

Similar Papers 제목 키워드 기반

Improving BERT Fine-Tuning via Self-Ensemble and Self-Distillation

2020-02-24 · Yige Xu, Xipeng Qiu, Ligao Zhou, Xuanjing Huang

Fine-tuning pre-trained language models like BERT has become an effective way in NLP and yields state-of-the-art results on many downstream tasks. Recent studies on adapting BERT to new tasks mainly focus on modifying th…

Natural Language Inferencetext-classificationText Classification

On the Interplay Between Fine-tuning and Sentence-level Probing for Linguistic Knowledge in Pre-trained Transformers

2020-10-06 · EMNLP (BlackboxNLP) 2020 11 · Marius Mosbach, Anna Khokhlova, Michael A. Hedderich, Dietrich Klakow

Fine-tuning pre-trained contextualized embedding models has become an integral part of the NLP pipeline. At the same time, probing has emerged as a way to investigate the linguistic knowledge captured by pre-trained mode…

Sentence

Weight Squeezing: Reparameterization for Knowledge Transfer and Model Compression

2021-11-16 · ACL ARR November 2021 11 · Anonymous

In this work, we present a novel approach to simultaneous knowledge transfer and model compression called \textbf{Weight Squeezing}. With this method, we perform knowledge transfer from a teacher model \textbf{by learnin…

Model Compressiontext-classificationText ClassificationTransfer Learning

On the Language-specificity of Multilingual BERT and the Impact of Fine-tuning

2021-09-14 · EMNLP (BlackboxNLP) 2021 11 · Marc Tanti, Lonneke van der Plas, Claudia Borg, Albert Gatt

Recent work has shown evidence that the knowledge acquired by multilingual BERT (mBERT) has two components: a language-specific and a language-neutral one. This paper analyses the relationship between them, in the contex…

Language IdentificationNatural Language InferencePOSPOS Tagging+1

Weight Squeezing: Reparameterization for Knowledge Transfer and Model Compression

2020-10-14 · Artem Chumachenko, Daniil Gavrilov, Nikita Balagansky, Pavel Kalaidin

In this work, we present a novel approach for simultaneous knowledge transfer and model compression called Weight Squeezing. With this method, we perform knowledge transfer from a teacher model by learning the mapping fr…

General ClassificationModel Compressiontext-classificationText Classification+1