arXiv:2603.10000cs.CLcs.LG2026-03被引 1

解析大模型如何理解提示、实现上下文学习和思维链推理的理论机制

Beyond the Prompt in Large Language Models: Comprehension, In-Context Learning, and Chain-of-Thought

  • 通过自回归过程推断跨任务的词元转移概率,实现对提示语义的准确解码
  • 上下文学习通过降低提示歧义,使模型后验聚焦于正确任务,提升性能
  • 思维链提示激活模型的任务分解能力,将复杂问题拆解为预训练中掌握的子任务

大型语言模型(LLMs)在各类任务中表现出色,展现出语义提示理解、上下文学习(ICL)和思维链(CoT)推理等涌现特性。尽管实证表现优异,这些现象背后的理论机制仍不清晰。本研究针对三个核心问题展开:(1)为何模型在仅以预测下一个词元为目标训练的情况下,仍能准确解码提示语义?(2)上下文学习如何在不更新参数的前提下提升性能?(3)思维链提示中的中间推理步骤为何能有效解锁复杂多步问题的能力?结果表明,通过自回归过程,模型能够精确推断不同任务间的词元转移概率。我们发现,上下文学习通过减少提示歧义,促进模型后验集中在目标任务上,从而提升性能。此外,思维链提示可激活模型的任务分解能力,将复杂问题拆分为一系列其在预训练阶段已掌握的简单子任务。通过比较各方法的误差界,我们为先进提示工程的技术优势提供了新的理论洞察。

原文摘要 · Abstract (English)

Large Language Models (LLMs) have demonstrated remarkable proficiency across diverse tasks, exhibiting emergent properties such as semantic prompt comprehension, In-Context Learning (ICL), and Chain-of-Thought (CoT) reasoning. Despite their empirical success, the theoretical mechanisms driving these phenomena remain poorly understood. This study dives into the foundations of these observations by addressing three critical questions: (1) How do LLMs accurately decode prompt semantics despite being trained solely on a next-token prediction objective? (2) Through what mechanism does ICL facilitate performance gains without explicit parameter updates? and (3) Why do intermediate reasoning steps in CoT prompting effectively unlock capabilities for complex, multi-step problems? Our results demonstrate that, through the autoregressive process, LLMs are capable of exactly inferring the transition probabilities between tokens across distinct tasks using provided prompts. We show that ICL enhances performance by reducing prompt ambiguity and facilitating posterior concentration on the intended task. Furthermore, we find that CoT prompting activates the model's capacity for task decomposition, breaking complex problems into a sequence of simpler sub-tasks that the model has mastered during the pretraining phase. By comparing their individual error bounds, we provide novel theoretical insights into the statistical superiority of advanced prompt engineering techniques.

大模型提示工程推理机制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。