Interstellar: Searching Recurrent Architecture for Knowledge Graph Embedding

Yongqi Zhang, Quanming Yao, Lei ChenNeurIPS 2020

In the realm of Knowledge Graphs (KGs), representing entities and relations as low-dimensional vectors—known as embeddings—is foundational for downstream tasks like recommendation engines and medical diagnosis. However, most existing models fall into two distinct camps: they either focus on local "triplets" to capture short-term information, or they utilize rigid, human-designed Recurrent Neural Networks (RNNs) to follow "relational paths" for long-term dependencies.

The paper "Interstellar: Searching Recurrent Architecture for Knowledge Graph Embedding" argues that relying on a "one-size-fits-all" architecture is fundamentally flawed. Instead, the authors propose leveraging Neural Architecture Search (NAS) to automatically discover the optimal recurrent structure tailored to any given KG task.

Executive Summary

Interstellar is a novel framework that employs Neural Architecture Search to automatically design custom recurrent neural networks specifically for Knowledge Graph embeddings. By dividing the search process into a "hybrid" of macro-level connections and micro-level activations, Interstellar achieves state-of-the-art results on entity alignment and link prediction tasks while maintaining high computational efficiency.

The Challenge with Existing Architectures

Knowledge Graphs are built upon triplets: (subject, relation, object). To achieve a deep understanding of a KG, models must analyze relational paths—sequences of triplets connected head-to-tail.

The primary challenge is that different KG tasks demand different types of structural information. For instance, simple link prediction might only require local triplet semantics. Conversely, aligning entities across two distinct databases (e.g., English Wikipedia versus French DBpedia) necessitates propagating information across extended paths.

Existing models are typically hand-crafted for one specific scenario. Triplet-based models (like TransE) often miss broader structural contexts, while path-based models (like RSN) rely on fixed RNN cells that may not suit the specific geometry of a given KG. Interstellar addresses this limitation by asking: Can we search for the perfect architecture instead of designing it by hand?

The Interstellar Methodology

The authors frame the design of a KG model as a recurrent architecture search problem. The Interstellar approach consists of two primary components:

1. A Domain-Specific Search Space

The search space is hierarchically divided into two levels:

  • Macro-level: Determines the "wiring" of the network. It dictates how hidden states, entity embeddings, and relation embeddings are connected and combined using operations such as addition, element-wise multiplication, or gating.
  • Micro-level: Fine-tunes the internal mechanics, selecting specific activation functions (e.g., tanh, sigmoid, identity) and weight matrices.

2. A Hybrid-Search Algorithm

Standard NAS often relies on "parameter sharing" (one-shot search) for speed. However, the authors found this approach unreliable for the complex, discrete connections inherent in KG paths. To resolve this, they propose a hybrid search strategy:

  • Macro-level search utilizes a "stand-alone" approach, training architectures from scratch to ensure the evaluation of structural connections is highly accurate.
  • Micro-level search employs a "one-shot" approach to rapidly identify the best activations and weights.
  • The entire process is guided by a controller optimized via Natural Policy Gradient (NPG), which significantly accelerates convergence compared to standard reinforcement learning techniques.

Evaluation and Datasets

Interstellar was rigorously evaluated across three distinct scenarios:

  • Synthetic Tasks: The Countries dataset (S1, S2, S3) was used to demonstrate that varying task complexities (e.g., 1-hop vs. 3-hop reasoning) inherently require different searched architectures.
  • Entity Alignment: Tested on four cross-lingual and cross-database subsets from DBpedia and Wikidata (DBP-WD, DBP-YG, EN-FR, EN-DE).
  • Link Prediction: Evaluated on three standard benchmarks: WN18-RR, FB15k-237, and the large-scale YAGO3-10.

Key Insights

  • No Universal Architecture: Synthetic experiments revealed that for simpler tasks, the searcher preferred short-term, triplet-heavy connections. For more complex tasks, it automatically pivoted to architectures capable of preserving information over long sequences.
  • The Necessity of a Hybrid Approach: Pure one-shot NAS (like DARTS) struggles in this domain because the status of embeddings changes constantly during training, rendering shared parameters "noisy." The hybrid approach provides essential stability for the macro-structure while keeping the micro-search efficient.
  • Path Semantics Matter: Unlike standard RNNs used in Natural Language Processing, KG-specific recurrent cells must handle two distinct types of inputs—entities and relations—simultaneously. Interstellar’s search space explicitly accounts for this unique triplet structure.

Performance and Results

  • Entity Alignment: Interstellar consistently outperformed all human-designed baselines. On the DBP-WD dataset, it achieved a Hit@1 of 40.7%, a significant improvement over the previous best path-based model, RSN (38.8%).
  • Link Prediction: The model reached state-of-the-art or highly competitive results on WN18-RR and FB15k-237, proving that searched recurrent cells can compete with specialized triplet models like RotatE.
  • Efficiency: Despite being a search-based method, the total time required (search plus fine-tuning) was comparable to the time needed to manually tune a complex baseline, making Interstellar a highly practical tool for researchers.

Limitations and Future Directions

  • Task Scope: The current framework focuses primarily on embedding-based tasks. Extending Interstellar to handle logical reasoning tasks, such as those involving complex rules, represents a promising next step.
  • Scalability: While efficient, conducting architecture searches on extremely large graphs containing millions of nodes remains a computational challenge.
  • Transferability: A potential future direction is exploring "meta-NAS"—leveraging the architectural insights gained from one KG search to jump-start the search process on a new, structurally similar dataset.

Summary updated

BibTeX
@inproceedings{zhang2020interstellar,
  author = {Yongqi Zhang and Quanming Yao and Lei Chen},
  title = {{Interstellar: Searching Recurrent Architecture for Knowledge Graph Embedding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=AVGpIHCPB36},
}
Figure