Sketch and Customize: A Counterfactual Story Generator

Changying Hao, Liang Pang, Yanyan Lan, Yan Wang, Jiafeng Guo +1 more
4/2/2021
cs.CLcs.AI

Official code: ying-A/SandC (7 stars, Python, last commit 2021-04-09).

Abstract

Recent text generation models are easy to generate relevant and fluent text for the given text, while lack of causal reasoning ability when we change some parts of the given text. Counterfactual story rewriting is a recently proposed task to test the causal reasoning ability for text generation models, which requires a model to predict the corresponding story ending when the condition is modified to a counterfactual one.

Show full abstract

Previous works have shown that the traditional sequence-to-sequence model cannot well handle this problem, as it often captures some spurious correlations between the original and counterfactual endings, instead of the causal relations between conditions and endings. To address this issue, we propose a sketch-and-customize generation model guided by the causality implicated in the conditions and endings. In the sketch stage, a skeleton is extracted by removing words which are conflict to the counterfactual condition, from the original ending. In the customize stage, a generation model is used to fill proper words in the skeleton under the guidance of the counterfactual condition. In this way, the obtained counterfactual ending is both relevant to the original ending and consistent with the counterfactual condition. Experimental results show that the proposed model generates much better endings, as compared with the traditional sequence-to-sequence model.

View on arXivView PDF

Code Implementations(1)

ying-A/SandCOfficial100%

Implementation of the AAAI-2021 paper Sketch and Customize: A Counterfacutal Story Generator .

70Python, ShellMar 9, 20215 years ago
causalcounterfactualstory-generationtext-generation

Similar Papers

Cite this paper

@article{hao2021sketch,
  title  = {Sketch and Customize: A Counterfactual Story Generator},
  author = {Changying Hao and Liang Pang and Yanyan Lan and Yan Wang and Jiafeng Guo and Xueqi Cheng},
  year   = {2021},
  eprint = {2104.00929},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.00929}
}

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

Discussion