FLAME: Self-Supervised Low-Resource Taxonomy Expansion using Large Language Models

Sahil Mishra, Ujjwal Sudev, Tanmoy Chakraborty · DOI

Introduction

Taxonomies serve as the structural backbone for a wide array of information systems, including search engines, recommendation engines, and digital libraries. These hierarchical "is-a" structures (e.g., Ozone $\rightarrow$ Atmosphere) organize knowledge into navigable frameworks. However, as new data emerges at an exponential rate, manually maintaining and expanding these taxonomies becomes unsustainable.

The primary challenge in automating this process is the "low-resource" nature of specialized domains. Most domain-specific taxonomies are relatively small, which causes traditional supervised models—such as Graph Neural Networks (GNNs) or BERT-based classifiers—to overfit due to a lack of training data. While Large Language Models (LLMs) possess vast world knowledge, they often struggle to adhere to the specific structural constraints and "anchor" nodes of a given taxonomy. This paper introduces FLAME (Fine-tuning LArge language Models for taxonomy Expansion), a framework designed to bridge this gap by leveraging LLMs through sophisticated prompting and reinforcement learning.

Methodology

FLAME reframes taxonomy expansion as a text-generation task, utilizing a fine-tuned LLaMA-2 (7B) model. The framework is built upon two core pillars: taxonomy-centric prompting and reinforcement learning-based fine-tuning.

Taxonomy-Centric Prompting

To provide the LLM with the necessary context to place a new term correctly, FLAME constructs prompts that simulate expert reasoning. This is achieved through two sampling strategies:

  1. Diverse Global Samples: Using hierarchical clustering, the model selects examples from across the entire taxonomy. This provides the LLM with a "big picture" understanding of the hierarchy's breadth and depth.
  2. Sorted Local Samples: The model employs BM25 ordering to identify nodes that are semantically similar to the query term. These "local neighbors" provide the fine-grained context required for precise placement within a specific branch.

Reinforcement Learning (RL) Fine-tuning

Unlike standard supervised fine-tuning (SFT), which can be overly rigid for generative tasks, FLAME utilizes Proximal Policy Optimization (PPO). The authors developed a multi-faceted Text-Alignment Reward Function to guide the model. This function evaluates outputs based on:

  • Label Reliability: Direct matching with the ground-truth parent node.
  • Semantic Consistency: Cosine similarity between the predicted and actual parent.
  • Fuzzy Matching: Using Levenshtein distance to reward "near misses" in spelling or phrasing.
  • Structural Conformity: Ensuring the output matches the expected token count and format.

Experimental Evaluation

The researchers evaluated FLAME using three benchmark datasets from SemEval-2016 Task 13:

  • Environment (Env): 261 nodes.
  • Science (Sci): 429 nodes.
  • Food: 1,486 nodes.

These datasets represent diverse domains with varying levels of complexity, serving as a rigorous test for the model's adaptability in low-resource environments.

Key Results and Insights

FLAME demonstrated significant improvements over eight baseline methods, including TaxoExpan, HEF, and TaxoPrompt.

Performance Gains

  • Accuracy: FLAME achieved an average accuracy improvement of 18.5%. Notably, on the Environment dataset, it reached 63.4% accuracy, significantly outperforming the best baseline (51.9%).
  • Structural Similarity: The model improved the Wu & Palmer metric—which measures the proximity of the predicted node to the true node within the tree—by 12.3%.
  • Inference Efficiency: By generating the parent node directly rather than ranking every possible candidate, FLAME offers competitive inference speeds.

The Role of Context and RL

Ablation studies highlighted the critical importance of local context; removing local samples from the prompt led to a 38.3% drop in accuracy. This suggests that for taxonomy expansion, immediate neighborhood information is more vital than global structure. Furthermore, the transition from SFT to RL allowed the model to explore the semantic space more effectively, preventing the model from being penalized too harshly for minor string mismatches during the early stages of training.

Limitations and Future Directions

While highly effective, FLAME's performance is sensitive to the quality of term definitions. In the "Food" dataset, ambiguous definitions for niche items occasionally led to misclassification. For instance, "choline" might be placed under "vitamin" due to semantic similarity, even if the taxonomy requires a more specific parent like "b complex vitamin."

Future research will focus on:

  • Developing more complex lexico-syntactic reward functions.
  • Transitioning from taxonomy expansion to taxonomy augmentation, where the model identifies and proposes entirely new nodes and branches that do not yet exist in the seed taxonomy.

Summary updated

BibTeX
@article{mishra2024flame,
  author = {Sahil Mishra and Ujjwal Sudev and Tanmoy Chakraborty},
  title = {{FLAME: Self-Supervised Low-Resource Taxonomy Expansion using Large Language Models}},
  journal = {ACM Transactions on Intelligent Systems and Technology},
  year = {2024},
  doi = {10.1145/3709007},
}
Figure