CLOct 11, 2022

Improving Sharpness-Aware Minimization with Fisher Mask for Better Generalization on Language Models

arXiv:2210.05497v1313 citationsh-index: 36
Originality Incremental advance
AI Analysis

This work addresses generalization issues in fine-tuning language models, offering an incremental optimization improvement for NLP practitioners.

The paper tackles the problem of poor generalization in fine-tuning large language models by proposing FSAM, which improves sharpness-aware minimization with a Fisher mask to focus perturbations on important parameters, resulting in consistent performance gains of 0.67~1.98 average score on GLUE and SuperGLUE benchmarks and up to 15.1 improvement in limited data scenarios.

Fine-tuning large pretrained language models on a limited training corpus usually suffers from poor generalization. Prior works show that the recently-proposed sharpness-aware minimization (SAM) optimization method can improve the model generalization. However, SAM adds a perturbation to each model parameter equally (but not all parameters contribute equally to the optimization of training), which we argue is sub-optimal and will lead to excessive computation. In this paper, we propose a novel optimization procedure, namely FSAM, which introduces a Fisher mask to improve the efficiency and performance of SAM. In short, instead of adding perturbation to all parameters, FSAM uses the Fisher information to identity the important parameters and formulates a Fisher mask to obtain the sparse perturbation, i.e., making the optimizer focus on these important parameters. Experiments on various tasks in GLUE and SuperGLUE benchmarks show that FSAM consistently outperforms the vanilla SAM by 0.67~1.98 average score among four different pretrained models. We also empirically show that FSAM works well in other complex scenarios, e.g., fine-tuning on generation tasks or limited training data. Encouragingly, when training data is limited, FSAM improves the SAM by a large margin, i.e., up to 15.1.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes