This 1994 dissertation by David M. Magerman represents a landmark shift in computational linguistics. At a time when the field was dominated by "grammarians" hand-coding thousands of intricate rewrite rules, Magerman proposed a radical alternative: treat natural language parsing not as a set of logical rules, but as a problem of statistical pattern recognition.
By introducing the SPATTER (Statistical PATTErn Recognizer) parser, Magerman demonstrated that a machine could learn to parse sentences more accurately by looking at data than a human expert could by writing rules over the course of a decade.
TL;DR
Magerman’s work challenges the necessity of hand-written grammars, proving that statistical decision trees can automatically acquire complex disambiguation rules from annotated corpora. His SPATTER parser outperformed a state-of-the-art, human-engineered grammar by nearly 10%, marking a pivotal moment in the transition toward data-driven NLP.
What Problem Does This Paper Address?
In the early 1990s, parsing—the process of determining the hierarchical structure of a sentence—was a "thorn in the side" of the AI community. The primary hurdle was ambiguity. For example, in the sentence "Print the file on the printer," does "on the printer" describe the file or the action of printing?
Traditional systems relied on experts to manually enumerate "selectional restrictions" to solve these ambiguities. Magerman argued this approach suffered from the "Toy Problem Syndrome": it worked on small, constrained sets but failed to scale to the messy reality of general language. Furthermore, manual rule-writing is non-systematic, non-reproducible, and often fails to converge on a "perfect" grammar. Magerman sought to automate this entire process using information theory.
Methods
Magerman’s core contribution is the SPATTER parser. Unlike standard Probabilistic Context-Free Grammars (P-CFGs) of the time, which were largely context-insensitive, SPATTER uses Statistical Decision Trees to make parsing decisions based on a wide window of context.
Key technical components include:
- Feature-Based Representation: Instead of rewrite rules, SPATTER decomposes a parse tree into four elementary features: words, tags (part-of-speech), labels (constituent types like NP or VP), and extensions (the geometric direction the node takes—left, right, up, or unary).
- Decision Tree Modeling (CART): The system uses the CART algorithm to ask binary questions about the context (e.g., "Is the word to the left 'the'?") to predict the next feature.
- Entropy Reduction: Questions are selected based on which one reduces the uncertainty (entropy) of the "future" decision the most.
- Stack Decoding: Borrowed from speech recognition, this search algorithm allows the parser to explore an immense space of possible trees efficiently.
- Smoothing via EM: To prevent overtraining on sparse data, Magerman used the Expectation-Maximization (Forward-Backward) algorithm to "smooth" the decision tree probabilities using a held-out corpus.
Datasets
The primary benchmark used was the Lancaster Computer Manuals Treebank, a collection of IBM computer manuals annotated with syntactic structure.
- Training Set: ~28,000 sentences.
- Test Set: 1,473 sentences (3 to 30 words in length).
- Preliminary Experiments: Also utilized the Voyager direction-finding domain and the PUNDIT string grammar.
Key Insights and Ideas
- Parsing as Geometry: Magerman reimagined a constituent not as a rule application, but as a set of edges meeting at a node. This allowed the parser to treat tree-building as a geometric pattern recognition task.
- Linguists as Feature Engineers: Magerman argued that the role of the linguist should shift. Instead of writing rules, they should identify the criteria (features) that help disambiguate sentences, leaving the machine to figure out how to apply them.
- The Power of Lexical Context: While P-CFGs only look at the parent node, SPATTER’s decision trees could look at specific "head words" and neighboring nodes, capturing long-distance dependencies that rules often missed.
- Derivational Order: The paper highlights that the order in which you build a tree (bottom-up, left-to-right, etc.) matters for probability estimation, leading to a "hidden" derivational model.
Key Results
The most striking result was the head-to-head comparison between SPATTER and a grammar-based parser developed by a highly-respected grammarian over ten years.
- Accuracy (Crossing-Brackets): On sentences of 25 words or less, SPATTER achieved 78% accuracy, significantly higher than the grammarian’s 69%.
- Exact Match: SPATTER matched the human-annotated tree exactly in about 35% of cases. When ignoring part-of-speech errors, this rose to nearly 50%.
- Error Reduction: The transition from P-CFG to a History-Based Grammar (HBG) model resulted in a 37% reduction in error rate in preliminary tests.
Limitations and Future Work
- Greedy Algorithms: The decision tree growth is "greedy," meaning it might miss the globally optimal set of questions.
- Data Fragmentation: As the tree grows deeper, the amount of data at each node decreases, making statistical estimates less reliable.
- Conjunctions: SPATTER struggled with the scope of conjunctions (e.g., "and," "or"), correctly identifying them only about 57% of the time.
- Manual Engineering: Despite the "automatic" goal, Magerman still had to hand-code "Tree Head Tables" and binary classification trees for features, which he suggested should be automated in the future.
- Computational Cost: Training these models in 1994 took nearly two days on high-end hardware, limiting the number of variations that could be tested.
Summary updated