This Reads Like That: Deep Learning for Interpretable Natural Language Processing

Claudio Fanconi, Moritz Vandenhirtz, Severin Husmann, Julia E. Vogt
10/25/2023
cs.CLcs.AI

No official code found. Best implementation: fanconic/this_reads_like_that (5 stars, last commit 2023-12-13).

Abstract

Prototype learning, a popular machine learning method designed for inherently interpretable decisions, leverages similarities to learned prototypes for classifying new data. While it is mainly applied in computer vision, in this work, we build upon prior research and further explore the extension of prototypical networks to natural language processing. We introduce a learned weighted similarity measure that enhances the similarity computation by focusing on informative dimensions of pre-trained sentence embeddings. Additionally, we propose a post-hoc explainability mechanism that extracts prediction-relevant words from both the prototype and input sentences. Finally, we empirically demonstrate that our proposed method not only improves predictive performance on the AG News and RT Polarity datasets over a previous prototype-based approach, but also improves the faithfulness of explanations compared to rationale-based recurrent convolutions.

View on arXivView PDF

Code Implementations(1)

This is the code for the EMNLP 2023 publication: "This Reads Like That: Deep Learning for Interpretable Natural Language Processing"

50Shell, PythonNov 15, 20212 years ago
deep-learninginterpretable-machine-learningnatural-language-processing

Cite this paper

@article{fanconi2023this,
  title  = {This Reads Like That: Deep Learning for Interpretable Natural Language Processing},
  author = {Claudio Fanconi and Moritz Vandenhirtz and Severin Husmann and Julia E. Vogt},
  year   = {2023},
  eprint = {2310.17010},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.17010v1}
}

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

Discussion