[Paper Review] ID and OOD Performance Are Sometimes Inversely Correlated on Real-world Datasets
This paper demonstrates that in-distribution (ID) and out-of-distribution (OOD) performance can be inversely correlated in real-world datasets—challenging the common assumption of a positive correlation. Using empirical analysis and theoretical modeling, it shows that models optimized solely for ID performance may underperform on OOD generalization, especially when spurious features dominate the training distribution.
Several studies have compared the in-distribution (ID) and out-of-distribution (OOD) performance of models in computer vision and NLP. They report a frequent positive correlation and some surprisingly never even observe an inverse correlation indicative of a necessary trade-off. The possibility of inverse patterns is important to determine whether ID performance can serve as a proxy for OOD generalization capabilities. This paper shows with multiple datasets that inverse correlations between ID and OOD performance do happen in real-world data - not only in theoretical worst-case settings. We also explain theoretically how these cases can arise even in a minimal linear setting, and why past studies could miss such cases due to a biased selection of models. Our observations lead to recommendations that contradict those found in much of the current literature. - High OOD performance sometimes requires trading off ID performance. - Focusing on ID performance alone may not lead to optimal OOD performance. It may produce diminishing (eventually negative) returns in OOD performance. - In these cases, studies on OOD generalization that use ID performance for model selection (a common recommended practice) will necessarily miss the best-performing models, making these studies blind to a whole range of phenomena.
Motivation & Objective
- To investigate whether inverse correlations between ID and OOD performance occur in real-world datasets, contrary to prior assumptions.
- To explain why past studies may have systematically missed such inverse patterns due to biased model selection.
- To provide theoretical and empirical evidence that inverse correlations arise from model misspecification and spurious feature reliance.
- To challenge the widespread practice of using ID performance as a proxy for OOD generalization in model selection.
- To recommend revised methodologies for OOD generalization research that account for potential trade-offs between ID and OOD performance.
Proposed method
- Empirically evaluated ID and OOD performance across multiple real-world datasets, including Camelyon17 and others from the OOD benchmarking literature.
- Trained models with varying numbers of epochs and random seeds to assess performance variation across optimization trajectories.
- Applied a diversity-inducing regularizer to the ERM objective to generate a broader set of model solutions and reveal inverse correlations.
- Constructed a minimal theoretical linear model to demonstrate how inverse correlations emerge from the coexistence of robust and spurious features.
- Analyzed the impact of distribution shift magnitude on ID/OOD performance patterns, showing that inverse correlations emerge under specific shift conditions.
- Evaluated the limitations of existing OOD benchmarking practices, particularly those that discard models with suboptimal ID performance.
Experimental results
Research questions
- RQ1Can inverse correlations between in-distribution and out-of-distribution performance be observed in real-world datasets, beyond theoretical worst-case scenarios?
- RQ2Why have past studies failed to observe inverse correlations despite their theoretical possibility?
- RQ3What underlying mechanism—specifically, model misspecification—explains the emergence of inverse ID/OOD performance patterns?
- RQ4How do different magnitudes of distribution shift affect the relationship between ID and OOD performance?
- RQ5To what extent do common OOD benchmarking practices, such as selecting only top-ID models, invalidate the detection of optimal OOD-performing models?
Key findings
- Inverse correlations between ID and OOD performance were empirically observed on Camelyon17 and in 4 out of 5 additional datasets examined in the appendix.
- The inverse correlation pattern was more pronounced when models were trained with a diversity-inducing regularizer, suggesting that solution space exploration reveals hidden trade-offs.
- Theoretical analysis showed that inverse correlations arise when robust and spurious features coexist in the data, and the ERM objective favors spurious features at the expense of OOD generalization.
- Past studies may have missed inverse correlations due to biased model selection—particularly discarding models with suboptimal ID performance—thereby excluding potentially high-performing OOD models.
- The study demonstrates that focusing exclusively on ID performance for model selection can lead to diminishing or even negative returns in OOD performance.
- The findings invalidate common recommendations in the literature that treat ID performance as a reliable proxy for OOD generalization, especially in settings with strong spurious correlations.
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.