Abstract
We address the issue of hallucination in data-to-text generation, i.e., reducing the generation of text that is unsupported by the source. We conjecture that hallucination can be caused by an encoder-decoder model generating content phrases without attending to the source; so we propose a confidence score to ensure that the model attends to the source whenever necessary, as well as a variational Bayes training framework that can learn the score from data. Experiments on the WikiBio dataset show that our approach is more faithful to the source than existing state-of-the-art approaches, according to both PARENT score and human evaluation. We also report strong results on the WebNLG dataset.
Introduction
In data-to-text generation—the task of transforming structured data into natural language—neural models often struggle with "hallucination." This occurs when a model generates plausible-sounding information that is entirely unsupported by the source data. For example, a model might describe a subject as a "criminal defense attorney" simply because the training data contains a reference to "FBI surveillance," even if the source table does not specify a profession.
This paper identifies source-reference divergence as a primary cause. Training datasets are often noisy; gold-standard references frequently contain extra information not present in the source. Standard models learn to mimic this noise, eventually relying on their internal language models rather than the input data. We propose a novel confidence score and a Variational Bayes training framework to enforce faithfulness.
Methodology
The Confidence Score ($C_t$)
The core of our approach is a confidence score designed to detect hallucination in real-time. This score balances two signals:
- Attention Score: A measure of how much the model is currently looking at the source data.
- Base Language Model Probability: The likelihood of a word being generated based purely on linguistic context (e.g., template words like "is" or "born").
If a content word has low support from both the attention mechanism and the language model, it is flagged as a likely hallucination.
Variational Bayes Training
To handle noisy training data, we treat the "faithful sub-sequence" of a reference as a latent variable. Using a Variational Bayes framework, the model learns to identify which parts of a reference actually match the source data. By prioritizing these faithful segments during training, the model learns to ignore the "extra" information found in noisy references.
Architectural Enhancements
We introduce two key modifications to the standard encoder-decoder architecture:
- Modified Attention: We allow attention weights to sum to less than 1, enabling the model to explicitly "choose not to attend" to the source for filler words.
- The
<null>Token: During inference, if the model's confidence falls below a specific threshold, it can output a<null>token. This acts as a "pause" mechanism, allowing the model to skip uncertain words and move to the next part of the sequence it can confidently generate.
Evaluation and Results
We evaluated our approach on two benchmarks: WikiBio (highly noisy) and WebNLG (relatively clean). Our primary metric for faithfulness was the PARENT score, which specifically measures the overlap between generated text, the reference, and the source data.
As shown in the results table, our proposed model, Conf-T2LSTM, significantly outperforms strong baselines like BERT-to-BERT and Pointer-Generator in terms of faithfulness. In human evaluations on WikiBio, our model achieved 86.8% faithfulness, a substantial improvement over the 79.6% achieved by the standard Pointer-Generator. While there is a slight trade-off in fluency when being extremely strict with confidence, the model maintains high quality even on cleaner datasets like WebNLG.
Conclusion
By decoupling the model's factual generation from its internal language model and using a confidence-aware training framework, we can significantly reduce hallucinations in data-to-text tasks. This approach ensures that the generator "sticks to the facts" provided in the source, paving the way for more reliable automated content generation in real-world applications.
Summary updated