TL;DR
This paper introduces a supervised learning framework to model continuous emotional trajectories—specifically valence and arousal—across full written narratives. By mapping discrete emotion labels to a continuous space and leveraging context-aware Transformer architectures, the authors demonstrate that incorporating surrounding sentence context significantly improves the accuracy of tracking a story's "emotional arc."
What Problem Does This Paper Address?
Understanding the emotional flow of a story is key to computational narratology, writing assistants, and advanced Text-to-Speech (TTS) systems. However, historical approaches to tracking these "emotional arcs" have largely relied on unsupervised, dictionary-based methods (e.g., counting words from a sentiment lexicon), which fail to capture context or complex linguistic nuances.
While deep learning has revolutionized Textual Emotion Recognition (TER), most supervised models evaluate sentences in complete isolation. This creates a major blind spot: the emotional weight of a sentence in a story heavily depends on what happened before it. To address this, the authors tackle two main challenges: the lack of continuous-valued (valence/arousal) benchmarks for full narrative texts, and the technical challenge of effectively modeling sentence-level emotions within the context of an entire story.
Methods
The authors propose a multi-stage deep learning approach built on top of a pretrained ELECTRA language model:
- Context-Aware Fine-Tuning: Instead of feeding single sentences into ELECTRA, they append surrounding context using special tokens (e.g.,
[CLS] sentence [SEP] context). They experiment with three context policies: Left context (L; preceding sentences), Right context (R; succeeding sentences), and Left-and-Right context (LR), varying the window size from 1 sentence to the maximum allowed by the 512-token limit. - Downstream Sequence Modeling: To better capture narrative flow across a whole story, they freeze the fine-tuned ELECTRA embeddings and stack sequential architectures on top. They test two variants:
- A bidirectional LSTM layer.
- A hybrid LSTM + Transformer encoder layer, utilizing constrained self-attention masks so sentences only attend to their immediate neighbors.
Because full stories vary in length and data is limited, they train these sequential models using a sliding-window approach on story passages before evaluating on full stories at test time.
Datasets
The experiments were conducted on Alm’s children’s story dataset, which contains 176 stories from the Brothers Grimm, Hans-Christian Andersen, and Beatrix Potter.
To adapt this dataset for continuous emotion modeling, the authors:
- Filtered out low-agreement stories, leaving a final dataset of 169 stories (~15,000 sentences).
- Collected a third layer of annotations to complement the original two.
- Mapped the original discrete emotion categories (e.g., sadness, happiness) into continuous valence and arousal spaces using the NRC-VAD dictionary.
- Fused the annotations into a continuous gold standard using the Evaluator-Weighted Estimator (EWE) method to account for annotator disagreement.
Key Insights and Ideas
- The Past Matters More Than the Future: Models utilizing left context (preceding sentences) consistently and significantly outperformed those using right context (succeeding sentences). Knowing the narrative setup is far more critical for predicting current emotional state than knowing what happens next.
- Context Has a Sweet Spot: For both left and bidirectional context, performance generally scaled up with window sizes of 4 to 8 sentences. However, performance dropped when using maximum context (
_max), suggesting that over-extending the context window introduces unnecessary noise. - The Challenge of Author Style and Vocabulary: Models struggled to generalize when trained on one author and tested on another. Topic modeling revealed a stark thematic divide: Grimm and Andersen stories focus heavily on human archetypes (king, soldier, mother), whereas Beatrix Potter’s stories revolve around animals (rabbit, mouse). This shift in vocabulary severely degrades cross-author emotion tracking.
Key Results
Performance was evaluated using the Concordance Correlation Coefficient (CCC), which measures the agreement between the predicted emotional trajectory and the gold standard:
- Baseline (No Context): Fine-tuning ELECTRA on isolated sentences yielded a development CCC of
0.6652for valence and0.5283for arousal. - Context Fine-Tuning: Simply adding 4 sentences of left-and-right context (
LR4) bumped the valence CCC to0.7397. - The Winning Architecture: The hybrid FT+LSTM+Transformer model using the
LR4backbone achieved the highest overall performance on the test set, reaching a CCC of 0.7338 for valence and 0.6302 for arousal.
Limitations and Future Work
- Coarse Label Mapping: Converting discrete categories to a continuous space via a static dictionary is a lossy process. It can be too coarse-grained to capture subtle emotional shifts or complex, blended moods.
- Resource Constraints: Transformer-based context tracking is computationally expensive, which currently limits its scalability to long-form literature like full novels.
- Future Directions: The authors suggest developing dynamic context selection methods that automatically learn which neighboring sentences are relevant, rather than relying on a fixed window size. They also point to author personalization techniques as a way to solve the cross-author generalization problem.
Summary updated