UNIREX: A Unified Learning Framework for Language Model Rationale Extraction

Aaron Chan, Maziar Sanjabi, Lambert Mathias, Liang Tan, Shaoliang Nie +3 more
12/16/2021
cs.CLcs.AIcs.LG

Official code: facebookresearch/UNIREX (28 stars, Python, last commit 2023-02-14).

Abstract

An extractive rationale explains a language model's (LM's) prediction on a given task instance by highlighting the text inputs that most influenced the prediction. Ideally, rationale extraction should be faithful (reflective of LM's actual behavior) and plausible (convincing to humans), without compromising the LM's (i.e., task model's) task performance.

Show full abstract

Although attribution algorithms and select-predict pipelines are commonly used in rationale extraction, they both rely on certain heuristics that hinder them from satisfying all three desiderata. In light of this, we propose UNIREX, a flexible learning framework that generalizes rationale extractor optimization as follows: (1) specify architecture for a learned rationale extractor; (2) select explainability objectives (i.e., faithfulness and plausibility criteria); and (3) jointly the train task model and rationale extractor on the task using the selected objectives. UNIREX enables replacing prior works' heuristic design choices with a generic learned rationale extractor in (1) and optimizing it for all three desiderata in (2)-(3). To facilitate comparison between methods with respect to multiple desiderata, we introduce the Normalized Relative Gain (NRG) metric. Across five text classification datasets, our best UNIREX configuration outperforms baselines by an average of 32.9% NRG. Plus, we find that UNIREX-trained rationale extractors can even generalize to unseen datasets and tasks.

View on arXivView PDF

Code Implementations(1)

This is the official PyTorch repo for "UNIREX: A Unified Learning Framework for Language Model Rationale Extraction" (ICML 2022).

283PythonOct 28, 20223 years ago

Similar Papers

Cite this paper

@article{chan2021unirex,
  title  = {UNIREX: A Unified Learning Framework for Language Model Rationale Extraction},
  author = {Aaron Chan and Maziar Sanjabi and Lambert Mathias and Liang Tan and Shaoliang Nie and Xiaochang Peng and Xiang Ren and Hamed Firooz},
  year   = {2021},
  eprint = {2112.08802},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.08802}
}

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

Discussion