SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.06717 · 2023

Bias Amplification Enhances Minority Group Performance

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 9 functions out of this paper's own repositories and ran 8 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
motivationss/bam canonical 8 of 9
FunctionStatusWhere it lives
acc_and_f1 Ran motivationss/bam/utils_glue.py
pointer only (licence: NONE) · get_code("cac113ca87b9d9f3")
accuracy Ran motivationss/bam/utils.py
pointer only (licence: NONE) · get_code("621de5dd9c62c06d")
convert_examples_to_features Ran motivationss/bam/utils_glue.py
pointer only (licence: NONE) · get_code("48239cb88a898293")
cvar_value Ran motivationss/bam/joint_dro.py
pointer only (licence: NONE) · get_code("2b8de0efd0313a25")
generate_random Ran motivationss/bam/run_expt.py
pointer only (licence: NONE) · get_code("61b1e0d52ad3cf0d")
huber_loss Ran motivationss/bam/utils.py
pointer only (licence: NONE) · get_code("b87d45353a72914f")
l1_loss Ran motivationss/bam/utils.py
pointer only (licence: NONE) · get_code("99d63b1599cabd6b")
sub_args_input Ran motivationss/bam/run_metaScript.py
pointer only (licence: NONE) · get_code("66f24088c5c65dc9")
simple_accuracy Not yet run motivationss/bam/utils_glue.py
pointer only (licence: NONE) · get_code("3c241ecfe3749a6d")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Neural networks produced by standard training are known to suffer from poor accuracy on rare subgroups despite achieving high accuracy on average, due to the correlations between certain spurious features and labels. Previous approaches based on worst-group loss minimization (e.g. Group-DRO) are effective in improving worse-group accuracy but require expensive group annotations for all the training samples. In this paper, we focus on the more challenging and realistic setting where group annotations are only available on a small validation set or are not available at all. We propose BAM, a novel two-stage training algorithm: in the first stage, the model is trained using a bias amplification scheme via introducing a learnable auxiliary variable for each training sample; in the second stage, we upweight the samples that the bias-amplified model misclassifies, and then continue training the same model on the reweighted dataset. Empirically, BAM achieves competitive performance compared with existing methods evaluated on spurious correlation benchmarks in computer vision and natural language processing. Moreover, we find a simple stopping criterion based on minimum class accuracy difference that can remove the need for group annotations, with little or no loss in worst-group accuracy. We perform extensive analyses and ablations to verify the effectiveness and robustness of our algorithm in varying class and group imbalance ratios.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.06717")
get_code_for_paper("2309.06717")
have("2309.06717")

Connect an agent — have() is free.