Model Fusion through Bayesian Optimization in Language Model Fine-Tuning

Chaeyun Jang, Jungtaek Kim, Hyungi Lee, Juho Lee, Kaist
11/1/2024

No official code found. Best implementation: chaeyoon-jang/bomf (3 stars, MIT, last commit 2024-12-11).

Abstract

Fine-tuning pre-trained models for downstream tasks is a widely adopted technique known for its adaptability and reliability across various domains. Despite its conceptual simplicity, fine-tuning entails several troublesome engineering choices, such as selecting hyperparameters and determining checkpoints from an optimization trajectory. To tackle the difficulty of choosing the best model, one effective solution is model fusion, which combines multiple models in a parameter space. However, we observe a large discrepancy between loss and metric landscapes during the fine-tuning of pre-trained language models. Building on this observation, we introduce a novel model fusion technique that optimizes both the desired metric and loss through multi-objective Bayesian optimization. In addition, to effectively select hyperparameters, we establish a two-stage procedure by integrating Bayesian optimization processes into our framework. Experiments across various downstream tasks show considerable performance improvements using our Bayesian optimization-guided method.

View on arXivView PDF

Code Implementations(1)

chaeyoon-jang/bomfCommunity100%
MIT

Model Fusion through Bayesian Optimization in Language Model Fine-Tuning

30Shell, PythonOct 10, 20241 years agoMIT

Cite this paper

@article{jang2024model,
  title  = {Model Fusion through Bayesian Optimization in Language Model Fine-Tuning},
  author = {Chaeyun Jang and Jungtaek Kim and Hyungi Lee and Juho Lee and Kaist},
  year   = {2024},
  eprint = {2411.06710},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2411.06710},
  url    = {https://arxiv.org/abs/2411.06710},
  journal = {NEURIPS 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/2411.06710.svg)](https://codeofpaper.com/paper/2411.06710)

Discussion