논문 해설
Compositional Risk Minimization
구성적 위험 최소화
- 연구 문제 학습에 없던 속성 조합이 테스트에만 나타나는 구성 분포 이동에서 판별 분류기가 새 조합으로 일반화할 수 있는지를 다룹니다.
- 연구 방법 가법 에너지 분류기를 먼저 학습하고, 테스트 사전확률과 학습 데이터만으로 계산한 외삽 편향을 적용하는 CRM을 제안합니다.
- 주요 결과 여러 구성 분포 이동 벤치마크의 평균 결과에서 CRM은 WGA 기준으로 기준선보다 우세하거나 경쟁력이 있다고 보고됩니다. 외삽 편향을 학습된 편향으로 바꾸면 WGA가 크게 낮아집니다.
학습에 없던 속성 조합으로의 일반화 문제
이 논문은 입력마다 여러 범주형 속성이 붙어 있고, 학습 데이터에는 가능한 속성 조합 중 일부만 나타나는 상황을 다룹니다. 테스트 데이터에는 학습에서 보지 못한 새 조합이 나타납니다. 저자들은 이 분포 변화를 compositional shift라고 부릅니다. 원문은 Waterbirds를 예로 듭니다. 학습 그룹은 (WB,W), (LB,L), (LB,W)이고 테스트는 여기에 없던 (WB,L)을 포함합니다. 이 설정은 그룹별 데이터 양이 불균형한 기존 부분집단 이동 문제와 구분됩니다. 여기서는 일부 그룹의 데이터가 학습에서 완전히 빠진다는 점이 핵심입니다. 이 경우 ERM으로 학습한 판별 모델은 학습 사전확률이 0인 그룹에 확률을 거의 주지 못하므로, 테스트 분포 q(z|x)와 맞추기 어렵습니다.

Figure 2 Extrapolating to an unseen test group . The distribution to model corresponds to a mixture of 4 Gaussians. But the (−1, −1) group (pink dashed) has zero prior probability in the training distribution, i.e., is absent from the training set. As a result, discriminative training (left) learns only three decision regions and would misclassify test points from (−1, −1). CRM adjusts the prior at test time (right) to a uniform distribution over all attribute combinations, enabling it to recover four decision regions and correctly generalize to the unseen(−1, −1) group. The additive energy form composes the attributes’ information to yield this unseen group’s location. Decision regions were obtained from finite-data simulations, leading to minor imperfections.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.가법 에너지 분류기와 사전확률 교체
저자들은 Compositional Risk Minimization(CRM)을 제안합니다. CRM은 먼저 additive energy distribution을 바탕으로 한 가법 에너지 분류기를 경험적 위험 최소화로 학습합니다. 이 분류기는 각 속성마다 에너지 항을 두고, 이를 더한 값에 로그 사전확률과 학습된 편향 B(z)를 더해 그룹별 로짓을 만듭니다. 학습 단계의 사전확률은 학습 데이터의 그룹 빈도로 추정합니다. 두 번째 단계에서 CRM은 테스트 사전확률 q(z)를 사용합니다. 원문에 따르면 테스트 사전확률이 없으면 균등 분포를 가정합니다. 학습되지 않은 테스트 그룹의 편향은 학습 데이터만으로 계산한 외삽 편향 B*로 정합니다.
최종 확률은 테스트 사전확률과 B*를 적용한 소프트맥스로 얻습니다. 이 구조에서 외삽은 학습된 에너지 항을 재사용하여 새 조합의 로짓을 구성하는 방식으로 이루어집니다.

Figure 1 The additive energy classifier trained in CRM computes the logits for each groupz = (y, a) by adding the energy components of each attribute via boradcasting. For the train logits, we add the log of the prior probabilities and a learned biasB(y, a) for the groups present in train data. At test time, the log prior term is replaced with the log of the test prior (if available, otherwise assumed to be uniform), and the biases for novel test groups,B⋆(y, a), are extrapolated using Eq.11. Finally, we obtainp(y, a|x) by applying softmax function on the adjusted logits. This adaptation from train to test is possible because of the additive energy distributionp(x|y, a), which allows the model to factorize the distribution into distinct components associated with each attribute.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.이산 아핀 헐과 외삽 가능 범위
외삽이 어디까지 가능한지는 discrete affine hull로 규정됩니다. 속성 벡터의 원-핫 표현을 학습 그룹들의 아핀 결합으로 나타낼 수 있으면, 그 조합은 이 집합에 속합니다. 원문의 Waterbirds 예에서는 세 관측 그룹의 아핀 결합으로 네 번째 조합 WB on L을 표현할 수 있습니다. 이 결과는 학습 그룹 전체가 아핀 헐을 이루는 경우에 성립하는 조건부 결과입니다. 저자들은 테스트 그룹이 학습 그룹의 이산 아핀 헐 안에 있을 때 가법 에너지 모델이 올바른 밀도를 외삽한다고 보입니다. 또한 원문은 이 범위를 벗어나는 외삽이 일반적으로 성립하지 않는다는 부정 결과를 제시합니다. 따라서 이 결과는 모든 조합에 대한 보편적 외삽 능력이 아니라, 아핀 헐 조건이 만족되는 경우의 결과로 읽어야 합니다.

Figure 3 Setting of two attributes and two possible values per attribute. Illustration of extrapolation from three groups to the remaining fourth group. Three dark colored groups indicate the observed groups and the light colored shaded group indicates the group that is the affine combination of the three observed groups.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 28쪽에서 그림 영역을 추출했습니다.
Figure 5 Illustration of the discrete affine hull. Each cell in the6 × 6 grid represents an attribute combination, where observed combinations are solid-colored. The elements in blue form one connected component,C1, and the elements in yellow form another connected component,C2. Extrapolation is possible for unobserved combinations, represented by the crosshatched cells, as long as the test distribution samples from the Cartesian products of the connected components. The steps for completing the Cartesian product visually shows the intuition behind the extrapolation process.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 35쪽에서 그림 영역을 추출했습니다.학습 그룹 수와 확률적 보장
저자들은 학습 그룹을 균일하게 무작위로 뽑을 때 아핀 헐이 전체 격자를 얼마나 빨리 채우는지 분석합니다. 원문은 학습 그룹 수 s가 2c(md + d log(d)) 이상이면 DAff(Ztrain)이 전체 조합 집합을 포함한다고 제시합니다. 이때 확률은 1 - 1/c보다 큽니다. 여기서 m은 속성 수이고 d는 속성당 값의 수입니다. 이 결과에 따르면 CRM은 속성 수와 값 수에 대해 거의 선형적으로 관측 그룹을 늘리면, 지수적으로 많은 조합으로 외삽할 수 있습니다. 이 명제는 d가 충분히 크다는 조건과 확률적 보장을 함께 가집니다. 따라서 결과를 해석할 때 이 확률과 조건을 같이 보아야 합니다.

Figure 9 Varying Group Size Analysis (m >2 attributes). We analyze the rate of growth of total groups required to achieve cartesian-product extrapolation. For each scenario, we evaluate CRM’s generalization capabilities as we discard more groups from the training dataset. X-axis (log scale) denotes the percentage of total groups available for training, and y-axis denotes the test average accuracy (mean & standard error over 3 random seeds) obtained by CRM. We find that observing at least10% of total train groups is sufficient for good generalization.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 55쪽에서 그림 영역을 추출했습니다.구성 분포 이동 벤치마크 결과
실험에서 저자들은 Waterbirds, CelebA, MetaShift, MultiNLI, CivilComments, NICO++에 구성 분포 이동을 적용합니다. 각 데이터셋에서 특정 그룹을 학습과 검증 데이터에서 제외한 여러 시나리오를 만들고, 그 평균 결과를 보고합니다. 비교 대상은 ERM, GroupDRO, LC, sLA입니다. 측정 지표는 평균 정확도와 worst group accuracy입니다. 원문은 CRM이 모든 평가 사례에서 WGA 기준으로 기준선보다 우세하거나 경쟁력이 있다고 보고합니다. Waterbirds의 최악 시나리오에서 그룹 (0,1)을 제외하면 LC의 WGA는 69.0%이고 CRM은 73.0%입니다.
이 값은 해당 시나리오의 결과이며, 다른 시나리오 전체의 평균과 구분해야 합니다.

Table 1 Robustness under compositional shift. We compare the proposed CRM method to baseline ERM classifier training with no group information, and to robust methods that leverage group labels: G-DRO, LC, and sLA. We report test Average Accuracy and Worst Group Accuracy (WGA) (mean over 3 random seeds), averaged as a group is dropped from training and validation sets. Last column is WGA under the dataset’s standard subpopulation shift benchmark, i.e. with no group dropped. All methods have a harder time to generalize when groups are absent from training, but CRM appears consistently more robust. Full results with balanced group accuracy, and baselines IRM, VREx, and Mixup are provided in Table 5, Appendix G.1.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.
Table 6 Results for the various compositional shift scenarios for theWaterbirds benchmark. For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 45쪽에서 그림 영역을 추출했습니다.
Table 7 Results for the various compositional shift scenarios for theCelebA benchmark. For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 46쪽에서 그림 영역을 추출했습니다.
Table 8 Results for the various compositional shift scenarios for theMetaShift benchmark. For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 47쪽에서 그림 영역을 추출했습니다.
Table 9 Results for the various compositional shift scenarios for theMultiNLI benchmark. For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 48쪽에서 그림 영역을 추출했습니다.
Table 10 Results for the various compositional shift scenarios for theCivilComments benchmark (Part 1). For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 49쪽에서 그림 영역을 추출했습니다.
Table 11 Results for the various compositional shift scenarios for theCivilComments benchmark (Part 2). For each metric, report the mean (standard error) over 3 random seeds on the test dataset. We highlight the worst case compositional shift scenario for each method, i.e, the scenario with the lowest worst group accuracy amongst all the compositional shift scenarios. CRM outperforms all the baselines in the respective worst case compositional shift scenarios.
원문 · CC BY 4.0 · Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent · Compositional Risk Minimization · 원문 그림 인용 · 원본 PDF 50쪽에서 그림 영역을 추출했습니다.외삽 편향의 역할
외삽 편향이 실제로 필요한지를 확인하기 위해 저자들은 CRM(B̂)라는 절제 변형을 비교합니다. 이 변형은 외삽 편향 B*를 쓰지 않고 학습된 편향 B̂를 사용합니다. 원문의 표 2에 따르면 Waterbirds에서 CRM(B̂)의 WGA는 55.7이고 CRM은 78.7입니다. CelebA에서는 58.9와 81.8, MultiNLI에서는 30.4와 58.7입니다. 이 결과는 사전확률만 조정하는 것만으로는 충분하지 않으며, 외삽 편향 단계가 WGA 향상에 중요하다는 관찰을 지지합니다. 다만 이 비교는 편향 단계 하나를 제거한 변형에 대한 결과입니다.
적용 범위와 한계
저자들이 밝힌 주요 한계는 속성 레이블이 필요하다는 점입니다. 원문은 실제 상황에서 속성 레이블을 항상 얻기 어려울 수 있다고 설명합니다. 이 한계를 줄이기 위해 스퓨리어스 속성을 먼저 추정하는 기존 방법과 결합하는 방향이 향후 과제로 제시됩니다. 또한 저자들은 AED 기반의 보장이 생성 과제에도 적용될 수 있다고 쓰지만, 실제로 구현한 방법은 판별 과제에 한정됩니다. 따라서 생성 과제로의 확장은 이 논문에서 검증되지 않은 가능성입니다. 실험 결과도 제시된 데이터셋과 백본 조건에서 얻은 것이므로, 다른 과제나 모델로 일반화하기 전에 추가 검증이 필요합니다.
논문 정보
- 저자
- Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2024년 10월 8일
- 등록일
- 2026년 10월 31일
- 수정일
- 2025년 7월 10일
- 버전
- v3
- arXiv
- 2410.06303
- 분류
- cs.LG · cs.AI
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
Divyat Mahajan, Mohammad Pezeshki, Charles Arnal, Ioannis Mitliagkas, Kartik Ahuja, Pascal Vincent (2024). Compositional Risk Minimization. arXiv:2410.06303v3. https://arxiv.org/abs/2410.06303v3
BibTeX
@misc{mahajan2024compositional,
title = {{Compositional Risk Minimization}},
author = {Divyat Mahajan and Mohammad Pezeshki and Charles Arnal and Ioannis Mitliagkas and Kartik Ahuja and Pascal Vincent},
year = {2024},
eprint = {2410.06303},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2410.06303v3}
}