Connecting Language and Knowledge Bases with Embedding Models for Relation Extraction

Jason Weston, Antoine Bordes, Oksana Yakhnenko, Nicolas Usunier

TL;DR

This paper introduces a method to boost relation extraction by teaching models to "read" text while simultaneously understanding the underlying structure of a large-scale knowledge base (KB). By embedding both text mentions and KB triples into a shared low-dimensional vector space, the authors significantly improve the precision of identifying facts in free text, especially in high-confidence scenarios.

What Problem Does This Paper Address?

Relation Extraction (RE) is the task of identifying structured relationships between entities (e.g., "Alfred Hitchcock" and "The Birds") from unstructured text. Most modern systems use weak supervision, where a KB like Freebase is used to automatically label text: if the KB says Hitchcock directed The Birds, any sentence mentioning both is assumed to express the "director-of" relationship.

The challenge is that this process is noisy, and most existing methods rely solely on textual features (like word patterns or dependency trees). They ignore the rich, structured information already present in the KB—such as the fact that certain types of entities are more likely to engage in specific relationships. The authors aim to bridge this gap by creating a model that learns from both text and the internal logic of the KB itself.

Methods

The authors propose an embedding-based framework consisting of two sub-models that operate in a common $k$-dimensional vector space:

  1. Mention-to-Relation Model ($S_{m2r}$): This model learns to map a "mention" (a window of words surrounding two entities) to a relationship. It uses a ranking loss to ensure that the embedding of the correct relationship is closer to the text's embedding than any incorrect relationship.
  2. Knowledge Base Model ($S_{kb}$): This model focuses purely on the structure of the KB. It uses a translational approach where a relationship $r$ is treated as a translation vector between a head entity $h$ and a tail entity $t$ (i.e., $h + r \approx t$). This allows the model to calculate the "plausibility" of a fact based on other known facts, even if that specific fact isn't in the KB yet.

At test time, the system combines these scores. It looks at all mentions of an entity pair in the text, aggregates the $S_{m2r}$ scores, and then adds the $S_{kb}$ score to favor predictions that are consistent with the broader knowledge base.

Datasets

  • NYT+FB: A standard benchmark that aligns New York Times articles with Freebase relations. It contains 52 possible relationships and over 120,000 training mentions.
  • Freebase Subset: To train the $S_{kb}$ model, the authors used a massive subset of Freebase containing 4 million entities and 23,000 relationships.
  • Data Integrity: Crucially, the authors removed any entity pairs present in the NYT test set from the Freebase training data. This ensures the model has to generalize from other entities rather than just memorizing the answer.

Key Insights and Ideas

  • Generalization via Embeddings: By using low-dimensional embeddings, the model can handle the sparsity of natural language. Similar words and similar relations end up near each other in the vector space, allowing the model to make smart guesses about unseen text patterns.
  • KB as a Prior: The KB acts as a powerful prior. If the text is ambiguous, the $S_{kb}$ model can break the tie by suggesting which relationship is more "plausible" given what we know about those entities.
  • Shared Language: Mapping structured triples and unstructured text into the same vector space allows the system to treat "knowledge" and "language" as two sides of the same coin.

Key Results

The combined model, WSABIE M2R+FB, significantly outperformed state-of-the-art baselines like MIMLRE and Hoffmann.

Precision-recall curves showing that the combined model (black line) outperforms text-only methods, particularly in the low-recall/high-precision region.

As seen in Figure 1, the addition of Freebase data provides a "superior performance... by a wide margin" in the 0 to 0.1 recall range. This means that when the system is highly confident, it is much more likely to be correct than systems that ignore the KB structure. While the text-only version of their model (WSABIE M2R) was competitive, the "secret sauce" was clearly the integration of the large-scale KB.

Limitations and Future Work

  • Simplified Assumptions: The current implementation assumes an entity pair shares only a single relationship, which is a simplification of the multi-label nature of real-world data.
  • Computational Cost: While the text model trains in minutes, training the KB model on 4 million entities took two days. Scaling this to the full Freebase (80M+ entities) would require significant engineering.
  • Future Directions: The authors suggest that this framework could be extended to Entity Linking (deciding which specific KB entity a word refers to) and that performance could be further improved by sharing embeddings directly between the text and KB sub-models.

Summary updated

BibTeX
@inproceedings{weston2013connecting,
  author = {Jason Weston and Antoine Bordes and Oksana Yakhnenko and Nicolas Usunier},
  title = {{Connecting Language and Knowledge Bases with Embedding Models for Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2013},
  doi = {10.18653/v1/d13-1136},
}
Figure