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:
- 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.
- 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.
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.
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