Abstract
Knowledge Graph-to-text (KG-to-text) generation is a critical task for making structured data accessible through natural language. Despite recent progress, models often require extensive parallel datasets and struggle to bridge the semantic gap between graph structures and linear text. This paper introduces a novel framework designed for the few-shot setting. By aligning graph-based entity embeddings with pretrained language model (PLM) representations and utilizing a relation-biased linearization strategy, the proposed model significantly outperforms existing baselines in both low-resource and fully-supervised scenarios.
Introduction
The primary objective of KG-to-text generation is to transform structured triples, such as [Iron Man, creator, Stan Lee], into coherent natural language sentences like "Iron Man was created by Stan Lee." This task faces two significant challenges:
- Data Scarcity: Annotating large-scale KG-text pairs is labor-intensive and domain-specific.
- The Semantic Gap: PLMs are optimized for linear text, whereas KGs are non-linear graphs. Naive linearization often results in a loss of structural logic, hindering the model's ability to generate accurate descriptions.
To address these issues, this research focuses on a few-shot learning approach that enables models to generalize from only a few hundred training examples.
Methodology
The proposed framework is built upon a BART-based architecture and introduces three key technical innovations:
1. Representation Alignment
To bridge the gap between graph and text modalities, the model employs a Relational Graph Convolutional Network (R-GCN) to encode the KG. Simultaneously, masked versions of the target text are processed through the lower layers of the BART encoder. A specialized loss function forces the GNN’s entity embeddings to align with the PLM’s text-based representations. This alignment ensures the PLM recognizes that a graph node and a textual mention refer to the same underlying concept.
2. Relation-Biased Breadth-First Search (RBFS)
Linearizing a graph for PLM consumption is non-trivial. Instead of random traversal, the authors implement an RBFS strategy. This method weights the search based on relation priority (e.g., prioritizing 'nationality' over 'birthplace'), creating an input sequence that mirrors natural human narrative structures.
3. Multi-task Learning (KG Reconstruction)
To mitigate "hallucinations"—the generation of facts not present in the source data—the model incorporates a KG reconstruction task. During training, the decoder must be able to reconstruct the original KG triples from the hidden states of the generated text, anchoring the output to the provided facts.
Experimental Evaluation
The model was evaluated on three benchmark datasets: AGENDA (scientific metadata), WebNLG (DBpedia entities), and GenWiki Fine (Wikipedia/Wikidata).
Key Results
The proposed Few-Shot-KG2Text model achieved state-of-the-art results:
- Few-Shot Performance: On the WebNLG dataset with only 50 training instances, the model achieved a BLEU-4 score of 10.60, significantly outperforming BART-large (9.05) and T5-large (7.18).
- Fully Supervised Performance: On the AGENDA dataset, it reached a BLEU-4 of 25.15, surpassing the previous graph-specific leader, GraphWriter (15.30).
- Human Evaluation: Judges consistently rated the model's outputs as more factually accurate and natural compared to baselines.
Conclusion
This work demonstrates that effective KG-to-text generation in low-resource settings relies on two pillars: preserving structural information through intelligent linearization and aligning graph representations with the rich internal knowledge of pretrained language models. By anchoring generation through KG reconstruction, the model ensures both fluency and faithfulness. Future work will explore scaling these techniques to even larger language models and automating entity alignment through advanced NER tools.
Summary updated