Necessity and Sufficiency for Explaining Text Classifiers: A Case Study in Hate Speech Detection

Esma Balkir, Isar Nejadgholi, Kathleen Fraser, Svetlana Kiritchenko


Abstract
We present a novel feature attribution method for explaining text classifiers, and analyze it in the context of hate speech detection. Although feature attribution models usually provide a single importance score for each token, we instead provide two complementary and theoretically-grounded scores – necessity and sufficiency – resulting in more informative explanations. We propose a transparent method that calculates these values by generating explicit perturbations of the input text, allowing the importance scores themselves to be explainable. We employ our method to explain the predictions of different hate speech detection models on the same set of curated examples from a test suite, and show that different values of necessity and sufficiency for identity terms correspond to different kinds of false positive errors, exposing sources of classifier bias against marginalized groups.
Anthology ID:
2022.naacl-main.192
Volume:
Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies
Month:
July
Year:
2022
Address:
Seattle, United States
Venue:
NAACL
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
2672–2686
Language:
URL:
https://aclanthology.org/2022.naacl-main.192
DOI:
10.18653/v1/2022.naacl-main.192
Bibkey:
Cite (ACL):
Esma Balkir, Isar Nejadgholi, Kathleen Fraser, and Svetlana Kiritchenko. 2022. Necessity and Sufficiency for Explaining Text Classifiers: A Case Study in Hate Speech Detection. In Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 2672–2686, Seattle, United States. Association for Computational Linguistics.
Cite (Informal):
Necessity and Sufficiency for Explaining Text Classifiers: A Case Study in Hate Speech Detection (Balkir et al., NAACL 2022)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingestion-script-update/2022.naacl-main.192.pdf
Software:
 2022.naacl-main.192.software.zip
Video:
 https://preview.aclanthology.org/ingestion-script-update/2022.naacl-main.192.mp4
Code
 esmab/necessity-sufficiency