An Investigation of Language Model Interpretability via Sentence Editing

Samuel Stevens, Yu Su
11/28/2020
9 citations
cs.CL

Official code: samuelstevens/sentence-editing-interpretability (3 stars, Python, last commit 2022-01-14).

Abstract

Pre-trained language models (PLMs) like BERT are being used for almost all language-related tasks, but interpreting their behavior still remains a significant challenge and many important questions remain largely unanswered. In this work, we re-purpose a sentence editing dataset, where faithful high-quality human rationales can be automatically extracted and compared with extracted model rationales, as a new testbed for interpretability.

Show full abstract

This enables us to conduct a systematic investigation on an array of questions regarding PLMs' interpretability, including the role of pre-training procedure, comparison of rationale extraction methods, and different layers in the PLM. The investigation generates new insights, for example, contrary to the common understanding, we find that attention weights correlate well with human rationales and work better than gradient-based saliency in extracting model rationales. Both the dataset and code are available at https://github.com/samuelstevens/sentence-editing-interpretability to facilitate future interpretability research.

View on arXivView PDF

Code Implementations(1)

Code and data for EMNLP 2021 BlackboxNLP paper "An Investigation of Language Model Interpretability via Sentence Editing"

33Python, MakefileNov 26, 20204 years ago

Similar Papers

Cite this paper

@article{stevens2020investigation,
  title  = {An Investigation of Language Model Interpretability via Sentence Editing},
  author = {Samuel Stevens and Yu Su},
  year   = {2020},
  eprint = {2011.14039},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.14039}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.14039.svg)](https://codeofpaper.com/paper/2011.14039)

Discussion