Abstract
Story style transfer aims to rewrite a narrative in the style of a specific author while preserving the original plot. Current methods often focus on sentence-level attributes and struggle with the discourse-level complexities and content-style entanglement inherent in literary works. We present StoryTrans, a two-stage framework that utilizes discourse representations and a "mask-and-fill" strategy to achieve high-fidelity style transfer. By disentangling style from narrative flow and using keyword anchors for content preservation, StoryTrans outperforms existing baselines in both Chinese and English literary datasets.
Introduction
Most text style transfer research focuses on "low-level" changes at the sentence level, such as flipping sentiment or adjusting formality. However, an author's true style involves deeper discourse-level choices: how sentences relate to one another, narrative pacing, and specific vocabulary preferences. Story-level transfer faces two major hurdles: discourse complexity, which makes it difficult to manipulate multi-sentence narrative flow, and style-content entanglement, where author styles are often tied to specific topics or entities. Standard models often struggle to preserve the original story's content when the target style feels alien to that content.
Methodology
The authors propose StoryTrans, a two-stage generative model designed to address these challenges by separating narrative structure from stylistic expression.
Stage 1: Discourse Representation Transfer
The model first encodes the source text into "discourse representations"—vectors that capture the semantic meaning of each sentence. To ensure these representations are style-neutral, a disentanglement loss pulls representations from different styles closer together in the latent space. To help the model learn narrative flow, a pointer network is used for Sentence Order Prediction (SOP), forcing the model to understand how sentences connect. Finally, a target style embedding is fused with these representations using multi-head attention.
Stage 2: Content Preservation Enhancing
To prevent the model from "hallucinating" new plot points or losing character names, StoryTrans uses a mask-and-fill framework. The system identifies style-specific keywords (like character names or unique nouns) in the source text and masks them. The second stage is trained specifically to fill these masks back in, ensuring that even if the way the story is told changes, the who, what, and where remain consistent.
Experimental Setup
The researchers constructed two new datasets for this task:
- Chinese Dataset: Includes fairy tales, the realist works of Lu Xun (LX), and the martial arts novels of Jin Yong (JY).
- English Dataset: Pairs everyday stories from ROCStories with fragments from Shakespeare’s plays.
These datasets are significantly more challenging than standard benchmarks because they require the model to bridge the gap between modern vernacular and highly stylized literary or historical prose.
Results and Discussion
StoryTrans was evaluated against strong baselines like Style Transformer and StyleLM using both automatic metrics and human judgment.
Quantitative Performance
StoryTrans achieved the best balance between style accuracy and content preservation. On the English-to-Shakespeare task, it reached a style accuracy of 52.41% (a-Acc), significantly higher than StyleLM (3.44%) while maintaining competitive content scores. In manual tests, native speakers rated StoryTrans significantly higher for style accuracy in both Chinese and English.
Qualitative Analysis
Case studies demonstrate that while baselines often "overwhelmed" the original plot with target-style filler (e.g., StyleLM introducing unrelated characters like Guo Jing into a modern story), StoryTrans successfully rewrote source sentences into the target style without losing the core event.
Conclusion
StoryTrans effectively addresses the problem of story-level style transfer by leveraging discourse-level representations and a keyword-anchored content preservation strategy. While the model works best for authors with distinct styles like Shakespeare or Jin Yong, future work will focus on capturing more subtle authorial voices and handling even longer narrative arcs. The adversarial relationship between content preservation and style intensity remains a fundamental challenge for the field.
Summary updated