CLSEG: Contrastive Learning of Story Ending Generation

Yuqiang Xie, Yue Hu, Luxi Xing, Yunpeng Li, Wei Peng +1 more
2/18/2022
cs.CL
contrastive-ssl

Official code: IndexFziQ/CLSEG (2 stars, Python, last commit 2022-07-06).

Abstract

Story Ending Generation (SEG) is a challenging task in natural language generation. Recently, methods based on Pre-trained Language Models (PLM) have achieved great prosperity, which can produce fluent and coherent story endings.

Show full abstract

However, the pre-training objective of PLM-based methods is unable to model the consistency between story context and ending. The goal of this paper is to adopt contrastive learning to generate endings more consistent with story context, while there are two main challenges in contrastive learning of SEG. First is the negative sampling of wrong endings inconsistent with story contexts. The second challenge is the adaptation of contrastive learning for SEG. To address these two issues, we propose a novel Contrastive Learning framework for Story Ending Generation (CLSEG), which has two steps: multi-aspect sampling and story-specific contrastive learning. Particularly, for the first issue, we utilize novel multi-aspect sampling mechanisms to obtain wrong endings considering the consistency of order, causality, and sentiment. To solve the second issue, we well-design a story-specific contrastive training strategy that is adapted for SEG. Experiments show that CLSEG outperforms baselines and can produce story endings with stronger consistency and rationality.

View on arXivView PDF

Code Implementations(1)

IndexFziQ/CLSEGOfficial100%

Codes and Date for CLSEG in ICASSP 2022. https://ieeexplore.ieee.org/document/9747435/

20Python, ShellFeb 8, 20224 years ago
contrastive-learningnatural-language-generationnlpstory-ending-generationstorytelling

Similar Papers

Cite this paper

@article{xie2022clseg,
  title  = {CLSEG: Contrastive Learning of Story Ending Generation},
  author = {Yuqiang Xie and Yue Hu and Luxi Xing and Yunpeng Li and Wei Peng and Ping Guo},
  year   = {2022},
  eprint = {2202.09049},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.09049}
}

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

Discussion