ZIN: When and How to Learn Invariance Without Environment Partition?
About
It is commonplace to encounter heterogeneous data, of which some aspects of the data distribution may vary but the underlying causal mechanisms remain constant. When data are divided into distinct environments according to the heterogeneity, recent invariant learning methods have proposed to learn robust and invariant models based on this environment partition. It is hence tempting to utilize the inherent heterogeneity even when environment partition is not provided. Unfortunately, in this work, we show that learning invariant features under this circumstance is fundamentally impossible without further inductive biases or additional information. Then, we propose a framework to jointly learn environment partition and invariant representation, assisted by additional auxiliary information. We derive sufficient and necessary conditions for our framework to provably identify invariant features under a fairly general setting. Experimental results on both synthetic and real world datasets validate our analysis and demonstrate an improved performance of the proposed framework over existing methods. Finally, our results also raise the need of making the role of inductive biases more explicit in future works, when considering learning invariant models without environment partition. Codes are available at https://github.com/linyongver/ZIN_official .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Classification | Temporal heterogeneity synthetic datasets | Mean Accuracy87.5 | 30 | |
| Smiling Classification | CelebA (test) | Acc76.29 | 18 | |
| House price prediction | Kaggle House Price Mean (test) | MSE0.3339 | 8 | |
| House price prediction | Kaggle House Price Worst (test) | MSE0.4815 | 8 | |
| Smiling Classification | CelebA (train) | Accuracy90.62 | 8 | |
| House price prediction | Kaggle House Price (train) | MSE0.2275 | 8 | |
| Land Cover Classification | Landcover OOD (test) | Accuracy66.06 | 6 | |
| Land Cover Classification | Landcover IID (test) | Accuracy72.56 | 6 | |
| Synthetic Data Classification | Spatial Heterogeneity Synthetic (ps(r)=(0.999, 0.999, 0.7, 0.7), pv=0.9) (test) | Mean Accuracy88.66 | 5 | |
| Synthetic Data Classification | Spatial Heterogeneity ps(r)=(0.999, 0.999, 0.7, 0.7), pv=0.8 Synthetic (test) | Mean Accuracy (Test)79.16 | 5 |