arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15401cs.CLcs.AI
收藏

基于问题解决逻辑的课程化上下文学习用于LLM复杂推理

Problem-Solving Logic Guided Curriculum In-Context Learning for LLMs Complex Reasoning

School of Artificial Intelligence, Beijing Normal University(人工智能学院,北京师范大学)

Xuetao Ma, Wenbin Jiang, Hua Huang

AI总结:

本研究提出基于问题解决逻辑的课程化上下文学习方法,通过分析问题解决逻辑选择和排序示例,提升LLM复杂推理能力。

摘要:

上下文学习(ICL)可以显著增强大型语言模型(LLMs)的复杂推理能力,其关键在于示范示例的选择和排序。先前的方法通常依赖于简单的特征来衡量示例之间的相关性。我们认为这些特征不足以反映示例之间的内在联系。在本研究中,我们提出了一种由问题解决逻辑引导的课程ICL策略。我们通过分析问题解决逻辑来选择示范示例,并根据课程学习的原则对它们进行排序。具体来说,我们基于BREAK数据集构建了一个问题解决逻辑指令集,并对语言模型进行微调以分析示例的问题解决逻辑。随后,我们根据问题解决逻辑选择适当的示范示例,并根据问题解决步骤的数量评估其难度。根据课程学习的原则,我们将示例从易到难排序,作为上下文提示。在多个基准测试上的实验结果表明,我们的方法在性能和效率方面均优于先前的ICL方法,有效增强了LLMs的复杂推理能力。我们的项目将在https://github.com/maxuetao/CurriculumICL上发布。

英文摘要:

In-context learning (ICL) can significantly enhance the complex reasoning capabilities of large language models (LLMs), with the key lying in the selection and ordering of demonstration examples. Previous methods typically relied on simple features to measure the relevance between examples. We argue that these features are not sufficient to reflect the intrinsic connections between examples. In this study, we propose a curriculum ICL strategy guided by problem-solving logic. We select demonstration examples by analyzing the problem-solving logic and order them based on curriculum learning. Specifically, we constructed a problem-solving logic instruction set based on the BREAK dataset and fine-tuned a language model to analyze the problem-solving logic of examples. Subsequently, we selected appropriate demonstration examples based on problem-solving logic and assessed their difficulty according to the number of problem-solving steps. In accordance with the principles of curriculum learning, we ordered the examples from easy to hard to serve as contextual prompts. Experimental results on multiple benchmarks indicate that our method outperforms previous ICL approaches in terms of performance and efficiency, effectively enhancing the complex reasoning capabilities of LLMs. Our project will be released at https://github.com/maxuetao/CurriculumICL

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

↑