Introduction
Data-to-Text (D2T) generation is the task of converting structured data, such as knowledge graphs or tables, into fluent natural language. While modern neural encoder-decoder models produce high-quality text, they often struggle with faithfulness—either omitting facts or "hallucinating" information not present in the source. Furthermore, these models frequently fail to generalize to entities or relations not seen during training.
A promising approach involves a two-stage "plan-then-realize" pipeline. In this framework, a text plan (determining the order of facts) is generated first, followed by a realization stage that converts the plan into natural language. However, previous implementations relied on computationally expensive exhaustive searches for planning and produced repetitive text due to a lack of sophisticated referring expression generation (REG). This paper introduces several modular extensions to address these efficiency and quality bottlenecks.
Methodology
The authors propose four key enhancements to the plan-based framework:
- Neural Planner: To replace the slow exhaustive search, a transition-based neural controller was developed. This planner treats the ordering of facts as a parsing task, allowing for linear-time decision-making.
- Typing Hints: Explicit "type" embeddings (Structural, Entity, or Relation) are added to the input. These hints guide the model in distinguishing between entities that should be copied and relations that require verbalization.
- Output Verification: Leveraging the structured nature of the text plan, the system implements a verification stage. It generates multiple candidate sentences and filters out those that do not align with the plan's entity sequence or count.
- Referring Expression Generation (REG): To improve fluency, an unsupervised BERT-based module is used to post-process entity mentions, replacing repetitive names with pronouns or shortened forms where appropriate.
Results and Discussion
The system was evaluated on the WebNLG dataset, focusing on both seen and unseen categories to test generalization capabilities.
Efficiency Gains
The transition from exhaustive search to a neural planner yielded a massive reduction in computational overhead. As shown in Figure 3, while the exhaustive planner's time complexity grows exponentially with the number of edges, the neural planner maintains near-constant, sub-millisecond planning times.
Faithfulness and Accuracy
The verification stage proved highly effective in ensuring faithfulness. Manual error analysis (Figure 5) demonstrates that the "Exhaustive + Verify" configuration virtually eliminated omitted and over-generated facts, significantly outperforming previous neural baselines.
Key findings include:
- Speed: The neural planner achieved a 100,000x speedup, generating plans in approximately 0.0025 seconds compared to 250 seconds for the exhaustive method.
- Verification Success: For seen entities, the system successfully matched the plan's entity sequence in 99.82% of cases using a beam size of 5.
- Generalization: Explicit typing hints allowed the model to handle unseen relations more effectively by learning the structural role of symbols rather than just their specific meanings.
- Fluency: The REG module improved BLEU scores across the board, with over 70% of non-initial entity mentions being successfully replaced with more natural expressions.
Conclusion
By introducing a fast neural planner and an explicit verification stage, this work demonstrates that modularity in D2T systems can provide both efficiency and hard constraints on faithfulness. While a small quality gap remains between the neural and exhaustive planners, the massive speedup makes the system viable for real-time applications. Future work will focus on narrowing this performance gap and improving the robustness of the referring expression generation module.
Summary updated