Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Reasoning Through Memorization: Nearest Neighbor Knowledge Graph Embeddings (2201.05575v4)

Published 14 Jan 2022 in cs.CL, cs.AI, cs.DB, cs.IR, and cs.LG

Abstract: Previous knowledge graph embedding approaches usually map entities to representations and utilize score functions to predict the target entities, yet they typically struggle to reason rare or emerging unseen entities. In this paper, we propose kNN-KGE, a new knowledge graph embedding approach with pre-trained LLMs, by linearly interpolating its entity distribution with k-nearest neighbors. We compute the nearest neighbors based on the distance in the entity embedding space from the knowledge store. Our approach can allow rare or emerging entities to be memorized explicitly rather than implicitly in model parameters. Experimental results demonstrate that our approach can improve inductive and transductive link prediction results and yield better performance for low-resource settings with only a few triples, which might be easier to reason via explicit memory. Code is available at https://github.com/zjunlp/KNN-KG.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (4)
  1. Peng Wang (832 papers)
  2. Xin Xie (81 papers)
  3. Xiaohan Wang (91 papers)
  4. Ningyu Zhang (148 papers)
Citations (14)

Summary

We haven't generated a summary for this paper yet.