Abstract
Task-Oriented Dialogue (TOD) systems powered by black-box Large Language Models (LLMs) often struggle with static prompts that are either too broad or too rigid, leading to hallucinations and poor scaling. This paper introduces an Adaptive Prompt Generation Framework that utilizes a small, trainable model to identify relevant domains and slots before querying the LLM. By generating concise, dynamic prompts, the system significantly improves belief state tracking and response accuracy, outperforming standard prompting methods on the MultiWOZ benchmark.
Introduction
Digital assistants for booking services or finding information rely on two core functions: Belief State Tracking (understanding user intent) and Response Generation. While LLMs like ChatGPT are highly capable, they face a "Goldilocks" problem in TOD. Static prompts containing all possible database information are often too long and complex, causing the model to lose focus or "hallucinate." Conversely, manually designing unique prompts for every possible dialogue state is labor-intensive and fails to scale. The proposed framework bridges this gap by automatically tailoring prompts to the specific context of each dialogue turn.
Methodology
The framework consists of two primary components that operate before the LLM is invoked:
- Trainable Slot Generator (TSG): A smaller, fine-tuned model (based on GPT-2/SOLOIST) predicts the Domain (e.g., Restaurant) and Slots (e.g., price range, area) relevant to the current turn. This model focuses on the structure of the data rather than specific values.
- Adaptive Prompt Generator (APG): This module uses the TSG's output to construct a dynamic prompt. It queries a table of possible values only for the predicted slots, ensuring the LLM receives a "clean," highly relevant input.
Execution follows a two-stage process: first, the LLM generates the Belief State (filling slot values) using the adaptive prompt; second, it generates the System Response using a subsequent prompt that incorporates entity placeholders.
Experimental Setup
The framework was evaluated using the MultiWOZ 2.0 dataset, focusing on single-domain subsets for Attraction, Hotel, Restaurant, and Train. The Camrest676 dataset was also used to test the generalizability of the TSG, which showed performance improvements even on unseen data.
Key Results
The framework demonstrated superior performance compared to standard ChatGPT prompting and specialized models like SOLOIST and PPTOD.
- Joint Goal Accuracy (JGA): In the Restaurant domain, the TSG-based framework achieved a JGA of 55.81%, a significant improvement over standard ChatGPT's 45.31%.
- Domain Stability: The improvement was most pronounced in complex domains like "Hotel," where intricate belief states often cause static prompts to fail. The adaptive method provided a stability boost by "fencing in" the model with relevant slots.
Discussion and Insights
The core innovation lies in Schema-First Prompting: predicting the structure of data is more robust than predicting content all at once. By offloading structural prediction to a small model, the LLM can focus its reasoning on specific details. Furthermore, the use of specific delimiters (e.g., {}) for belief states improved parsing accuracy. Training the TSG is also more efficient than full state annotation, as it only requires labels for domains and slots, making it easier to port to new industries.
Conclusion and Future Work
The Adaptive Prompt Generation Framework effectively mitigates hallucinations and complexity issues in black-box LLMs for TOD. While currently focused on single-domain dialogues, future work will expand the framework to handle multi-domain scenarios and integrate real-time database query results directly into the prompt generation loop.
Summary updated