Are Compressed Language Models Less Subgroup Robust?

Leonidas Gee, Andrea Zugarini, Novi QuadriantoEMNLP 2023

Introduction

As the demand for efficient AI grows, model compression techniques—such as pruning, quantization, and distillation—have become essential for deploying Large Language Models (LLMs) on edge devices and reducing cloud costs. However, standard evaluations typically focus on average accuracy, potentially masking significant performance degradation on minority subgroups. This study investigates the "efficiency tax" of compression, specifically whether it is paid disproportionately by vulnerable subgroups, a phenomenon known as subgroup robustness.

Methodology

The researchers evaluated 18 compression configurations applied to a BERT-base model across four primary categories:

  1. Knowledge Distillation (KD): Training smaller "student" models (e.g., DistilBERT, TinyBERT) to replicate a larger "teacher."
  2. Structured Pruning: Removing model components like attention heads based on importance.
  3. Quantization: Reducing weight precision (e.g., 32-bit to 8-bit), comparing post-training quantization to Quantization-aware Training (QAT).
  4. Vocabulary Transfer (VT): Adapting the model's internal dictionary to specific task domains.

Performance was measured using Worst-Group Accuracy (WGA), defined as the accuracy on the single worst-performing subgroup within a dataset. The study utilized three benchmarks: MultiNLI (linguistic negations), CivilComments (demographic identities), and SCOTUS (legal issue areas and judicial leanings).

Results and Analysis

The relationship between model size and robustness is non-linear and highly task-dependent. As shown in the figure below, the impact of compression varies significantly across the three datasets.

Average vs. Worst-Group Accuracy across MultiNLI, CivilComments, and SCOTUS datasets for various compression methods.

Compression as a Regularizer

In the CivilComments dataset, compressed models frequently outperformed the full-sized BERT-base in terms of WGA. While the baseline achieved 52.22% WGA, several compressed variants reached over 56%. This suggests that for certain tasks, the original model may overfit on majority patterns; reducing capacity forces the model to learn more generalizable features, inadvertently benefiting minority groups.

The Complexity Floor and Methodological Nuance

Conversely, the SCOTUS dataset revealed a "complexity floor." In this challenging legal task, average accuracy remained stable at ~80%, but WGA for the smallest models (e.g., BERT-Mini, BERT-Tiny) collapsed to 0.00%. This indicates that below a certain parameter threshold, models lack the capacity to represent minority cases entirely.

Furthermore, the specific compression method often outweighs model size. In MultiNLI, TinyBERT6 achieved a WGA of 72.74%, significantly surpassing the BERT-base baseline of 64.06%, despite being smaller. Additionally, Quantization-aware Training (QAT) proved far more robust than simple post-training quantization, which often caused minority group performance to suffer first.

Conclusion

While model compression is necessary for efficiency, it carries hidden risks for fairness and robustness. The findings suggest that compression can act as a helpful regularizer in some contexts but can lead to total performance collapse on minority groups in complex tasks. Future research should explore the compounding effects of combining multiple compression methods and extend these evaluations to multi-lingual benchmarks to ensure equitable AI performance across all populations.

Summary updated

BibTeX
@inproceedings{gee2023are,
  author = {Leonidas Gee and Andrea Zugarini and Novi Quadrianto},
  title = {{Are Compressed Language Models Less Subgroup Robust?}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.983},
}
Figure