arXiv cs.AI· Kohsei Matsutani, Gouki Minegishi, Core Francisco Park, Takeshi Kojima, Yusuke Iwasawa, Yutaka Matsuo·· 2 小时前AI 评分50
研究显示少样本示例可促使 LLM 使用上下文世界表示
Few-Shot Demonstrations Elicit the Use of In-Context World Representations in LLMs
AI 导读
arXiv 论文 2609.24352 发现,将图追踪任务扩展到少样本设置能提升模型预测,覆盖 7 个模型家族的 9 个模型。线性探针显示少样本示例使隐层中的世界表示向近乎正交方向移动并增强其预测作用,对这些表示的干预会选择性损害性能,该发现在 ARC-AGI-1&2、网页智能体任务和 Othello 上得到验证。
正文 · 原文
Abstract:Large language models (LLMs), when acting as agents, are expected to take observed data in context, infer the latent state space underlying the world, and leverage it for downstream prediction. However, prior work demonstrated that LLMs struggle to use representations learned in context on a graph tracking task, where the model needs to construct a representation of the graph governing data generation process and use it for subsequent predictions. In this paper, we show that extending this to few-shot settings, where each demonstration is generated from a different world with either the same or different graph topologies, enhances its prediction on 9 models from 7 model families. To understand this improvement, we linearly probe a low-dimensional world representation that encodes graph information in the hidden states. Notably, we find that few-shot demonstrations relocate the world representation and increase its predictive use. Specifically, for each model, these world representations shift in directions nearly orthogonal to their original subspace, and interventions on these representations selectively impair performance more than interventions on other subspaces. Consistent with this insight, we show that few-shot demonstrations with observations from different worlds improve performance on ARC-AGI-1&2, web agent tasks, and Othello. Our findings elucidate the role and internal mechanisms of few-shot demonstrations in in-context world modeling and provide implications for their further improvement.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2609.24352 [cs.AI] |
| (or arXiv:2609.24352v2 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2609.24352 arXiv-issued DOI via DataCite |
Submission history
From: Kohsei Matsutani [view email]
[v1]
Mon, 21 Sep 2026 09:44:24 UTC (3,597 KB)
[v2]
Tue, 24 Nov 2026 02:52:41 UTC (3,839 KB)
来源:arXiv cs.AI · arxiv.org