[论文解读] Beyond the Prompt in Large Language Models: Comprehension, In-Context Learning, and Chain-of-Thought
论文提出一个理论框架,展示自回归预训练如何使大语言模型理解提示、进行上下文学习以及利用链式思考来分解复杂任务。它比较了提示策略并推导误差界限,以解释CoT相对于ICL和零样本提示的观察性收益。
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.
研究动机与目标
- 在下一词目标训练下理解LLMs如何解码提示语义。
- 解释在不更新参数的情况下,上下文学习(ICL)如何提升性能。
- 解释为何链式思考(CoT)能够将多步问题分解。
- 提供对Transformer记忆化与泛化的严格前训练分析。
提出的方法
- 提出统一框架以分析零样本、ICL与CoT提示(定理12、17、26)。
- 证明预训练通过自回归建模使任务识别与潜在任务恢复成为可能。
- 推导Transformer记忆化与泛化的误差界分析(定理10)。
- 在自回归生成下对Transformer的编码器-解码器动力学建模。
- 通过支配推断任务与歧义性(A_Θ(x))来定义并量化提示歧义。
- 通过理论界限比较提示策略,以证明CoT的优越性能。
实验结果
研究问题
- RQ1LLMs如何在下一词目标下准确解码提示语义?
- RQ2是什么机制使得在不更新模型参数的情况下,ICL能够提升性能?
- RQ3为什么CoT提示中的中间推理步骤能提升解决多步复杂任务的能力?
- RQ4理论误差界限如何区分零样本、ICL和CoT提示?
主要发现
- 通过自回归预训练,LLMs可以精确推断跨任务的词元转移概率。
- ICL减少提示歧义并将后验集中在预期任务上。
- CoT提示通过利用预训练将复杂问题分解为子任务来实现任务分解。
- 理论界限表明何时以及为何CoT优于ICL和零样本提示。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。