Clustering for obtaining syntactic classes of words from automatically extracted LTAG grammars

Tadayoshi Hara, Yusuke Miyao, Jun'ichi Tsujii2002

Abstract

Tadayoshi Hara, Yusuke Miyao, Jun’ichi Tsujii. Proceedings of the Sixth International Workshop on Tree Adjoining Grammar and Related Frameworks (TAG+6).

  1. This paper presents a method to automatically group words into syntactic classes by clustering the "elementary trees" they use in a Lexicalized Tree Adjoining Grammar (LTAG). By applying K-means clustering to grammars extracted from the Penn Treebank, the authors demonstrate that we can move from messy, corpus-dependent automatic grammars toward the structured, organized "tree families" found in expensive, hand-built systems.

Introduction

Lexicalized Tree Adjoining Grammars (LTAG) are a powerful formalism in Natural Language Processing because they associate words with "elementary trees" that encapsulate their entire syntactic neighborhood. Traditionally, these grammars are either hand-built (e.g., the XTAG system), which is labor-intensive but highly organized into "tree families," or automatically extracted from corpora, which is efficient but results in unorganized, data-dependent structures.

Automatically extracted grammars are strictly limited to what appeared in the training data; if a specific verb never appeared in a passive construction in the corpus, the grammar simply won't know it's possible. This paper addresses this lack of organization by proposing a clustering method to discover latent syntactic classes, effectively bridging the gap between low-cost automatic extraction and structured manual design.

Methodology: Syntactic Fingerprinting

The core of the proposed approach is the concept of Anchor’s Feature Groups (AFGs). For any given word (the "anchor"), the set of all elementary tree templates it utilizes in the grammar constitutes its "syntactic fingerprint."

To perform clustering, these AFGs are transformed into binary vectors. In a grammar containing $N$ unique tree templates, a word's vector has a value of 1 at index $i$ if it uses the $i$-th template, and 0 otherwise.

Vectorization process: AFGs for words like 'lend' are mapped to binary vectors based on their presence in the set of grammar templates.

The researchers then apply the K-means clustering algorithm to these vectors. The resulting cluster centroids represent the average usage of templates within a group. A centroid value of 1.0 indicates a "major tree template" used by every word in that cluster, while lower values suggest variations within the syntactic class. This allows for the automatic labeling of clusters based on their dominant syntactic features.

Experimental Setup

The methodology was evaluated using the Penn Treebank (sections 02-21), a classic benchmark in computational linguistics. The dataset comprised 39,598 sentences, from which 2,571 unique elementary tree templates were extracted for 43,030 words. The number of clusters ($k$) was varied between 20 and 100 to observe the granularity of the discovered classes.

Results and Insights

The clustering successfully identified distinct syntactic classes. As $k$ increased, the algorithm naturally discovered finer-grained distinctions. For example, a general "Adjective" cluster at $k=20$ might split into more specific sub-groups at higher values of $k$.

Clusters generated for various syntactic classes, showing representative tree templates, centroid values, and member words for categories like adjectives, numerals, and transitive verbs.

Key findings include:

  • Successful Identification: Clear clusters were formed for adjectives, present participles, numerals, and adverbs.
  • Adverbial Nuance: At $k=40$, the system distinguished between sentence-modifying adverbs, adjective-modifying adverbs, and verb-modifying adverbs.
  • Verbal Grouping: Base-form transitive verbs (e.g., get, change, buy) were successfully grouped together based on their shared tree templates.

Discussion and Limitations

While the results are promising, the study highlighted a significant challenge: Part-of-Speech (PoS) imbalance. Because nouns are disproportionately frequent in the Penn Treebank (over 18,000 AFGs), the K-means algorithm tends to spend most of its "energy" over-segmenting nouns into hyper-specific clusters. Conversely, verbs (approx. 1,100 AFGs) are under-segmented, leading to "rough" clusters that fail to distinguish complex types like ditransitive verbs (verbs that take two objects, like give).

Future work will focus on clustering different parts of speech independently to prevent the "noun explosion" from drowning out the nuances of other categories. Additionally, the authors intend to use these discovered classes to improve the coverage of automatic grammars by predicting valid tree templates for words that were missing from specific syntactic contexts in the original training corpus.

Summary updated

BibTeX
@inproceedings{hara2002clustering,
  author = {Tadayoshi Hara and Yusuke Miyao and Jun'ichi Tsujii},
  title = {{Clustering for obtaining syntactic classes of words from automatically extracted LTAG grammars}},
  booktitle = {TAG+},
  year = {2002},
  url = {https://openreview.net/forum?id=oveUm6KVeo},
}
Figure