Analyzing Redundancy in Pretrained Transformer Models

By Fahim Dalvi, Hassan Sajjad, Nadir Durrani, Yonatan Belinkov. 2020

110 citations recorded by the source corpus.

Transformer-based deep NLP models are trained using hundreds of millions of parameters, limiting their applicability in computationally constrained environments. In this paper, we study the cause of these limitations by defining a notion of Redundancy, which we categorize into two classes: General Redundancy and Task-specific Redundancy. We dissect two popular pretrained models, BERT and XLNet, studying how much redundancy they exhibit at a representation-level and at a more fine-grained neuron-level. Our analysis reveals interesting insights, such as: i) 85% of the neurons across the network are redundant and ii) at least 92% of them can be removed when optimizing towards a downstream task. Based on our analysis, we present an efficient feature-based transfer learning procedure, which maintains 97% performance while using at-most 10% of the original neurons.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures, Efficiency & Compression

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Wes Gurnee
  2. Neel Nanda
  3. Dimitris J. Bertsimas
  4. Katherine Harvey
  5. Matthew Pauly
  6. Dmitrii Troitskii
  7. Ajit Rajasekharan
  8. Yaojie Lu

In Computer Vision and Pattern Recognition

  1. Wes Gurnee
  2. Neel Nanda
  3. Dimitris J. Bertsimas
  4. Katherine Harvey
  5. Matthew Pauly
  6. Dmitrii Troitskii
  7. Ajit Rajasekharan
  8. Yaojie Lu

In Model Architectures

  1. Ajit Rajasekharan
  2. Dimitris J. Bertsimas
  3. Yonatan Belinkov
  4. Xianpei Han
  5. Sivanesan Sangeetha
  6. Katikapalli Subramanyam Kalyan

In Efficiency & Compression

  1. Ajit Rajasekharan
  2. Yonatan Belinkov
  3. Sivanesan Sangeetha
  4. Katikapalli Subramanyam Kalyan

Citations in the corpus