mlsanityData to 14 Oct 2026

Improving Generalization of Pre-trained Language Models via Stochastic Weight Averaging

arXiv 2212.05956 ↗First posted 12 Dec 2022cs.CL cs.LGcited by 9

On the map: Knowledge distillation → Knowledge distillation for LLMs

Abstract (arXiv)

Knowledge Distillation (KD) is a commonly used technique for improving the generalization of compact Pre-trained Language Models (PLMs) on downstream tasks. However, such methods impose the additional burden of training a separate teacher model for every new dataset. Alternatively, one may directly work on the improvement of the optimization procedure of the compact model toward better generalization. Recent works observe that the flatness of the local minimum correlates well with better generalization. In this work, we adapt Stochastic Weight Averaging (SWA), a method encouraging convergence to a flatter minimum, to fine-tuning PLMs. We conduct extensive experiments on various NLP tasks (text classification, question answering, and generation) and different model architectures and demonstrate that our adaptation improves the generalization without extra computation cost. Moreover, we observe that this simple optimization technique is able to outperform the state-of-the-art KD methods for compact models.

Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 39 of its 51 references that are in the map. First posted on arXiv 12 Dec 2022.

Builds on

39 of 51 references.

Closest ancestors · 1

Same direction, newest first

  1. 2021MATE-KD: Masked Adversarial TExt, a Companion to Knowledge Distillation12 May

Other references · 38

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  6. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  7. 2020Scaling Laws for Neural Language Modelscited by 6,586
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  10. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
  11. 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
  12. 2020Sharpness-Aware Minimization for Efficiently Improving Generalizationcited by 1,417
26 more
  1. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
  2. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  3. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  4. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,209
  5. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  6. 2017Visualizing the Loss Landscape of Neural Netscited by 1,130
  7. 2019Improved Knowledge Distillation via Teacher Assistantcited by 573
  8. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 508
  9. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
  10. 2019Deep Ensembles: A Loss Landscape Perspectivecited by 443
  11. 2021SWAD: Domain Generalization by Seeking Flat Minimacited by 434
  12. 2021ASAM: Adaptive Sharpness-Aware Minimization for Scale-Invariant Learning of Deep Neural Networkscited by 293
  13. 2019An Investigation into Neural Net Optimization via Hessian Eigenvalue Densitycited by 292
  14. 2017Empirical Analysis of the Hessian of Over-Parametrized Neural Networkscited by 290
  15. 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 178
  16. 2021PanGu-α: Large-scale Autoregressive Pretrained Chinese Language Models with Auto-parallel Computationcited by 134
  17. 2018An Alternative View: When Does SGD Escape Local Minima?cited by 115
  18. 2021Sharpness-Aware Minimization Improves Language Model Generalizationcited by 108
  19. 2021Exploring the Limits of Large Scale Pre-trainingcited by 104
  20. 2022When Do Flat Minima Optimizers Work?cited by 78
  21. 2020Self-Distillation as Instance-Specific Label Smoothingcited by 71
  22. 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
  23. 2021Annealing Knowledge Distillationcited by 61
  24. 2022Anticorrelated Noise Injection for Improved Generalizationcited by 42
  25. 2022Low-Pass Filtering SGD for Recovering Flat Optima in the Deep Learning Optimization Landscapecited by 39
  26. 2016Mollifying Networkscited by 10

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 5.

9 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Weight Averaging Improves Knowledge Distillation under Domain Shift
  2. 2023MiniLLM: On-Policy Distillation of Large Language Models
  3. 2024DistiLLM: Towards Streamlined Distillation for Large Language Models
  4. 2024MiniPLM: Knowledge Distillation for Pre-Training Language Models
  5. 2024Survey on Knowledge Distillation for Large Language Models: Methods, Evaluation, and Application
  6. 2025Knowledge Distillation and Dataset Distillation of Large Language Models: Emerging Trends, Challenges, and Future Directions
  7. 2023ERNIE 3.0 Tiny: Frustratingly Simple Method to Improve Task-Agnostic Distillation Generalization
  8. 2021Dynamic Knowledge Distillation for Pre-trained Language Models