Code Monkey home page Code Monkey logo

causalwalk's Introduction

Causal Walk

Code and data for our paper "Causal Walk: Debiasing Multi-hop Fact Verification with Front-door Adjustment" in AAAI 2024. CausalWalk

Download

To reproduce the results in the paper, you need to download the dataset and our pre-trained model from here.

Then you should organize them in the following format.

CausalWalk
    ├── data
    ├── pretrained_models
    ├── outputs
    ├── data_load_utils.py
    ├── models.py
    ├── train_causal_walk_fever_2way.py
    ├── train_causal_walk_politihop_2way.py
    ├── train_causal_walk_politihop_3way.py
    ├── train.sh
    └── utils.py

Environment

Install python dependencies.

pip install -r requirements.txt

Reproduction

Trained on the FEVER dataset and evaluated on Adversarial FEVER. (2-way)

CUDA_VISIBLE_DEVICES="0" python train_causal_walk_fever_2way.py \
--seed 1234 \
--batch_size 16 \
--lr 2e-5 \
--epochs 20 \
--weight_decay 5e-4 \
--evi_num 5 \
--max_seq_length 128

Trained on the PolitiHop dataset and evaluated on Adversarial PolitiHop. (3-way)

CUDA_VISIBLE_DEVICES="0" python train_causal_walk_politihop_3way.py \
--seed 1234 \
--batch_size 4 \
--lr 1e-5 \
--epochs 20 \
--weight_decay 5e-4 \
--evi_num 20 \
--max_seq_length 128 

Trained on the PolitiHop dataset and evaluated on Symmetric PolitiHop. (2-way)

CUDA_VISIBLE_DEVICES="0" python train_causal_walk_politihop_2way.py \
--seed 1234 \
--batch_size 4 \
--lr 1e-5 \
--epochs 10 \
--weight_decay 5e-4 \
--evi_num 20 \
--max_seq_length 128 

Citation

@inproceedings{zhang2024causal,
  title={Causal Walk: Debiasing Multi-Hop Fact Verification with Front-Door Adjustment},
  author={Zhang, Congzhi and Zhang, Linhai and Zhou, Deyu},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={38},
  number={17},
  pages={19533--19541},
  year={2024}
}

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.