Heterogeneous relational reasoning in knowledge graphs with reinforcement learning

Mandana Saebi, Steven Kreig, Chuxu Zhang, Meng Jiang, Tomasz Kajdanowicz, Nitesh V. ChawlaInformation Fusion 2020 · DOI

TL;DR

This paper introduces a novel reinforcement learning (RL) approach for relational reasoning in knowledge graphs (KGs). By incorporating entity type information to prune the action space and using a graph neural network (GNN) to encode local neighborhood context, their method achieves state-of-the-art performance on KG completion tasks, outperforming existing RL and embedding-based methods, especially on challenging datasets.

What Problem Does This Paper Address?

Relational reasoning over knowledge graphs (KGs) is crucial for applications like question answering and recommender systems. While KGs offer rich relational information, they are often incomplete, necessitating KG completion (inferring missing relations). Traditional embedding-based methods, while achieving good accuracy, struggle to provide interpretable reasoning paths. Reinforcement learning (RL) offers a promising alternative by framing KG reasoning as a sequential decision-making process, allowing agents to learn explicit reasoning paths. However, existing RL approaches face challenges: a massive action space (due to the large number of entities and relations) and a lack of effective representation of local entity neighborhood information, which can hinder performance, especially for less frequent relations. This paper aims to address these limitations by enhancing RL agents with entity type and neighborhood information.

Methods

The authors propose a type-enhanced RL agent that leverages two key innovations:

  • Type-Enhanced Embeddings and Action Space Pruning: They first create vector representations for entity types by aggregating embeddings of entities sharing the same type (using mean or max pooling). These type embeddings are then concatenated with entity embeddings to create "type-enhanced" embeddings. This enhanced representation is used to measure the similarity between the current entity and potential next entities. By pruning the action space to only include entities whose types are most compatible with the current reasoning path, the agent's search is significantly narrowed, improving efficiency and reducing the likelihood of following incorrect paths.
  • Heterogeneous Neighbor Encoder: To capture local neighborhood information, they employ a graph neural network (GNN). This GNN takes the type-enhanced entity embeddings and relation embeddings of an entity's neighbors and outputs an "enriched" entity representation. This enriched representation is then integrated into the RL agent's state, allowing it to make more informed decisions based on the local graph structure.

The RL framework itself is formulated as a Markov Decision Process (MDP), where the agent learns a policy to traverse the KG. The reward function is a soft reward based on pre-trained KG embeddings, addressing the issue of sparse rewards in incomplete KGs.

Datasets

The experiments were conducted on three datasets:

  • NELL-995: A standard KG dataset that explicitly encodes entity types.
  • Amazon Beauty & Amazon Cellphones: Datasets derived from the Amazon e-commerce collection. To manage computational complexity, the authors randomly sampled 20% of the nodes to induce subgraphs for these datasets.

Key Insights and Ideas

  • Entity types are powerful heuristics: Incorporating entity type information significantly prunes the action space, especially in datasets with a limited number of types (like the Amazon datasets). This pruning is more effective than traditional methods like PageRank for guiding the RL agent, particularly on sparser graphs.
  • Local neighborhood matters: Explicitly encoding the local graph structure via a GNN is crucial for improving performance, especially on challenging datasets like the Amazon ones and for handling less frequent relations.
  • Complementary contributions: Both type information and neighborhood encoding contribute to improved performance, but their impact varies across datasets. Type information aids in faster convergence and path diversity, while neighborhood information is more critical for performance on unseen queries.

Key Results

  • The proposed method achieves state-of-the-art results among RL-based methods on all three datasets, outperforming baselines like MINERVA and Lin et al. [13].
  • On the Amazon datasets, the model shows a significant improvement in MRR (around 4-5%) and Hits@1 (around 5-6%) compared to the best RL baseline.
  • Ablation studies reveal that removing the heterogeneous neighbor encoder leads to a larger performance drop on the Amazon datasets, highlighting its importance. Removing type embeddings also impacts performance, but to a lesser extent on NELL-995.
  • The model demonstrates improved path diversity and convergence speed compared to baselines.

Limitations and Future Work

  • Scalability: The authors acknowledge that the action space pruning is a step towards improving scalability, but further exploration of more efficient strategies is planned.
  • Type Embeddings: While their type embedding mechanism is effective, they plan to develop more sophisticated type embeddings that consider the hierarchical structure of type information.
  • Unknown Entities: Similar to other KG completion methods, their model does not generalize to unseen entities during testing.

Summary updated

BibTeX
@article{saebi2020heterogeneous,
  author = {Mandana Saebi and Steven Kreig and Chuxu Zhang and Meng Jiang and Tomasz Kajdanowicz and Nitesh V. Chawla},
  title = {{Heterogeneous relational reasoning in knowledge graphs with reinforcement learning}},
  journal = {Information Fusion},
  year = {2020},
  doi = {10.1016/j.inffus.2022.07.001},
}
Figure