Introduction
Bridging the gap between human-readable unstructured text and machine-readable structured Knowledge Bases (KBs) remains a central challenge in natural language processing. This paper introduces ReGen, a bidirectional generation framework designed to unify Graph-to-Text (G2T) and Text-to-Graph (T2G) tasks. By leveraging Reinforcement Learning (RL) and Pretrained Language Models (PLMs), ReGen addresses the limitations of standard training objectives and achieves state-of-the-art performance across multiple benchmarks.
The Modality Gap in Knowledge Representation
There are two primary directions in bridging text and structured data:
- Graph-to-Text (G2T): Generating fluent, semantically accurate descriptions from data triples (e.g., converting
(Elon Musk, founder, SpaceX)into "Elon Musk founded SpaceX"). - Text-to-Graph (T2G): Extracting structured facts from raw text, a process often referred to as semantic parsing. This is inherently difficult as it requires precise identification of entities and their complex relationships.
Traditional models rely on Cross-Entropy (CE) loss, which optimizes for next-token prediction. However, CE often fails to correlate with downstream evaluation metrics like BLEU or F1. Furthermore, while PLMs like T5 excel at text, they are not inherently designed to process the non-linear structure of graphs.
The ReGen Framework
ReGen treats both G2T and T2G as sequence-to-sequence (Seq2Seq) problems. The framework relies on three core technical pillars:
Graph Linearization and Data Augmentation
To process graphs within a language model, triples are converted into flat strings using special markers: <S> for subject, <P> for predicate, and <O> for object. To prevent the model from over-relying on a specific traversal path, the order of triples is randomly shuffled during training, forcing the model to learn the underlying content rather than a fixed sequence.
Model Architecture
ReGen utilizes an Encoder-Decoder architecture, as seen in the specialized and hybrid models below. This allows for a shared representation of knowledge regardless of the input modality.
Self-Critical Sequence Training (SCST)
The "secret sauce" of ReGen is the application of RL via SCST. After initial fine-tuning with CE loss, the model generates two outputs: a "greedy" search baseline and a randomly sampled output. If the sampled output achieves a higher score on a specific metric (typically METEOR), the model is rewarded. This allows the model to act as its own critic, optimizing directly for the metrics that define quality.
Experimental Evaluation
The researchers evaluated ReGen on two major benchmarks:
- WebNLG+ 2020: A challenge dataset containing RDF triples and natural language descriptions across 16 categories.
- TEKGEN: A massive dataset of 6.3 million triples aligned with Wikipedia text, used to test the scalability of the T2G approach.
Results and Discussion
ReGen established new State-of-the-Art (SOTA) benchmarks on the WebNLG+ 2020 dataset. In the G2T task, the ReGen T5-large model achieved a BLEU score of 0.563, significantly outperforming previous leaders. In the T2G task, ReGen achieved an F1 "Exact Match" score of 0.723, a substantial improvement over the previous best of 0.689.
Key insights from the study include:
- Metric Alignment: Using METEOR as the RL reward signal yielded the best overall performance, likely because it accounts for synonyms better than simple n-gram matching.
- The Starting Point Matters: For smaller models, "early stopping" during the CE phase prevented overfitting, allowing the RL phase more freedom to explore optimal solutions.
- Scalability: Performance gains were consistent even on the massive TEKGEN dataset, proving that RL fine-tuning is effective at scale.
Conclusion
ReGen demonstrates that Reinforcement Learning is a powerful tool not just for text generation, but also for structured semantic parsing. By aligning training objectives with evaluation metrics and utilizing bidirectional learning, ReGen effectively narrows the gap between how humans communicate and how machines store knowledge.
Summary updated