NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Factorization Machine Framework for Testing Bigram Embeddings in Knowledgebase Completion

Johannes Welbl, Guillaume Bouchard, Sebastian Riedel

Abstract

This paper investigates the limitations of the standard compositional assumption in Knowledge Base Completion (KBC), which posits that facts can be predicted solely through individual entity and relation embeddings. We propose a flexible framework based on Factorization Machines (FMs) to incorporate and test the efficacy of bigram embeddings—joint representations of pairs such as (subject, relation) or (relation, object). Our experiments on the fb15k237 dataset demonstrate that bigram-based models significantly outperform traditional compositional baselines like DistMult, achieving a relative improvement of approximately 34% in Mean Reciprocal Rank (MRR).

1. Introduction

Knowledge Bases (KBs) like Freebase and YAGO are essential for structured information retrieval but are often incomplete. The task of KBC involves predicting missing links between entities, typically represented as triplets $(subject, relation, object)$. Most existing models, such as TransE or DistMult, rely on a compositional assumption: they learn separate vectors for each component and combine them to calculate a truth score.

We argue that this assumption is overly restrictive. In many cases, the interaction between two components is more informative than the components in isolation. For instance, certain relations are highly functional, pointing to a narrow set of objects. Learning a joint embedding for these specific pairs can capture nuances that individual embeddings might miss.

2. Methodology

2.1 Factorization Machines

We employ Factorization Machines (FMs) as a unified framework for KBC. FMs are designed to handle high-dimensional, sparse data by modeling interactions between variables using low-rank vectors. This modularity allows us to easily incorporate different feature types and perform ablation studies.

2.2 Bigram Features

Our primary innovation is the introduction of bigram indicators into the feature vector:

  • $(s, r)$: Subject-Relation pairs
  • $(r, o)$: Relation-Object pairs
  • $(s, o)$: Subject-Object pairs (Entity pairs)

The FM calculates scores based on the dot products of these embeddings. We also incorporate a hyperparameter ($\tau$) to handle "textual mentions" (TM), which are relations extracted from raw text, allowing the model to balance KB facts with lexicalized dependency paths.

3. Experimental Setup

We evaluated our models on the fb15k237 dataset, a standard benchmark derived from Freebase. Unlike the original fb15k, this version removes inverse relation leaks, providing a more rigorous test of reasoning capabilities. The dataset includes both standard KB facts and textual relations between entities.

4. Results and Discussion

Our results indicate that bigram-enhanced models consistently outperform the compositional DistMult baseline. As shown in Figure 1, the combined bigram model—which sums the scores of various bigram configurations—achieved the highest performance across all metrics.

Performance comparison of the Factorization Machine framework and bigram models against the DistMult baseline on the fb15k237 dataset.

4.1 The Efficacy of $(r, o)$ Bigrams

A key finding was the exceptional performance of the $(r, o)$ vs. $s$ bigram model. This is attributed to the functional nature of many relations in KBs. Furthermore, bigram models are sensitive to data sparsity; while 73% of test facts contained unseen $(s, o)$ pairs, only 10% contained unseen $(r, o)$ pairs. This explains why relation-based bigrams are more robust and informative for general KBC tasks than the entity-pair models often used in "Universal Schema" approaches.

5. Conclusion

By utilizing Factorization Machines, we have shown that moving beyond the compositional assumption to include bigram embeddings significantly improves KBC performance. While bigram models face a "cold start" problem with out-of-vocabulary pairs, they provide a powerful mechanism for capturing specific relational interactions. Future work will explore automated selection of high-order interactions and methods to mitigate sparsity for unseen pairs.

Summary updated

BibTeX
@inproceedings{welbl2016factorization,
  author = {Johannes Welbl and Guillaume Bouchard and Sebastian Riedel},
  title = {{A Factorization Machine Framework for Testing Bigram Embeddings in Knowledgebase Completion}},
  booktitle = {AKBC @ NAACL},
  year = {2016},
  doi = {10.18653/v1/w16-1319},
}
Figure