TL;DR
Generating long, coherent stories with Large Language Models (LLMs) is notoriously difficult due to plot drift and character amnesia. This paper introduces Magnet, a multi-agent storytelling engine that uses explicit world-state tracking and dynamic goal sequencing to keep characters in-character and plots on track, alongside Atlas, a graph-based verification pipeline that catches narrative contradictions. At a massive 100-page scale, Magnet slashes narrative hallucinations by up to 50% compared to standard single-model prompting.
What Problem Does This Paper Address?
While LLMs excel at short creative bursts, they struggle to maintain narrative consistency over long horizons. As a story scales up to 100 pages, models frequently suffer from "plot discontinuity" and "character inconsistency"—forgetting who holds what item, altering a character's established backstory, or allowing characters to act completely out of persona.
This problem compounds in multi-character environments where an LLM must simultaneously balance global narrative goals with complex, evolving character relationships. Existing multi-agent storytelling frameworks rely heavily on raw textual memory, which quickly becomes a messy, unscalable bottleneck.
Methods
The authors tackle long-form storytelling by splitting the problem into a generation engine (Magnet) and a verification pipeline (Atlas).
1. Magnet: The Generation Engine
Magnet coordinates multiple LLM agents organized into an action-critic-narrator loop:
- Goal Sequencing: A high-level goal generator (powered by Claude 4.7 Opus) sets the narrative direction. To prevent the story from stalling, goals are automatically replaced if uncompleted after 15 steps, and shifted to an entirely new domain every 40 steps to maintain narrative diversity.
- Character Agents: Individual characters are driven by autonomous Gemma-4-31B-it models fine-tuned via Direct Preference Optimization (DPO). They propose actions based on their unique personas, history, and the current world state.
- Critic Revision: A Gemini 2.5 Flash critic evaluates these proposed actions. It filters out out-of-character, vague, or repetitive behaviors, and generates structured updates to the world state.
- Narrator: Claude 4.7 Opus takes the approved actions and weaves them into cohesive, high-quality story prose.
- Structured State Tracking: Instead of relying on raw text memory, Magnet tracks the story state as a directed graph of entities, locations, and relationships, which is flattened into a dictionary format for the agents.
2. Atlas: The Verification Pipeline
To evaluate consistency without relying purely on subjective human reading, the authors built Atlas. It processes text through three sequential passes to build a scene-level event graph (tracking characters, locations, objects, and timepoints). It then uses an LLM to compare the current scene's world state against previous scenes to flag internal contradictions (e.g., a character visiting their living mother on Sunday when she was established as dead eight scenes prior).
Datasets
- DPO Preference Data: The authors curated a dataset of 1,012 training examples and 53 evaluation examples to fine-tune the character agents. Candidate actions were generated by Gemini 2.5 Flash and judged based on groundedness, persona alignment, and scene fit.
- Synthetic Evaluation Screenplays: To validate Atlas, the authors generated three synthetic screenplays containing manually injected temporal hallucinations, verified by a human annotator to establish a reliable ground truth.
Key Insights and Ideas
- Structured State > Textual Memory: Explicitly tracking facts in a graph structure prevents the compounding contextual drift that plagues standard text-only context windows.
- Proactive Goal Intervention is Mandatory: Without explicit goal management (swapping stalled goals or forcing domain shifts), autonomous multi-agent interactions naturally decay into repetitive, circular loops after about 15 to 40 steps.
- Local Autonomy + Centralized Synthesis: Giving character agents local autonomy over their intentions—while letting a centralized narrator select and synthesize those intentions into prose—strikes the ideal balance between realistic character behavior and structured plot progression.
Key Results
- Massive Reduction in Hallucinations: On a 100-page generated story, Atlas detected 12 hallucinations in the single-model baseline, 11 in the multi-agent framework IBSEN, and only 6 in Magnet—a 50% and 45% reduction, respectively.
- Fewer Editorial Critiques: Hierarchical editorial evaluation by an LLM judge showed that at 100 pages, Magnet reduced aggregated narrative, chapter, and sentence-level flaws by 41% compared to single-model prompting and 34% compared to IBSEN.
- Atlas Outperforms Vanilla LLM Judges: In benchmarking hallucination detection against human-verified ground truth, Atlas achieved an aggregate F1 score of 0.853, significantly outperforming a standard LLM-as-a-Judge approach (F1 of 0.805).
Limitations and Future Work
- High Computational Cost: Magnet requires repeated, sequential API calls between multiple heavy LLM modules (Claude Opus, Gemini Flash, and fine-tuned Gemma models), making it computationally expensive and slow.
- Proprietary Model Dependency: The framework relies heavily on closed-source commercial models for the critic, narrator, and goal generator, which introduces variability and replication challenges.
- Graph Extraction Bottleneck: Atlas's performance is strictly bound to the quality of its initial graph extraction pass. If the underlying LLM generates a sparse or incomplete graph, subtle narrative contradictions can still slip through undetected.
- Language and Scope Limitations: The framework was exclusively tested on English-language creative writing; evaluating its performance across different languages and even longer formats (like multi-volume novels) remains open for future research.
Summary updated