Skip to main content
QUICK REVIEW

[Paper Review] Robustness to Augmentations as a Generalization metric

Sumukh Aithal K, Dhruva Kashyap|arXiv (Cornell University)|Jan 16, 2021
Domain Adaptation and Few-Shot LearningComputer Science19 references7 citations
TL;DR

This paper proposes a generalization metric for deep learning models based on their robustness to data augmentations, arguing that models robust to input perturbations generalize better. It computes a score by penalizing misclassifications on augmented inputs, with higher penalties for weak augmentations; the method achieved second place in the 'Predicting Generalization in Deep Learning' competition, demonstrating strong predictive power on CIFAR-10 and SVHN datasets.

ABSTRACT

Generalization is the ability of a model to predict on unseen domains and is a fundamental task in machine learning. Several generalization bounds, both theoretical and empirical have been proposed but they do not provide tight bounds .In this work, we propose a simple yet effective method to predict the generalization performance of a model by using the concept that models that are robust to augmentations are more generalizable than those which are not. We experiment with several augmentations and composition of augmentations to check the generalization capacity of a model. We also provide a detailed motivation behind the proposed method. The proposed generalization metric is calculated based on the change in the output of the model after augmenting the input. The proposed method was the first runner up solution for the NeurIPS competition on Predicting Generalization in Deep Learning.

Motivation & Objective

  • To address the challenge of predicting model generalization in deep learning, where existing metrics often overestimate performance.
  • To develop a practical, empirically grounded generalization metric that correlates strongly with real-world generalization ability.
  • To investigate whether robustness to data augmentations serves as a reliable proxy for generalization capacity.
  • To evaluate the effectiveness of various augmentations—individual and composited—on measuring model generalization.
  • To provide a simple yet effective metric that can be applied across different architectures and training schemes.

Proposed method

  • The method computes a generalization metric ϕ by evaluating model predictions on original and augmented inputs for each training sample.
  • For each input x, the model predicts y = arg max Pθ(y|x), and the same is done for the augmented input x′.
  • If the predicted class remains unchanged, the metric accumulates a penalty based on the difference in confidence scores: |max Pθ(y|x) − Pθ(y|x′)|.
  • If the predicted class changes, a fixed penalty λ is applied, with higher λ values for weaker augmentations (e.g., flip) and lower for stronger ones (e.g., Sobel filter).
  • The penalty λ is empirically tuned for each augmentation type, including combinations like flip + saturation.
  • The final metric aggregates penalties across all training samples, with lower (more negative) scores indicating poorer generalization.

Experimental results

Research questions

  • RQ1Can robustness to data augmentations serve as a reliable proxy for model generalization in deep neural networks?
  • RQ2How do different types of augmentations—weak (e.g., flip) vs. strong (e.g., Sobel filter)—affect the predictive power of the generalization metric?
  • RQ3Does composing multiple augmentations improve the metric’s ability to predict generalization performance?
  • RQ4How do penalty weights λ for different augmentations influence the metric’s performance on unseen data?
  • RQ5Can this metric outperform existing complexity-based generalization bounds in practice?

Key findings

  • The proposed metric achieved a public score of 41.8 and a private score of 10.6 on the competition leaderboard, ranking as the second-best solution.
  • Composition of augmentations, particularly flip + saturation with λ = 12, yielded the highest performance, indicating synergistic effects.
  • Higher penalty values for weak augmentations (e.g., flip with λ = 6) were more effective than for strong ones (e.g., Sobel with λ = 3), suggesting sensitivity to shape-preserving changes is more indicative of generalization.
  • The use of virtual adversarial perturbations (λv = 3) improved performance, indicating robustness to local perturbations is a strong generalization signal.
  • Cutout augmentation (λ = 2) showed a positive but moderate impact, while random erasing (λ = 0) had no effect, suggesting it may not be a strong indicator of generalization.
  • The metric demonstrated strong correlation with actual generalization, as validated on both CIFAR-10 and SVHN datasets with diverse model architectures and hyperparameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.