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 which we will release to the community to encourage further research in this direction: 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. In experiments on all three datasets we show substantial gains from hierarchy-aware training.
Introduction: Beyond Flat Classification
In Natural Language Processing, Entity Typing (assigning a category like "Scientist" to a name) and Entity Linking (connecting a name to a specific entry in a database) are traditionally treated as "flat" classification problems. This approach ignores the inherent hierarchical structure of ontologies, where a "Physicist" is also a "Scientist," a "Person," and an "Entity."
Previous attempts to utilize these hierarchies yielded minimal benefits, largely because existing benchmarks like FIGER are shallow—often only two levels deep. Furthermore, flat models struggle with "long-tail" or rare entity types because they fail to share statistical strength between related concepts. This research demonstrates that explicitly modeling "is-a" relationships leads to more robust representations and superior performance on complex, real-world data.
Methodology: Encoding Context and Hierarchy
The proposed neural architecture combines standard text encoding with a specialized hierarchical loss function designed to bake the ontology directly into the model.
Mention Encoder
The model uses a Convolutional Neural Network (CNN) to encode the context surrounding an entity mention into a vector representation. This is followed by mean and max pooling layers and a Multi-Layer Perceptron (MLP) to produce the final classification features.
Hierarchical Structure Models
To incorporate the ontology, the authors add a secondary loss function based on knowledge graph embedding techniques:
- Bilinear Mapping: Uses a learned matrix to score the relationship between child and parent types.
- Complex Bilinear Mapping: Based on the ComplEx model, this uses complex-valued vectors to model asymmetric and transitive relations (e.g., "A is a B, B is a C, therefore A is a C") in deep hierarchies.
- Transitive Closure: The model experiments with "label augmentation," where mentions are labeled with their specific type and all corresponding ancestors in the hierarchy.
New Resources: MedMentions and TypeNet
Progress in this field has been limited by small, shallow datasets. This paper introduces two major resources to address this:
- MedMentions: A massive biomedical dataset containing 246,000 mentions from PubMed abstracts linked to the UMLS ontology. UMLS is exceptionally deep, with an average hierarchy depth of 14.4 levels.
- TypeNet: A new hierarchy created by manually aligning 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 provided significant performance gains across all benchmarks. On the FIGER dataset, the model matched state-of-the-art accuracy (approx. 59.7%) without requiring hand-crafted linguistic features. On TypeNet, incorporating hierarchical loss resulted in a 29% relative increase in Mean Average Precision (MAP).
As shown in the results table, the transition from a standard CNN to one utilizing hierarchical and complex bilinear mappings consistently improves both original and normalized scores. Qualitatively, the hierarchical model was less likely to over-predict rare types when evidence was thin, instead opting for a correct, more general parent category—a pattern that mimics human error more closely than flat models.
Conclusion and Future Work
By leveraging the "is-a" relationships within ontologies, this work breaks the performance ceiling of flat classification models. While complex bilinear maps are effective, future research may explore even more advanced embedding spaces, such as Box Embeddings or Poincaré (Hyperbolic) Embeddings, which are theoretically better suited for representing hierarchical volumes. Additionally, improving the "candidate generation" phase in entity linking remains a priority for achieving true end-to-end performance.
Summary updated