Skip to content

julmaxi/with_a_little_push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Code for the 2023 ACL Short Paper "With a Little Push, NLI Models can Robustly and Efficiently Predict Faithfulness"

Paper

For more details read the Paper

Scoring

To derive scores, use score.py. By default it will use a model trained using our data augmentation procedure with $e-c$ scoring and without MC dropout. You can enable MC dropout using the --mc flag. The script expects to receive the dataset (e.g. TRUE) in a jsonl format. Each instance should have the following fields:

  • label: A binary faithfulness label
  • corpus: Used for grouping results
  • grounding: The grounding you want to check faithfulness on
  • generation: The generation to score

Use the -o flag to determine where to save scores.

Training

All relevant code can be found in the nlifactspush module. To train a new augmented model, first run augment_dataset.py, followed by train.py.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages