21
3

Compositional Risk Minimization

Abstract

Compositional generalization is a crucial step towards developing data-efficient intelligent machines that generalize in human-like ways. In this work, we tackle a challenging form of distribution shift, termed compositional shift, where some attribute combinations are completely absent at training but present in the test distribution. This shift tests the model's ability to generalize compositionally to novel attribute combinations in discriminative tasks. We model the data with flexible additive energy distributions, where each energy term represents an attribute, and derive a simple alternative to empirical risk minimization termed compositional risk minimization (CRM). We first train an additive energy classifier to predict the multiple attributes and then adjust this classifier to tackle compositional shifts. We provide an extensive theoretical analysis of CRM, where we show that our proposal extrapolates to special affine hulls of seen attribute combinations. Empirical evaluations on benchmark datasets confirms the improved robustness of CRM compared to other methods from the literature designed to tackle various forms of subpopulation shifts.

View on arXiv
@article{mahajan2025_2410.06303,
  title={ Compositional Risk Minimization },
  author={ Divyat Mahajan and Mohammad Pezeshki and Charles Arnal and Ioannis Mitliagkas and Kartik Ahuja and Pascal Vincent },
  journal={arXiv preprint arXiv:2410.06303},
  year={ 2025 }
}
Comments on this paper