Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Avoiding spurious correlations via logit correction

About

Empirical studies suggest that machine learning models trained with empirical risk minimization (ERM) often rely on attributes that may be spuriously correlated with the class labels. Such models typically lead to poor performance during inference for data lacking such correlations. In this work, we explicitly consider a situation where potential spurious correlations are present in the majority of training data. In contrast with existing approaches, which use the ERM model outputs to detect the samples without spurious correlations and either heuristically upweight or upsample those samples, we propose the logit correction (LC) loss, a simple yet effective improvement on the softmax cross-entropy loss, to correct the sample logit. We demonstrate that minimizing the LC loss is equivalent to maximizing the group-balanced accuracy, so the proposed LC could mitigate the negative impacts of spurious correlations. Our extensive experimental results further reveal that the proposed LC loss outperforms state-of-the-art solutions on multiple popular benchmarks by a large margin, an average 5.5\% absolute improvement, without access to spurious attribute labels. LC is also competitive with oracle methods that make use of the attribute labels. Code is available at https://github.com/shengliu66/LC.

Sheng Liu, Xu Zhang, Nitesh Sekhar, Yue Wu, Prateek Singhal, Carlos Fernandez-Granda• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationCMNIST (test)
Test Accuracy88.18
55
Image ClassificationC-CIFAR10 official (test)
Accuracy54.55
28
Robust ClassificationCivilComments
Worst-Group Accuracy70.3
23
Image ClassificationBFFHQ bias-conflicting (test)
Accuracy70.6
17
Image ClassificationCMNIST 0.5% bias ratio unbiased (test)
Accuracy97.25
17
Image ClassificationBar (test)--
17
Text ClassificationCivilComments-WILDS (test)
Accuracy80.3
13
Image ClassificationBAR conflicting (test)
Accuracy63.45
12
Image ClassificationBAR ratio 5.0 (test)
Accuracy74.32
6
Image ClassificationBFFHQ ratio 1.0 (test)
Accuracy70
6
Showing 10 of 16 rows

Other info

Follow for update