English

CoBa: Convergence Balancer for Multitask Finetuning of Large Language Models

Computation and Language 2024-10-29 v2 Machine Learning

Abstract

Multi-task learning (MTL) benefits the fine-tuning of large language models (LLMs) by providing a single model with improved performance and generalization ability across tasks, presenting a resource-efficient alternative to developing separate models for each task. Yet, existing MTL strategies for LLMs often fall short by either being computationally intensive or failing to ensure simultaneous task convergence. This paper presents CoBa, a new MTL approach designed to effectively manage task convergence balance with minimal computational overhead. Utilizing Relative Convergence Scores (RCS), Absolute Convergence Scores (ACS), and a Divergence Factor (DF), CoBa dynamically adjusts task weights during the training process, ensuring that the validation loss of all tasks progress towards convergence at an even pace while mitigating the issue of individual task divergence. The results of our experiments involving three disparate datasets underscore that this approach not only fosters equilibrium in task convergence but enhances the LLMs' performance by up to 13% relative to the second-best baselines. Code is open-sourced at https://github.com/codefuse-ai/MFTCoder.

Keywords

Cite

@article{arxiv.2410.06741,
  title  = {CoBa: Convergence Balancer for Multitask Finetuning of Large Language Models},
  author = {Zi Gong and Hang Yu and Cong Liao and Bingchang Liu and Chaoyu Chen and Jianguo Li},
  journal= {arXiv preprint arXiv:2410.06741},
  year   = {2024}
}

Comments

15 pages, main conference of EMNLP 2024

R2 v1 2026-06-28T19:14:08.243Z