Neural Text Generation from Structured Data with Application to the Biography Domain

Rémi Lebret, David Grangier, Michael Auli

Introduction

Concept-to-text generation—the task of transforming structured records into fluent natural language—has traditionally been limited to narrow, well-defined domains such as weather reports or sports statistics. Scaling these systems to broader, more diverse domains like Wikipedia biographies presents significant challenges, primarily due to data sparsity. In a large-scale setting, models must handle a vocabulary of hundreds of thousands of words, many of which (such as specific names or locations) appear only a handful of times in the training set.

Researchers from Facebook AI Research and EPFL address this by introducing a conditional neural language model designed to handle the complexity of Wikipedia infoboxes. Their approach combines local and global conditioning with a specialized copy mechanism to generate fluent, accurate introductory sentences for biographies.

Methodology

The proposed model is a feed-forward neural network that predicts the next word in a sequence based on three primary components:

  1. Local Conditioning: The model incorporates the source of each word within the structured table. By using (field, position) triplets, the model learns the structural roles of data. For instance, it recognizes that the final token of a name field is typically followed by a birth date or a linking verb like "was."
  2. Global Conditioning: To capture the overall context of the biography, the model summarizes the entire table. This holistic view allows the model to perform a form of latent classification; the presence of fields like notable_students or institutions signals an academic context, prompting the model to adopt a professional tone even if the word "scientist" is not explicitly present.
  3. Copy Actions: To solve the rare word problem, the model can choose to "copy" a word directly from a specific cell in the table rather than generating it from a fixed vocabulary. This allows the system to accurately output obscure names and places that it may have never encountered during training.
Figure 1: Visualization of the model's local conditioning and copy actions during the generation of a biography for Nellie Wong.

The WIKIBIO Dataset

A key contribution of this work is the introduction of WIKIBIO, a new large-scale benchmark for text generation. The dataset consists of 728,321 biography articles from English Wikipedia, paired with their corresponding infoboxes. With a vocabulary exceeding 400,000 words and a vast array of diverse fields, WIKIBIO is an order of magnitude larger and more complex than previous datasets like WEATHERGOV.

Results and Performance

The neural model demonstrates a substantial improvement over traditional statistical baselines. It achieved a 34.7 BLEU score, outperforming a strong "Template Kneser-Ney" baseline which scored 19.8. Beyond accuracy, the model exhibits high fluency, correctly adjusting tense based on the presence of a death_date in the table.

Figure 2: Comparison of BLEU scores and inference time (ms) between the neural Table NLM and the Template KN baseline across different beam sizes.

In terms of efficiency, the feed-forward architecture is significantly faster than contemporary LSTM-based models or complex statistical systems. Inference typically takes approximately 200ms, making it suitable for real-time applications.

Discussion and Future Work

While the model excels at generating introductory sentences, several challenges remain. Currently, the system is limited to single-sentence generation; expanding this to full-length biographies is a primary goal for future research. Additionally, the model occasionally suffers from "factual hallucinations" because the standard training loss (negative log-likelihood) does not explicitly penalize factual inaccuracies if the generated word is grammatically plausible. Future work may involve developing loss functions that specifically assess and enforce factual consistency with the source data.

Summary updated

BibTeX
@inproceedings{lebret2016neural,
  author = {Rémi Lebret and David Grangier and Michael Auli},
  title = {{Neural Text Generation from Structured Data with Application to the Biography Domain}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1128},
}
Figure