Learning to Control the Fine-grained Sentiment for Story Ending Generation

Fuli Luo, Damai Dai, Pengcheng Yang, Tianyu Liu, Baobao Chang, Zhifang Sui, Xu Sun

Introduction

While large language models have become adept at generating coherent narrative text, precisely controlling the emotional arc of a story remains an open challenge. Most existing "controllable" generation systems rely on coarse, binary categories—such as "positive" versus "negative"—which fail to capture the nuance of human storytelling. Researchers from Peking University have introduced a novel framework that allows users to specify a precise sentiment intensity on a continuous scale from 0.0 to 1.0. This system enables "dialing in" the exact emotional weight of a story's conclusion without requiring expensive, manually labeled datasets.

The Challenge of Fine-Grained Control

The authors identify two primary obstacles to achieving granular emotional control:

  1. Data Scarcity: Standard story datasets, like ROCStories, lack precise numerical sentiment labels. Manually annotating thousands of examples with specific intensities (e.g., 0.75) is impractical.
  2. Architectural Integration: Standard neural architectures struggle to incorporate a continuous scalar value as a hard constraint while maintaining narrative logic and grammatical fluency.

Proposed Methodology: The SIC-Seq2Seq Framework

The proposed solution involves a teacher-student paradigm consisting of a Sentiment Analyzer and a Sentimental Generator.

The overall framework consists of a Sentiment Analyzer that labels training data and a Sentimental Generator that learns to produce endings matching target intensities.

1. Automated Sentiment Analysis

To overcome the lack of labels, the authors employ a "Sentiment Analyzer" to automatically score gold-standard story endings during training. They evaluated three approaches: a lexicon-based Rule-Based (RB) model (VADER), a Regression Model (RM) trained on the Stanford Sentiment Treebank, and a Domain-Adversarial (DA) model. Surprisingly, the simple Rule-Based approach proved most effective for the ROCStories dataset, likely due to the direct and keyword-heavy emotional language typical of short, everyday narratives.

2. Sentiment Intensity Controlled Generator

The core technical innovation is the Sentiment Intensity Controlled Seq2Seq (SIC-Seq2Seq) model. This architecture enhances a standard encoder-decoder with a Gaussian Kernel Layer. In this setup, every word in the vocabulary is associated with a sentiment embedding. The Gaussian Kernel Layer calculates the proximity of a word's inherent sentiment to the user-defined "target intensity." During decoding, words that align with the desired emotional level receive a probability "bonus," effectively steering the generation toward the target sentiment in a "fuzzy" but mathematically grounded manner.

Experimental Results and Insights

The SIC-Seq2Seq model demonstrates a significant improvement over pipeline-based baselines that attempt to modify endings post-generation.

  • Narrative Quality: The model achieved a BLEU-1 score of 19.8, nearly doubling the baseline's 10.7, indicating much higher text quality and relevance.
  • Emotional Precision: Using a metric called SentiCons to measure the alignment between output and target sentiment, the best-performing model (using the Rule-Based analyzer) reached a score of 0.879.
  • Human Evaluation: Human judges rated the generated endings as significantly more coherent (2.65 vs. 1.50) and fluent (4.75 vs. 2.50) than those produced by baseline methods.
Examples of story endings generated for a soccer-themed prompt across a spectrum of target sentiment intensities.

As shown in the examples above, the model successfully maps continuous values to a spectrum of narrative outcomes. A target of 0.1 produces a highly negative ending ("very upset"), while a 0.5 target results in a neutral outcome ("a draw"), and a 0.9 target yields a triumphant conclusion.

Conclusion and Future Directions

The SIC-Seq2Seq framework demonstrates that continuous sentiment control is achievable through automated labeling and specialized architectural layers. However, the authors note that the model currently relies on static sentiment embeddings, which may not capture how a word's emotional weight shifts with context. Future work may explore joint training of the analyzer and generator to further refine the nuance of emotional control.

Summary updated

BibTeX
@inproceedings{luo2019learning,
  author = {Fuli Luo and Damai Dai and Pengcheng Yang and Tianyu Liu and Baobao Chang and Zhifang Sui and Xu Sun},
  title = {{Learning to Control the Fine-grained Sentiment for Story Ending Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1603},
}
Figure