Abstract
Pre-trained Language Models (PLMs) have achieved state-of-the-art performance across various NLP tasks but face significant deployment challenges due to their massive parameter counts. Traditional compression methods like Quantization-Aware Training (QAT) and Post-Training Quantization (PTQ) often struggle with task-specificity or accuracy degradation at low bit-widths. This paper presents PreQuant, a novel "quantize-then-tune" framework. PreQuant performs task-agnostic quantization on pre-trained models and subsequently fine-tunes a minimal subset (~0.5%) of outlier parameters. Experimental results on the GLUE benchmark demonstrate that PreQuant achieves performance comparable to full-precision models while drastically reducing storage and computational overhead.
Introduction
Transformer-based models like BERT, RoBERTa, and T5 have become the backbone of modern NLP. However, their scale—ranging from hundreds of millions to billions of parameters—makes them difficult to deploy in resource-constrained environments. While quantization reduces model size, existing approaches have limitations. QAT requires retraining for every task, which is computationally expensive, while PTQ often suffers from severe accuracy drops at 4-bit precision. PreQuant addresses this gap by decoupling quantization from task-specific adaptation, allowing for a single quantized base model to be shared across multiple downstream applications.
Methodology
PreQuant introduces a two-stage framework designed to maximize efficiency without sacrificing accuracy:
- Task-agnostic Quantization: The pre-trained model is directly quantized into a low-bit format (e.g., 4-bit) before any task-specific fine-tuning occurs. This creates a universal "pre-quantized" base model.
- Outlier-aware Parameter-efficient Fine-tuning: The authors observe that quantization error is not distributed evenly; rather, it is concentrated in "outlier dimensions"—specific parts of the weight matrices with abnormally high magnitudes. During fine-tuning, PreQuant identifies these dimensions (typically <1% of the model) and updates only these parameters in high precision, while the rest of the quantized weights remain frozen.
This approach leverages the inherent over-parameterization of PLMs, focusing updates only on the most critical components required for task adaptation.
Experimental Setup
The researchers evaluated PreQuant using the GLUE (General Language Understanding Evaluation) benchmark, which includes tasks such as Linguistic Acceptability (CoLA), Sentiment Analysis (SST-2), and Natural Language Inference (MNLI, QNLI, RTE). The method was tested across several popular architectures, including BERT-base, RoBERTa-base/large, and the T5-3b Encoder.
Key Results and Discussion
PreQuant demonstrates high performance at low bit-widths, effectively bridging the gap between efficiency and accuracy:
- Performance Parity: On the GLUE benchmark, 4-bit PreQuant achieved results very close to full-precision (32-bit) models. For example, on RoBERTa-large, PreQuant reached an average score of 87.6, compared to 88.9 for the full-precision version.
- Extreme Parameter Efficiency: PreQuant consistently outperformed PTQ and matched QAT while training significantly fewer parameters. In the case of the T5-3b Encoder, PreQuant achieved 99.21% of the full-precision performance while tuning only 0.10% of the parameters.
- Scalability: Because the base quantization is task-agnostic, researchers can deploy one 4-bit model and only store tiny "delta" weights for each specific task, massively reducing the storage footprint for multi-task systems.
Limitations and Future Work
While effective, PreQuant's performance is somewhat sensitive to the amount of fine-tuning data; on very small datasets (<2k samples), the performance gap relative to full-precision models can widen. Additionally, the number of outlier dimensions to tune ($r$) is a hyperparameter that requires selection, though the authors found that small values (e.g., $r=5$) are generally sufficient. Future research may explore combining PreQuant with other compression techniques like knowledge distillation or extending the method to large-scale generative models (GPT-style).
Conclusion
PreQuant offers a scalable and efficient solution for the deployment of large-scale PLMs. By shifting the quantization process to the pre-training stage and focusing fine-tuning on critical outlier dimensions, it provides a robust framework for high-performance NLP in resource-limited environments.
Summary updated