Hierarchical Losses and New Resources for Fine-grained Entity Typing and Linking

Shikhar Murty, Patrick Verga, Luke Vilnis, Irena Radovanovic, Andrew McCallum

Abstract

Extraction from raw text to a knowledge base of entities and fine-grained types is often cast as prediction into a flat set of entity and type labels, neglecting the rich hierarchies over types and entities contained in curated ontologies. Previous attempts to incorporate hierarchical structure have yielded little benefit and are restricted to shallow ontologies. This paper presents new methods using real and complex bilinear mappings for integrating hierarchical information, yielding substantial improvement over flat predictions in entity linking and fine-grained entity typing, and achieving new state-of-the-art results for end-to-end models on the benchmark FIGER dataset. We also present two new human-annotated datasets containing wide and deep hierarchies: MedMentions, a collection of PubMed abstracts in which 246k mentions have been mapped to the massive UMLS ontology; and TypeNet, which aligns Freebase types with the WordNet hierarchy to obtain nearly 2k entity types.

Introduction

In Natural Language Processing, tasks like Entity Typing and Entity Linking are traditionally treated as flat classification problems. This approach ignores the inherent hierarchical structure of ontologies, where a Physician is a subtype of Medical Professional, which is a subtype of Person. Existing models often fail to leverage this "statistical efficiency"—the principle that knowledge about a parent class should inform predictions for its children. Furthermore, existing benchmarks like FIGER are relatively shallow, failing to represent the complexity of real-world ontologies like UMLS or WordNet.

Methodology

The authors propose a hierarchy-aware loss function integrated into a standard neural architecture to bridge this gap.

Model Architecture

The base model employs a mention encoder consisting of a Convolutional Neural Network (CNN) to process the context around an entity mention. This is followed by pooling layers and a Multi-Layer Perceptron (MLP) to generate a vector representation of the mention ($m_F$).

Figure 1: The neural architecture for mention encoding, featuring a CNN context encoder and pooling layers.

Hierarchical Innovation

The core innovation is a second objective that models the ontology itself using Knowledge Graph Embedding (KGE) techniques. Instead of just predicting a label, the model learns to respect the hierarchy:

  • Bilinear Mapping: Learns a transformation to score parent-child relationships in the embedding space.
  • Complex Bilinear (ComplEx): Utilizes complex-valued vectors to represent asymmetric and transitive relations. This is crucial for deep hierarchies where directionality (e.g., a Dog is an Animal, but an Animal is not necessarily a Dog) must be preserved across long chains of "is-a" relationships.

Datasets

The paper introduces two major resources to facilitate research on deep hierarchies:

  1. MedMentions: A massive dataset of 246,000 mentions in PubMed abstracts linked to the UMLS ontology, which features an average hierarchy depth of 14.4.
  2. TypeNet: A curated mapping of Freebase types to the WordNet hierarchy, resulting in nearly 2,000 entity types with an average depth of 7.8.

Results and Discussion

The inclusion of hierarchical loss functions yielded significant performance gains across all benchmarks. On the FIGER dataset, the model achieved a new state-of-the-art for models without hand-crafted features, matching or beating those that use manual engineering.

Figure 6: Performance comparison on the FIGER dataset. The hierarchy-aware CNN+Complex model achieves state-of-the-art results.

Key insights from the experiments include:

  • Hierarchy as a Regularizer: The hierarchy allows rare specific types to "borrow" features from more common parent classes, improving performance on infrequent labels.
  • Complex Embeddings for Depth: While simple bilinear models suffice for shallow trees, the ComplEx approach was significantly more effective for the deep UMLS hierarchy in MedMentions.
  • Qualitative Improvements: The hierarchical model was notably better at disambiguating rare, specific entities (like specific genes) compared to flat baselines that often defaulted to generic labels.

Conclusion

By explicitly modeling "is-a" relationships, this work demonstrates that hierarchical information is a powerful signal for fine-grained entity tasks. The release of MedMentions and TypeNet provides the community with the necessary scale and depth to further explore complex taxonomic reasoning in NLP. Future work may extend these methods to non-hierarchical relations or explore alternative embedding spaces like hyperbolic geometry.

Summary updated

BibTeX
@inproceedings{murty2018hierarchical,
  author = {Shikhar Murty and Patrick Verga and Luke Vilnis and Irena Radovanovic and Andrew McCallum},
  title = {{Hierarchical Losses and New Resources for Fine-grained Entity Typing and Linking}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=H1NbjsxdZB},
}
Figure