Structural analysis of an all-purpose question answering model
arXiv:2104.06045
Abstract
Attention is a key component of the now ubiquitous pre-trained language models. By learning to focus on relevant pieces of information, these Transformer-based architectures have proven capable of tackling several tasks at once and sometimes even surpass their single-task counterparts. To better understand this phenomenon, we conduct a structural analysis of a new all-purpose question answering model that we introduce. Surprisingly, this model retains single-task performance even in the absence of a strong transfer effect between tasks. Through attention head importance scoring, we observe that attention heads specialize in a particular task and that some heads are more conducive to learning than others in both the multi-task and single-task settings.
References in corpus (4)
- HuggingFace's Transformers: State-of-the-art Natural Language Processing
- Well-Read Students Learn Better: On the Importance of Pre-training Compact Models
- Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stopping
- Structured Pruning of a BERT-based Question Answering Model