Cognitive Fatigue in Autoregressive Transformers: Formalization and Measurement
Abstract
Lay Summary
Large language models (LLMs) like ChatGPT can struggle when asked to generate long responses. They may start repeating themselves, forget the original instructions, or produce increasingly erratic output. This happens gradually during generation, but until now there was no way to detect it in real time as it was occurring. We call this phenomenon cognitive fatigue, borrowing the term as an analogy for how a model progressively "loses focus" over a long generation. We introduce a simple, automatic measurement called the Fatigue Index (FI) that tracks three warning signs simultaneously: whether the model is still paying attention to the original prompt, whether its internal representations are drifting, and whether its output distribution is becoming unstable. FI runs alongside the model during generation without requiring any retraining or changes to the model. We tested it across nine models of varying sizes and showed it reliably predicts when output quality is about to deteriorate. We also found that models fine-tuned to follow instructions can actually become more fragile than their base counterparts at smaller sizes, a counterintuitive finding we call the "alignment tax on cognitive stamina." FI is designed to be a practical monitoring tool for anyone deploying LLMs in real-world settings where long, reliable generation matters.