HBO让大模型自动调节数据使用,解决多数据集训练中的不平衡问题。
HBO: Hierarchical Balancing Optimization for Fine-Tuning Large Language Models
- 分层优化:全局与局部双角色动态调整数据采样。
- 跨九项任务实验,显著提升模型准确率。
- 适合多语言、多任务场景下大模型微调的高效方案。
在混合多样数据集上微调大语言模型面临数据分布不均和异质性挑战。现有方法多从全局层面处理数据不平衡,却忽视了单个数据集内部的差异,限制了效果。本文提出分层平衡优化(HBO),使大模型在微调过程中能同时在全局(跨数据集)和局部(单数据集内)自主调整数据分配。HBO采用双层优化策略,包含一个全局智能体(负责跨数据集采样平衡)和多个局部智能体(根据难度优化各数据集内的数据使用)。智能体由基于模型训练状态的奖励函数引导,衡量学习进度与相对性能提升。我们在三种大模型架构上,针对九个多样化任务进行评估,涵盖多语言与多任务设置。结果表明,HBO持续优于现有基线,取得显著准确率提升。深入分析证实,全局与局部智能体均有效调节了训练过程中的数据使用。HBO为大模型微调中的数据不平衡与异质性问题提供了全面解决方案,显著提升了在多样化数据上的训练效率。
原文摘要 · Abstract (English)
Fine-tuning large language models (LLMs) on a mixture of diverse datasets poses challenges due to data imbalance and heterogeneity. Existing methods often address these issues across datasets (globally) but overlook the imbalance and heterogeneity within individual datasets (locally), which limits their effectiveness. We introduce Hierarchical Balancing Optimization (HBO), a novel method that enables LLMs to autonomously adjust data allocation during fine-tuning both across datasets (globally) and within each individual dataset (locally). HBO employs a bilevel optimization strategy with two types of actors: a Global Actor, which balances data sampling across different subsets of the training mixture, and several Local Actors, which optimizes data usage within each subset based on difficulty levels. These actors are guided by reward functions derived from the LLM's training state, which measure learning progress and relative performance improvement. We evaluate HBO on three LLM backbones across nine diverse tasks in multilingual and multitask setups. Results show that HBO consistently outperforms existing baselines, achieving significant accuracy gains. Our in-depth analysis further demonstrates that both the global actor and local actors of HBO effectively adjust data usage during fine-tuning. HBO provides a comprehensive solution to the challenges of data imbalance and heterogeneity in LLM fine-tuning, enabling more effective training across diverse datasets.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。