Inserting Information Bottlenecks for Attribution in Transformers

Zhiying Jiang, Raphael Tang, Ji Xin, Jimmy Lin
12/27/2020
cs.CLcs.LG
transformer-attention

Official code: bazingagin/IBA (19 stars, Python, last commit 2021-07-07).

Abstract

Pretrained transformers achieve the state of the art across tasks in natural language processing, motivating researchers to investigate their inner mechanisms. One common direction is to understand what features are important for prediction.

Show full abstract

In this paper, we apply information bottlenecks to analyze the attribution of each feature for prediction on a black-box model. We use BERT as the example and evaluate our approach both quantitatively and qualitatively. We show the effectiveness of our method in terms of attribution and the ability to provide insight into how information flows through layers. We demonstrate that our technique outperforms two competitive methods in degradation tests on four datasets. Code is available at https://github.com/bazingagin/IBA.

View on arXivView PDF

Code Implementations(1)

bazingagin/IBAOfficial100%
198Python, Jupyter NotebookOct 2, 20205 years ago

Similar Papers

Cite this paper

@article{jiang2020inserting,
  title  = {Inserting Information Bottlenecks for Attribution in Transformers},
  author = {Zhiying Jiang and Raphael Tang and Ji Xin and Jimmy Lin},
  year   = {2020},
  eprint = {2012.13838},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13838}
}

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/2012.13838.svg)](https://codeofpaper.com/paper/2012.13838)

Discussion