Introduction
Graph-to-text generation is the task of converting structured knowledge graph triplets—such as <Albert Einstein, born in, Ulm>—into coherent natural language sentences. While Large Language Models (LLMs) are highly fluent, they often struggle with complex graphs. As the number of triplets increases, models frequently fail to "plan" the narrative flow, leading to disjointed text, missing information, or hallucinations. This paper introduces PlanGTG, a novel dataset and fine-tuning methodology designed to improve the structural planning and grounding of LLMs in graph-to-text tasks.
Methodology: PlanGTG and Two-Phase Training
The authors propose a multi-stage approach to enhance model performance. First, they introduce a new instruction-tuning dataset, PlanGTG, containing approximately 30,000 data pairs. This dataset was constructed by rewriting and annotating seeds from the GraphNarrative dataset using GPT-3.5-turbo to add specific structural labels.
The core of the approach is a two-phase fine-tuning strategy illustrated in the pipeline below:
- Reordering: The model is trained to output triplets in the specific order they appear in the final narrative.
- Attribution: The model inserts numerical indices (e.g.,
(1),(2)) into the generated text to explicitly cite the source triplet for each piece of information.
Additionally, the researchers utilized Difficulty-Diversity Balanced Demonstration Selection (DDD) for few-shot prompting and a Curriculum Learning ("Baby-steps") approach, starting with simple graphs and gradually increasing complexity during training to prevent the model from becoming overwhelmed.
Key Results and Evaluation
The PlanGTG approach was evaluated against several established benchmarks, including WebNLG17, WebNLG20, and DART. Fine-tuning LLaMA2-7b-chat and Mistral-7b-chat on PlanGTG yielded significant improvements over base models and other synthetic dataset baselines like TEKGEN and GraphNarrative (GN).
Key findings from the experimental results include:
- Performance Gains: PlanGTG fine-tuning led to an average increase of nearly 6 BLEU points and improved BARTScore (BS) compared to zero-shot baselines. It consistently outperformed models trained on TEKGEN and GN across all metrics.
- Reduced Hallucinations: Forcing the model to provide attribution indices acted as a powerful regularizer. Human evaluation showed PlanGTG models had a hallucination rate of 0.36 per pair, significantly lower than TEKGEN's 0.84.
- Planning Robustness: The reordering task helped models maintain coherence even as graph complexity (number of triplets and diameter) increased, addressing the primary bottleneck in current LLM-based generation.
Conclusion
By integrating explicit planning (reordering) and grounding (attribution) into the fine-tuning process, PlanGTG significantly enhances the reliability of LLMs for graph-to-text generation. The results demonstrate that structural auxiliary tasks are more effective than simple prompting for complex data-to-text transformations. Future work will explore scaling these methods to larger frontier models and more diverse graph topologies.
Summary updated