Introduction
In the field of AI planning, agents rely on formal domain models—sets of rules defining actions, their preconditions, and their subsequent effects (often expressed in PDDL). Traditionally, these models are hand-coded by experts, creating a significant bottleneck in scaling planning systems. While progress has been made in extracting models from instructional texts, narrative texts (such as short stories or movie synopses) present unique challenges. Stories often employ colloquial language, nested event structures, and complex conditional logic that existing automated tools struggle to capture without heavy human intervention.
NaRuto (Narrative and Automated) addresses this gap as a fully automated, unsupervised system designed to extract planning models directly from narrative prose. By integrating structured event extraction with a commonsense reasoning engine, NaRuto bridges the divide between natural language storytelling and formal logic.
The NaRuto Architecture
NaRuto operates through a two-stage pipeline designed to transform messy narrative data into structured PDDL parameters.
1. Structured Event Representation
The system first utilizes Semantic Role Labeling (SRL) to identify core action components ("who did what to whom"). Beyond basic extraction, NaRuto applies heuristic rules to detect phrasal verbs and handle nested logic—where one event serves as an argument for another (e.g., "A tries to help B"). It also identifies conditional "if" clauses to preserve the narrative's logic.
2. Action Model Creation via Commonsense
The core innovation lies in the use of COMET-BM, a BART-based language model fine-tuned on the ATOMIC-2020 commonsense knowledge graph. Because stories rarely explicitly state every physical or social requirement for an action, NaRuto uses COMET-BM to "fill in the blanks," predicting likely preconditions and effects based on millions of cause-effect tuples. To ensure logical consistency, the system employs Sentence-BERT and contradiction classifiers to prune redundant or impossible predictions before automatically mapping actors to reusable PDDL parameters.
Evaluation Methodology
NaRuto was evaluated against two classic narrative planning benchmarks: The Tale of Aladdin and An Old American West Story. The system's output was compared against ground-truth (GT) manual models and existing systems, including the semi-automated StoryFramer and the automated H2020.
Results and Insights
NaRuto demonstrated significant improvements over prior fully automated methods and rivaled semi-automated systems that require human guidance.
Key findings from the evaluation include:
- Expert Agreement: In the "Old American West" domain, planning experts reported a 60.8% agreement score with NaRuto’s models, substantially higher than StoryFramer (42.5%) and the previous automated state-of-the-art (17.7%).
- Robustness and Generality: When paired with the Fast Downward planner, NaRuto’s models achieved a 100% solving rate for modified tasks in the Aladdin domain. In contrast, StoryFramer models often became unsolvable when initial facts were slightly altered.
- Local vs. Global Negation: The researchers found that "local negation"—negating only facts mentioned in an action's own preconditions—produced more coherent models than "global negation" strategies (comparing
NaRuto(L)andNaRuto(G)in the results). - Precondition Accuracy: Evaluators consistently rated generated preconditions higher than effects, suggesting that while the requirements for an action are often intuitive, the diverse "ripple effects" of narrative actions remain more difficult to predict.
Conclusion and Future Work
NaRuto successfully demonstrates that commonsense knowledge graphs can act as the "missing link" in automated model acquisition. While the system currently treats actions in relative isolation, future iterations aim to integrate story-level context to resolve ambiguities (e.g., distinguishing the effects of "hitting" in a sports context versus a conflict). Additionally, refining the selection of negative effects remains a priority to further enhance the coherence of generated planning domains.
Summary updated