When the Database Fails: Prompting LLM Dialogue Agents for Safe Recovery in Task-Oriented Dialogue
Mohammad Alijanpour Shalmani, Alale Rezvani Boroujeni, Jiann Shiun Yuan
Abstract
Large language models used in task-oriented dialogue often produce fluent but unsafe responses when backend database calls fail, return empty results, or surface mismatched information, inventing venues, confirmations, or booking details not grounded in the database. We study a lightweight prompting-based recovery approach that improves robustness without retraining or additional model calls. We compare three response strategies, including a guided recovery prompt conditioned on structured database status, across six open-weight model families (DeepSeek-R1, Gemma-2, Llama-3, Mistral, Phi-3, and Qwen-2.5) and four database conditions: empty result, wrong-domain retrieval, API error, and clean retrieval. Using fault-injected benchmarks built on two structurally different datasets, MultiWOZ 2.2 (5 domains) and SGD (20 domains), we find that naive agents hallucinate on 30.5% of failure turns on MultiWOZ and 20.9% on SGD. Our Guided-Retry strategy reduces hallucination by 50% on MultiWOZ (30.5 to 15.3%) and by 42% on SGD (20.9 to 12.2%) without retraining. However, residual hallucination remains substantial (6-37% across models), with wrong-domain failures the hardest case. Results are consistent across both datasets and all six model families, and human annotation shows substantial agreement while supporting the validity of the automatic commitment-safety metric.
Create a lesson
Metadata
- Comments
- Accepted at SIGDIAL 2026
Related papers
Edit-Induced Dependency Mismatch: Propagation Omissions, Recovery, and Evaluation Blind Spots in Coding Agents
Shared title terminologycs.CLFei Ding
AutoOntologyBench: A Task-Grounded Benchmark for Agentic Knowledge Engineering
Shared title terminologycs.CLMinye Shao, Chenghao Xiao, Xingyue Zhao et al.
Multilingual Prompt Localization for Agent-as-a-Judge: Language and Backbone Sensitivity in Requirement-Level Evaluation
Shared title terminologycs.CLAlhasan Mahmood, Samir Abdaljalil, Hasan Kurban
A Task-State Representation for Long-Horizon Mobile GUI Agents
Shared title terminologycs.CLYujie Zheng, Zikang Liu, Xin Zhao et al.
OpenReward: Learning to Reward Long-form Agentic Tasks via Reinforcement Learning
Shared title terminologycs.CLZiyou Hu, Zhengliang Shi, Minghang Zhu et al.
A Semantic-Layer-Mediated Agent for Natural Language to SQL over Heterogeneous Enterprise Databases
Shared title terminologycs.CLHa Jeong Kim, Saksonita Khoeurn, Ye Ji Yoon