Constructing Taxonomies from Pretrained Language Models

Catherine Chen, Kevin Lin, Dan KleinNAACL 2021

Introduction

Taxonomies are hierarchical structures that organize concepts through "is-a" relationships, serving as critical components for natural language processing (NLP) tasks such as question answering and information retrieval. Traditionally, building these structures, like WordNet, required intensive manual labor or complex web-scale statistical analysis using "Hearst patterns" (e.g., "X and other Y").

Researchers from UC Berkeley have introduced CTP (Constructing Taxonomies from PLMs), a novel method that leverages the latent knowledge within pretrained language models (PLMs) to automate this process. By treating models like BERT and RoBERTa as "latent corpora," CTP achieves a 20% relative improvement over previous state-of-the-art methods on English WordNet subtrees, suggesting that the web-scale knowledge required for taxonomy construction is already encoded within these models.

Methodology: The CTP Framework

The CTP approach consists of a two-stage pipeline designed to transform raw terms into a globally optimal hierarchical tree.

  1. Parenthood Prediction: A pretrained language model is fine-tuned as a binary classifier. For any two terms $v_i$ and $v_j$, the model predicts the probability that $v_i$ is the parent of $v_j$ using a natural language prompt: "[TERM_A] is a [TERM_B]". To enhance semantic understanding, the authors optionally incorporate Web-Retrieved Glosses from Wiktionary and Wikipedia, providing explicit definitions to resolve lexical ambiguities.
  2. Tree Reconciliation: Pairwise predictions often result in inconsistent graphs with cycles or multiple parents. To ensure a valid taxonomy, CTP treats the prediction scores as edge weights and applies the Chu-Liu-Edmonds algorithm. This algorithm identifies the Maximum Spanning Tree (specifically, the maximum weight spanning arborescence), producing a globally optimal hierarchy.
The CTP framework: from gloss retrieval and term pair scoring to tree reconciliation via Maximum Spanning Tree (MST).

Datasets and Evaluation

The method was evaluated across several benchmarks:

  • English WordNet: 761 subtrees (10–50 terms each) sampled from WordNet.
  • Multilingual WordNet: The study extended the benchmark to nine additional languages (including Chinese, French, and Spanish) using Open Multilingual WordNet alignments.
  • SemEval-2016 Task 13: A test of generalization on large-scale, domain-specific taxonomies in Science and Environment.

Key Insights: The "Flat Tree" Phenomenon

A significant finding of the research is the "flat tree" problem. While PLMs are excellent at identifying broad relationships (e.g., a botfly is a fly), they often struggle with intermediate generations. In many cases, the model might skip a level, failing to place a term like gadfly between the specific species and the general category.

An example of the "flat tree" problem where intermediate categories like "gadfly" might be skipped in favor of direct parent-child links to the root.

Other key observations include:

  • Physical vs. Abstract: Models perform better on concrete, physical entities (e.g., "telephone") than on abstract concepts (e.g., "sympathy"), likely due to more consistent representation in training data.
  • Glosses as a Double-Edged Sword: External definitions help most when there is lexical overlap (the parent term appears in the child's definition). Without this overlap, glosses can introduce noise and degrade performance.

Results and Performance

CTP set a new state-of-the-art on the English WordNet task, achieving an ancestor F1 score of 66.7, compared to the previous benchmark of 55.6. The study also confirmed that model scale matters: RoBERTa-Large consistently outperformed BERT-Large and BERT-Base. Furthermore, the researchers established the first robust multilingual baselines for taxonomy construction, demonstrating the method's versatility across different language families.

Limitations and Future Directions

Despite its success, CTP faces challenges in scaling to very large, specialized taxonomies where graph neural networks (GNNs) still maintain an advantage. Additionally, the current parenthood module operates on pairs of terms; future iterations could benefit from a "global" view of the tree during the prediction phase to mitigate the flat tree bias. Improving the model's reasoning over abstract hierarchies remains a primary goal for future research.

Summary updated

BibTeX
@inproceedings{chen2021constructing,
  author = {Catherine Chen and Kevin Lin and Dan Klein},
  title = {{Constructing Taxonomies from Pretrained Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.373},
}
Figure