Preprint derives how context length affects next-token prediction error
In an arXiv preprint, Mengyao An and Haiping Huang derive equations for how next-token prediction error scales in a theoretical setting for self-attention-based transformers. The analysis covers both finite contexts and the limit of infinite context length. Under a zero-temperature learning assumption, the authors find a double-descent pattern, in which error falls, rises, and falls again, and link it to the interaction between training data load and context length. In the infinite-context limit, the authors find that the errors match those predicted by deterministic ridge shrinkage.
Why it matters
The analysis gives researchers a way to study how training data load and context length interact within the paper's theoretical setting.
Sources
- PrimaryarXiv · Artificial IntelligenceSource date ·
Written by AIToolMaps from the source above and checked against it sentence by sentence.