Detecting Duplicate States Is Worth It in Narrative Planning with Belief

Fairoz Nower Khan, Nabuat Zaman Nahim, Stephen G. Ware, Judy Goldsmith

Research output: Contribution to journalConference articlepeer-review

Abstract

Narrative planning algorithms generate stories as a sequence of actions that align with an author-defined goal while ensuring characters act believably, often requiring reasoning over nested beliefs. When theory of mind is represented, states include not only the factual world but also each character’s beliefs about the world and other characters’ beliefs, potentially to infinite depth. In such planners, detecting duplicate states can prune redundant paths in the search space, but it is unclear whether it is too computationally expensive to justify. This paper investigates the cost and benefit of duplicate state detection using the Sabre planner, which models infinitely nested beliefs deterministically. We compare two approaches: tree search, which does not check for duplicate states, and graph search, which uses a recursive equivalence algorithm to detect and avoid duplicates. We provide a polynomial-time algorithm for detecting duplicate states and empirically show that using it significantly reduces the number of nodes generated and the total planning time across several benchmark problems. These findings suggest that duplicate detection in epistemic narrative planning is both feasible and beneficial.

Original languageEnglish
Pages (from-to)62-69
Number of pages8
JournalProceedings - AAAI Artificial Intelligence and Interactive Digital Entertainment Conference, AIIDE
Volume21
Issue number1
DOIs
StatePublished - 2025
Event21st AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment, AIIDE 2025 - Edmonton, Canada
Duration: Nov 10 2025Nov 14 2025

Bibliographical note

Publisher Copyright:
© 2025, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.

Funding

This material is based upon work supported by the U.S. National Science Foundation under Grant No. 2145153 and the U.S. Army Research Office under Grant No. W911NF-24-1-0195. Any opinions, findings, conclusions, or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation or the Army Research Office.

FundersFunder number
National Science Foundation Arctic Social Science Program2145153
Army Research OfficeW911NF-24-1-0195

    ASJC Scopus subject areas

    • Software
    • Human-Computer Interaction
    • Computer Science Applications
    • Computer Graphics and Computer-Aided Design
    • Artificial Intelligence

    Fingerprint

    Dive into the research topics of 'Detecting Duplicate States Is Worth It in Narrative Planning with Belief'. Together they form a unique fingerprint.

    Cite this