mlsanityData to 14 Oct 2026

Predicting Out-of-Domain Generalization with Neighborhood Invariance

arXiv 2207.02093 ↗First posted 5 Jul 2022cs.LG stat.MLcited by 4

Not on the map. Why?

Abstract (arXiv)

Developing and deploying machine learning models safely depends on the ability to characterize and compare their abilities to generalize to new environments. Although recent work has proposed a variety of methods that can directly predict or theoretically bound the generalization capacity of a model, they rely on strong assumptions such as matching train/test distributions and access to model gradients. In order to characterize generalization when these assumptions are not satisfied, we propose neighborhood invariance, a measure of a classifier's output invariance in a local transformation neighborhood. Specifically, we sample a set of transformations and given an input test point, calculate the invariance as the largest fraction of transformed points classified into the same class. Crucially, our measure is simple to calculate, does not depend on the test point's true label, makes no assumptions about the data distribution or model, and can be applied even in out-of-domain (OOD) settings where existing methods cannot, requiring only selecting a set of appropriate data transformations. In experiments on robustness benchmarks in image classification, sentiment analysis, and natural language inference, we demonstrate a strong and robust correlation between our neighborhood invariance measure and actual OOD generalization on over 4,600 models evaluated on over 100 unique train/test domain pairs.

Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 81 of its 106 references that are in the map. First posted on arXiv 5 Jul 2022.

Builds on

81 of 106 references.

References · 81

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  4. 2020Language Models are Few-Shot Learnerscited by 32,419
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  6. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  8. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
  9. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  10. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  11. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
  12. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
38 more
  1. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,546
  2. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
  3. 2019Invariant Risk Minimizationcited by 1,854
  4. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  5. 2016Understanding deep learning requires rethinking generalizationcited by 1,674
  6. 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,515
  7. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
  8. 2019Natural Adversarial Examplescited by 1,408
  9. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
  10. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,352
  11. 2017Random Erasing Data Augmentationcited by 1,239
  12. 2014Convolutional Neural Networks for Sentence Classificationcited by 1,127
  13. 2019Unsupervised Data Augmentation for Consistency Trainingcited by 1,060
  14. 2020In Search of Lost Domain Generalizationcited by 1,054
  15. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
  16. 2016Practical Black-Box Attacks against Machine Learningcited by 903
  17. 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 807
  18. 2021Robust fine-tuning of zero-shot modelscited by 797
  19. 2015Improving Neural Machine Translation Models with Monolingual Datacited by 788
  20. 2017Spectrally-normalized margin bounds for neural networkscited by 686
  21. 2013Network In Networkcited by 605
  22. 2017Exploring Generalization in Deep Learningcited by 600
  23. 2015Causal inference using invariant prediction: identification and confidence intervalscited by 536
  24. 2017Computing Nonvacuous Generalization Bounds for Deep (Stochastic) Neural Networks with Many More Parameters than Training Datacited by 533
  25. 2019Fantastic Generalization Measures and Where to Find Themcited by 513
  26. 2017Regularizing Neural Networks by Penalizing Confident Output Distributionscited by 464
  27. 2020Measuring Robustness to Natural Distribution Shifts in Image Classificationcited by 454
  28. 2018Learning and Generalization in Overparameterized Neural Networks, Going Beyond Two Layerscited by 340
  29. 2019Bridging Theory and Algorithm for Domain Adaptationcited by 332
  30. 2017A PAC-Bayesian Approach to Spectrally-Normalized Margin Bounds for Neural Networkscited by 314
  31. 2021Provable Guarantees for Self-Supervised Deep Learning with Spectral Contrastive Losscited by 313
  32. 2015Norm-Based Capacity Control in Neural Networkscited by 299
  33. 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
  34. 2021Knowledge distillation: A good teacher is patient and consistentcited by 259
  35. 2021Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalizationcited by 249
  36. 2018Do CIFAR-10 Classifiers Generalize to CIFAR-10?cited by 200
  37. 2017Spectral Norm Regularization for Improving the Generalizability of Deep Learningcited by 182
  38. 2018Adaptivity of deep ReLU network for learning in Besov and mixed smooth Besov spaces: optimal rate and curse of dimensionalitycited by 162

50 most cited of 81 All 81 (JSON)

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 2; 2025: 1.

4 papers.