[Paper Review] Detecting Overfitting via Adversarial Examples
This paper proposes a non-intrusive statistical test to detect model overfitting to a test set using adversarial examples generated from the original test data. By comparing the standard test error rate with an importance-weighted adversarial error estimate, the method detects overfitting if the two differ significantly; applied to ImageNet, it found no evidence of overfitting to the test set, consistent with other recent findings.
The repeated community-wide reuse of test sets in popular benchmark problems raises doubts about the credibility of reported test-error rates. Verifying whether a learned model is overfitted to a test set is challenging as independent test sets drawn from the same data distribution are usually unavailable, while other test sets may introduce a distribution shift. We propose a new hypothesis test that uses only the original test data to detect overfitting. It utilizes a new unbiased error estimate that is based on adversarial examples generated from the test data and importance weighting. Overfitting is detected if this error estimate is sufficiently different from the original test error rate. We develop a specialized variant of our test for multiclass image classification, and apply it to testing overfitting of recent models to the popular ImageNet benchmark. Our method correctly indicates overfitting of the trained model to the training set, but is not able to detect any overfitting to the test set, in line with other recent work on this topic.
Motivation & Objective
- To address the growing concern that model performance on benchmark test sets may be compromised by overfitting due to repeated reuse.
- To develop a non-intrusive statistical test that does not require protocol changes or external data, relying only on the original test set.
- To create an unbiased, low-variance error estimator based on adversarial examples to detect model-test set dependence.
- To evaluate the method on real-world benchmarks, particularly ImageNet, to determine whether state-of-the-art models are overfitted to the test set.
- To explore the feasibility of using adversarial perturbations with calculable importance weights for generalization testing in vision and beyond.
Proposed method
- Proposes a new hypothesis test comparing the standard test error rate with an importance-weighted adversarial error estimate derived from perturbed test examples.
- Uses adversarial examples crafted via small translations (e.g., (5,-5)) to generate perturbations that preserve data density and allow for importance weight computation.
- Applies importance weighting to correct for covariate shift introduced by adversarial perturbations, ensuring the error estimator remains unbiased under model-test set independence.
- Employs a pairwise independence test using the discrepancy between standard and adversarial error estimates to reject the null hypothesis of independence.
- Extends the method to model architecture-level testing by combining results across multiple independently trained models (N-model test).
- Uses specialized AEGs (Adversarial Example Generators) such as 'strongest', 'nearest', and random baselines to evaluate robustness and power of the test.
Experimental results
Research questions
- RQ1Can a statistical test detect overfitting to a test set without requiring independent test data or protocol enforcement?
- RQ2Is the proposed adversarial error estimator unbiased and more sensitive to overfitting than standard error estimates?
- RQ3Does the method detect overfitting in state-of-the-art ImageNet models, particularly when the test set is reused?
- RQ4How do different adversarial attack types (e.g., strongest vs. smallest perturbations) affect the test's power and reliability?
- RQ5Can the method be generalized beyond image classification to other machine learning tasks like NLP or speech recognition?
Key findings
- The method successfully detected overfitting between a model and the ImageNet training set, with a p-value of 0.000006 (99.9994% confidence) when using the full training set and the strongest adversarial perturbations.
- The test failed to reject independence between the model and the ImageNet test set, yielding a p-value of 0.96, indicating no detectable overfitting to the test set.
- For ResNet-50, even with 120 independently trained models, the N-model test produced a p-value of 1.0, further supporting the absence of test set overfitting.
- The 'strongest perturbation' AEG was effective in detecting overfitting to training data, while weaker or random perturbations were not, highlighting the importance of perturbation strength.
- The method’s performance was outperformed by basic confidence interval comparison when applied to the training set, indicating the superiority of the proposed test design.
- The results align with other recent studies suggesting that overfitting to the ImageNet test set is minimal, likely due to the high computational cost and limited number of model architectures developed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.