Real-world datasets often combine data collected under different experimental conditions. This yields larger datasets, but can also introduce environment-associated correlations that make it difficult to model the phenomena of interest. We address this with Supervised Contrastive Invariance Learning (SCIL), which learns a task-supervised representation $z_c$ while regularizing its environment-related structure, together with an environment-supervised auxiliary representation $z_s$. The contribution of the auxiliary representation to the reported results remains unresolved. SCIL is based purely on Supervised Contrastive Learning and uses a single hyperparameter $α$ to control the strength of environment regularization. We study this regularization under distribution shift with Colored MNIST and Camelyon17-WILDS, where increasing $α$ decreases in-distribution validation accuracy and increases held-out test accuracy. We also evaluate SCIL on batch correction for 26 million Optical Pooled Screening images, where $z_c$ preserves biological signal while becoming less predictive of inter-well variation.
翻译:暂无翻译