Knowledge graphs help LLMs keep story characters consistent, researchers report
An arXiv paper describes a multi-agent pipeline that stores characters and relationships in a knowledge graph while generating long fiction chapter by chapter, reporting measurable consistency gains.
In plain words
Large language models can lose track of characters and their relationships when writing long stories. The paper's authors built a pipeline where separate AI agents plan chapters and record character details in a knowledge graph, a structured store of facts. Stories written this way kept characters more consistent than stories from plain prompting.
What was announced
The authors, writing in an abstract for the arXiv preprint, argue that even state-of-the-art models produce long-form content lacking coherence and consistency, and that knowledge graphs have seen little use in creative tasks despite their role in question answering and factual generation. Their pipeline assigns LLM agents separate roles: planning generation, extracting information into a knowledge graph that serves as long-term context storage, and writing the next chapter, with narratives produced chapter by chapter. They also compiled a list of starting prompts spanning multiple genres to test the approach.
Because the team saw a gap in effective quantitative metrics for unreferenced text generation, they devised a retention-based story consistency metric, with character and relationship retention scores meant to reflect a narrative's long-term consistency across chapters. In a statistical comparison against stories generated with naive prompting, they report significant improvement in retention and cohesion when the knowledge graph guides generation. The work targets zero-shot narrative generation, meaning the pipeline is not fine-tuned on the stories it produces. The evidence comes from the paper's abstract alone, so full experimental details, model choices and example outputs are not visible here.
What it does not show
- The source is the paper's abstract only; full experimental setup, baselines and results are not covered in the supplied passages.
- The claimed improvement rests on the authors' own retention-based metric and statistical analysis, which has not been independently confirmed.
Sources
Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.
Coverage: arXiv: abstract.
Updates and corrections
No corrections so far.
First published 4 Dec 2026
New to the subject? AI from the Ground Up starts from the beginning.