Introduction
In the development of sequence-to-sequence (seq2seq) models, early-stopping is a standard regularization technique used to prevent overfitting. By monitoring validation loss and halting training when it reaches its minimum, researchers aim to capture a model at its peak generalization capability. However, this "global" stopping point is an average across all tokens in a dataset. Because natural language follows a long-tailed distribution, different tokens learn at vastly different rates. This paper investigates the "one-size-fits-all" problem, demonstrating that while a model may appear optimal at a global level, individual tokens are often significantly overfitted or underfitted.
The Limitations of Global Early-Stopping
The core issue stems from the inherent imbalance in linguistic data. High-frequency function words (e.g., "the", "of") are encountered constantly, while rare nouns or specialized terms appear infrequently. Consequently, "easy" tokens may reach their optimal performance early in the training process and begin to memorize noise (overfit) long before "hard" tokens have even begun to converge (underfit). Global metrics like BLEU or cross-entropy loss obscure these granular discrepancies, leading to sub-optimal performance for specific categories of information.
Measuring Token-Level Health
To move beyond qualitative observations, the researchers propose two novel metrics to quantify fitting issues at the token level:
- Fitting-offset: This metric measures the distance (in epochs) between the global early-stopping point and the specific epoch where a group of tokens reached its peak validation performance. A negative offset indicates the tokens overfitted before the model stopped; a positive offset indicates they were still underfitting.
- Potential-gain: This quantifies the theoretical accuracy increase achievable if a specific group of tokens were perfectly fitted at the time of stopping.
Additionally, the authors introduce Prediction Discrepancy to measure a token's dependence on long-range context. By comparing the model's prediction probability using the full context versus a restricted local context, they can identify tokens that rely heavily on surrounding sentence structure to be correctly predicted.
Drivers of Fitting Imbalance
The study identifies several key factors that influence whether a token will overfit or underfit:
Token Frequency and POS
Counter-intuitively, high-frequency tokens are often the most overfitted. Because they are easy to learn, they reach their peak early. On average, high-frequency tokens overfit by 3.7 epochs. Conversely, low-frequency tokens are often still "hungry" for data, underfitting by an average of 5.8 epochs. Parts-of-speech (POS) also play a role: function words (prepositions, articles) tend to overfit due to their predictable nature, while nouns—which represent an "open set" with complex meanings—frequently underfit. Nouns showed a potential accuracy gain of 0.69 points if they could be optimally fitted.
Contextual Dependence
Prediction discrepancy proved to be a more precise indicator of fitting issues than raw frequency. Tokens with small discrepancy (those easily guessed from local context) exhibited a massive underfitting offset of 8.2 epochs, suggesting that the model struggles to prioritize these tokens even when they seem "simple."
Sentence Length and Pretraining
The research also challenges assumptions in curriculum learning. While short sentences are often considered "easy," the authors found they are actually more likely to underfit than long sentences in certain settings. Furthermore, while using pretrained models like mBART significantly reduces the underfitting of rare tokens during fine-tuning, it does little to mitigate the early overfitting of common tokens.
Conclusion
This systematic analysis reveals that seq2seq models suffer from a fundamental imbalance in how they learn different components of language. The current reliance on global early-stopping ensures that no token is ever truly optimized. While the authors suggest that techniques like focal loss may offer some relief, the findings point toward a need for more dynamic training strategies. Future work must focus on "local" adjustments to the learning process, ensuring that the model can continue to learn rare, complex signals without being distracted by the noise of already-mastered, high-frequency tokens.
Summary updated