Abstract
This paper presents a bottom-up method for automatically constructing data-to-text generators. By inducing probabilistic context-free grammars (PCFGs) from knowledge base (KB) triples, the system learns to map structured data to natural language. This approach treats generation as the "inverse" of semantic parsing, significantly reducing the manual engineering typically required for linearization and lexicalization.
Introduction
Data-to-text generation—the process of converting structured data into human-readable sentences—is a cornerstone of natural language processing. Traditionally, this task has relied on labor-intensive manual engineering, where experts write complex templates or rules to handle how data is ordered and expressed. This paper addresses the challenge of automation, specifically within the context of the KBgen challenge. The goal is to learn a generator from scratch using examples of sentences paired with their underlying KB triples.
Methodology
The proposed system utilizes a "generate-and-rank" pipeline built on induced PCFGs. The process is divided into three primary phases.
1. Semantic Alignment
The first step is learning the relationship between words in a sentence and triples in the KB. The system converts KB triples into rewrite rules and employs the inside-outside algorithm (a variant of Expectation-Maximization) to identify the most probable alignments. This allows the system to "discover" how abstract relations are realized linguistically. For instance, it might learn that an object relation often corresponds to the word "are" in specific contexts.
2. Grammar and Lexicon Extraction
Once alignments are established, the system extracts a "generation grammar." This grammar encodes two critical components:
- Linearization: The relative ordering of concepts (e.g., whether a "site" follows an "object").
- Lexicalization: The specific phrases used to express relations (e.g., the
siterelation might be lexicalized as "in the").
3. The Generation Pipeline
To generate a sentence from new triples, the system:
- Computes all possible spanning trees for the input data.
- Generates surface realizations based on the learned grammar.
- Ranking: A language model, trained on the GENIA corpus (biomedical literature), ranks the candidates to select the most natural-sounding output.
Key Insights
- Generation as Inverse Parsing: By learning to parse sentences into triples, the system inherently acquires the mapping needed for the reverse process.
- Learning "Glue Words": The EM algorithm identifies words that lack a 1-to-1 mapping in the KB but are statistically tied to specific relations, such as "of" or "are."
- Linguistic Heuristics: To avoid "word salad," the authors introduced basic constraints (e.g., requiring a finite verb) to filter out ungrammatical outputs that a purely statistical model might produce.
Results and Future Work
The authors demonstrated a functional prototype capable of inducing complex relation orderings and handling ambiguity through probabilistic rules. However, a significant limitation is the lack of deep morpho-syntactic knowledge, leading to issues like incorrect verb conjugation. Future work aims to integrate more sophisticated linguistic components to improve grammatical robustness without relying on post-generation filters.
Summary updated