Few-Shot Table-to-Text Generation with Prototype Memory

Yixuan Su, Zaiqiao Meng, Simon Baker, Nigel Collier

Generating natural language descriptions from structured data, such as Wikipedia infoboxes, is a foundational task in Natural Language Processing. While modern neural models excel when provided with vast amounts of data, they are notoriously "data-hungry." In many real-world scenarios, we only have access to a few dozen labeled examples—the "few-shot" setting. In these cases, models often struggle with the structural gap between attribute-value pairs and cohesive narratives.

To address this, the Prototype-to-Generate (P2G) framework leverages large unlabeled corpora to provide neural generators with high-quality stylistic and content templates, significantly boosting performance when labeled data is scarce.

The P2G Framework

The P2G framework is a model-agnostic approach that can be integrated with various sequence-to-sequence models like T5 or GPT. It operates in three distinct stages:

  1. Retrieval: Using an Information Retrieval (IR) system, the model searches a massive unlabeled corpus (e.g., English Wikipedia) for candidate sentences that share lexical overlaps with the input table.
  2. Prototype Selection: Since keyword matching can be imprecise, a BERT-based prototype selector calculates semantic similarity between the table and candidates. This selector is trained via contrastive learning to ensure the chosen "prototypes" are semantically relevant, even if they don't share exact keywords.
  3. Generation with Content-Aware Learning: The top prototypes are concatenated with the linearized table and fed into a generator. To prevent the model from hallucinating irrelevant facts from the prototypes, a content-aware learning objective uses unlikelihood training to penalize the generation of tokens found in prototypes that are not supported by the input table.
Overview of the Prototype-to-Generate (P2G) framework, illustrating the pipeline from table input to final sequence generation.

Experimental Results

The researchers evaluated P2G on three benchmark few-shot datasets: Humans (biographies), Books, and Songs, across training sizes ranging from 50 to 500 labeled examples.

As shown in the results below, the P2G framework consistently outperformed state-of-the-art baselines. For instance, on the Humans dataset with 100 training samples, P2G improved the T5-Prefix model's BLEU score from 37.1 to 42.6. Human evaluations further confirmed these findings, with P2G outputs rated as more factually correct and fluent than baseline models.

Performance comparison of P2G against various baselines across different domains and training sizes, measured in BLEU/ROUGE scores.

Key Insights

  • Unlabeled Data as a Teacher: The core innovation is that labeled table-text pairs aren't strictly necessary to learn descriptive styles. Large corpora contain the "prototypes" of human writing; the model simply needs a mechanism to find and adapt them.
  • Semantic vs. Lexical Retrieval: The BERT-based selector is crucial. It recognizes that a sentence about a "melodic death metal band" is a useful prototype for a "thrash metal" table, a connection simple keyword matching (like BM25) often misses.
  • The Goldilocks Zone: Performance typically peaks at approximately 3 prototypes. Beyond this point, the "noise" from irrelevant facts in the prototypes begins to overwhelm the useful stylistic signal.
  • Hallucination Control: The content-aware objective effectively mitigates the common issue of models blindly copying irrelevant information from retrieved context, ensuring higher factual fidelity.

Conclusion and Future Work

The P2G framework demonstrates that prototype-based retrieval is a powerful tool for few-shot table-to-text generation. While highly effective, the method currently depends on the availability of a relevant unlabeled corpus and introduces some inference overhead due to the retrieval and selection steps. Future research may explore dynamic memory systems that update as the model encounters new data, further refining the balance between retrieval and generation.

Summary updated

BibTeX
@inproceedings{su2021few,
  author = {Yixuan Su and Zaiqiao Meng and Simon Baker and Nigel Collier},
  title = {{Few-Shot Table-to-Text Generation with Prototype Memory}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.77},
}
Figure