arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.10000cs.CLcs.LG
收藏

大型语言模型中的提示之外:理解、上下文学习与推理链

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

Yuling Jiao, Yanming Lai, Huazhen Lin, Wensen Ma, Houduo Qi, Defeng Sun

AI总结:

本研究探讨了大型语言模型在提示之外的理解、上下文学习和推理链机制,揭示了模型通过自回归过程推断转移概率、减少提示歧义以及分解复杂问题的能力,为高级提示工程提供了理论支持。

摘要:

大型语言模型(LLMs)在多种任务上展示了卓越的 proficiency,表现出语义提示理解、上下文学习(ICL)和推理链(CoT)等涌现特性。尽管在经验上取得了成功,这些现象背后的理论机制仍不清晰。本研究通过回答三个关键问题来探讨这些观察的基础:(1)LLMs 如何在仅训练于下一个token预测目标的情况下准确解码提示语义?(2)ICL 通过何种机制在没有显式参数更新的情况下提升性能?(3)CoT提示中中间推理步骤为何能解锁复杂多步骤问题的能力?我们的结果表明,通过自回归过程,LLMs 能够利用提供的提示准确推断不同任务之间token之间的转移概率。我们显示ICL通过减少提示歧义并促进后验集中在预期任务上而提升性能。此外,我们发现CoT提示激活了模型的任务分解能力,将复杂问题分解为一系列模型在预训练阶段已掌握的更简单的子任务。通过比较其各自的误差界限,我们为高级提示工程技术的统计优势提供了新的理论见解。

英文摘要:

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.

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

↑