A Theory of Online Learning with Autoregressive Chain-of-Thought Reasoning
Idan Mehalel, Ilan Doron-Arad, Elchanan Mossel
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: LLM Reasoning, Memory & RAG › Chain-of-Thought Reasoning · Type: theory · Keywords: online learning, autoregressive generation, mistake bound, Chain-of-Thought, theoretical analysis
Summary
We develop an online learning theory for autoregressive chain-of-thought reasoning, establishing how the mistake bound scales with generation horizon M and showing that full trajectory feedback eliminates this dependence.
Explained to a 5-year-old
We have a robot that writes words one after another. It starts with a question and keeps adding letters until it finishes a sentence. We want to know how many times the robot might be wrong about the final word. If we only see the final word, the robot might make more mistakes when the sentence is longer. If we also see every step it took, the robot makes fewer mistakes no matter how long the sentence is.
Explained to a 5-year-old, longer
Imagine a robot that makes up a story by adding one word at a time. It starts with a beginning and keeps adding words until it finishes the whole story. We want to know how often the robot might guess the last word wrong. If we only see the final word, the robot might make more mistakes when the story is longer. If we also see every word it wrote along the way, the robot can learn better. The robot can look at the steps and see patterns that help it guess correctly. In some cases, the robot’s mistakes grow slowly, like a tiny plant. In other cases, the mistakes can grow faster, like a tall tree. The research shows that seeing all the steps can stop the mistakes from growing at all. For simple types of stories, the robot needs about the same number of mistakes no matter how long the story is. This helps us understand how to teach robots to write or answer questions more reliably. Knowing these rules lets scientists build better learning systems for language tasks.
For a technical reader
The paper studies how a system that generates text step-by-step can learn to predict its final output. It defines two ways the system can receive feedback: only the final token, or the entire sequence of tokens generated. The analysis shows that with only the final token, the number of possible mistakes can grow anywhere from constant to logarithmic in the length of the generation process. When the full trajectory is observed, the dependence on length disappears, and the mistake bound becomes independent of how many steps are taken. For a specific class of linear models, the optimal bound is Θ(d²), meaning it scales with the square of the model’s dimensionality regardless of feedback type or generation length.
Problem
How does the number of steps in an autoregressive generation affect the number of mistakes a learner can make when trying to predict the final output, and does seeing intermediate steps help?
Method
The approach formulates an online learning framework for autoregressive processes, analyzing two feedback regimes-one where only the final token is observed and another where the full token trajectory is available-and derives mistake-bound rates as functions of the generation horizon M.
Results
The approach shows that End-to-End feedback yields mistake bounds ranging from constant to logarithmic in the generation horizon M, while Chain-of-Thought feedback removes the M dependence entirely; for linear threshold classes the optimal bound is Θ(d²) regardless of M or feedback type.
Contributions
We introduce an online learning model for autoregressive generation, prove a taxonomy of mistake-bound growth rates for End-to-End feedback, demonstrate that full trajectory feedback eliminates the horizon dependence, and establish tight Θ(d²) bounds for autoregressive linear thresholds.
Limitations and assumptions
The results rely on mild regularity conditions and assume classes of finite Littlestone dimension.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction