Skip to main content
QUICK REVIEW

[论文解读] Deriving Character Logic from Storyline as Codified Decision Trees

Letian Peng, Kun Zhou|arXiv (Cornell University)|Jan 15, 2026
Artificial Intelligence in GamesComputer Science被引用 0
一句话总结

本文提出 Codified Decision Trees(CDT),一种数据驱动框架,从故事线中归纳出可执行、情境感知的角色画像,并在多个 RP 基准测试中显示 CDT 优于基线和人工编写画像。

ABSTRACT

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.

研究动机与目标

  • 用可解释、可执行的画像来激励具备 grounding 的角色扮演代理。
  • 从大型叙事语料中自动推导编码化、基于规则的角色行为。
  • 实现行为规则的透明检查、编辑及原理性更新。
  • 在多项基准测试中展示 CDT 相对于人工编写和其他画像方法的优越性。

提出的方法

  • 使用语义嵌入将场景-行动对聚类,以揭示规律。
  • LLM 在簇内提出 if-then 触发条件,以形成编码化规则。
  • 在完整数据集上验证假设触发条件,并对 CDT 进行递归扩展。
  • 在推理时通过回答具有辨别性的问题来遍历 CDT,并积累 grounded 的行动生成语句。
  • 将 CDT 与 Vanilla 提示、微调、RICL、ETA 等基线在多项工件上进行对比。
  • 给出消融与变体(CDT-Lite、Wikified/Verbalized CDT),并分析数据量对可扩展性的影响。

实验结果

研究问题

  • RQ1从故事线中推得的编码化、可执行规则是否比传统文本画像提供更好的 grounding 用于 RP?
  • RQ2分层、经验证的 CDT 结构是否在不同角色与工件上提升行动预测?
  • RQ3在不同基线和数据规模下,CDT 与人工编写及编码化的人类画像相比如何?
  • RQ4CDT 组件(聚类、多样化、深度)对性能和可扩展性有何影响?
  • RQ5CDT 是否可适配面向目标或关系特定的画像,以捕捉定向行为?

主要发现

  • CDT 与 CDT-Lite 在细粒度的 Fandom 与 Bandori 基准测试中取得最佳的 NLI 分数,超过 Vanilla 提示、微调、RICL 与 ETA。
  • CDT 与 CDT-Lite 在这两个基准上也优于人工编写和编码化的人类画像。
  • 更多训练数据可提升 CDT 的性能,即使在 Fandom 数据较少的情况下 CDT 也已超越人类画像,且 Bandori 上持续获益。
  • 消融结果显示明确的验证与深度有助于更强的 grounding;移除聚类或多样化会降低性能。
  • Wikified 与 Verbalized 的 CDT 变体保持较强性能,同时提供可用的文本表示,且无需运行时遍历。
  • 关系驱动的 CDT(目标驱动)在目标关系子集中提升性能,表明 CDT 能对行为进行专业化。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。