Abstract
Hallucination remains a significant challenge in data-to-text generation, where models produce fluent but factually incorrect text. This paper introduces critic-driven decoding, a modular "plug-and-play" approach that uses a separate classifier to guide the language model toward more faithful outputs during inference. By balancing the base model's probability with a critic's assessment of truthfulness, the method reduces hallucinations without requiring expensive retraining or specialized datasets. Experimental results on WebNLG and OpenDialKG demonstrate that this approach significantly improves faithfulness metrics while maintaining high linguistic fluency.
Introduction
In data-to-text generation—the task of converting structured data like RDF triples into natural language—models often generate "hallucinations": text that sounds fluent but includes facts not present in the source data. Existing solutions typically involve computationally expensive fine-tuning or inefficient reranking of candidate batches. This paper proposes a middle ground: influencing the generation process on-the-fly during decoding. This method is model-agnostic and does not require specialized external data collection.
Methodology
The core innovation is the Text Generation Critic, a binary classifier that evaluates how well a generated prefix matches the input data in real-time.
The Critic-Driven Formula
Standard language models (LMs) predict the next token based on the probability $P(y_i | y_{<i}, x)$. The authors introduce a binary variable $c$ (where $c=1$ indicates a match). Using Bayes' rule, they derive a new decoding formula: $$\ln P(y_i | y_{<i}, x, c) \propto \lambda \ln P(c | y_{\le i}, x) + \ln P(y_i | y_{<i}, x)$$ This formula balances the LM's linguistic likelihood with the Critic's truthfulness score, weighted by a hyperparameter $\lambda$.
Implementation Details
- Efficiency: The critic only evaluates the top $k$ (e.g., $k=5$) most probable tokens suggested by the base LM to minimize overhead.
- Linear Warm-up: To account for the noise in the critic's assessment during the initial tokens of a sentence, the weight $\lambda$ is linearly increased over the first five tokens.
- Synthetic Training: The critic (an XLM-RoBERTa backbone) is trained on synthetic negative examples created by corrupting real data-text pairs, such as replacing tokens with random ones or using unconditional LMs to generate incorrect continuations.
Key Results
The researchers evaluated their method on the WebNLG and OpenDialKG benchmarks. The critic-driven approach significantly improved faithfulness metrics, particularly NLI-based scores and BLEURT, which are more sensitive to factual correctness than standard overlap metrics.
As shown in the results table, while the "base" critic achieved the highest faithfulness scores (NLI and BLEURT), the "base with full sentences" variant provided the best overall balance, even improving upon the baseline's BLEU and METEOR scores. Human evaluation further confirmed these findings, with the "base" critic reducing major hallucinations by 10% absolute compared to a standard BART model.
Analysis and Insights
One of the most significant findings is the "surgical" nature of the intervention. The method does not overhaul the entire generation process; instead, it intervenes only when the probability of a hallucination crosses a specific threshold.
Analysis of modification statistics reveals that the critic leaves 30–70% of the baseline outputs completely unchanged. This conservative approach ensures that the model's natural fluency is preserved while correcting specific factual errors. Furthermore, the impact of the critic scales with input complexity; for inputs containing five or more triples, the reduction in major hallucinations was significantly more pronounced.
Limitations and Future Work
Despite its effectiveness, the method faces a "Top-K" ceiling: if a truthful token is not among the top $k$ candidates proposed by the base LM, the critic cannot select it. Additionally, running a second transformer model during every decoding step increases inference latency. Future research will explore lighter-weight critic architectures to reduce this computational cost and improve real-time performance.
Summary updated