Order-Planning Neural Text Generation From Structured Data

Lei Sha, Lili Mou, Tianyu Liu, Pascal Poupart, Sujian Li, Baobao Chang, Zhifang Sui

Introduction

Generating natural language from structured data—such as Wikipedia infoboxes—is a fundamental challenge in Natural Language Processing (NLP). While modern neural encoder-decoder models excel at "wording" (producing fluent text), they often struggle with "planning" (determining the logical sequence of information). Humans typically decide on a structured order of facts before writing; for instance, a biography usually introduces a subject's name and birth date before discussing their professional achievements. Standard Recurrent Neural Networks (RNNs) are often "shortsighted" in this regard, leading to disorganized or repetitive summaries. This paper introduces an "order-planning" mechanism that explicitly models the transitions between data fields to produce more coherent text.

The Hybrid Dispatcher Mechanism

The core innovation of this research is the Dispatcher, a specialized component that replaces standard attention mechanisms. Instead of merely looking at the relevance of table entries to the current word being generated, the model employs a hybrid approach to decide what to talk about next.

The Hybrid Dispatcher architecture, combining content-based and link-based attention.

As shown in the architecture above, the system integrates three distinct elements:

  1. Content-Based Attention: This is the standard attention mechanism that identifies table entries relevant to the current decoding state.
  2. Link-Based Attention: This uses a learnable Link Matrix ($L$), which functions similarly to a transition matrix in a Markov chain. It captures the probability of one field following another (e.g., "Nationality" following "Birth Place").
  3. Self-Adaptive Gate ($z_t$): A gating mechanism that dynamically balances these two attention types at every time step.

The model also utilizes a copy mechanism, allowing the decoder to directly extract rare words—such as specific names or dates—from the table, ensuring high factual accuracy.

Key Insights: Field Relationships

The researchers treat the input table not just as a bag of facts, but as a graph of related fields. While content-based attention identifies what is relevant, link-based attention determines when it should be mentioned.

Comparison of content, link, and hybrid attention heatmaps during sentence generation.

Visualizing these attention types (as seen in the heatmaps above) reveals how the hybrid approach functions. Link-based attention provides a smoother, more structured transition between fields, helping the model maintain a natural flow. For example, the model successfully learns to generate "American" (Nationality) before "Economist" (Occupation), a sequence that content-only models frequently skip or confuse.

One significant training discovery was that the model initially over-relied on link-based signals. To correct this, the authors applied a heuristic adjustment to the self-adaptive gate ($z_t = 0.2z_t + 0.5$) to ensure content-based relevance remained a priority.

Results and Performance

The model was evaluated on the WIKIBIO dataset, which contains over 728,000 Wikipedia biography infoboxes and their corresponding introductory sentences. The "Order Planning" model significantly outperformed previous state-of-the-art baselines.

Model BLEU ROUGE NIST
Previous Best (Table NLM) 34.70 25.80 7.98
Order Planning (Full Model) 43.91 37.15 8.85

Ablation studies confirmed the importance of the planning component: removing the link-based attention resulted in a drop of approximately 2.5 BLEU points. This demonstrates that explicit order planning is a critical factor in bridging the gap between structured data and natural human-like summaries.

Limitations and Future Directions

While effective, the Link Matrix scales at $n_f \times n_f$ (where $n_f$ is the number of fields). In domains with tens of thousands of unique fields, this matrix could become sparse and computationally expensive. Future work may explore low-rank approximations to address scalability. Additionally, the need for manual gate adjustments suggests that future research could focus on more seamless ways to balance content and structural attention during the training process.

Summary updated

BibTeX
@inproceedings{sha2018order,
  author = {Lei Sha and Lili Mou and Tianyu Liu and Pascal Poupart and Sujian Li and Baobao Chang and Zhifang Sui},
  title = {{Order-Planning Neural Text Generation From Structured Data}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11947},
}
Figure