On the Strong Correlation Between Model Invariance and Generalization
Weijian Deng, Stephen Gould, Liang Zheng
Abstract
Generalization and invariance are two essential properties of any machine learning model. Generalization captures a model's ability to classify unseen data while invariance measures consistency of model predictions on transformations of the data. Existing research suggests a positive relationship: a model generalizing well should be invariant to certain visual factors. Building on this qualitative implication we make two contributions. First, we introduce effective invariance (EI), a simple and reasonable measure of model invariance which does not rely on image labels. Given predictions on a test image and its transformed version, EI measures how well the predictions agree and with what level of confidence. Second, using invariance scores computed by EI, we perform large-scale quantitative correlation studies between generalization and invariance, focusing on rotation and grayscale transformations. From a model-centric view, we observe generalization and invariance of different models exhibit a strong linear relationship, on both in-distribution and out-of-distribution datasets. From a dataset-centric view, we find a certain model's accuracy and invariance linearly correlated on different test sets. Apart from these major findings, other minor but interesting insights are also discussed.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Confidence and Dispersity Speak: Characterizing Prediction Matrix for Unsupervised Accuracy Estimation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Confidence and Dispersity Speak: Characterizing Prediction Matrix for Unsupervised Accuracy Estimation cites A ConvNet for the 2020s
- Confidence and Dispersity Speak: Characterizing Prediction Matrix for Unsupervised Accuracy Estimation cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- A ConvNet for the 2020s cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- A ConvNet for the 2020s cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- A ConvNet for the 2020s cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Online GNN Evaluation Under Test-time Graph Distribution Shifts cites GNNEvaluator: Evaluating GNN Performance On Unseen Graphs Without Labels
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Contrastive Tuning: A Little Help to Make Masked Autoencoders Forget cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
Cited by top-tier papers12
- GNNEvaluator: Evaluating GNN Performance On Unseen Graphs Without LabelsXin Zheng, Miao Zhang, Chunyang Chen, Soheila Molaei et al.NeurIPS 2023 · 30 citations
- Contrastive Tuning: A Little Help to Make Masked Autoencoders ForgetJohannes Lehner, Benedikt Alkin, Andreas Fürst, Elisabeth Rumetshofer et al.AAAI 2024 · 28 citations
- Confidence and Dispersity Speak: Characterizing Prediction Matrix for Unsupervised Accuracy EstimationWeijian Deng, Yumin Suh, Stephen Gould, Liang ZhengICML 2023 · 23 citations
- Energy-based Automated Model EvaluationRu Peng, Heming Zou, Haobo Wang, Yawen Zeng et al.ICLR 2024 · 18 citations
- Online GNN Evaluation Under Test-time Graph Distribution ShiftsXin Zheng, Dongjin Song, Qingsong Wen, Bo Du et al.ICLR 2024 · 16 citations
Builds on40
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- A ConvNet for the 2020sZhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer et al.CVPR 2022 · 6,782 citations
- CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and ConfidenceKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang et al.NeurIPS 2020 · 5,129 citations
Related papers
- Grounding inductive biases in natural images: invariance stems from variations in dataDiane Bouchacourt, Mark Ibrahim, Ari S. MorcosNeurIPS 2021 · 32 citations
- In What Ways Are Deep Neural Networks Invariant and How Should We Measure This?Henry Kvinge, Tegan Emerson, Grayson Jorgenson, Scott Vasquez et al.NeurIPS 2022 · 15 citations
- The Lie Derivative for Measuring Learned EquivarianceNate Gruver, Marc Anton Finzi, Micah Goldblum, Andrew Gordon WilsonICLR 2023 · 6 citations
- Background Invariance Testing According to Semantic ProximityZukang Liao, Min ChenICCV 2025
- Provably Strict Generalisation Benefit for Equivariant ModelsBryn Elesedy, Sheheryar ZaidiICML 2021 · 100 citations
