arXiv:2506.02264cs.CL2025-06ACL被引 1

将对话任务结构转为可解释代码,提升跨任务泛化能力

CoDial: Interpretable Task-Oriented Dialogue Systems Through Dialogue Flow Alignment

  • 用图结构和代码转换实现任务逻辑与对话策略的对齐
  • 在多个基准数据集上达到最新最好性能
  • 支持人工和LLM反馈迭代优化,适合需可解释性的场景

构建能跨任务泛化的任务导向对话系统仍是难题。数据驱动方法在未见任务上迁移效果差。尽管近期基于模式的框架通过解耦任务逻辑与语言理解提升了泛化性,但依赖神经或生成模型常导致行为不可解释。本文提出新框架CoDial(Code for Dialogue),将预定义的任务模式转化为结构化的异构图,并进一步生成程序化LLM防护代码(如NVIDIA Colang)。该流程实现推理时对话策略的高效且可解释对齐。我们提出两种代码生成范式:CoDial_free与CoDial_structured,还设计了融合人工反馈的迭代优化机制。实验证明,CoDial在广泛使用的基准数据集上达到当前最优性能,同时具备内在可解释性。我们还展示了通过人工及LLM辅助反馈实现代码迭代改进,使其成为人类引导未知领域LLM对齐的实用工具。

原文摘要 · Abstract (English)

Building Task-Oriented Dialogue (TOD) systems that generalize across different tasks remains a challenging problem. Data-driven approaches often struggle to transfer effectively to unseen tasks. While recent schema-based TOD frameworks improve generalization by decoupling task logic from language understanding, their reliance on neural or generative models often obscures how task schemas influence behaviour and hence impair interpretability. In this work, we introduce a novel framework, CoDial (Code for Dialogue), at the core of which is converting a predefined task schema to a structured heterogeneous graph and then to programmatic LLM guardrailing code, such as NVIDIA's Colang. The pipeline enables efficient and interpretable alignment of dialogue policies during inference. We introduce two paradigms for LLM guardrailing code generation, $\text{CoDial}_{\text{free}}$ and $\text{CoDial}_{\text{structured}}$, and propose a mechanism that integrates human feedback to iteratively improve the generated code. Empirically, CoDial achieves state-of-the-art (SOTA) performance on the widely used benchmark datasets, while providing inherent interpretability in the design. We additionally demonstrate CoDial's iterative improvement via manual and LLM-aided feedback, making it a practical tool for human-guided alignment of LLMs in unseen domains.

对话系统可解释性LLM对齐任务泛化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。