Abstract
Knowledge Graphs (KGs) are essential for modern information retrieval and question-answering systems, yet they frequently suffer from incompleteness. Entity typing—the task of assigning semantic categories to entities—is a critical component of KG completion. This paper presents the Transformer-based Entity Typing (TET) model, which utilizes a multi-perspective Transformer architecture to infer missing entity types. By integrating local, global, and contextual views of an entity’s neighborhood and enriching the data with semantic class hierarchies, TET achieves state-of-the-art performance on benchmark datasets, overcoming the limitations of traditional embedding and Graph Convolutional Network (GCN) based approaches.
1. Introduction
Knowledge Graphs like Freebase and YAGO store vast amounts of structured information. However, the "open-world assumption" inherent in these graphs means that many facts, particularly entity types, are missing. For instance, while a KG might identify "Barack Obama" as a Person, it may fail to label him as a President or Author. This lack of granularity hinders downstream tasks such as relation extraction and semantic search.
Existing approaches to entity typing generally fall into two categories: embedding-based models and GCN-based models. Embedding-based models often suffer from a "smearing" effect, where an entity's entire neighborhood is compressed into a single vector, losing specific signals. GCN-based models aggregate information along graph paths but often fail to capture complex dependencies between neighbors that are not directly connected. Furthermore, most models treat the has_type relationship as a generic link, ignoring the hierarchical nature of semantic classes.
2. The TET Model
The Transformer-based Entity Typing (TET) model treats entities and relations as tokens within a sequence, leveraging the attention mechanism to filter and prioritize relevant information. The architecture is defined by three specialized Transformer modules and a novel loss function.
2.1 Multi-Perspective Transformer Architecture
- Local Transformer: This module encodes each neighbor independently. It allows the model to isolate specific evidence (e.g., a "leader_of" relation) to infer a specific type (e.g., "Politician") without interference from unrelated neighbors.
- Global Transformer: By concatenating all neighbors into a single sequence, this module enables the model to reason about complex types that require the synthesis of multiple pieces of evidence.
- Context Transformer: This module facilitates information exchange between neighbor pairs while preserving the underlying graph structure, helping the model understand the relational context between different neighbors.
2.2 Semantic Enrichment and SFNA Loss
To address the limitations of generic has_type relations, TET introduces Semantic Enrichment. The authors replace standard type links with fine-grained class-membership relations. For example, if a type belongs to a "Medicine" class, the link is transformed into belongs_class_medicine, providing a richer semantic roadmap for the model.
Additionally, the model employs a Steeper False-Negative Aware (SFNA) loss function. Given that KGs are incomplete, a missing label is not necessarily incorrect. SFNA reduces the penalty for negative samples that exhibit very high or very low relevance scores, preventing the model from over-correcting on potentially valid but unlabeled data.
3. Experimental Evaluation
3.1 Datasets
The model was evaluated on two standard benchmarks:
- FB15kET: A subset of Freebase featuring approximately 15,000 entities and 3,500 types.
- YAGO43kET: A more challenging subset of YAGO with 42,000 entities and 45,000 types, characterized by higher sparsity and a complex type hierarchy.
3.2 Results
TET established new state-of-the-art (SOTA) benchmarks across both datasets:
- FB15kET: Achieved a Mean Reciprocal Rank (MRR) of 0.717, surpassing the previous best (CET) at 0.697.
- YAGO43kET: Achieved an MRR of 0.510, compared to 0.503 for the previous SOTA.
The model showed particularly strong improvements in Hit@1 metrics, indicating superior performance in disambiguating the most likely type for an entity.
4. Discussion and Insights
Ablation studies revealed that the Local Transformer is often the most critical component, suggesting that for many entities, a single "smoking gun" neighbor provides more utility than a noisy aggregate of the entire neighborhood. Furthermore, the significant performance boost on YAGO43kET highlights that type hierarchies are an underutilized resource in KG completion; simply clustering types into classes and renaming relations can unlock vital latent information.
Despite its success, TET faces challenges regarding computational cost. The Transformer mechanism introduces more parameters and higher memory overhead than simpler embedding models. Additionally, experiments with "multi-hop" neighbors (neighbors of neighbors) resulted in decreased performance due to increased noise, suggesting that effective path pruning remains a necessary area for future research.
5. Conclusion
TET demonstrates that Transformer architectures are highly effective for Knowledge Graph entity typing, outperforming GCNs by better filtering irrelevant information and capturing bidirectional interactions. Future work will explore extending this architecture to Entity Mention Typing from raw text and optimizing the model for larger-scale, multi-hop reasoning.
Summary updated