SPECTRA: Sparse Structured Text Rationalization

Nuno Miguel Guerreiro, André F. T. Martins
9/9/2021
30 citations
cs.CLcs.LG

Official code: deep-spin/spectra-rationalization (10 stars, Python, MIT, last commit 2024-02-14).

Abstract

Selective rationalization aims to produce decisions along with rationales (e.g., text highlights or word alignments between two sentences). Commonly, rationales are modeled as stochastic binary masks, requiring sampling-based gradient estimators, which complicates training and requires careful hyperparameter tuning.

Show full abstract

Sparse attention mechanisms are a deterministic alternative, but they lack a way to regularize the rationale extraction (e.g., to control the sparsity of a text highlight or the number of alignments). In this paper, we present a unified framework for deterministic extraction of structured explanations via constrained inference on a factor graph, forming a differentiable layer. Our approach greatly eases training and rationale regularization, generally outperforming previous work on what comes to performance and plausibility of the extracted rationales. We further provide a comparative study of stochastic and deterministic methods for rationale extraction for classification and natural language inference tasks, jointly assessing their predictive power, quality of the explanations, and model variability.

View on arXivView PDF

Code Implementations(1)

MIT

Repository for SPECTRA: Sparse Structured Text Rationalization, accepted at EMNLP 2021 main conference.

102PythonSep 8, 20212 years agoMIT

Similar Papers

Cite this paper

@article{guerreiro2021spectra,
  title  = {SPECTRA: Sparse Structured Text Rationalization},
  author = {Nuno Miguel Guerreiro and André F. T. Martins},
  year   = {2021},
  eprint = {2109.04552},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.04552}
}

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

Discussion