Skip to main content
QUICK REVIEW

[Paper Review] Extreme Compression for Pre-trained Transformers Made Simple and Efficient

Xiaoxia Wu, Zhewei Yao|arXiv (Cornell University)|Jun 4, 2022
Advanced Image and Video Retrieval TechniquesComputer Science13 citations
TL;DR

This paper proposes XTC, a simple yet effective pipeline for extreme compression of pre-trained Transformers via ultra-low bit quantization (1-bit/2-bit) and model distillation. By systematically analyzing hyperparameters and training strategies, the authors show that previous state-of-the-art methods were under-trained, and XTC achieves SOTA performance on GLUE tasks with a 50x model size reduction—surpassing even 6-layer TinyBERT—without multi-stage knowledge distillation or complex optimizations.

ABSTRACT

Extreme compression, particularly ultra-low bit precision (binary/ternary) quantization, has been proposed to fit large NLP models on resource-constraint devices. However, to preserve the accuracy for such aggressive compression schemes, cutting-edge methods usually introduce complicated compression pipelines, e.g., multi-stage expensive knowledge distillation with extensive hyperparameter tuning. Also, they oftentimes focus less on smaller transformer models that have already been heavily compressed via knowledge distillation and lack a systematic study to show the effectiveness of their methods. In this paper, we perform a very comprehensive systematic study to measure the impact of many key hyperparameters and training strategies from previous works. As a result, we find out that previous baselines for ultra-low bit precision quantization are significantly under-trained. Based on our study, we propose a simple yet effective compression pipeline for extreme compression, named XTC. XTC demonstrates that (1) we can skip the pre-training knowledge distillation to obtain a 5-layer BERT while achieving better performance than previous state-of-the-art methods, e.g., the 6-layer TinyBERT; (2) extreme quantization plus layer reduction is able to reduce the model size by 50x, resulting in new state-of-the-art results on GLUE tasks.

Motivation & Objective

  • To investigate why previous extreme quantization methods for BERT require complex, multi-stage pipelines with extensive hyperparameter tuning.
  • To determine whether expensive knowledge distillation and weight-splitting are truly necessary for binarized (1-bit) and ternary (2-bit) quantization.
  • To evaluate the effectiveness of extreme quantization on already-small, distilled models like TinyBERT and MiniLM.
  • To develop a streamlined, efficient compression pipeline that maintains high accuracy with minimal training overhead.
  • To provide a systematic benchmark of hyperparameters and training strategies for ultra-low bit quantization.

Proposed method

  • Proposes XTC, a simple compression pipeline that skips pre-training distillation and directly applies quantization-aware training (QAT) to small, distilled models.
  • Employs a single-stage training process with 1-bit or 2-bit weight quantization using straight-through estimators (STE) for gradient backpropagation.
  • Introduces layer reduction (e.g., 6-layer SkipBERT) to further compress model size while maintaining performance.
  • Uses standard fine-tuning with mixed-precision training and learning rate scheduling, avoiding multi-stage distillation and data augmentation.
  • Applies LoRa (Low-Rank Adaptation) for parameter-efficient fine-tuning in some ablation settings.
  • Performs extensive hyperparameter ablation across 1,000+ model variants to identify optimal configurations.

Experimental results

Research questions

  • RQ1Is multi-stage knowledge distillation with data augmentation truly necessary for achieving high accuracy in 1-bit quantized BERT models?
  • RQ2Can a simpler, single-stage training pipeline achieve comparable or better performance than complex, multi-phase baselines?
  • RQ3How does extreme quantization interact with already-compressed distilled models like TinyBERT or MiniLM?
  • RQ4What hyperparameters and training strategies most significantly impact the performance of ultra-low bit quantized models?
  • RQ5Can we achieve SOTA results in extreme compression without pre-training distillation or weight-splitting?

Key findings

  • Previous state-of-the-art methods for 1-bit and 2-bit quantization were significantly under-trained, leading to suboptimal performance.
  • XTC achieves 81.43 average GLUE score on 1-bit quantized 6-layer SkipBERT, outperforming 6-layer TinyBERT (80.56) without any pre-training distillation.
  • The model size is reduced by 50x (from 16MB to 0.3MB) via extreme quantization and layer reduction, achieving SOTA results on GLUE benchmarks.
  • For 1-bit quantization, XTC achieves 81.43 average GLUE score with only 8.1MB model size, surpassing prior methods that used complex multi-stage pipelines.
  • The method is robust across different random seeds, with standard deviation of only 0.09–0.11 on average GLUE score, indicating stable training.
  • XTC eliminates the need for weight-splitting and multi-stage distillation, reducing training complexity while improving or matching accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.