Text-to-Text Pre-Training for Data-to-Text Tasks

Mihir Kale, Abhinav RastogiarXiv 2020

TL;DR

This paper demonstrates that T5, a general-purpose text-to-text transformer, can significantly outperform specialized, "exotic" architectures for data-to-text generation tasks. By simply linearizing structured data into strings, T5 achieves state-of-the-art results and shows remarkable robustness when generating text for domains it never saw during training.

What Problem Does This Paper Address?

Data-to-text generation is the task of taking structured information—like a table, a graph of triples, or a dialogue meaning representation—and turning it into natural, human-readable language.

Historically, researchers tackled this using complex, multi-stage pipelines (e.g., planning followed by realization) or specialized neural architectures like Graph Convolutional Networks (GCNs) designed to "understand" the data's structure. While these methods work, they are often brittle, hard to train, and struggle to generalize to new domains. The authors ask a simple question: Can a massive, pre-trained "text-to-text" model like T5 handle structured data just as well as—or better than—these bespoke systems?

Methods

The authors adopt a "pre-train + fine-tune" strategy using the Text-to-Text Transfer Transformer (T5).

The core innovation is its simplicity:

  1. Linearization: Instead of building a model that understands graphs or tables natively, they convert the structured data into a flat string using simple tags. For example, a table cell might be represented as <col_header> Date </col_header> <cell> 13 November 2013 </cell>.
  2. Fine-tuning: They take pre-trained T5 models (ranging from 60 million to 3 billion parameters) and fine-tune them on specific data-to-text datasets for a relatively small number of steps.
  3. Comparison: They compare T5 against other pre-trained models like BERT and GPT-2, as well as specialized SOTA models like DualEnc (which uses graph convolutions and explicit planning).
Figure 1: Examples from each dataset - The first row is WebNLG, second is Multiwoz and third is ToTTo. Each row illustrates the structured data (left), its lin- earized representation (top) and the target text(bottom)

Datasets

The study evaluates performance across three distinct types of structured data:

  • WebNLG: Graph-to-text. Converts RDF triples (subject-predicate-object) into descriptions.
  • ToTTo: Table-to-text. Uses Wikipedia tables paired with natural language summaries.
  • MultiWoz: Meaning representation-to-text. A dialogue dataset where the model must verbalize system actions.

Key Insights and Ideas

  • Simplicity Beats Sophistication: A standard transformer architecture, when pre-trained on enough text, outperforms "exotic" architectures like graph neural networks. You don't necessarily need a graph-aware model to generate text from a graph.
  • The Generalization Powerhouse: The most striking finding is how well T5 handles "unseen" data. While specialized models often crash when they encounter a new domain or predicate, T5’s broad pre-training allows it to maintain high accuracy and fluency.
  • Scale Matters (Mostly): While T5-3B generally performed best, the authors found that for simpler, less diverse datasets like MultiWoz, even the smallest T5 variant (T5-Small) was competitive with much larger models.
  • T5 > BERT/GPT-2: T5 consistently outperformed BERT-to-BERT and GPT-2 baselines, suggesting that its specific encoder-decoder pre-training objective is particularly well-suited for the "translation" aspect of data-to-text.

Key Results

  • WebNLG: T5-Large outperformed the previous SOTA (DualEnc) by 4.3 BLEU points overall. More impressively, on the "unseen" test set, it provided a massive 14 BLEU point improvement, proving its superior robustness.
  • ToTTo: T5-3B set a new state-of-the-art, improving on the BERT-to-BERT baseline by 5.5 BLEU and 5.8 PARENT (a metric for factual accuracy).
  • Human Evaluation: In a blind study on WebNLG's unseen set, human raters found T5-Large to be 90% accurate, compared to only 66% for the specialized DualEnc model. T5 also produced significantly more natural-sounding text.
Table 3: Results on the ToTTo test set. PAR is short for PARENT. PGen stands for Pointer Generetator (See et al., 2017a).

Limitations and Future Work

  • Linearization Limits: While simple linearization works well, the authors acknowledge they are only "scratching the surface." Future work could involve developing unsupervised pre-training objectives specifically designed for structured data rather than just plain text.
  • Multilingualism: The current study focuses on English. Extending this to low-resource languages is a key next step.
  • Factual Consistency: While T5 is good, the authors note that the Slot Error Rate (SER) on MultiWoz was slightly higher than some specialized models that use explicit ranking, suggesting there is still room to improve how models strictly adhere to the input data.

Summary updated

BibTeX
@misc{kale2020text,
  author = {Mihir Kale and Abhinav Rastogi},
  title = {{Text-to-Text Pre-Training for Data-to-Text Tasks}},
  year = {2020},
  eprint = {2005.10433},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.10433},
}

Loading related content...

Figure