Schema for In-Context Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Chen, Pan, Chen, Shaohong, Wang, Mark, Leong, Shi Xuan, Fung, Priscilla, Bernales, Varinia, Aspuru-Guzik, Alan
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918413805289472
author Chen, Pan
Chen, Shaohong
Wang, Mark
Leong, Shi Xuan
Fung, Priscilla
Bernales, Varinia
Aspuru-Guzik, Alan
author_facet Chen, Pan
Chen, Shaohong
Wang, Mark
Leong, Shi Xuan
Fung, Priscilla
Bernales, Varinia
Aspuru-Guzik, Alan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13905
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Schema for In-Context Learning
Chen, Pan
Chen, Shaohong
Wang, Mark
Leong, Shi Xuan
Fung, Priscilla
Bernales, Varinia
Aspuru-Guzik, Alan
Computation and Language
Artificial Intelligence
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.
title Schema for In-Context Learning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2510.13905