Random Masking Finds Winning Tickets for Parameter Efficient Fine-tuning

Jing Xu, Jingzhao Zhang
5/4/2024
cs.LGcs.AIcs.CL

No official code found. Best implementation: JingXuTHU/Random-Masking-Finds-Winning-Tickets-for-Parameter-Efficient-Fine-tuning (14 stars, last commit 2024-05-04).

Abstract

Fine-tuning large language models (LLM) can be costly. Parameter-efficient fine-tuning (PEFT) addresses the problems by training a fraction of the parameters, whose success reveals the expressiveness and flexibility of pretrained models. This paper studies the limit of PEFT, by further simplifying its design and reducing the number of trainable parameters beyond standard setups. To this end, we use Random Masking to fine-tune the pretrained model. Despite its simplicity, we show that Random Masking is surprisingly effective: with a larger-than-expected learning rate, Random Masking can match the performance of standard PEFT algorithms such as LoRA on various tasks, using fewer trainable parameters. We provide both empirical and theoretical explorations into the success of Random Masking. We show that masking induces a flatter loss landscape and more distant solutions, which allows for and necessitates large learning rates.

View on arXivView PDF

Code Implementations(1)

Similar Papers

Cite this paper

@article{xu2024random,
  title  = {Random Masking Finds Winning Tickets for Parameter Efficient Fine-tuning},
  author = {Jing Xu and Jingzhao Zhang},
  year   = {2024},
  eprint = {2405.02596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.02596v1},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.02596.svg)](https://codeofpaper.com/paper/2405.02596)

Discussion