Guiding and Diversifying LLM-Based Story Generation via Answer Set Programming
Phoebe J. Wang, Max Kreminski
TL;DR
The paper tackles limited diversity in instruction-tuned LLM storytelling by integrating answer set programming (ASP) to pre-generate diverse story outlines. It introduces a two-step neurosymbolic pipeline: a compact ASP outline generator encodes scenes, narrative functions, parameters, and constraints to produce a large pool of outlines, followed by an LLM-driven expansion of a chosen outline into a full story conditioned on a brief premise. Diversity is evaluated using semantic similarity embeddings across six premises, showing ASP-guided outputs are more diverse than unguided baselines, and highlighting that the ASP outlines offer a more compact alternative to full narrative planning. Limitations include absence of human subject evaluation and controllability concerns, with future work proposing interactive constraint tools and automatic ASP constraint generation from natural language to better align with author intent.
Abstract
Instruction-tuned large language models (LLMs) are capable of generating stories in response to open-ended user requests, but the resulting stories tend to be limited in their diversity. Older, symbolic approaches to story generation (such as planning) can generate substantially more diverse plot outlines, but are limited to producing stories that recombine a fixed set of hand-engineered character action templates. Can we combine the strengths of these approaches while mitigating their weaknesses? We propose to do so by using a higher-level and more abstract symbolic specification of high-level story structure -- implemented via answer set programming (ASP) -- to guide and diversify LLM-based story generation. Via semantic similarity analysis, we demonstrate that our approach produces more diverse stories than an unguided LLM, and via code excerpts, we demonstrate the improved compactness and flexibility of ASP-based outline generation over full-fledged narrative planning.
