Git Product home page Git Product logo

read's Introduction

READ

This repository is the official implementation of our ACL'23 Findings paper Robust Natural Language Understanding with Residual Attention Debiasing.

Installation

Dependency

Experiments are run in the following environment:

Package Version
conda 22.9.0
Python 3.8
CUDA 11.8

Install via Conda and Pip

conda create -n read python=3.8
conda activate read
pip install -r requirements.txt

Data

Download:

└── dataset 
    └── fever
        ├── fever.dev.jsonl
        ├── fever.train.jsonl
        └── fever_symmetric_generated.jsonl
    └── qqp_paws
        ├── dev_and_test.tsv
        └── train.tsv

Training

Parameters are defined in train_ensemble.sh script. Change the value of task_name to the desired task name (mnli, fever, qqp). To train the ensemble model from scratch, please run the following

bash train_ensemble.sh

Evaluation

Due to different number of labels that MNLI and HANS datasets have, please:

  • Go to eval_hans.sh
  • Change value of model_name_or_path to your checkpoint
  • Run the following to evaluate model on HANS dataset:
    bash eval_hans.sh
    

Citation

@inproceedings{wang-etal-2023-robust,
    title = "Robust Natural Language Understanding with Residual Attention Debiasing",
    author = "Wang, Fei  and  Huang, James Y.  and  Yan, Tianyi  and  Zhou, Wenxuan  and  Chen, Muhao",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2023",
    month = jul,
    year = "2023",
    address = "Toronto, Canada",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2023.findings-acl.32",
    doi = "10.18653/v1/2023.findings-acl.32",
    pages = "504--519",
}

read's People

Contributors

feiwang96 avatar

Stargazers

 avatar Muhao Chen avatar James Y. Huang avatar Jeff Carpenter avatar  avatar

Watchers

Muhao Chen avatar

read's Issues

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.