DialFork:超越事实性,评估对话代理中的程序性幻觉
研究论文 · 2026/10/27
大型语言模型作为对话代理时,不仅需要事实准确性,还需遵循程序逻辑。本文提出程序性幻觉这一被忽视的失败模式,即代理生成流畅且事实合理的话语,却偏离预期的对话流程。为此,作者构建了DialFork基准,通过在受控轮次位置分叉合规对话并注入四种幻觉类型,生成涵盖12个领域24个任务的36,278段对话,并由30名人工标注者验证。研究定义了三个评估任务,分别从对话集、单段对话和实时轮次三个粒度刻画程序性偏差,并提出了对话流感知的指标FlowKL和FlowScore。实验表明,FlowScore在七个编码器上显著优于所有基线,证明语义相似性无法替代程序相似性。该工作开源了DialFork,呼吁社区在关注内容的同时也衡量对话过程。
该论文识别了对话代理中未被重视的程序性幻觉问题,并提供了首个系统性的评估基准和有效指标,对提升对话系统的流程遵循能力具有重要意义,且开源了数据和代码,便于后续研究。
Large language models (LLMs) deployed as conversational agents are increasingly expected to follow procedural logic. While factual hallucination has received extensive attention, a different failure mode has been overlooked: procedural hallucination, in which an agent produces individually fluent and factually plausible utterances while deviating from the intended conversational process. We introduce DialFork, the first benchmark to measure this failure mode on raw dialogue text. DialFork is built by forking conformant dialogues at controlled turn positions and injecting one of four hallucination types, yielding 36,278 dialogues across 24 tasks in 12 domains; 30 human annotators validate the construction. We define three evaluation tasks that characterize procedural deviation at three granularities: how far a set of dialogues deviates from conformant ones (monitoring deployed agents), how far a single dialogue does (procedural retrieval), and at which turn a dialogue first goes off-track (real-time guardrails). For the first two, we propose dialog-flow-aware metrics, FlowKL and FlowScore, that compare dialogues by how they unfold rather than their content. At the dialogue level, FlowScore significantly outperforms all baselines across seven encoders, showing that semantic similarity is no substitute for procedural similarity. We release DialFork under the MIT license at https://github.com/idiap/dialfork, hoping the community will measure conversational process alongside content.