Scalable knowledge base completion with superposition memories

Matthias Lalisse, Eric Rosen, Paul SmolenskyarXiv 2021

Abstract

Harmonic Memory Networks (HMem) introduce a dynamic approach to Knowledge Base Completion (KBC) by representing entities as a "superposition" of their neighbors. Unlike traditional static embedding models, HMem constructs representations on the fly, allowing for zero-shot generalization to new entities and facts without retraining. This architecture effectively addresses the "open-world" scalability problem and demonstrates that performance can actually improve as the density of the knowledge graph increases.

Introduction

Knowledge bases (KBs) such as WordNet or Freebase are massive graphs of facts represented as triplets: (subject, relation, object). Most modern AI models for KBC use embedding-based strategies, where every entity and relation is mapped to a fixed-length vector. However, these models are inherently static; if a new entity or fact is added after training, the model remains blind to it unless the entire system is retrained. Furthermore, traditional models often struggle with "hub" nodes—entities with thousands of connections—because a single fixed vector becomes an information bottleneck.

Methodology: Harmonic Memory Networks

To overcome these limitations, we introduce Harmonic Memory Networks (HMem). Instead of looking up a pre-trained vector for an entity, HMem constructs a representation on the fly by aggregating the entity's local neighborhood.

The HMem architecture: Binding neighbor entities and relations into a superposition memory state, followed by harmony optimization.

Key components of the HMem architecture include:

  • Vector Binding: To represent a neighbor, the model "binds" a neighbor entity vector to a relation vector. We evaluated two methods: Tensor Product Representation (TPR) (mathematical outer products) and Circular Convolution (CConv).
  • Superposition Memory: An entity’s "memory state" is the weighted sum of all these bindings, inspired by biological neural architectures theorized to store associations.
  • Harmony Optimization: To clean up the noisy aggregate of neighbors, the model uses a "Harmony" function (inspired by Hopfield networks). This process moves the noisy memory state toward a mathematically "cleaner" version that better reflects the underlying structure of the knowledge graph.
  • Memory Weighting: For entities with thousands of neighbors, a learned attention-like mechanism filters and prioritizes the most relevant neighbors to include in the memory state.

Experimental Evaluation

The model was evaluated on standard benchmarks including WN18, WN18RR, and FB15K. Crucially, we introduced two new datasets, WNGen and FBGen, to test generalization. These datasets hold out a set of entities during training, requiring the model to perform inference on "unseen" entities using only their local neighborhood structure at test time.

Key Results

HMem achieved state-of-the-art (SOTA) results on the Mean Rank (MR) metric for WN18 and Freebase. On the WNGen dataset, HMem achieved over 50% Hits@1 accuracy for entities that were completely absent during training—a task where standard embedding models typically score near 0%.

Comparative performance of HMem variants against baseline models on WordNet and Freebase benchmarks.

Our results also show that Tensor Product Binding (TPR) generally outperforms Circular Convolution across most benchmarks, especially when utilizing lower-dimensional embeddings.

Discussion and Key Insights

  • The Scaling Paradox: In traditional models, performance often drops as an entity gains more neighbors. In HMem, performance actually improves because the "superposition" becomes more robust and informative with more data points.
  • Zero-Shot Generalization: Because the model learns the logic of combining neighbors rather than memorizing the neighbors themselves, it can immediately handle entities it has never seen before.
  • Interpretability: Unlike "black box" embeddings, HMem is mathematically transparent. One can "unbind" a memory state to see exactly which neighbors contributed to a specific prediction.

Limitations and Future Work

While HMem is revolutionary for unseen entities, constructing memory states for extremely dense graphs still requires careful management of computational resources. Future work will explore more complex "Harmony" functions and different optimization techniques to further bridge the performance gap between seen and unseen entities.

Summary updated

BibTeX
@misc{lalisse2021scalable,
  author = {Matthias Lalisse and Eric Rosen and Paul Smolensky},
  title = {{Scalable knowledge base completion with superposition memories}},
  year = {2021},
  eprint = {2110.12341},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.12341},
}
Figure