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

基于模式的上下文学习框架

Schema for In-Context Learning

University of Toronto(多伦多大学);Nanyang Technological University(南洋理工大学);Acceleration Consortium(加速联盟);Vector Institute for Artificial Intelligence(向量人工智能研究所);Canadian Institute for Advanced Research (CIFAR)(加拿大高等研究院(CIFAR));NVIDIA(英伟达)

Pan Chen, Shaohong Chen, Mark Wang, Shi Xuan Leong, Priscilla Fung, Varinia Bernales, Alan Aspuru-Guzik

AI总结:

本文提出基于认知模式的上下文学习框架,通过提取先验示例中的认知构建块,生成抽象模式以增强模型推理能力,实验证明在化学和物理问题上性能提升达36.19%。

摘要:

上下文学习(ICL)使基于变换器的语言模型能够通过条件化演示示例适应新任务。然而,传统示例驱动的上下文学习缺乏显式的知识检索和抽象层面的转移模块。受认知科学中的模式理论启发,我们引入了基于模式激活的上下文学习(SA-ICL)。该框架从先前示例中提取认知推理过程的构建块表示,生成抽象模式,即一个轻量且结构化的关键推理步骤及其关系的模板,然后在面对新问题时用于增强模型的推理过程。我们证明了广泛使用的大型语言模型(LLMs)缺乏形成和利用内部基于模式的学习表示的能力,但通过显式的基于模式的支架显著受益。在GPQA数据集上的化学和物理问题实验表明,当单个演示示例质量高时,SA-ICL性能提升高达36.19%,同时减少了对演示示例数量的依赖并提高了可解释性。基于模式的上下文学习不仅弥合了从模式预热到思维链提示的多种ICL策略之间的差距,还为增强LLMs的人类样推理开辟了新路径。

英文摘要:

In-Context Learning (ICL) enables transformer-based language models to adapt to new tasks by conditioning on demonstration examples. However, traditional example-driven in-context learning lacks explicit modules for knowledge retrieval and transfer at the abstraction level. Inspired by cognitive science, specifically schema theory, which holds that humans interpret new information by activating pre-existing mental frameworks (schemas) to structure understanding, we introduce Schema-Activated In-Context Learning (SA-ICL). This framework extracts the representation of the building blocks of cognition for the reasoning process instilled from prior examples, creating an abstracted schema, a lightweight, structured template of key inferential steps and their relationships, which is then used to augment a model's reasoning process when presented with a novel question. We demonstrate that a broad range of large language models (LLMs) lack the capacity to form and utilize internal schema-based learning representations implicitly, but instead benefit significantly from explicit schema-based scaffolding. Across chemistry and physics questions from the GPQA dataset, our experiments show that SA-ICL consistently boosts performance, up to 36.19 percent, when the single demonstration example is of high quality, which simultaneously reduces reliance on the number of demonstrations and enhances interpretability. Schema-Activated In-Context Learning not only bridges disparate ICL strategies ranging from pattern priming to Chain-of-Thought prompting, but also paves a new path for enhancing human-like reasoning in LLMs.

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

↑