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.

Cite

Text

Mahajan et al. "Compositional Risk Minimization." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Mahajan et al. "Compositional Risk Minimization." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/mahajan2025icml-compositional/)

BibTeX

@inproceedings{mahajan2025icml-compositional,
  title     = {{Compositional Risk Minimization}},
  author    = {Mahajan, Divyat and Pezeshki, Mohammad and Arnal, Charles and Mitliagkas, Ioannis and Ahuja, Kartik and Vincent, Pascal},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {42503-42553},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/mahajan2025icml-compositional/}
}