arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.00147cs.CL
收藏

AdaptMI:面向小语言模型的自适应基于技能的情境数学指令

AdaptMI: Adaptive Skill-based In-context Math Instruction for Small Language Models

Princeton Language and Intelligence(普林斯顿语言与智能)

Yinghui He, Abhishek Panigrahi, Yong Lin, Sanjeev Arora

AI总结:

AdaptMI提出自适应技能选择方法,仅在模型表现不佳时引入技能示例,并针对缺失技能补充示例,在五个小语言模型上提升数学推理准确率最多6%。

摘要:

情境学习(ICL)允许语言模型在上下文中提供合适信息时提升其问题解决能力。由于情境信息的选择可以根据问题本身来确定,因此情境学习类似于人类在课堂上向教师学习的过程。近期研究(Didolkar等人,2024a;2024b)表明,利用前沿大语言模型(LLM)预测解决问题所需技能的能力(通常称为LLM的元认知),并使用推荐的技能来构建必要的情境示例,可以提升ICL性能。虽然这种基于技能的策略在较大模型中提升了ICL性能,但在小语言模型(SLM)上的收益却微乎其微,凸显了ICL能力上的性能差距。我们研究了这一差距,并表明基于技能的提示在简单问题上可能通过引入不必要的信息而损害SLM的性能,类似于认知过载。为解决此问题,我们引入了AdaptMI,一种为SLM选择基于技能的情境数学指令的自适应方法。受人类教育学中认知负荷理论的启发,我们的方法仅在模型表现不佳时引入基于技能的示例。我们进一步提出了AdaptMI+,它增加了针对模型响应中缺失的特定技能的示例。在流行的数学基准和五个SLM(1B--7B;Qwen、Llama)上的5-shot评估中,AdaptMI+相比朴素的基于技能策略将准确率提升了最多6%。

英文摘要:

In-context learning (ICL) allows a language model to improve its problem-solving capability when provided with suitable information in context. Since the choice of in-context information can be determined based on the problem itself, in-context learning is analogous to human learning from teachers in a classroom. Recent works (Didolkar et al., 2024a; 2024b) show that ICL performance can be improved by leveraging a frontier large language model's (LLM) ability to predict required skills to solve a problem, popularly referred to as an LLM's metacognition, and using the recommended skills to construct necessary in-context examples. While this skill-based strategy boosts ICL performance in larger models, its gains on small language models (SLMs) have been minimal, highlighting a performance gap in ICL capabilities. We investigate this gap and show that skill-based prompting can hurt SLM performance on easy questions by introducing unnecessary information, akin to cognitive overload. To address this, we introduce AdaptMI, an adaptive approach to selecting skill-based in-context Math Instructions for SLMs. Inspired by cognitive load theory from human pedagogy, our method only introduces skill-based examples when the model performs poorly. We further propose AdaptMI+, which adds examples targeted to the specific skills missing from the model's responses. On 5-shot evaluations across popular math benchmarks and five SLMs (1B--7B; Qwen, Llama), AdaptMI+ improves accuracy by up to 6% over naive skill-based strategies.

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

↑