Insert or Attach: Taxonomy Completion via Box Embedding

Wei Xue, Yongliang Shen, Wenqi Ren, Jietian Guo, Shiliang Pu, Weiming Lu

Abstract

Taxonomy completion is the task of expanding an existing hierarchy by adding new concepts. Traditional methods often struggle with the asymmetric nature of "is-a" relationships and suffer from biases introduced by simplified training objectives. We present TAXBOX, a framework that leverages box embeddings to represent concepts as hyperrectangles. This geometric approach naturally captures hierarchical containment. By utilizing a structurally enhanced decoder and dual probabilistic scorers for insertion and attachment, TAXBOX significantly outperforms state-of-the-art models in precision and recall across multiple real-world datasets.

Introduction

Taxonomies, such as biological classifications or product catalogs, are fundamental for organizing knowledge and powering search and recommendation systems. However, maintaining these structures manually is labor-intensive. Taxonomy completion automates this by determining where a new concept fits within an existing hierarchy. This involves two primary operations: attaching a concept as a leaf node or inserting it between existing parent and child nodes.

Overview of the taxonomy completion task, illustrating the insertion and attachment of new concepts.

Previous research in this area faced significant hurdles. First, standard Euclidean vector embeddings are symmetric, failing to capture the inherent asymmetry of "is-a" relationships (e.g., a "Siamese Cat" is a "Cat," but not all "Cats" are "Siamese"). Second, many models relied on "pseudo-leaves" to simplify the math, which biased the systems toward leaf attachments and degraded performance on internal insertions.

The TAXBOX Framework

TAXBOX addresses these limitations by moving from point-based embeddings to Box Embeddings. In this $d$-dimensional space, each concept is represented as a hyperrectangle (a "box"). The hierarchical "is-a" relationship is modeled through spatial containment: if Concept A is a sub-type of Concept B, Box A is geometrically contained within Box B.

Structurally Enhanced Decoder

To better understand the local context of a potential placement, TAXBOX employs a Graph Attention Network (GAT). This module aggregates information from a node’s "ego subtree"—its immediate neighborhood of parents and children—providing the model with a "neighborhood watch" capability that informs the placement of new concepts.

The TAXBOX framework architecture, including the structurally enhanced box decoder and the resulting box embedding space.

Dual Scorers and Dynamic Loss

The model utilizes two specialized probabilistic scorers:

  1. Insertion Scorer ($S_I$): Evaluates the fit of a query box between a parent and a child box.
  2. Attachment Scorer ($S_A$): Evaluates the fit of a query box as a direct child of a parent box.

To handle the numerical imbalance between these two operations, the authors introduced a dynamic ranking loss. This ensures that the model learns to rank candidates effectively without being unfairly biased toward one type of operation. Additionally, the model uses "semantic margins" based on the Wu & Palmer similarity index, allowing the spatial gaps between boxes to vary based on their depth in the taxonomy.

Experimental Results

TAXBOX was evaluated on several real-world datasets, including subgraphs from the Microsoft Academic Graph (MAG-CS, MAG-PSY) and WordNet (Wordnet-Verb, SemEval-Food).

The results demonstrate that TAXBOX significantly outperforms previous state-of-the-art models like QEN and TMN. Key performance metrics showed:

  • A 51.4% average improvement in Precision@1.
  • A 34.9% average improvement in Hit@1.

Ablation studies highlighted that the box constraint loss ($L_b$) is the most critical component of the architecture. Removing it led to the most substantial performance drops, confirming that the geometric constraints are essential for accurate hierarchical modeling.

Conclusion and Future Work

TAXBOX successfully redefines taxonomy completion as a geometric containment problem. By eliminating the need for pseudo-leaves and utilizing box embeddings, it achieves superior accuracy and robustness. Future research may explore the integration of Large Language Models (LLMs) for candidate re-ranking or data augmentation techniques to further enhance the initial semantic representations of concepts.

Summary updated

BibTeX
@inproceedings{xue2024insert,
  author = {Wei Xue and Yongliang Shen and Wenqi Ren and Jietian Guo and Shiliang Pu and Weiming Lu},
  title = {{Insert or Attach: Taxonomy Completion via Box Embedding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.212},
}
Figure