Underspecification Presents Challenges for Credibility in Modern Machine Learning

Alexander D'Amour, Katherine A. Heller, Dan Moldovan, Ben Adlam, Babak Alipanahi, Alex Beutel, Christina Chen, Jonathan Deaton, Jacob Eisenstein, Matthew D. Hoffman, Farhad Hormozdiari, Neil Houlsby, Shaobo Hou, Ghassen Jerfel, Alan Karthikesalingam, Mario Lucic, Yi-An Ma, Cory Y. McLean, Diana Mincu, Akinori Mitani, Andrea Montanari, Zachary Nado, Vivek Natarajan, Christopher Nielson, Thomas F. Osborne, Rajiv Raman, Kim Ramasamy, Rory Sayres, Jessica Schrouff, Martin Seneviratne, Shannon Sequeira, Harini Suresh, Victor Veitch, Max Vladymyrov, Xuezhi Wang, Kellie Webster, Steve Yadlowsky, Taedong Yun, Xiaohua Zhai, D. SculleyJMLR 2022

TL;DR

Modern machine learning models can fail unexpectedly in real-world deployment, even when performing well on standard test sets. This paper argues that "underspecification" in ML pipelines—where many different models can achieve similar performance on training data—is a key culprit, leading to unpredictable behavior in deployment. The authors demonstrate this across various domains, highlighting the need for more robust evaluation methods.

What Problem Does This Paper Address?

Machine learning (ML) systems are increasingly deployed in critical real-world applications, yet they often exhibit unexpected and poor behavior when moved from the lab to practice. While issues like "structural mismatch" (where the training data fundamentally differs from deployment data) are well-studied, this paper focuses on a subtler problem: underspecification. This occurs when an ML pipeline, despite having a fixed training dataset, model architecture, and validation procedure, can produce multiple distinct predictors that all perform equally well on the standard i.i.d. (independent and identically distributed) test set. The core problem is that these seemingly equivalent predictors can behave very differently in deployment, leading to instability and a lack of credibility. The authors aim to demonstrate that this underspecification is a widespread issue with significant practical implications.

Methods

The authors' core methodology involves creating ensembles of models trained with identical pipelines but differing only in minor, often randomized, aspects (like the random seed). They then evaluate these ensembles on "stress tests"—specifically designed evaluations that probe model behavior beyond standard i.i.d. performance. By observing whether these stress test performances vary significantly across models that have equivalent i.i.d. performance, they identify underspecification. This approach is applied across various domains, from simple simulated models to complex deep learning pipelines. They also employ theoretical analysis, particularly with random feature models, to mathematically characterize the sensitivity of models to arbitrary choices during training.

Datasets

The paper utilizes a variety of datasets across different domains:

  • Computer Vision: ImageNet (for training and i.i.d. evaluation), ImageNet-C and ObjectNet (for stress tests).
  • Medical Imaging: Retinal fundus images from EyePACS and Indian hospitals (for diabetic retinopathy prediction), clinical skin images (for skin condition classification).
  • Natural Language Processing: STS-B benchmark (for semantic textual similarity), OntoNotes dataset (for pronoun resolution), MultiNLI training set (for natural language inference), Wikipedia and BookCorpus (for BERT pretraining), StereoSet (for stereotype bias).
  • Clinical Risk Prediction: Electronic Health Records (EHR) data from the US Department of Veterans Affairs (for AKI prediction).
  • Genomics: UK Biobank data (for polygenic risk scores).

No new benchmarks were introduced; instead, existing datasets and stress tests were used to demonstrate the phenomenon of underspecification.

Key Insights and Ideas

  • Underspecification is a distinct failure mode: It's not just about structural mismatch; even when training and deployment distributions are similar, underspecified pipelines can lead to unpredictable model behavior.
  • Random seeds matter (a lot): Minor changes in random seeds during training can lead to models with substantively different real-world behaviors, even if their i.i.d. performance remains nearly identical. This highlights the arbitrary nature of model selection in underspecified pipelines.
  • Stress tests are crucial for credibility: Standard i.i.d. evaluations are insufficient to guarantee reliable deployment. Stress tests that probe specific behavioral requirements are essential for uncovering underspecification-induced failures.
  • Scaling doesn't automatically fix underspecification: Even large, state-of-the-art models (like the BiT models in computer vision) can exhibit underspecification, suggesting that simply increasing model size or data is not a panacea.
  • Marginalization (averaging models) isn't always the answer: While averaging models can improve iid performance, it might not resolve issues arising from underspecification if some models in the ensemble have poor stress test performance. Model selection might be more appropriate in such cases.

Key Results

  • Across computer vision, medical imaging, NLP, EHR-based prediction, and genomics, the authors found evidence of underspecification.
  • In computer vision, models trained with different random seeds showed significantly different performance on corrupted ImageNet-C data (variation an order of magnitude larger than i.i.d. performance variation).
  • In NLP, pretraining random seeds for BERT models led to substantial differences in stereotypical associations (e.g., gender bias) as measured by StereoSet, even when i.i.d. performance was similar.
  • In clinical risk prediction (AKI), models showed sensitivity to operational signals like time of day and lab order patterns, with different models exhibiting varying reliance on these signals.
  • In genomics, different choices of feature representatives for polygenic risk scores led to highly variable transfer performance to "non-British" populations, despite comparable performance on British test sets.

Limitations and Future Work

  • Conservative exploration of F*: The authors acknowledge that their experimental protocol (perturbing random seeds) is a conservative indicator of underspecification and does not exhaustively explore the space of validation-equivalent predictors (F*). More systematic methods for exploring loss landscapes and sensitivity analysis are needed.
  • Application-specific stress tests: Developing effective stress tests requires domain knowledge and careful consideration of specific application requirements, which can be challenging to standardize.
  • Resolving underspecification: The paper suggests that underspecification can be resolved by specifying additional criteria for model selection. Future work could focus on developing flexible frameworks for expressing application-specific requirements and constraints.
  • Trade-offs with i.i.d. generalization: The authors hypothesize that imposing constraints to resolve underspecification might not necessarily trade off with i.i.d. generalization, especially when failures are driven by underspecification rather than structural conflict. This is an area for further investigation.

Summary updated

BibTeX
@article{damour2022underspecification,
  author = {Alexander D'Amour and Katherine A. Heller and Dan Moldovan and Ben Adlam and Babak Alipanahi and Alex Beutel and Christina Chen and Jonathan Deaton and Jacob Eisenstein and Matthew D. Hoffman and Farhad Hormozdiari and Neil Houlsby and Shaobo Hou and Ghassen Jerfel and Alan Karthikesalingam and Mario Lucic and Yi-An Ma and Cory Y. McLean and Diana Mincu and Akinori Mitani and Andrea Montanari and Zachary Nado and Vivek Natarajan and Christopher Nielson and Thomas F. Osborne and Rajiv Raman and Kim Ramasamy and Rory Sayres and Jessica Schrouff and Martin Seneviratne and Shannon Sequeira and Harini Suresh and Victor Veitch and Max Vladymyrov and Xuezhi Wang and Kellie Webster and Steve Yadlowsky and Taedong Yun and Xiaohua Zhai and D. Sculley},
  title = {{Underspecification Presents Challenges for Credibility in Modern Machine Learning}},
  journal = {J. Mach. Learn. Res.},
  year = {2022},
  url = {https://openreview.net/forum?id=RDfV186Ky0},
}
Figure