Key Metrics to Uncover Generalization Gaps

Divergence where training loss decreases but validation loss plateaus or increases, alongside poor F1-score, precision, or recall on unseen data, are critical indicators that a model fails to generalize effectively, especially with imbalanced datasets.

The top 3

  1. Training vs. Test Loss Divergence: A significant and growing difference between a model's loss on the training data and its loss on unseen test data is the primary indicator of a generalization gap, signaling overfitting.
  2. F1-Score Discrepancy Across Datasets: For classification tasks, a significant drop in F1-score (or precision/recall) from the training set to the test or validation set directly quantifies a model's reduced effectiveness on new data, highlighting a generalization gap.
  3. Bias-Variance Tradeoff Analysis: Analyzing the bias-variance tradeoff reveals the nature of generalization gaps: high variance on test sets indicates overfitting (model too complex), while high bias on both training and test sets indicates underfitting (model too simple).

Sources

Open the full topic