paper-with-me

홈 › Papers

Structured Pruning of a BERT-based Question Answering Model

2019-10-14 · J. S. McCarley, Rishav Chakravarti, Avirup Sil

The recent trend in industry-setting Natural Language Processing (NLP) research has been to operate large %scale pretrained language models like BERT under strict computational limits. While most model compression work has focused on "distilling" a general-purpose language representation using expensive pretraining distillation, less attention has been paid to creating smaller task-specific language representations which, arguably, are more useful in an industry setting. In this paper, we investigate compressing BERT- and RoBERTa-based question answering systems by structured pruning of parameters from the underlying transformer model. We find that an inexpensive combination of task-specific structured pruning and task-specific distillation, without the expense of pretraining distillation, yields highly-performing models across a range of speed/accuracy tradeoff operating points. We start from existing full-size models trained for SQuAD 2.0 or Natural Questions and introduce gates that allow selected parts of transformers to be individually eliminated. Specifically, we investigate (1) structured pruning to reduce the number of parameters in each transformer layer, (2) applicability to both BERT- and RoBERTa-based models, (3) applicability to both SQuAD 2.0 and Natural Questions, and (4) combining structured pruning with distillation. We achieve a near-doubling of inference speed with less than a 0.5 F1-point loss in short answer accuracy on Natural Questions.

📄 PDF Abstract BibTeX arXiv:1910.06360

Code (0)

등록된 구현이 없습니다.

Tasks

Model CompressionNatural QuestionsQuestion Answering

Methods 이 논문이 사용한 방법론

Pruning 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.

Similar Papers 제목 키워드 기반

Reducing Transformer Depth on Demand with Structured Dropout

2019-09-25 · ICLR 2020 1 · Angela Fan, Edouard Grave, Armand Joulin

Overparameterized transformer networks have obtained state of the art results in various natural language processing tasks, such as machine translation, language modeling, and question answering. These models contain hun…

Language ModelingLanguage ModellingMachine TranslationOpen-Domain Question Answering+2

Structured Pruning of Large Language Models

2019-10-10 · EMNLP 2020 11 · Ziheng Wang, Jeremy Wohlwend, Tao Lei

Large language models have recently achieved state of the art performance across a wide variety of natural language tasks. Meanwhile, the size of these models and their latency have significantly increased, which makes t…

Language ModelingLanguage ModellingModel CompressionWord Embeddings

oBERTa: Improving Sparse Transfer Learning via improved initialization, distillation, and pruning regimes

2023-03-30 · Daniel Campos, Alexandre Marques, Mark Kurtz, ChengXiang Zhai

In this paper, we introduce the range of oBERTa language models, an easy-to-use set of language models which allows Natural Language Processing (NLP) practitioners to obtain between 3.8 and 24.3 times faster models witho…

Knowledge DistillationModel CompressionQuantizationQuestion Answering+1

Train Flat, Then Compress: Sharpness-Aware Minimization Learns More Compressible Models

2022-05-25 · Clara Na, Sanket Vaibhav Mehta, Emma Strubell

Model compression by way of parameter pruning, quantization, or distillation has recently gained popularity as an approach for reducing the computational requirements of modern deep neural network models for NLP. Inspire…

Model CompressionQuantizationQuestion Answeringtext-classification+1

Unsupervised Domain Adaptation of Contextual Embeddings for Low-Resource Duplicate Question Detection

2019-11-06 · Alexandre Rochette, Yadollah Yaghoobzadeh, Timothy J. Hazen

Answering questions is a primary goal of many conversational systems or search products. While most current systems have focused on answering questions against structured databases or curated knowledge graphs, on-line co…

Domain AdaptationKnowledge GraphsQuestion AnsweringSelf-Supervised Learning+1