arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2412.19361cs.CL
收藏

面向大语言模型的动态技能适配

Dynamic Skill Adaptation for Large Language Models

Stanford University(斯坦福大学)

Jiaao Chen, Diyi Yang

AI总结:

本文提出动态技能适配框架DSA,通过构建技能图自动生成教科书式和练习式训练数据,并在指令微调中动态调整样本权重与复杂度,有效提升大语言模型对数学推理和社会研究等复杂技能的适配能力。

摘要:

我们提出动态技能适配(DSA),这是一种自适应且动态的框架,用于将新颖且复杂的技能适配到大语言模型(LLMs)中。与以往从人工整理且顺序随机的静态数据中学习的工作相比,我们提出首先通过模仿人类的学习路径自动生成和组织训练数据,然后根据训练动态动态调整训练数据。具体而言,受人类教育系统中的学习结构和教学策略启发,我们首先通过将复杂技能分解为子技能,并根据它们在人类课程体系中的依赖关系进行排列,构建技能图。对于每一项技能,我们利用LLMs生成两类数据:一类是类似教科书的数据,包含用于预训练的详细技能描述;另一类是类似练习的数据,旨在明确运用这些技能来解决问题,用于指令微调。此外,在指令微调过程中,我们动态更新训练数据,对易于学习的样本降低权重,生成更复杂的样本,并过滤掉含有错误的数据。在LLAMA和Mistral等大语言模型上的实验证明了我们所提方法在适配数学推理技能和社会研究技能方面的有效性。

英文摘要:

We present Dynamic Skill Adaptation (DSA), an adaptive and dynamic framework to adapt novel and complex skills to Large Language Models (LLMs). Compared with previous work which learns from human-curated and static data in random orders, we propose to first automatically generate and organize the training data by mimicking the learning pathways of human and then dynamically tailor the training data based on the training dynamics. Specifically, inspired by the learning structures and teaching strategies in the human education system, we first construct a skill graph by decomposing complex skills into sub-skills and arranging them based on their dependencies in human syllables. For every skill, we utilize LLMs to generate both textbook-like data which contains detailed descriptions of skills for pre-training and exercise-like data which targets at explicitly utilizing the skills to solve problems for instruction-tuning. Furthermore, during the instruction-tuning, we dynamically update the training data which down-weight easy-to-learn examples, generate more complex examples, and filter out data with errors. Experiments on large language models such as LLAMA and Mistral demonstrate the effectiveness of our proposed methods in adapting math reasoning skills and social study skills.

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

↑