Task-Specific Skill Localization in Fine-tuned Language Models
Abhishek Panigrahi, Nikunj Saunshi, Haoyu Zhao, Sanjeev Arora
摘要
Pre-trained language models can be fine-tuned to solve diverse NLP tasks, including in few-shot settings. Thus fine-tuning allows the model to quickly pick up task-specific "skills," but there has been limited study of where these newlylearnt skills reside inside the massive model. This paper introduces the term skill localization for this problem and proposes a solution. Given the downstream task and a model fine-tuned on that task, a simple optimization is used to identify a very small subset of parameters (∼ 0.01% of model parameters) responsible for (> 95%) of the model's performance, in the sense that grafting the fine-tuned values for just this tiny subset onto the pre-trained model gives a performance almost as well as the fine-tuned model. While reminiscent of recent works on parameter-efficient fine-tuning, the novel aspects here are that: (i) No further re-training is needed on the subset (unlike, say, with lottery tickets). (ii) Notable improvements are seen over vanilla fine-tuning with respect to calibration of predictions in-distribution (40-90% error reduction) as well as the quality of predictions out-of-distribution (OOD). In models trained on multiple tasks, a stronger notion of skill localization is observed, where the sparse regions corresponding to different tasks are almost disjoint, and their overlap (when it happens) is a proxy for task similarity. Experiments suggest that localization via grafting can assist certain forms of continual learning. Our code is available at Skill-Localization-by-grafting 1 .
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 58 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Function Vectors in Large Language Models 引用了 Locating and Editing Factual Associations in GPT
- Function Vectors in Large Language Models 引用了 Language Models are Few-Shot Learners
- Locating and Editing Factual Associations in GPT 引用了 Language Models are Few-Shot Learners
- LoFiT: Localized Fine-tuning on LLM Representations 引用了 Function Vectors in Large Language Models
- LoFiT: Localized Fine-tuning on LLM Representations 引用了 Locating and Editing Factual Associations in GPT
- LoFiT: Localized Fine-tuning on LLM Representations 引用了 Language Models are Few-Shot Learners
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 Function Vectors in Large Language Models
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 Locating and Editing Factual Associations in GPT
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 The Lottery Ticket Hypothesis for Pre-trained BERT Networks
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modifications 引用了 Language Models are Few-Shot Learners
- The Lottery Ticket Hypothesis for Pre-trained BERT Networks 引用了 Language Models are Few-Shot Learners
- Localizing Task Information for Improved Model Merging and Compression 引用了 Robust fine-tuning of zero-shot models
- Robust fine-tuning of zero-shot models 引用了 Language Models are Few-Shot Learners
- Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Tracking 引用了 Locating and Editing Factual Associations in GPT
引用它的顶会 Paper58
- Function Vectors in Large Language ModelsEric Todd, Millicent L. Li, Arnab Sen Sharma, Aaron Mueller 等ICLR 2024 · 229 次引用
- Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank ModificationsBoyi Wei, Kaixuan Huang, Yangsibo Huang, Tinghao Xie 等ICML 2024 · 215 次引用
- Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity TrackingNikhil Prakash, Tamar Rott Shaham, Tal Haklay, Yonatan Belinkov 等ICLR 2024 · 113 次引用
- Localizing Task Information for Improved Model Merging and CompressionKe Wang, Nikolaos Dimitriadis, Guillermo Ortiz-Jiménez, François Fleuret 等ICML 2024 · 107 次引用
- LoFiT: Localized Fine-tuning on LLM RepresentationsFangcong Yin, Xi Ye, Greg DurrettNeurIPS 2024 · 74 次引用
它引用的 Paper26
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
- The Lottery Ticket Hypothesis for Pre-trained BERT NetworksTianlong Chen, Jonathan Frankle, Shiyu Chang, Sijia Liu 等NeurIPS 2020 · 428 次引用
- Robust fine-tuning of zero-shot modelsMitchell Wortsman, Gabriel Ilharco, Jong Wook Kim, Mike Li 等CVPR 2022 · 364 次引用
- Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language ModelsPeter Hase, Mohit Bansal, Been Kim, Asma GhandehariounNeurIPS 2023 · 307 次引用
相关 Paper
- Finding the Dominant Winning Ticket in Pre-Trained Language ModelsZhuocheng Gong, Di He, Yelong Shen, Tie-Yan Liu 等ACL Findings 2022 · 6 次引用
- SPoT: Better Frozen Model Adaptation through Soft Prompt TransferTu Vu, Brian Lester, Noah Constant, Rami Al-Rfou' 等ACL 2022 · 332 次引用
- Composable Sparse Fine-Tuning for Cross-Lingual TransferAlan Ansell, Edoardo Maria Ponti, Anna Korhonen, Ivan VulicACL 2022
- Meta Fine-Tuning Neural Language Models for Multi-Domain Text MiningChengyu Wang, Minghui Qiu, Jun Huang, Xiaofeng HeEMNLP 2020 · 19 次引用
- Exploring Lottery Prompts for Pre-trained Language ModelsYulin Chen, Ning Ding, Xiaobin Wang, Shengding Hu 等ACL 2023 · 4 次引用
