arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.13448cs.CL
收藏

基于任务感知课程规划的大语言模型指令遵循能力蒸馏

Distilling Instruction-following Abilities of Large Language Models with Task-aware Curriculum Planning

School of Computer Science, Fudan University(复旦大学计算机科学学院);Alibaba Cloud Computing(阿里云计算)

Yuanhao Yue, Chengyu Wang, Jun Huang, Peng Wang

AI总结:

本文提出任务感知课程规划蒸馏框架TAPIR,通过oracle LLM筛选困难指令、调整任务分布并逐步提升难度,使小规模学生LLM以更少数据超越更大指令微调模型。

摘要:

指令微调旨在使大语言模型(LLMs)与开放域指令和人类偏好的响应对齐。尽管已有若干研究探索了从强大的专有LLM(如ChatGPT)中自主蒸馏和标注指令的方法,但它们往往忽视了任务分布与任务特征的影响,以及训练集中指令难度的差异。这一疏忽可能导致学生LLM的知识能力不均衡和泛化能力较差。为了解决这些挑战,我们提出了面向指令精炼的任务感知课程规划(TAPIR),这是一个多轮蒸馏框架,利用一个oracle LLM来选择学生LLM难以遵循的指令。为了平衡学生的能力,训练集中的任务分布会根据相应任务自动精炼的响应进行调整。此外,通过引入课程规划,我们的方法系统性地提升任务的难度级别,逐步增强学生LLM的能力。我们使用多个广泛认可的基准(如AlpacaEval 2.0、MT-Bench等)和多个学生LLM对TAPIR进行了严格评估。实证结果表明,使用我们的方法和更少的训练数据训练的学生LLM,优于更大规模的指令微调模型和强蒸馏基线。

英文摘要:

Instruction tuning aims to align large language models (LLMs) with open-domain instructions and human-preferred responses. While several studies have explored autonomous approaches to distilling and annotating instructions from powerful proprietary LLMs, such as ChatGPT, they often neglect the impact of the distributions and characteristics of tasks, together with the varying difficulty of instructions in training sets. This oversight can lead to imbalanced knowledge capabilities and poor generalization powers of student LLMs. To address these challenges, we introduce Task-Aware Curriculum Planning for Instruction Refinement (TAPIR), a multi-round distillation framework that utilizes an oracle LLM to select instructions that are difficult for a student LLM to follow. To balance the student's capabilities, task distributions in training sets are adjusted with responses automatically refined according to their corresponding tasks. In addition, by incorporating curriculum planning, our approach systematically escalates the difficulty levels of tasks, progressively enhancing the student LLM's capabilities. We rigorously evaluate TAPIR using several widely recognized benchmarks (such as AlpacaEval 2.0, MT-Bench, etc.) and multiple student LLMs. Empirical results demonstrate that student LLMs, trained with our method and less training data, outperform larger instruction-tuned models and strong distillation baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑