Abstract
End-to-end (E2E) task-oriented dialog systems often suffer from "entity inconsistency," where generated responses hallucinate factual details not present in the Knowledge Base (KB). We present ECO (Entity-COnsistent), a framework that addresses this by generating structured entity information prior to the natural language response. By employing a trie-constrained autoregressive decoder, ECO ensures that all mentioned entities are grounded in the KB. Experimental results on MultiWOZ and CAMREST benchmarks demonstrate that ECO significantly improves task success and informational accuracy over existing E2E baselines.
Introduction
Task-oriented dialog (TOD) systems are designed to assist users in completing specific tasks, such as booking a hotel or finding a restaurant. Traditionally, these systems employ a modular pipeline architecture consisting of natural language understanding, belief tracking, database querying, and response generation. While effective, these pipelines often suffer from error propagation and require extensive human annotation for each module.
End-to-end (E2E) models offer a more streamlined alternative, mapping user input directly to system responses. However, E2E models frequently struggle with hallucinations—generating factually incorrect details (e.g., wrong phone numbers) even when the correct entity name is identified. This paper introduces ECO, a framework designed to ground E2E responses in factual knowledge through autoregressive entity generation.
The ECO Framework
The core innovation of ECO is a "generate-then-respond" strategy. Instead of generating a response in one pass, the model first predicts a sequence of entity attributes relevant to the user's request. This sequence acts as a factual anchor for the subsequent response generation.
Architecture
The ECO architecture consists of two primary stages: Entity Generation and Response Generation, linked by a shared encoding space.
- Shared Encoder: Processes the dialog context and the current user utterance to create a unified representation.
- Entity Decoder: Generates the entity sequence (e.g.,
[name] Warkworth House [area] east ...). To ensure these entities exist in the KB, the decoder is constrained by a Trie (prefix tree). This factual guardrail prevents the model from generating tokens that do not correspond to valid KB entries. - Logit Concatenation (LogitConcat): To maintain end-to-end differentiability, the model uses LogitConcat. This technique passes a continuous representation of the generated entity tokens to the response decoder, allowing gradients to flow back through the entire system during training.
- Response Decoder: Generates the final natural language response, conditioned on the context, utterance, and the previously generated entity sequence.
Knowledge Base Embedding
Rather than querying an external database at runtime, ECO "bakes" the KB into its parameters. This is achieved through data augmentation: the training set is expanded by taking dialog templates and populating them with diverse entries from the KB. This process exposes the model to a wide variety of factual combinations during pre-training, effectively embedding the knowledge within the weights of the model.
Experimental Evaluation
The authors evaluated ECO on two benchmark datasets: MultiWOZ 2.1 (focusing on single-domain tasks) and CAMREST. The system was compared against state-of-the-art E2E models like GPT-KE.
Key Results
ECO demonstrated significant improvements in task-related metrics:
- Inform Rate: On MultiWOZ, ECO achieved 83.63%, significantly outperforming GPT-KE's 72.57%. This indicates a superior ability to identify the correct entity for the user.
- Success Rate: ECO reached a success rate of 75.37%, compared to 64.16% for the baseline, showing it more reliably provides all requested information.
- Entity Consistency: Using a novel consistency metric, ECO showed a score of 56.84%, proving that the trie-constrained generation effectively reduces hallucinations compared to unconstrained baselines.
Discussion and Conclusion
The success of ECO highlights the importance of constrained decoding in task-oriented systems. By forcing the model to commit to a factual entity before generating natural language, the system reduces the search space for the response decoder and ensures internal consistency.
While ECO excels in factual accuracy, there is a slight trade-off in linguistic variety (BLEU scores), as the model prioritizes correctness over mimicking specific human phrasing. Future work will focus on extending this approach to multi-domain dialogs and scenarios involving multiple entities per turn.
Summary updated