SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.04762 · 2020

Counterfactually-Augmented SNLI Training Data Does Not Yield Better Generalization Than Unaugmented Data

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 16 functions out of this paper's own repositories and ran 16 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
nyu-mll/CNLI-generalization canonical 16 of 16
FunctionStatusWhere it lives
batched_index_select Ran nyu-mll/CNLI-generalization/jiant/jiant/ext/allennlp.py
code served (permissive licence) · get_code("e445a3b7d6a58154")
compare_dataset_with_metadata Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/caching.py
code served (permissive licence) · get_code("eaa6b3cef2ce9444")
compare_tensor_tuples Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/caching.py
code served (permissive licence) · get_code("0f5c37217af75b26")
complex_backpropagate Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/runner.py
code served (permissive licence) · get_code("9b5f1ac1298e3440")
convert_to_chunks Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/caching.py
code served (permissive licence) · get_code("2d5bbf46d4d7af68")
flat_collate_fn Ran nyu-mll/CNLI-generalization/jiant/jiant/tasks/core.py
code served (permissive licence) · get_code("507ef2b2ebff6a5c")
get_label_id_from_data_row Ran nyu-mll/CNLI-generalization/jiant/jiant/tasks/evaluate/core.py
code served (permissive licence) · get_code("cb33d2bf922529ee")
get_label_ids Ran nyu-mll/CNLI-generalization/jiant/jiant/tasks/evaluate/core.py
code served (permissive licence) · get_code("42ef1356dacb097d")
get_model_and_tokenizer_classes Ran nyu-mll/CNLI-generalization/jiant/jiant/proj/main/export_model.py
code served (permissive licence) · get_code("7e8ea392aad26f56")
init_cuda_from_args Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/initialization.py
code served (permissive licence) · get_code("fa0fcf05318dae3d")
init_seed Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/initialization.py
code served (permissive licence) · get_code("540028e9d806d8a8")
masked_softmax Ran nyu-mll/CNLI-generalization/jiant/jiant/ext/allennlp.py
code served (permissive licence) · get_code("16cde5ff8ae0a586")
metadata_collate_fn Ran nyu-mll/CNLI-generalization/jiant/jiant/tasks/core.py
code served (permissive licence) · get_code("61ffc5549a75fe3c")
resolve_is_lower_case Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/model_resolution.py
code served (permissive licence) · get_code("156059a38968a584")
resolve_tokenizer_class Ran nyu-mll/CNLI-generalization/jiant/jiant/shared/model_resolution.py
code served (permissive licence) · get_code("c7ea7547e7771a4a")
weighted_sum Ran nyu-mll/CNLI-generalization/jiant/jiant/ext/allennlp.py
code served (permissive licence) · get_code("2f417d486bcad523")

Repositories linked to this paper

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

Abstract

A growing body of work shows that models exploit annotation artifacts to achieve state-of-the-art performance on standard crowdsourced benchmarks---datasets collected from crowdworkers to create an evaluation task---while still failing on out-of-domain examples for the same task. Recent work has explored the use of counterfactually-augmented data---data built by minimally editing a set of seed examples to yield counterfactual labels---to augment training data associated with these benchmarks and build more robust classifiers that generalize better. However, Khashabi et al. (2020) find that this type of augmentation yields little benefit on reading comprehension tasks when controlling for dataset size and cost of collection. We build upon this work by using English natural language inference data to test model generalization and robustness and find that models trained on a counterfactually-augmented SNLI dataset do not generalize better than unaugmented datasets of similar size and that counterfactual augmentation can hurt performance, yielding models that are less robust to challenge examples. Counterfactual augmentation of natural language understanding data through standard crowdsourcing techniques does not appear to be an effective way of collecting training data and further innovation is required to make this general line of work viable.

For agents

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

get_harvested_code_for_paper("2010.04762")
get_code_for_paper("2010.04762")
have("2010.04762")

Connect an agent — have() is free.