mlsanityData to 7 Oct 2026

From Dense to Sparse: Contrastive Pruning for Better Pre-trained Language Model Compression

arXiv 2112.07198 ↗First posted 14 Dec 2021cs.CL cs.AIcited by 18

Not on the map. Why?

Abstract (arXiv)

Pre-trained Language Models (PLMs) have achieved great success in various Natural Language Processing (NLP) tasks under the pre-training and fine-tuning paradigm. With large quantities of parameters, PLMs are computation-intensive and resource-hungry. Hence, model pruning has been introduced to compress large-scale PLMs. However, most prior approaches only consider task-specific knowledge towards downstream tasks, but ignore the essential task-agnostic knowledge during pruning, which may cause catastrophic forgetting problem and lead to poor generalization ability. To maintain both task-agnostic and task-specific knowledge in our pruned model, we propose ContrAstive Pruning (CAP) under the paradigm of pre-training and fine-tuning. It is designed as a general framework, compatible with both structured and unstructured pruning. Unified in contrastive learning, CAP enables the pruned model to learn from the pre-trained model for task-agnostic knowledge, and fine-tuned model for task-specific knowledge. Besides, to better retain the performance of the pruned model, the snapshots (i.e., the intermediate models at each pruning iteration) also serve as effective supervisions for pruning. Our extensive experiments show that adopting CAP consistently yields significant improvements, especially in extremely high sparsity scenarios. With only 3% model parameters reserved (i.e., 97% sparsity), CAP successfully achieves 99.2% and 96.3% of the original BERT performance in QQP and MNLI tasks. In addition, our probing experiments demonstrate that the model pruned by CAP tends to achieve better generalization ability.

Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 35 of its 43 references that are in the map. First posted on arXiv 14 Dec 2021.

Builds on

35 of 43 references.

References · 35

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
  3. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  4. 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  7. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  8. 2020Supervised Contrastive Learningcited by 2,803
  9. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  11. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  12. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
23 more
  1. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  2. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  3. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  4. 2019Are Sixteen Heads Really Better than One?cited by 803
  5. 2017Learning Sparse Neural Networks through L0 Regularizationcited by 571
  6. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  7. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  8. 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
  9. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  10. 2020Supervised Contrastive Learning for Pre-trained Language Model Fine-tuningcited by 275
  11. 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
  12. 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
  13. 2020Recall and Learn: Fine-tuning Deep Pretrained Language Models with Less Forgettingcited by 169
  14. 2020Better Fine-Tuning by Reducing Representational Collapsecited by 156
  15. 2019Mixout: Effective Regularization to Finetune Large-scale Pretrained Language Modelscited by 141
  16. 2021SimCLS: A Simple Framework for Contrastive Learning of Abstractive Summarizationcited by 131
  17. 2020When BERT Plays the Lottery, All Tickets Are Winningcited by 114
  18. 2021Super Tickets in Pre-Trained Language Models: From Model Compression to Improving Generalizationcited by 56
  19. 2021Rethinking Network Pruning -- under the Pre-train and Fine-tune Paradigmcited by 40
  20. 2020Efficient Transformer-based Large Scale Language Representations using Hardware-friendly Block Structured Pruningcited by 39
  21. 2019Reweighted Proximal Pruning for Large-Scale Language Representationcited by 29
  22. 2020Pruning Redundant Mappings in Transformer Models via Spectral-Normalized Identity Priorcited by 23
  23. 2020schuBERT: Optimizing Elements of BERTcited by 17

Built on by

Cited by year

Citing papers per year: 2022: 3; 2023: 5; 2024: 8; 2025: 2.

18 papers.

Sort:

By area:

  1. 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 200
  2. 2023Not All Features Matter: Enhancing Few-shot CLIP with Adaptive Prior Refinementcited by 84
  3. 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
  4. 2024A Comprehensive Survey of Compression Algorithms for Language Modelscited by 15
  5. 2022Multi-CLS BERT: An Efficient Alternative to Traditional Ensemblingcited by 14
  6. 2024MULTIFLOW: Shifting Towards Task-Agnostic Vision-Language Pruningcited by 13
  7. 2024Slice-Level Scheduling for High Throughput and Load Balanced LLM Servingcited by 13
  8. 2023Low-Rank Prune-And-Factorize for Language Model Compressioncited by 11
  9. 2024EmMark: Robust Watermarks for IP Protection of Embedded Quantized Large Language Modelscited by 11
  10. 2022Pruning Pre-trained Language Models Without Fine-Tuningcited by 7
  11. 2023rm SP3: Enhancing Structured Pruning via PCA Projectioncited by 5
  12. 2025Ensembling Pruned Attention Heads For Uncertainty-Aware Efficient Transformerscited by 5
6 more
  1. 2024Adaptive Hypergraph Network for Trust Predictioncited by 4
  2. 2022COST-EFF: Collaborative Optimization of Spatial and Temporal Efficiency with Slenderized Multi-exit Language Modelscited by 2
  3. 2024PIM-AI: A Novel Architecture for High-Efficiency LLM Inferencecited by 2
  4. 2023One-Shot Pruning for Fast-adapting Pre-trained Models on Devicescited by 1
  5. 2024PatchProt: Hydrophobic patch prediction using protein foundation modelscited by 1
  6. 2025Beyond Tokens in Language Models: Interpreting Activations through Text Genre Chunkscited by 1