Re-assessing accuracy degradation: a framework for understanding DNN behavior on similar-but-non-identical test datasets

Esla Timothy Anzaku, Haohan Wang, Ajiboye Babalola, Arnout Van Messem, Wesley De NeveMachine Learning 2025

Introduction

In computer vision, the ability of Deep Neural Networks (DNNs) to generalize to new data is a primary metric of success. Ideally, a model trained on a specific distribution should maintain its performance on "replicated" datasets—newly collected data intended to be identical to the original test set. However, empirical studies have consistently shown a significant "accuracy gap," where performance drops by as much as 15% on replicated sets like ImageNetV2. This phenomenon has sparked debate over whether models are "overfit" to specific test sets or if the new data is inherently more difficult. This paper proposes that this gap is largely an artifact of evaluation metrics that ignore predictive uncertainty.

Methodology: The Matching Framework

The authors introduce a novel evaluation framework that accounts for a model's confidence levels. Instead of a direct comparison of aggregate accuracy, they employ a matching strategy inspired by causal inference to compare "apples to apples."

The proposed matching strategy partitions source and target datasets into matched subsets based on similar confidence scores and predicted labels.

The algorithm follows three main steps:

  1. Confidence Estimation: The maximum softmax probability is used as a proxy for model confidence.
  2. Sub-population Matching: Datapoints from the Source ($D_{src}$) and Target ($D_{tgt}$) datasets are paired if they share the same predicted label and have confidence scores within a tolerance $\epsilon$.
  3. Matched Accuracy Calculation: Accuracy is recalculated specifically for these matched subsets. If the gap narrows, it indicates that the model's behavior is consistent, and the original drop was due to a higher concentration of "hard" (low-confidence) samples in the target set.

Experimental Setup

The study evaluates 564 pre-trained DNN models across several benchmark pairs, including CIFAR-10 vs. CIFAR-10.1/10.2 and ImageNetV1 vs. ImageNetV2. These "V2" datasets were designed to replicate original data collection processes as closely as possible, providing a rigorous test for generalization.

Results and Key Insights

The core finding is that models are remarkably consistent in their uncertainty. When accuracy drops on a new dataset, it is almost always accompanied by a corresponding increase in predictive uncertainty.

Scatter plot showing the linear relationship between accuracy and confidence for 286 models on ImageNetV1 and ImageNetV2.

Key observations include:

  • Gap Reduction: By applying the matching framework, the perceived accuracy gap decreased by an average of 60.83% for CIFAR-10.1 and 64.05% for ImageNetV2. For instance, the BEiT model's gap dropped from 7.99% to just 2.58%.
  • Calibration Stability: The relationship between accuracy and confidence remains stable across datasets. Models are not failing randomly; they are correctly signaling when a sample is difficult or further from the training distribution.
  • Hard Sample Bias: "Unmatched" points in target datasets consistently exhibit higher entropy, suggesting these replicated sets simply contain more samples that fall into the model's "uncertainty zones."

Conclusion and Limitations

This research suggests that DNNs possess a previously unrecognized level of adaptability and robustness. The "accuracy drop" is often a reflection of dataset composition rather than model fragility. However, the authors note that softmax is a limited proxy for uncertainty and suggest that future work should incorporate more advanced Bayesian techniques. Additionally, while the framework identifies shifts, it does not yet explain the underlying causes (e.g., lighting or class sub-populations).

Summary updated

BibTeX
@article{anzaku2025re,
  author = {Esla Timothy Anzaku and Haohan Wang and Ajiboye Babalola and Arnout Van Messem and Wesley De Neve},
  title = {{Re-assessing accuracy degradation: a framework for understanding DNN behavior on similar-but-non-identical test datasets}},
  journal = {Machine Learning},
  year = {2025},
  doi = {10.1007/s10994-024-06693-x},
}
Figure