Skip to content

QData/MNCOVER

Repository files navigation

MNCOVER

This repository contains code for white box testing of NLP models as described in the following paper:

White-box Testing of NLP models with Mask Neuron Coverage
https://arxiv.org/abs/2205.05050 Findings of Annual Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2022

Trained Masks and Initialization Files

All trained masks and initialization files can be found here.

Initializing Coverage

python initialize_coverage.py --seed 1 --bins-word 10 --bins-attention 10   --max-seq-len 128 --batch-size 128 --alpha 1.0 --test-name "change names"  --suite sentiment --subset 1500 --base-model roberta-base --save-dir results/

Filtering and Calculating Failure Rates

python calculate_coverage.py --seed 1 --bins-word 10 --bins-attention 10   --max-seq-len 128 --batch-size 128 --alpha 1.0 --test-name "change names"  --suite sentiment --subset 1500 --base-model roberta-base --save-dir results/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages