NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context-aware Entity Typing in Knowledge Graphs

Weiran Pan, Wei Wei, Xian-Ling Mao

Abstract

Knowledge Graphs (KGs) are fundamental for many AI applications but frequently suffer from incompleteness, particularly regarding entity types. Existing Knowledge Graph Entity Typing (KGET) models often struggle with "noise" by attempting to compress all of an entity's diverse attributes into a single vector representation. This paper proposes CET (Context-aware Entity Typing), a novel framework that employs dual inference mechanisms—one evaluating neighbors independently and another aggregating them—to infer missing types accurately. By integrating these mechanisms with a False-Negative Aware (FNA) loss function, CET achieves state-of-the-art results on major benchmarks like FB15kET and YAGO43kET.

Introduction

Knowledge Graphs such as Freebase and YAGO represent information as triples (e.g., Steven Weinberg, graduate from, Cornell University). Despite their utility, these graphs are often incomplete. A common issue is missing "types" for entities; for instance, a graph might know Steven Weinberg graduated from Cornell but fail to explicitly categorize him as a Cornell University Alumnus.

Example of a Knowledge Graph with missing entity types.

Current KGET methods typically rely on embedding-based approaches or Graph Convolutional Networks (GCNs). However, these methods often suffer from "feature smearing," where irrelevant neighbor information (noise) interferes with type prediction. For example, knowing an entity is a "Citizen of USA" is irrelevant noise when trying to determine if they are a "Physicist." Furthermore, many models fail to leverage an entity's already known types to predict missing ones.

Methodology: The CET Framework

The authors introduce CET to address these limitations through three primary innovations:

1. Dual Inference Mechanisms

CET utilizes two complementary paths to process neighbor information:

  • N2T (Neighbor-to-Type): This mechanism evaluates each neighbor independently. By mapping individual neighbors (e.g., "Nobel Prize in Physics") directly to types (e.g., "Physicist"), N2T avoids distraction from unrelated context.
  • Agg2T (Aggregate-to-Type): To capture complex, multi-faceted identities (e.g., "21st-century American novelists"), Agg2T aggregates information across multiple neighbors.

2. Exponentially Weighted Pooling

To synthesize the outputs of N2T and Agg2T, CET employs a "softpool" approach called Exponentially Weighted Pooling. Unlike standard max-pooling, which can restrict gradient flow, this method ensures all neighbors contribute to training while emphasizing the most relevant "clues" for a specific type.

The CET architecture featuring N2T and Agg2T mechanisms.

3. False-Negative Aware (FNA) Loss

In KGs, the absence of a (entity, type) pair does not necessarily imply it is false; it may simply be missing. Standard training often treats these missing facts as "negatives," which can mislead the model. The FNA loss assigns lower weights to negative samples with very high or very low relevance scores, allowing the model to remain uncertain about potential "false negatives."

Experimental Evaluation

The model was evaluated on two benchmark datasets: FB15kET (~15,000 entities, 3,584 types) and YAGO43kET (~42,000 entities, 45,182 types).

Key Results

CET consistently outperformed baselines, including TransE, RotatE, and R-GCN.

  • State-of-the-Art Performance: On YAGO43kET, CET achieved a Mean Reciprocal Rank (MRR) of 0.503, significantly surpassing previous leaders like RotatE (0.462).
  • Precision: On FB15kET, CET correctly identified the missing type as its top choice (Hits@1) 61.3% of the time.
  • Ablation Success: Experiments confirmed that both N2T and Agg2T are vital. Removing either component led to performance degradation, particularly on the more complex YAGO dataset.

Discussion and Future Work

A key insight of this work is that "independence is a virtue"—evaluating neighbors individually via N2T prevents the feature smearing common in aggregate-only models. Additionally, treating known types as neighbors provides a significant boost to inference.

While CET is highly effective and interpretable, future work could involve replacing the current simple mean aggregation in Agg2T with more sophisticated Graph Neural Network (GNN) architectures. Furthermore, incorporating external textual descriptions could provide additional context beyond the existing graph structure.

Summary updated

BibTeX
@inproceedings{pan2021context,
  author = {Weiran Pan and Wei Wei and Xian-Ling Mao},
  title = {{Context-aware Entity Typing in Knowledge Graphs}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.193},
}
Figure