paper-with-me

홈 › Papers

An Asymptotic Theory of Chain-of-Thought in In-Context Learning

2026-06-02 · Kaito Takanami, Cengiz Pehlevan arxiv

Chain-of-thought (CoT) reasoning has become a widely used mechanism for eliciting multi-step reasoning in large language models by generating intermediate reasoning steps at inference time. Yet the scaling behavior of generalization with CoT depth remains poorly understood. To address this question, we study a theoretically solvable model of CoT for in-context weight prediction in linear regression, where test-time reasoning is represented as an iterative refinement of the weight-parameter estimate. Using tools from random matrix theory under high-dimensional asymptotics, we derive an exact formula for the generalization error as a function of reasoning depth, pretraining data amount, and context length. Our analysis reveals a sharp phase transition separating exponential and polynomial improvement, saturation, and overthinking, and characterizes how the optimal reasoning depth scales. We further show that deeper reasoning is most effective with sufficiently rich pretraining and in-context information, whereas limited pretraining or context makes longer reasoning prone to error amplification or saturation. We also validate these predictions through experiments on fully learned linear attention and softmax attention models. Our results provide a unified theoretical account of how test-time CoT depth affects generalization.

📄 PDF Abstract BibTeX arXiv:2606.03217

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Teaching LLMs Music Theory with In-Context Learning and Chain-of-Thought Prompting: Pedagogical Strategies for Machines

2025-03-28 · Liam Pond, Ichiro Fujinaga

This study evaluates the baseline capabilities of Large Language Models (LLMs) like ChatGPT, Claude, and Gemini to learn concepts in music theory through in-context learning and chain-of-thought prompting. Using carefull…

In-Context LearningKey Detection

When does Chain-of-Thought Help: A Markovian Perspective

2026-02-27 · Zihan Wang, Yijun Dong, Qi Lei arxiv

Chain-of-Thought (CoT) prompting is a widely used inference-time technique for improving reasoning, yet its gains are uneven across tasks. We analyze when and why CoT helps by modeling the step-wise reasoning trajectory …

Quantifying the Necessity of Chain of Thought through Opaque Serial Depth

2026-03-10 · Jonah Brown-Cohen, David Lindner, Rohin Shah arxiv

Large language models (LLMs) tend to externalize their reasoning in their chain of thought, making the chain of thought a good target for monitoring. This is partially an inherent feature of the Transformer architecture:…

Why Do Transformers Fail to Forecast Time Series In-Context?

2025-10-10 · Yufa Zhou, Yixiao Wang, Surbhi Goel, Anru R. Zhang arxiv

Time series forecasting (TSF) remains a challenging and largely unsolved problem in machine learning, despite significant recent efforts leveraging Large Language Models (LLMs), which predominantly rely on Transformer ar…

Time Series Forecasting

A Theory of Learning with Autoregressive Chain of Thought

2025-03-11 · Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel 외

For a given base class of sequence-to-next-token generators, we consider learning prompt-to-answer mappings obtained by iterating a fixed, time-invariant generator for multiple steps, thus generating a chain-of-thought, …