Abstract
Traditional story generation models often produce generic endings that fail to account for the specific personalities and histories of the characters involved. This paper introduces the Character-oriented Story Ending Generator (CoSEG), a novel framework that treats the interaction between character traits and story context as a chemical "ion exchange" reaction. By utilizing a Character Modeling Module (CMM) to extract experience sequences and a Vector Breaking/Forming (VBF) module to simulate complex interactions, CoSEG generates personalized and coherent narrative resolutions. Experimental results on the ROCStories corpus demonstrate that CoSEG outperforms existing baselines in both automated metrics like Perplexity and BLEU, as well as human evaluations of rationality and character-specific customization.
1. Introduction
In creative writing, the resolution of a plot is rarely a fixed point; rather, it is a variable influenced by the actors within the scene. A hero and a villain, faced with the same set of circumstances, will likely drive the story toward divergent conclusions. Despite this, most existing automated storytelling models treat endings as monolithic, ignoring the specific personality or historical context of individual characters. This limitation stems from both a lack of sophisticated personality modeling and a scarcity of multi-ending datasets required for training.
To address these challenges, we propose CoSEG. By treating the intersection of character personality and story context as a dynamic reaction—analogous to chemical ion exchange—CoSEG can generate diverse, character-centric endings even when trained on standard single-ending datasets.
2. Methodology
The CoSEG architecture is built upon three novel components designed to integrate character history into the generative process.
2.1 Character Modeling Module (CMM)
Rather than representing characters as static embeddings or simple names, the CMM constructs "experience sequences." Using dependency parsing, the module identifies all actions and descriptions associated with a specific character throughout the story context (e.g., "She sold socks," "She knew a store"). These chronological snippets are processed via a Long Short-Term Memory (LSTM) network to build a dynamic representation of the character’s narrative arc and personality.
2.2 Vector Breaking/Forming (VBF) Module
The core innovation of CoSEG is the VBF module, which draws inspiration from the chemical process of ion exchange. In a chemical reaction, ions swap partners to form new products with distinct properties. Similarly, the VBF module takes the "Character Vector" and the "Context Vector," breaks them into segments, and recombines them in various configurations. This process generates multiple "product candidates"—vectors that represent different potential interactions between the character's traits and the current environment. This approach prevents the loss of fine-grained detail that often occurs with simple vector addition or concatenation.
2.3 Character-Context Attention (C-CA)
Because the VBF module produces a variety of potential interaction products, the C-CA module employs an attention mechanism to identify the most effective representation. This selected vector is then passed to the decoder for the final generation of the story ending. The authors note that while their implementation uses an LSTM backbone, the VBF and CMM modules are network-agnostic and could be integrated into Transformers or CNNs.
3. Experimental Setup
We evaluated CoSEG using the ROCStories corpus, which contains approximately 100,000 five-sentence stories. To test the model's robustness and ability to handle varying levels of character information, we utilized two distinct test sets:
- Sufficient Test Set: Stories where the target character appears at least twice in the context.
- Inadequate Test Set: Stories where the character appears fewer than two times, testing the model's generalization capabilities with minimal information.
4. Results and Analysis
CoSEG was compared against several state-of-the-art baselines, including T-CVAE and MGCN-DP.
4.1 Quantitative Metrics
CoSEG achieved a Perplexity (PPL) score of 9.99, a significant improvement over the nearest baseline score of 11.01. Additionally, the model showed marked improvements in BLEU scores, suggesting that its output more closely mirrors the linguistic patterns and n-gram overlaps of human-written text.
4.2 Qualitative and Human Evaluation
Human evaluators assessed the "Rationality" and "Discrimination Degree" of the generated endings. In the sufficient test set, evaluators correctly identified the target character for a given ending 75.5% of the time. Furthermore, the endings were rated highly for rationality, suggesting that the generated conclusions were consistent with the characters' established behaviors within the narrative.
5. Discussion and Conclusion
CoSEG demonstrates that character-specific storytelling can be achieved by modeling personality as a sequence of experiences and utilizing a "reaction-based" vector combination method. This allows for zero-shot customization, where the model learns the relationship between characters and endings without requiring multiple ground-truth endings per story during training.
While innovative, the model faces limitations, such as difficulty generating endings for non-human entities (e.g., objects) and a reliance on rule-based dependency parsing which can be prone to error. Future work will explore the integration of CoSEG modules into large-scale Transformer architectures to further enhance the linguistic creativity and narrative depth of the generated endings.
Summary updated