Abstract
This study investigates the performance of stochastic natural language generation (NLG) using grammars automatically extracted from large-scale corpora compared to traditional hand-crafted ones. By evaluating the FERGUS (Flexible Engine for Fast Generation of Unstructured Syntax) system, the authors demonstrate that automatically extracted grammars can match or even exceed the performance of meticulously designed linguistic rules. The findings highlight a significant trade-off between data quality and quantity, suggesting that sheer volume can effectively compensate for noise in training data, with performance gains leveling off after approximately 10 million words.
Introduction
Natural Language Generation (NLG) has traditionally relied on "hand-crafted" grammars—complex sets of rules written by linguists to describe language structure. While precise, this approach creates a significant bottleneck: it is expensive, time-consuming, and difficult to adapt to new domains or languages. This paper explores whether stochastic (statistical) generation can overcome these limitations by automatically extracting grammars from text corpora. The researchers specifically examine how the quality of training data (human-annotated vs. machine-parsed) and its quantity impact the final output quality.
The FERGUS Architecture
To test their hypotheses, the authors developed FERGUS (Flexible Engine for Fast Generation of Unstructured Syntax). FERGUS modularizes the generation process into three distinct stages:
- The Tree Chooser: A stochastic model that maps a dependency tree (the input meaning) to the most likely syntactic structures, or "supertags," for each word.
- The Unraveler: Uses a Tree-Adjoining Grammar (TAG) to build a "word lattice," representing all possible linear orderings of the chosen structures.
- The Linear Precedence (LP) Chooser: An n-gram language model that selects the most fluent path through the lattice to produce the final sentence.
The system's effectiveness hinges on automatic TAG extraction. Instead of using human-written rules, the grammar is "mined" directly from bracketed corpora, mapping dependency relations to elementary TAG trees.
Experimental Setup and Datasets
The researchers compared three primary data sources to evaluate the quality-quantity trade-off:
- XTAG Grammar: A large, hand-crafted Tree-Adjoining Grammar for English (the high-quality baseline).
- Penn Treebank (PTB): A "gold standard" corpus of Wall Street Journal articles manually annotated by humans.
- BLLIP Treebank (BTB): A "silver standard" corpus of up to 40 million words, automatically annotated by a machine parser. While it contains errors, its scale is significantly larger than the PTB.
Key Insights and Results
The study revealed several critical findings regarding the nature of learned grammars:
- Automation vs. Manual Design: Grammars automatically extracted from the PTB achieved a String Accuracy of 0.749, slightly outperforming the hand-crafted XTAG grammar's 0.742. This suggests that learned models better capture the actual usage patterns found in real-world text.
- The Quality-Quantity Trade-off: Quantity has a quality of its own. While human-annotated data is more accurate, using the massive BLLIP corpus allowed the system to improve accuracy from 0.727 (at 1 million words) to 0.791 (at 40 million words).
- The 1:10 Rule and Diminishing Returns: For optimal performance, the Tree Model (structure) should be trained on a corpus at least one-tenth the size of the Language Model (fluency). However, improvements began to plateau after the Tree Model reached 10 million words of training data.
- Structural Necessity: A baseline system using only a language model without structural guidance performed significantly worse (~0.434 accuracy), proving that the Tree Chooser's structural mapping is vital for coherent generation.
Conclusion and Future Work
This research demonstrates that automatically extracted grammars provide a scalable and effective path for building NLG systems. By leveraging large, noisy datasets, developers can bypass the manual grammar-writing bottleneck. Future work will address the system's current limitations, such as the need for manual inflection handling and the development of evaluation metrics that better capture semantic correctness beyond simple string similarity.
Summary updated