Evaluating Generative Models for Graph-to-Text Generation

Shuzhou Yuan, Michael Färber

Abstract: Large language models (LLMs) have been widely employed for graph-to-text generation tasks. However, the process of finetuning LLMs requires significant training resources and annotation work. In this paper, we explore the capability of generative models to generate descriptive text from graph data in a zero-shot setting. Specifically, we evaluate GPT-3 and ChatGPT on two graph-to-text datasets and compare their performance with that of finetuned LLM models such as T5 and BART. Our results demonstrate that generative models are capable of generating fluent and coherent text, achieving BLEU scores of 10.57 and 11.08 for the AGENDA and WebNLG datasets, respectively. However, our error analysis reveals that generative models still struggle with understanding the semantic relations between entities, and they also tend to generate text with hallucinations or irrelevant information. As a part of error analysis, we utilize BERT to detect machine-generated text and achieve high macro-F1 scores. We have made the text generated by generative models publicly available.

Introduction

Graph-to-text generation involves translating structured data—such as knowledge graphs containing entities and their relationships—into natural language descriptions. Traditionally, this task has relied on fine-tuning models on large labeled datasets to ensure they correctly interpret specific graph formats. However, fine-tuning is resource-intensive and expensive. With the emergence of powerful generative LLMs, this study investigates whether these models can perform graph-to-text generation in a "zero-shot" capacity, skipping the expensive training phase entirely.

Methodology and Datasets

The researchers evaluated two prominent models: GPT-3 (text-davinci-003) and ChatGPT (gpt-3.5-turbo-0301). To process graph data, a linearization technique was used, converting graphs into text strings using special tags: <H> for the head entity, <R> for the relation, and <T> for the tail entity. For example: <H> Joseph Stalin <R> commander <T> World War II.

The models were tested on two benchmark datasets:

  1. AGENDA: A scientific dataset pairing knowledge graphs with AI paper abstracts.
  2. WebNLG: A general-domain dataset mapping RDF triples to descriptive sentences about various entities.

Performance was compared against state-of-the-art fine-tuned models (T5 and BART) using metrics such as BLEU, METEOR, and BLEURT.

Key Insights

The Fluency-Faithfulness Gap

While generative models produce highly fluent, human-like text, they often lack semantic faithfulness. Common errors include reversing relationships (e.g., swapping subject and object) or omitting relations entirely.

Hallucinations and Verbosity

A significant challenge is the tendency of LLMs to rely on internal training knowledge rather than the provided graph. In the WebNLG dataset, ChatGPT often generated lengthy, biographical descriptions containing facts not present in the input graph. This "verbosity" led to lower precision scores compared to the more concise GPT-3.

Machine Detectability

Error analysis revealed that machine-generated graph descriptions are highly predictable. A BERT classifier was able to distinguish between human-written and LLM-generated text with nearly 100% accuracy, suggesting that LLM outputs follow distinct patterns that differ from human summarization.

Key Results

Quantitative evaluation shows a substantial performance gap between zero-shot LLMs and fine-tuned models. On the WebNLG dataset, the fine-tuned T5 model significantly outperformed the generative models in all metrics.

Performance comparison on the WebNLG dataset.

Similarly, on the AGENDA dataset, the fine-tuned BART model maintained a clear lead, though the gap was narrower than in the general-domain WebNLG task.

Performance comparison on the AGENDA dataset.

Conclusion and Future Work

Zero-shot LLMs currently struggle with three primary hurdles in graph-to-text generation: hallucinations, lack of reproducibility due to probabilistic sampling, and difficulty understanding graph directionality. Future research should focus on "grounding" techniques to ensure models adhere strictly to input data and exploring advanced prompting strategies to mitigate hallucinations.

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