Introduction
Modern Role-Playing Agents (RPAs) have achieved remarkable success in mimicking character personas and maintaining linguistic consistency. However, a significant limitation persists: the "static plot" problem. While these agents can chat indefinitely, they often fail to recognize narrative cues that signal a desire to move the story forward. This leads to circular conversations, a decline in user emotional intensity (arousal), and eventual disengagement.
To bridge this gap, we introduce RolePlot, a systematic framework designed to detect narrative "trigger" moments in dialogue and explicitly guide agents to advance the storyline while maintaining character integrity.
Methodology
The RolePlot framework operates through a multi-stage pipeline that integrates narrative theory with latent space analysis to identify the mathematical "right moment" for plot progression.
Narrative-Driven Annotation and Dataset
The foundation of RolePlot is the PloTrigger dataset, which contains approximately 28,000 examples across Chinese and English. Using "turning point theory," dialogue is categorized into five critical narrative stages: Opportunity, Change of Plans, Point of No Return, Major Setback, and Climax. This dataset provides the ground truth for identifying when a user input should trigger a plot advancement.
Trigger Subspace Detection
The core technical innovation lies in the discovery of "trigger subspaces." We hypothesized that plot-advancing inputs are mathematically distinct within an LLM's high-dimensional embedding space. By applying Singular Value Decomposition (SVD) to character-specific dialogue embeddings, we project the data into a low-dimensional subspace. A Feed-Forward Network (FFN) is then trained to classify whether a new input aligns with this "trigger" region.
Explicit Plot Guidance
When a "trigger" is detected, the system does not rely solely on the LLM's internal logic. Instead, it injects an explicit prompt instructing the RPA to transition the narrative to the next stage. This ensures that the agent actively "pushes" the plot rather than remaining in a stagnant conversational loop.
Key Insights: The Geometry of Narrative
A striking finding of this research is that narrative turning points are geometrically distinct. Visualizations using t-SNE reveal that while raw embeddings for plot-advancing and stagnant inputs are often intermingled in the original representation space, they become clearly separable when projected into the learned trigger subspace. This suggests that LLMs inherently encode narrative potential, which RolePlot successfully isolates.
Results and Evaluation
We evaluated RolePlot using an automated pipeline where a "user simulator" (modeled after 16 MBTI personality profiles) interacted with various agents to measure conversation longevity and quality.
- Improved Accuracy: RolePlot enhanced the detection of plot-progression moments by 10.8% in Chinese and 7.2% in English compared to strong baselines like GPT-4o and Llama 3.1.
- Increased Longevity: Conversations with RolePlot-enhanced agents lasted an average of 3.3 turns longer before the simulated user reached the "disengagement" threshold.
- Emotional Engagement: By tracking arousal levels using the NRC lexicon, we found that enhanced agents maintained emotional "peaks," preventing the steady decline in intensity typical of standard RPAs.
Conclusion
RolePlot demonstrates that the ability to progress a plot is as crucial as character consistency for immersive role-playing. By identifying the mathematical "trigger subspaces" of narrative, we can create agents that are not just reactive mimics, but active storytellers. Future work will focus on scaling this approach to a broader range of languages and millions of diverse character personas.
Summary updated