Model Fusion through Bayesian Optimization in Language Model Fine-Tuning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Jang, Chaeyun, Lee, Hyungi, Kim, Jungtaek, Lee, Juho
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916543135219712
author Jang, Chaeyun
Lee, Hyungi
Kim, Jungtaek
Lee, Juho
author_facet Jang, Chaeyun
Lee, Hyungi
Kim, Jungtaek
Lee, Juho
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2411_06710
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Model Fusion through Bayesian Optimization in Language Model Fine-Tuning
Jang, Chaeyun
Lee, Hyungi
Kim, Jungtaek
Lee, Juho
Artificial Intelligence
Computation and Language
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.
title Model Fusion through Bayesian Optimization in Language Model Fine-Tuning
topic Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2411.06710