Robust Representation Learning through Explicit Environment Modeling

Yuli Slavutsky, David M. Blei
4/28/2026
stat.MLcs.LG

No confident code implementation found for this paper.

Abstract

We consider learning from labeled data collected across multiple environments, where the data distribution may vary across these environments. This problem is commonly approached from a causal perspective, seeking invariant representations that retain causal factors while discarding spurious ones.

Show full abstract

However, this framework assumes that the environment has no direct effect on the target. In contrast, we consider settings in which this assumption fails, but still aim to learn representations that support robust prediction on average across previously unseen environments. To this end, we study representations learned by explicitly modeling variation across environments and then marginalizing that variation out. We analyze the resulting representations and characterize when they are preferable to those learned by causal invariant-representation methods. We propose a concrete method based on generalized random-intercept models, a class of predictors in which such marginalization is possible, and study their generalization properties. Empirically, we show that these models outperform invariant-learning methods across a range of challenging settings.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{slavutsky2026robust,
  title  = {Robust Representation Learning through Explicit Environment Modeling},
  author = {Yuli Slavutsky and David M. Blei},
  year   = {2026},
  eprint = {2604.26128},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.26128v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.26128.svg)](https://codeofpaper.com/paper/2604.26128)

Discussion