English

Robustness Challenges in Model Distillation and Pruning for Natural Language Understanding

Computation and Language 2023-02-28 v2 Machine Learning

Abstract

Recent work has focused on compressing pre-trained language models (PLMs) like BERT where the major focus has been to improve the in-distribution performance for downstream tasks. However, very few of these studies have analyzed the impact of compression on the generalizability and robustness of compressed models for out-of-distribution (OOD) data. Towards this end, we study two popular model compression techniques including knowledge distillation and pruning and show that the compressed models are significantly less robust than their PLM counterparts on OOD test sets although they obtain similar performance on in-distribution development sets for a task. Further analysis indicates that the compressed models overfit on the shortcut samples and generalize poorly on the hard ones. We further leverage this observation to develop a regularization strategy for robust model compression based on sample uncertainty. Experimental results on several natural language understanding tasks demonstrate that our bias mitigation framework improves the OOD generalization of the compressed models, while not sacrificing the in-distribution task performance.

Keywords

Cite

@article{arxiv.2110.08419,
  title  = {Robustness Challenges in Model Distillation and Pruning for Natural Language Understanding},
  author = {Mengnan Du and Subhabrata Mukherjee and Yu Cheng and Milad Shokouhi and Xia Hu and Ahmed Hassan Awadallah},
  journal= {arXiv preprint arXiv:2110.08419},
  year   = {2023}
}

Comments

Accepted by EACL 2023

R2 v1 2026-06-24T06:56:07.541Z