[Paper Review] Can Subnetwork Structure be the Key to Out-of-Distribution Generalization?
This paper proposes that subnetwork structure is critical for out-of-distribution (OOD) generalization, introducing the functional lottery ticket hypothesis: a subnetwork within a full model can achieve better OOD performance than the full network. The authors develop Modular Risk Minimization (MRM), a structure-learning method that identifies such robust subnetworks, improving OOD accuracy while being compatible with existing OOD regularization techniques.
Can models with particular structure avoid being biased towards spurious correlation in out-of-distribution (OOD) generalization? Peters et al. (2016) provides a positive answer for linear cases. In this paper, we use a functional modular probing method to analyze deep model structures under OOD setting. We demonstrate that even in biased models (which focus on spurious correlation) there still exist unbiased functional subnetworks. Furthermore, we articulate and demonstrate the functional lottery ticket hypothesis: full network contains a subnetwork that can achieve better OOD performance. We then propose Modular Risk Minimization to solve the subnetwork selection problem. Our algorithm learns the subnetwork structure from a given dataset, and can be combined with any other OOD regularization methods. Experiments on various OOD generalization tasks corroborate the effectiveness of our method.
Motivation & Objective
- To investigate whether model structure, particularly subnetworks, can mitigate spurious correlations and improve OOD generalization.
- To determine if a subnetwork within a biased full model can still capture invariant, non-spurious features.
- To develop a practical method for subnetwork selection that enhances OOD performance without relying on OOD data during training.
- To demonstrate that structural inductive bias—via learned subnetworks—can outperform full network capacity in OOD settings.
- To combine the proposed method with existing OOD regularization techniques for consistent performance gains.
Proposed method
- Propose the functional lottery ticket hypothesis: a subnetwork exists within a full model that achieves better OOD performance than the full network when trained in isolation.
- Introduce Modular Risk Minimization (MRM), a method that learns a subnetwork structure by optimizing a risk objective over modular components.
- MRM uses a differentiable sparsity mask to identify and prune non-invariant, spurious features, effectively zeroing out parts of the model that rely on shortcut correlations.
- The method is compatible with any OOD regularization objective (e.g., IRM), allowing it to be combined with existing approaches.
- The algorithm performs end-to-end training with a structured sparsity regularizer to promote learning of invariant subnetworks.
- Subnetworks are evaluated via in-distribution and out-of-distribution accuracy, with performance compared against full models and oracle subnetworks.
Experimental results
Research questions
- RQ1Can a subnetwork within a model trained with ERM still capture invariant features despite the model's overall bias toward spurious correlations?
- RQ2Does a subnetwork exist that can generalize better than the full model under distribution shift, even when the full model is biased?
- RQ3Can a structure-learning method like MRM identify such robust subnetworks without requiring access to OOD data during training?
- RQ4How does the structural inductive bias of a subnetwork compare to the inductive bias of a full model in terms of OOD generalization?
- RQ5To what extent can MRM improve performance when combined with other OOD regularization methods such as IRM?
Key findings
- Even models trained with ERM that exploit spurious correlations contain functional subnetworks that are invariant and less biased.
- The functional lottery ticket hypothesis is empirically validated: a subnetwork selected via MRM achieves higher OOD accuracy than the full network on FullColoredMNIST.
- MRM significantly improves OOD generalization performance across multiple OOD benchmark tasks, outperforming full models and standard baselines.
- When combined with IRM, MRM further boosts performance, demonstrating compatibility and synergy with existing OOD regularization methods.
- The effectiveness of MRM is robust across different architectures and datasets, with performance gains attributed to structural inductive bias rather than increased capacity.
- Proper sparsity levels in the subnetwork structure are critical—both too much and too little pruning degrade OOD performance, indicating a need for structured learning.
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.