CREST: A Joint Framework for Rationalization and Counterfactual Text Generation

Marcos Treviso, Alexis Ross, Nuno M. Guerreiro, André F. T. Martins
5/26/2023
cs.CL

No official code found. Best implementation: deep-spin/crest (7 stars, MIT, last commit 2023-05-29).

Abstract

Selective rationales and counterfactual examples have emerged as two effective, complementary classes of interpretability methods for analyzing and training NLP models. However, prior work has not explored how these methods can be integrated to combine their complementary advantages. We overcome this limitation by introducing CREST (ContRastive Edits with Sparse raTionalization), a joint framework for selective rationalization and counterfactual text generation, and show that this framework leads to improvements in counterfactual quality, model robustness, and interpretability. First, CREST generates valid counterfactuals that are more natural than those produced by previous methods, and subsequently can be used for data augmentation at scale, reducing the need for human-generated examples. Second, we introduce a new loss function that leverages CREST counterfactuals to regularize selective rationales and show that this regularization improves both model robustness and rationale quality, compared to methods that do not leverage CREST counterfactuals. Our results demonstrate that CREST successfully bridges the gap between selective rationales and counterfactual examples, addressing the limitations of existing methods and providing a more comprehensive view of a model's predictions.

View on arXivView PDF

Code Implementations(1)

deep-spin/crestCommunity100%
MIT

Code for CREST: A Joint Framework for Rationalization and Counterfactual Text Generation, accepted at ACL 2023.

72Shell, PythonMay 26, 20233 years agoMIT

Similar Papers

Cite this paper

@article{treviso2023crest,
  title  = {CREST: A Joint Framework for Rationalization and Counterfactual Text Generation},
  author = {Marcos Treviso and Alexis Ross and Nuno M. Guerreiro and André F. T. Martins},
  year   = {2023},
  eprint = {2305.17075},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17075v1}
}

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

Discussion