Introduction
In the field of computational narratology, character relationships are often treated as static attributes. However, the essence of storytelling lies in the dynamic evolution of these bonds. For instance, in Mark Twain’s The Adventures of Tom Sawyer, the relationship between Tom and Becky Thatcher undergoes multiple shifts—from engagement to estrangement and eventual reconciliation. Traditional NLP models that assign a single label (e.g., "friends") to a character pair fail to capture this "narrative flow." This paper presents a structured prediction framework designed to track relationship trajectories sentence-by-sentence, accounting for historical context to provide a more coherent model of character interactions.
Methodology
The authors frame relationship modeling as a sequence labeling task. Unlike standard classifiers that treat each sentence independently, this approach utilizes a second-order Markov model. By considering the two previous states in a sequence, the model maintains "momentum," preventing erratic fluctuations in predicted relationship status and ensuring that the trajectory aligns with the broader narrative arc.
Feature Engineering and Learning
To capture the nuances of character interaction, the model incorporates several feature sets:
- Action-based Features: These identify "agents" and "patients" to determine who is acting upon whom, as well as "team" features indicating cooperative behavior.
- Semantic Frames: Leveraging FrameNet, the model identifies specific interaction types, such as "attack" (negative) or "forgiveness" (positive).
- Adverbial Bias: Narrator-provided context (e.g., acting "nobly") is used to infer character intent.
Due to the high cost of manual annotation, the authors employ a semi-supervised learning framework. This allows the model to train on a combination of fully labeled sequences and partially labeled data, using a constrained Viterbi algorithm to infer missing states during the training process.
Experimental Setup
The model was evaluated using three distinct datasets:
- SparkNotes Summaries: 300 summaries were processed to extract 634 sequences of character interactions. 100 sequences were manually annotated for evaluation.
- AMT Change Detection Dataset: A set of 62 character pairs where human annotators identified specific points of relationship change.
- Harry Potter Case Study: The model was applied to the full seven-book series to test its ability to cluster character pairs based on their evolving trajectories.
Results
The structured approach demonstrated a clear advantage over "flat" machine learning baselines such as Logistic Regression (LR) and Decision Trees (J48).
Quantitative Performance
On the SparkNotes dataset, the second-order model achieved an F1-score of 76.76, significantly higher than the 72.94 achieved by Logistic Regression. Furthermore, the Mean Edit Distance (ED)—a measure of how many changes are needed to transform the predicted sequence into the ground truth—was notably lower for the second-order model (0.66) compared to the baselines (over 0.9).
The model also excelled at detecting relationship shifts. On the AMT dataset, it achieved a 60.76 F1-score for change detection, outperforming the best baseline by nearly 10 points.
Qualitative Analysis
To validate the model's real-world utility, the authors clustered character pairs from the Harry Potter series based on their predicted relationship trajectories. The resulting clusters aligned well with reader intuition.
As shown in the clustering results, the model successfully grouped pairs like Harry and Dobby into a "Mostly Cooperative" category (Cluster 1), while capturing the complex, often non-cooperative dynamics between Harry and Snape or Voldemort (Cluster 3). Cluster 2 captured pairs with significant shifts, such as Ron and Hermione in the final book.
Discussion and Conclusion
The success of the second-order Markov model underscores the importance of historical context in narrative modeling. Relationship states are not independent events; they are part of a continuous trajectory influenced by previous interactions.
While the current model effectively handles binary "cooperative vs. non-cooperative" distinctions in summaries, future work should address more nuanced relationship types (e.g., romantic vs. familial) and the interdependence of social networks. Moving from summaries to full-length novels will also require improved handling of dialogue and implicit subtext, which remain significant challenges for current NLP systems.
Summary updated