arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.07794cs.CLcs.AI
收藏

涌现的结构化表示支持大型语言模型中的灵活上下文推理

Emergent Structured Representations Support Flexible In-Context Inference in Large Language Models

College of Computer Science and Artificial Intelligence(计算机科学与人工智能学院);Fudan University(复旦大学);Shanghai, China(中国上海)

Ningyu Xu, Qi Zhang, Xipeng Qiu, Xuanjing Huang

AI总结:

研究揭示大型语言模型在上下文推理中通过结构化表示动态构建和利用潜在表示,为灵活适应的计算过程提供新见解。

摘要:

大型语言模型(LLMs)表现出类似人类推理的涌现行为。尽管近期研究已识别出这些模型中的结构化概念表示,但其是否依赖此类表示进行推理仍不明确。本文研究了LLMs在多样化任务中进行上下文推理的内部处理过程。结果揭示了中层到深层中出现的概念子空间,其表征结构在不同上下文中保持稳定。通过因果中介分析,证明该子空间不仅是表象,而是模型预测功能性的核心,确立其在推理中的因果作用。进一步发现,早期到中层的注意力头整合上下文线索构建和精炼该子空间,随后由后续层利用生成预测。这些发现提供了证据,表明LLMs在上下文中动态构建和使用结构化潜在表示以进行推理,为灵活适应的计算过程提供了新见解。

英文摘要:

Large language models (LLMs) exhibit emergent behaviors suggestive of human-like reasoning. While recent work has identified structured conceptual representations within these models, it remains unclear whether they functionally rely on such representations for reasoning. Here we investigate the internal processing of LLMs during in-context inference across diverse tasks. Our results reveal a conceptual subspace emerging in middle to late layers, whose representational structure persists across contexts. Using causal mediation analyses, we demonstrate that this subspace is not merely an epiphenomenon but is functionally central to model predictions, establishing its causal role in inference. We further identify a layer-wise progression where attention heads in early-to-middle layers integrate contextual cues to construct and refine the subspace, which is subsequently leveraged by later layers to generate predictions. Together, these findings provide evidence that LLMs dynamically construct and use structured latent representations in context for inference, offering insights into the computational processes underlying flexible adaptation.

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

↑