Quantifying the Plausibility of Context Reliance in Neural Machine Translation

Gabriele Sarti, Grzegorz Chrupaล‚a, M. Nissim, Arianna Bisazza
10/1/2023

Official code: gsarti/pecore (16 stars, Apache-2.0, last commit 2024-04-18). 1 more implementation below.

Abstract

Establishing whether language models can use contextual information in a human-plausible way is important to ensure their trustworthiness in real-world settings. However, the questions of when and which parts of the context affect model generations are typically tackled separately, with current plausibility evaluations being practically limited to a handful of artificial benchmarks. To address this, we introduce Plausibility Evaluation of Context Reliance (PECoRe), an end-to-end interpretability framework designed to quantify context usage in language models' generations. Our approach leverages model internals to (i) contrastively identify context-sensitive target tokens in generated texts and (ii) link them to contextual cues justifying their prediction. We use \pecore to quantify the plausibility of context-aware machine translation models, comparing model rationales with human annotations across several discourse-level phenomena. Finally, we apply our method to unannotated model translations to identify context-mediated predictions and highlight instances of (im)plausible context usage throughout generation.

View on arXivView PDF

Code Implementations(2)

gsarti/pecoreOfficial100%
Apache-2.0

Materials for "Quantifying the Plausibility of Context Reliance in Neural Machine Translation" at ICLR'24 ๐Ÿ‘ ๐Ÿ‘

161Shell, PythonAug 4, 20232 years agoApache-2.0
document-level-nmtexplainable-aifeature-attributioninterpretabilitylanguage-model+2 more
inseq-team/inseqCommunity100%
PyTorchApache-2.0

Interpretability for sequence generation models ๐Ÿ› ๐Ÿ”

46942Python, MakefileSep 14, 20215 months agoApache-2.0
attribution-methodscaptumdeep-learningexplainable-aigenerative-ai+8 more

Cite this paper

@article{sarti2023quantifying,
  title  = {Quantifying the Plausibility of Context Reliance in Neural Machine Translation},
  author = {Gabriele Sarti and Grzegorz Chrupaล‚a and M. Nissim and Arianna Bisazza},
  year   = {2023},
  eprint = {2310.01188},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2310.01188},
  journal = {ICLR 2023 2023}
}

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

Discussion