让大模型像人一样分步学新技能,动态调整训练内容。
Dynamic Skill Adaptation for Large Language Models
- 构建技能图谱,按人类学习路径分解复杂技能
- 用LLM生成教材和习题数据,支持预训练与微调
- 训练中动态优化数据,淘汰简单题、生成难题
我们提出动态技能适配(DSA)框架,用于将新而复杂的技能高效适配到大语言模型(LLMs)中。与以往基于人工标注静态数据随机顺序学习不同,我们首先模仿人类学习路径自动构建并组织训练数据,再根据训练动态动态调整数据。具体地,受人类教育体系启发,我们将复杂技能分解为子技能,并依据其依赖关系构建技能图谱。针对每个技能,利用大模型生成两类数据:一类为类似教科书的详细描述数据,用于预训练;另一类为类似练习题的实践数据,用于指令微调。在指令微调过程中,动态更新训练数据:降低易学样本权重,生成更复杂题目,并过滤错误数据。在LLAMA和Mistral等大模型上,实验验证了该方法在数学推理与社会学科能力适配上的有效性。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。