GithubHelp home page GithubHelp logo

aeae's Introduction

Overconfidence in the Face of Ambiguity with Adversarial Data

AEAEAEAEAE

AEAEAEAEAE

Contents

This is the repository for the paper:

Overconfidence in the Face of Ambiguity with Adversarial Data. Margaret Li* and Julian Michael,* Proceedings of the First Workshop on Dynamic Adversarial Data Collection (DADC) at NAACL 2022.

(The silly acronym is from the original working name, "An Ambiguous Evaluation of Adversarial Evaluation")

In this repository:

  • aeae/: Source code for data, metrics, etc.
  • scripts/: Entry points for running predictions, evaluating, and producing plots for our analysis.

Erratum

In the paper, we forget to mention that the FEVER-NLI data was used together with SNLI and MNLI to train the classical model. This means classical is trained on all of the non-adversarially-collected data that the seed models for ANLI were trained on.

Usage

This project requires Python 3 and is written using AllenNLP and PyTorch.

Workstation setup:

  • Start with python scripts/download.py from the base directory to download datasets.
  • Install Python dependencies with pip install -r requirements.txt.
  • Preprocess datasets with python scripts/build_data.py.

To sanity-check model training, run

MODE=tiny allennlp train config/basic.jsonnet --include-package aeae -o '{"trainer.cuda_device": -1}' -s save/tiny

This will train a model on a tiny subset of MNLI using CPU. Changing MODE accordingly uses different data sources (see basic.jsonnet) the cuda device determines which GPU is used.

Documentation

NLI instances are preprocessed into the following format:

{
  "uid": String,
  "premise": String,
  "hypothesis": String,
  "label": "e" | "c" | "n"
}

Rest of the documentation is TODO.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.