TL;DR
This paper argues that the dominant "next-token prediction" training paradigm, specifically teacher-forcing, can fundamentally fail to teach models how to plan, even on simple tasks. They introduce a minimal "path-finding" task where standard Transformer and Mamba models fail to learn, despite the task being easy for humans. Promisingly, a "teacherless" training approach that predicts multiple tokens at once shows potential to overcome these limitations.
What Problem Does This Paper Address?
Modern large language models (LLMs) are incredibly powerful, but there's a growing suspicion that their success is more about mimicking human language patterns than truly understanding or planning. A common criticism is that LLMs are just "stochastic parrots," excellent at predicting the next word but lacking genuine intelligence. While it's easy to argue that any sequence generation can be framed as next-token prediction, this paper dives deeper. It challenges the assumption that the standard training method, "teacher-forcing," actually teaches models to predict accurately, especially when planning is involved. The authors aim to crystallize this intuition, clarify misconceptions, and provide concrete evidence for the limitations of the next-token prediction paradigm.
Methods
The core of the paper's argument hinges on distinguishing between two phases of next-token prediction:
- Autoregressive Inference: This is how models generate text. They take their own previous outputs as input to predict the next token. The paper acknowledges that errors can compound here, leading to a "snowballing error" effect.
- Teacher-Forced Training: This is how models learn. Instead of using their own outputs, they are fed the ground truth previous tokens as input to predict the next token. This is where the paper identifies a critical flaw.
The authors propose a minimal "path-finding" task on a "path-star" graph. The task is to find a path from a start node to a goal node. They then demonstrate how teacher-forcing can lead to two specific failures:
- Clever Hans Cheat (Failure 2a): Because teacher-forcing reveals parts of the ground truth answer, the model can learn to "cheat" by using these revealed parts to predict the next token, rather than learning the underlying planning logic. This is analogous to the famous horse "Clever Hans" who appeared to do math but was actually responding to subtle cues from his trainer.
- Indecipherable Token (Failure 2b): Once the Clever Hans cheat is perfected for later tokens, the supervision for earlier, crucial tokens is lost. This makes it extremely difficult, or even impossible, for the model to learn the correct planning mechanism for these tokens.
To address these failures, they propose teacherless training, where the model is given an uninformative "dummy" token instead of the ground truth prefix, forcing it to rely solely on the problem description to predict multiple future tokens.
Datasets
The paper introduces a novel benchmark: path-star graphs. These are directed graphs with a central start node from which multiple paths emanate, with only one path leading to the goal. The graphs are generated with varying degrees (number of paths from the center) and lengths. The authors use these synthetic datasets to empirically demonstrate their hypothesized failures.
Key Insights and Ideas
- Teacher-forcing is not always a good teacher: The paper's central claim is that teacher-forcing, while seemingly intuitive, can actively prevent models from learning planning abilities, especially in tasks requiring lookahead.
- The "Clever Hans Cheat" is a fundamental problem: The ability of models to exploit revealed ground truth to "cheat" their way through training is a significant obstacle, not just a minor shortcut.
- Loss of supervision is critical: When the Clever Hans cheat masks the true dependencies, the model loses the necessary supervision to learn complex planning strategies, leading to the "indecipherable token" problem.
- Teacherless training offers a promising alternative: By removing the ground truth prefix during training, teacherless training forces models to engage in genuine lookahead and planning, showing improved performance on their challenging task.
- Planning is not just about autoregressive inference: The paper clarifies that the "snowballing error" criticism (errors compounding during generation) is distinct from the teacher-forcing failure (failure to learn the plan in the first place).
Key Results
- In-distribution failure: Standard teacher-forced training on Transformer and Mamba models resulted in near-zero accuracy on the path-star task, even with large training datasets and identical training/testing distributions.
- Clever Hans cheat is pervasive: Models achieved near-perfect accuracy on a "cheating" metric, confirming they were exploiting the revealed ground truth.
- Indecipherable token problem confirmed: Models struggled significantly to predict the first token of the path, achieving accuracy close to random guessing.
- Teacherless training shows promise: While challenging, teacherless training achieved near-perfect accuracy on some graph configurations, demonstrating its ability to overcome the Clever Hans cheat and enable learning.
- Reversed training also helps: Reversing the target path also significantly improved performance, suggesting that learning from right-to-left (which is more straightforward for the path-star graph) is easier.
Limitations and Future Work
- Empirical and conceptual arguments: The authors acknowledge that their arguments are primarily empirical and conceptual, lacking formal proofs for all claims.
- Limited model scale: The experiments were not conducted on the largest state-of-the-art models (e.g., Llama2, Mistral).
- Task specificity: While the path-star task is designed to be minimal, its direct applicability to all complex text generation tasks (like story writing) is speculative.
- Teacherless training challenges: Teacherless training can be very difficult, and models often struggle to fit the training data, even if it shows promise in some cases.
- Future directions: The authors hope their work will inspire new training paradigms beyond next-token prediction and encourage further investigation into how to teach models genuine planning abilities. They suggest exploring how teacherless training might be applied to more complex tasks and how to make it more robust.
Summary updated