Knowledge is a Region in Weight Space for Fine-tuned Language Models
Preprint
Abstract
Research on neural networks has focused on understanding a single model trained on a single dataset. However, relatively little is known about the relationships between different models, particularly those trained or tested on different datasets. We address this by studying how the weight space and the underlying loss landscape of different models are interconnected. Specifically, we demonstrate that finetuned models that were optimized for high performance, reside in well-defined regions in weight space, and vice versa -- that any model that resides anywhere in those regions also exhibits high performance. Notably, we show that language models that have been finetuned on the same dataset form a tight cluster in the weight space, while models finetuned on different datasets from the same underlying task form a looser cluster. Moreover, traversing around the region between the models leads to new models that perform comparably or even better than models obtained via finetuning, even on tasks that the original models were not finetuned on. Our findings provide insight into the relationships between models, demonstrating that a model positioned between two similar models can acquire the knowledge of both. We leverage this and design a method for selecting a better model for efficient finetuning. Specifically, we show that starting from the center of the region is as effective, if not more, than using the pretrained model in 11 out of 12 datasets, resulting in an average accuracy improvement of 3.06.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- ColD Fusion: Collaborative Descent for Distributed Multitask Finetuning2023
- Improving Generalization of Pre-trained Language Models via Stochastic Weight Averaging2022
- BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models2022
- TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification2020
- Adversarial NLI: A New Benchmark for Natural Language Understanding2020
- Neural Network Acceptability JudgmentsTransactions of the Association for Computational Linguistics, 2019
- Good debt or bad debt: Detecting semantic orientations in economic textsJournal of the Association for Information Science and Technology, 2013
- The PASCAL Recognising Textual Entailment Challenge2006
- On the Geometry of Feedforward Neural Network Error SurfacesNeural Computation, 1993
- ON THE ALGEBRAIC STRUCTURE OF FEEDFORWARD NETWORK WEIGHT SPACES1990