[Paper Review] Deriving Character Logic from Storyline as Codified Decision Trees
The paper introduces Codified Decision Trees (CDT), a data-driven framework that induces executable, situation-aware character profiles from storylines and shows CDT outperforming baselines and human-written profiles across multiple RP benchmarks.
Role-playing (RP) agents rely on behavioral profiles to act consistently across diverse narrative contexts, yet existing profiles are largely unstructured, non-executable, and weakly validated, leading to brittle agent behavior. We propose Codified Decision Trees (CDT), a data-driven framework that induces an executable and interpretable decision structure from large-scale narrative data. CDT represents behavioral profiles as a tree of conditional rules, where internal nodes correspond to validated scene conditions and leaves encode grounded behavioral statements, enabling deterministic retrieval of context-appropriate rules at execution time. The tree is learned by iteratively inducing candidate scene-action rules, validating them against data, and refining them through hierarchical specialization, yielding profiles that support transparent inspection and principled updates. Across multiple benchmarks, CDT substantially outperforms human-written profiles and prior profile induction methods on $85$ characters across $16$ artifacts, indicating that codified and validated behavioral representations lead to more reliable agent grounding.
Motivation & Objective
- Motivate grounded role-playing agents with interpretable, executable profiles.
- Automatically derive codified, rule-based character behavior from large narrative corpora.
- Enable transparent inspection, editing, and principled updates of behavioral rules.
- Demonstrate CDT's superiority over human-written and other profiling methods across multiple benchmarks.
Proposed method
- Cluster scene-action pairs using semantic embeddings to surface regularities.
- LLM proposes if-then triggers within clusters to form codified rules.
- Validate hypothesized triggers against the full dataset and grow the CDT recursively.
- Traverse the CDT at inference by answering discriminative questions and accumulating grounded statements for action generation.
- Compare CDT against baselines including Vanilla prompting, Fine-tuning, RICL, and ETA across multiple artifacts.
- Provide ablations and variants (CDT-Lite, Wikified/Verbalized CDT) and analyze scaling with data.
Experimental results
Research questions
- RQ1Can codified, executable rules derived from storylines provide better grounding for RP than traditional textual profiles?
- RQ2Do hierarchical, validated CDT structures improve action prediction across diverse characters and artifacts?
- RQ3How does CDT compare to human-written and codified human profiles under various baselines and data scales?
- RQ4What is the impact of CDT components (clustering, diversification, depth) on performance and scalability?
- RQ5Can CDT be adapted to goal-driven or relation-specific profiling to capture targeted behaviors?
Key findings
- CDT and CDT-Lite achieve the best NLI scores across fine-grained Fandom and Bandori benchmarks, outperforming Vanilla prompting, Fine-tuning, RICL, and ETA.
- CDT and CDT-Lite also outperform human-written and codified human profiles on both benchmarks.
- More training data yields stronger CDT performance, with CDT surpassing human profiles even with modest data on Fandom and continuing gains on Bandori.
- Ablations show explicit validation and depth contribute to stronger grounding; removing clustering or diversification degrades performance.
- Wikified and Verbalized CDT variants maintain strong performance, offering usable textual representations without runtime traversal.
- Relation-driven CDT (goal-driven) improves performance on target relational subsets, indicating CDT's ability to specialize behaviors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.