Instance-dependent Early Stopping

Suqin Yuan, Runqi Lin, Lei Feng, Bo Han, Tongliang Liu

Abstract

Traditional early stopping methods operate at the model level, halting training when global validation performance plateaus. This approach is computationally inefficient as it ignores the varying difficulty of individual data points. We present Instance-dependent Early Stopping (IES), a method that identifies and excludes "mastered" instances from the backpropagation pass. By utilizing the stability of second-order loss differences as a mastery criterion, IES reduces backpropagation computations by 10–50% across various benchmarks while maintaining or improving model accuracy and transferability.

Introduction

In standard deep learning workflows, training continues until the entire model reaches a performance plateau on a validation set. However, this "one-size-fits-all" approach is inherently inefficient. Datasets are composed of a spectrum of samples: "easy" instances are learned rapidly, while "hard" instances require significantly more epochs to master.

Conventional training continues to perform expensive backpropagation on these already-learned samples until the very end of the training cycle. This leads to redundant computation and can potentially cause "over-memorization" of easy samples, which may hinder generalization. The challenge lies in identifying a mathematically consistent and computationally inexpensive way to decide when a specific instance has been mastered without requiring per-image hyperparameter tuning.

The IES Framework

Instance-dependent Early Stopping (IES) introduces a dynamic filtering mechanism that identifies mastered instances and excludes them from the gradient update process.

1. The Mastery Criterion

IES identifies mastered instances by monitoring the stability of their loss values. Rather than using raw loss—which varies significantly across different samples—IES evaluates the second-order difference ($\Delta^2 L_i$) of the loss over three consecutive epochs. If the "acceleration" of the loss change approaches zero, the model has effectively reached a plateau for that specific sample.

2. Unified Thresholding and Dynamic Filtering

Because second-order differences exhibit a much lower coefficient of variation than raw loss values, IES can utilize a single, unified threshold ($\delta$) across the entire dataset. In every epoch, the model performs a forward pass on the full dataset to calculate losses. It then identifies the mastered set based on the threshold, excludes them, and performs backpropagation only on the remaining "not-yet-mastered" instances.

3. Reversibility

To prevent catastrophic forgetting, the IES mechanism is fully reversible. If a previously mastered instance's loss begins to fluctuate again—exceeding the threshold due to changes in the model's weights from other samples—it is immediately re-included in the training process for subsequent backpropagation passes.

Experimental Evaluation

The researchers evaluated IES across a diverse range of computer vision benchmarks, including:

  • Image Classification: CIFAR-10, CIFAR-100, and ImageNet-1k.
  • Transfer Learning: Caltech-101 (using ImageNet-1k pretraining).
  • High-level Vision Tasks: Object detection (Faster R-CNN) and semantic segmentation (DeepLab v3) on PASCAL VOC 2007/2012.

Key Insights and Results

Computational Efficiency

IES demonstrated significant efficiency gains, reducing the number of instances requiring backpropagation by 10% to 50%. On major benchmarks like CIFAR and ImageNet, this translated to a 1.2x to 1.4x wall-time speedup in actual training duration. For complex pipelines like object detection, IES achieved ~14-20% savings in mini-batch processing with minimal performance impact.

Optimization and Generalization

By removing mastered samples, the average gradient norm of the remaining mini-batches increases. This allows the optimizer to focus its updates on samples that still require learning, accelerating the decrease of training loss. Furthermore, IES appears to help the model find "flatter" minima. Analysis showed that IES reduces the maximum eigenvalue of the Hessian matrix and Sharpness-Aware Minimization (SAM) values more quickly than standard training, a trait typically associated with better generalization.

Enhanced Transferability

Models trained with IES showed a surprising "free lunch" in transfer learning, averaging a 1.5% improvement on downstream tasks. This suggests that skipping redundant training on easy samples prevents the model from over-specializing on the source dataset, thereby preserving more generalizable features.

Discussion and Limitations

While IES provides a robust empirical framework for efficient training, several areas remain for future exploration:

  • Theoretical Foundations: While the second-order difference is empirically effective, a rigorous theoretical proof comparing it to other higher-order derivatives is currently lacking.
  • Label Noise: In datasets with high label noise (e.g., 40%), IES performance converges toward standard training. Because the model cannot find stable patterns in noisy data, samples rarely meet the mastery threshold, negating the computational savings.
  • Algorithmic Fairness: Preliminary tests on the CelebA dataset suggest IES might reduce disparity between groups, but the long-term impact of instance-level stopping on algorithmic bias requires further investigation.

Conclusion

Instance-dependent Early Stopping offers a pragmatic and effective way to reduce the computational footprint of deep learning. By focusing backpropagation on the samples that provide the most informative gradients, IES achieves faster training and better transferability without sacrificing accuracy.

Summary updated

BibTeX
@inproceedings{yuan2025instance,
  author = {Suqin Yuan and Runqi Lin and Lei Feng and Bo Han and Tongliang Liu},
  title = {{Instance-dependent Early Stopping}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=P42DbV2nuV},
}
Figure