Masking as an Efficient Alternative to Finetuning for Pretrained Language Models

By Mengjie Zhao, Tao Lin, Martin Jaggi, Hinrich Schütze. 2020

137 citations recorded by the source corpus.

We present an efficient method of utilizing pretrained language models, where we learn selective binary masks for pretrained weights in lieu of modifying them through finetuning. Extensive evaluations of masking BERT and RoBERTa on a series of NLP tasks show that our masking scheme yields performance comparable to finetuning, yet has a much smaller memory footprint when several tasks need to be inferred simultaneously. Through intrinsic evaluations, we show that representations computed by masked language models encode information necessary for solving downstream tasks. Analyzing the loss landscape, we show that masking and finetuning produce models that reside in minima that can be connected by a line segment with nearly constant test accuracy. This confirms that masking can be utilized as an efficient alternative to finetuning.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Large Language Models, Natural Language Processing

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. Zhiyuan Liu
  2. Mohit Bansal
  3. Maosong Sun
  4. Kurt Keutzer
  5. Luke S. Zettlemoyer
  6. Graham Neubig
  7. Percy Liang
  8. Michael W. Mahoney

In Computer Vision and Pattern Recognition

  1. Kurt Keutzer
  2. Michael W. Mahoney
  3. A. Gholami
  4. Zi-Mei Yao
  5. Mohit Bansal
  6. Zhiyuan Liu
  7. Luc Van Gool
  8. Sheng Shen

In Large Language Models

  1. Maosong Sun
  2. Zhiyuan Liu
  3. A. Gholami
  4. Michael W. Mahoney
  5. Percy Liang
  6. Shengding Hu
  7. Haitao Zheng
  8. Kurt Keutzer

In Natural Language Processing

  1. Zhiyuan Liu
  2. Maosong Sun
  3. Graham Neubig
  4. Mohit Bansal
  5. Yang Liu
  6. Percy Liang
  7. Alexander M. Rush
  8. Yejin Choi

Citations in the corpus