Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Semantic Accuracy of Data-to-Text Generation with Natural Language Inference

Ondřej Dušek, Zdeněk Kasner|arXiv (Cornell University)|Nov 21, 2020
Topic ModelingComputer Science10 citations
TL;DR

This paper proposes a novel, reference-free metric for evaluating semantic accuracy in data-to-text (D2T) generation using a fine-tuned RoBERTa model for natural language inference (NLI). By converting structured input data into natural language templates and applying bidirectional entailment checks—verifying if generated text entails input facts (to detect omissions) and if input facts entail the generated text (to detect hallucinations)—the method achieves over 90% accuracy on E2E and over 75% on WebNLG, outperforming baseline metrics and approaching human evaluation quality with minimal handcrafting.

ABSTRACT

A major challenge in evaluating data-to-text (D2T) generation is measuring the semantic accuracy of the generated text, i.e. checking if the output text contains all and only facts supported by the input data. We propose a new metric for evaluating the semantic accuracy of D2T generation based on a neural model pretrained for natural language inference (NLI). We use the NLI model to check textual entailment between the input data and the output text in both directions, allowing us to reveal omissions or hallucinations. Input data are converted to text for NLI using trivial templates. Our experiments on two recent D2T datasets show that our metric can achieve high accuracy in identifying erroneous system outputs.

Motivation & Objective

  • To address the challenge of automatically measuring semantic accuracy in data-to-text generation, where models often omit facts or hallucinate unsupported information.
  • To develop a scalable, reference-free evaluation method that does not rely on human-annotated references or domain-specific training.
  • To leverage pre-trained natural language inference (NLI) models to detect semantic errors such as omissions and hallucinations in generated text.
  • To evaluate the effectiveness of this approach on diverse D2T datasets, including E2E and WebNLG, under realistic conditions with minimal human intervention.

Proposed method

  • Convert each structured input fact into a natural language statement using simple, consistent templates (e.g., 'Blue Spice is a pub').
  • Use a pre-trained RoBERTa model fine-tuned for natural language inference (NLI) to classify the relationship between input facts and generated text.
  • Perform two-directional entailment checks: (1) input facts as premise, generated text as hypothesis (to detect hallucinations), and (2) generated text as premise, input facts as hypothesis (to detect omissions).
  • Classify each pair as entailment, contradiction, or neutral; a contradiction in either direction indicates a semantic error.
  • Aggregate results across all input facts to determine overall semantic accuracy of the generated text.
  • Apply the method without any in-domain fine-tuning or human-annotated references, relying only on general-purpose NLI models and basic text templates.

Experimental results

Research questions

  • RQ1Can a pre-trained NLI model effectively detect semantic errors such as omissions and hallucinations in data-to-text generation outputs?
  • RQ2How does the performance of this NLI-based metric compare to handcrafted scripts or reference-based metrics in terms of accuracy and scalability?
  • RQ3To what extent can a general-purpose NLI model detect semantic inaccuracies without domain-specific fine-tuning or human-annotated references?
  • RQ4What are the main failure modes of the NLI-based metric, and how can they be mitigated through in-domain adaptation?

Key findings

  • The proposed NLI-based metric achieves 97.8% accuracy on the E2E Challenge dataset, closely approaching the 99.5% accuracy of handcrafted scripts.
  • On the more complex WebNLG dataset, the metric achieves 76.5% accuracy and 97.6% recall, demonstrating strong performance despite higher domain complexity.
  • The method detects both omissions and hallucinations effectively by checking entailment in both directions between input facts and generated text.
  • Manual error analysis confirms that many instances flagged as errors by the metric were indeed semantically incorrect, validating its reliability.
  • The metric outperforms referenceless fluency metrics and shows competitive performance compared to human evaluation, especially when considering scalability and low human effort.
  • The approach remains effective even without in-domain fine-tuning, though performance improves with small-scale domain adaptation, suggesting potential for further optimization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.