Plan-then-Generate: Controlled Data-to-Text Generation via Planning

Yixuan Su, David Vandyke, Sihui Wang, Yimai Fang, Nigel Collier

Abstract

Data-to-text (D2T) generation—the process of converting structured data like tables or RDF graphs into natural language—is essential for applications ranging from virtual assistants to automated journalism. While modern neural models produce fluent text, they often lack explicit controllability and are prone to "hallucinations." This paper presents PlanGen (Plan-then-Generate), a framework that decouples content planning from surface realization. By employing a structure-aware reinforcement learning objective, PlanGen achieves state-of-the-art results on major benchmarks while remaining significantly more parameter-efficient than massive end-to-end language models.

Introduction

The primary challenge in D2T generation is ensuring that the output is not only fluent but also factually accurate and appropriately structured. Standard "black box" models often struggle to vary their output based on specific user needs. For instance, a user might want to emphasize different aspects of a data record depending on the context of a query. Without a formal intermediate step to decide the order and importance of information, models frequently omit key data points or invent details.

Examples of data-to-text generation from tabular (ToTTo) and graphical (WebNLG) sources.

PlanGen addresses these issues by introducing an explicit planning stage. This allows for fine-grained control over the generation process, enabling the model to handle diverse data structures such as tables and knowledge graphs effectively.

Methodology: The PlanGen Framework

The authors propose a two-stage pipeline consisting of a Content Planner and a Sequence Generator.

1. Content Planner

The Content Planner is built on a BERT-base architecture and treats planning as an ordering task. Given a set of data slots (e.g., "Name," "Year," "Role"), it utilizes a Linear-chain Conditional Random Field (CRF) to predict the most plausible sequence—the "content plan." A key feature of this planner is its ability to emit an "empty" label, allowing it to skip irrelevant or redundant data points.

2. Sequence Generator

The Sequence Generator uses a BART-base model. It takes both the original structured data and the predicted content plan as input to produce the final natural language output. By conditioning the generator on a specific plan, the framework ensures that the output follows the desired structural constraints.

The PlanGen architecture overview, illustrating the two-stage pipeline.

Structure-Aware Reinforcement Learning

To ensure the generator strictly adheres to the predicted plan, the authors introduce a Reinforcement Learning (RL) objective. The reward function balances two components:

  • Fluency: Measured via BLEU score to ensure natural-sounding language.
  • Structural Adherence: Measured via a novel "S-BLEU" score, which quantifies how well the generated text's internal structure aligns with the input content plan.

Evaluation and Results

PlanGen was evaluated on two prominent datasets: ToTTo (Wikipedia tables) and WebNLG (RDF triple graphs).

Key Findings

  • Efficiency and Accuracy: Despite having only approximately 140M parameters, PlanGen outperformed the much larger T5-3B model (2.8B parameters) on factual accuracy metrics like PARENT. On ToTTo, PlanGen achieved a 58.7 PARENT score, compared to 58.4 for T5-3B.
  • Generalization: In "Non-Overlap" tests designed to evaluate out-of-domain performance, PlanGen maintained high robustness, suggesting that explicit structural guidance aids generalization.
  • Controllability and Diversity: The framework allows users to generate diverse outputs for the same data by simply shuffling the content plan. This capability is particularly useful for data augmentation, as the model produces varied sentences without sacrificing factual consistency.

Conclusion

PlanGen demonstrates that explicit structural planning is a highly effective and efficient alternative to simply scaling up model parameters for data-to-text tasks. By decoupling "what to say" from "how to say it," the framework provides researchers and developers with a controllable, accurate, and robust tool for generating natural language from structured data. Future work will focus on reducing reliance on heuristic delexicalizers for training the planner and exploring automated methods for inducing content plans from raw text-data pairs.

Summary updated

BibTeX
@inproceedings{su2021plan,
  author = {Yixuan Su and David Vandyke and Sihui Wang and Yimai Fang and Nigel Collier},
  title = {{Plan-then-Generate: Controlled Data-to-Text Generation via Planning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.76},
}
Figure