Rethinking Self-Attention: Towards Interpretability in Neural Parsing

Khalil Mrini, Franck Dernoncourt, Quan Tran, Trung Bui, Walter Chang +1 more
11/10/2019
cs.CLcs.LG

Official code: KhalilMrini/LAL-Parser (145 stars, last commit 2024-04-07).

Abstract

Attention mechanisms have improved the performance of NLP tasks while allowing models to remain explainable. Self-attention is currently widely used, however interpretability is difficult due to the numerous attention distributions. Recent work has shown that model representations can benefit from label-specific information, while facilitating interpretation of predictions. We introduce the Label Attention Layer: a new form of self-attention where attention heads represent labels. We test our novel layer by running constituency and dependency parsing experiments and show our new model obtains new state-of-the-art results for both tasks on both the Penn Treebank (PTB) and Chinese Treebank. Additionally, our model requires fewer self-attention layers compared to existing work. Finally, we find that the Label Attention heads learn relations between syntactic categories and show pathways to analyze errors.

View on arXivView PDF

Code Implementations(1)

Neural Adobe-UCSD Parser, the current State of the Art in Constituency and Dependency Parsing.

14526C, PerlNov 10, 20192 years ago

Similar Papers

Cite this paper

@article{mrini2019rethinking,
  title  = {Rethinking Self-Attention: Towards Interpretability in Neural Parsing},
  author = {Khalil Mrini and Franck Dernoncourt and Quan Tran and Trung Bui and Walter Chang and Ndapa Nakashole},
  year   = {2019},
  eprint = {1911.03875},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.03875}
}

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

Discussion