Evaluating Generative Models for Graph-to-Text Generation

Shuzhou Yuan, Michael Färber · DOI

Introduction

Graph-to-text generation is a specialized task in Natural Language Processing (NLP) that involves converting structured data—such as knowledge graphs or Resource Description Framework (RDF) triples—into coherent, human-readable natural language. Historically, achieving high performance in this domain required extensive fine-tuning of sequence-to-sequence models on domain-specific datasets. However, the emergence of Large Language Models (LLMs) like GPT-3 and ChatGPT has raised the question of whether "zero-shot" prompting can replace the need for resource-intensive fine-tuning.

A recent study by Shuzhou Yuan and Michael Färber from the Karlsruhe Institute of Technology (KIT) investigates this transition, evaluating the efficacy of zero-shot generative models against established fine-tuned baselines.

Methodology and Experimental Setup

The researchers focused on the challenge of "input format mismatch." While LLMs are primarily trained on unstructured text, graph data is inherently structured. To bridge this gap, the authors employed a linearization technique, converting graph components into strings using specific markers:

  • <H>: Head entity
  • <R>: Relation
  • <T>: Tail entity

Models Evaluated

The study compared two prominent generative models in a zero-shot configuration:

  1. GPT-3 (text-davinci-003)
  2. ChatGPT (gpt-3.5-turbo-0301)

These were benchmarked against state-of-the-art (SOTA) models that underwent supervised fine-tuning: T5 and BART. Additionally, a BERT-based classifier was utilized to determine if machine-generated text could be distinguished from human-written references.

Datasets

Two primary benchmarks were used to test the models:

  • AGENDA: A dataset consisting of knowledge graphs paired with scientific paper abstracts.
  • WebNLG: A benchmark for mapping RDF triples from DBpedia into descriptive natural language.

Key Findings and Semantic Challenges

The evaluation revealed a significant performance gap between zero-shot LLMs and fine-tuned models, driven by several key factors:

1. The Fluency-Accuracy Paradox

LLMs demonstrated exceptional linguistic fluency, producing text that sounds natural and authoritative. However, this fluency often masked significant factual errors. The models frequently "hallucinated" information—either inventing facts not present in the source graph or omitting critical relations provided in the input.

2. Semantic Reversal and Structural Misunderstanding

A critical failure mode identified was the reversal of semantic roles. For instance, if a graph indicated a directional relationship where "Entity A influences Entity B," zero-shot models occasionally generated text stating "Entity B influences Entity A." This suggests that while LLMs understand the entities, they struggle to consistently respect the directional logic of graph edges in a zero-shot context.

3. The "Chattiness" of ChatGPT

On the WebNLG dataset, ChatGPT tended toward verbosity, generating flowery descriptions that deviated from the concise nature of the input triples. This "chattiness" negatively impacted traditional metrics like BLEU, which penalize deviations from the reference length and content.

4. Machine Text Identifiability

The BERT-based classifier was remarkably effective at identifying LLM-generated text. On the AGENDA dataset, the classifier achieved a Macro-F1 score of up to 100%. This indicates that zero-shot outputs follow distinct, predictable patterns that differ significantly from human-authored text.

Quantitative Results

The quantitative data underscores the superiority of fine-tuned models in maintaining semantic fidelity:

  • AGENDA Dataset: Fine-tuned BART achieved a BLEU score of 23.65, significantly outperforming ChatGPT (10.57) and GPT-3 (8.34).
  • WebNLG Dataset: The disparity was even more pronounced. Fine-tuned T5 reached a BLEU score of 59.70, while GPT-3 scored 20.36 and ChatGPT trailed at 11.08.

Conclusion and Future Directions

The study concludes that while zero-shot LLMs are powerful tools for creative and fluent text generation, they currently lack the precision required for high-fidelity graph-to-text tasks. The high rate of hallucinations and semantic errors makes them less reliable than smaller, fine-tuned models like T5 or BART for data-critical applications.

Future research must focus on improving the "grounding" of LLMs to ensure they strictly adhere to the structural constraints of the input data. Until then, fine-tuning remains the gold standard for transforming structured knowledge into accurate prose.

Summary updated

BibTeX
@inproceedings{yuan2023evaluating,
  author = {Shuzhou Yuan and Michael Färber},
  title = {{Evaluating Generative Models for Graph-to-Text Generation}},
  booktitle = {RANLP},
  year = {2023},
  url = {https://openreview.net/forum?id=DelflaVNYP},
}
Figure