cs.LGFeb 11, 2025

Supervised Contrastive Learning of Environment-Invariant Representations

Authors: Taro Makino, Ji Won Park, Natasa Tagasovska, Takamasa Kudo, Paula Coelho, Jan-Christian Huetter, Heming Yao, Burkhard Hoeckendorf, 

Organizations: Center for Data Science, New York University · Prescient Design, Genentech · Research and Early Development (gRED), Genentech · Biology Research — AI Development (BRAID), Genentech · 

Abstract

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 zcz_c while regularizing its environment-related structure, together with an environment-supervised auxiliary representation zsz_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 zcz_c preserves biological signal while becoming less predictive of inter-well variation.

Figures & tables

Appendix figures & tables26 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Robust Representation Learning through Explicit Environment Modeling

    Apr 28, 2026Yuli Slavutsky, David M. BleiRepresentation LearningDomain Generalization

  2. IConE: Batch Independent Collapse Prevention for Self-Supervised Representation Learning

    Mar 16, 2026Konstantinos Almpanakis, Anna KreshukSelf-Supervised LearningRepresentation Collapse