Adversarial Sets for Regularising Neural Link Predictors

Pasquale Minervini, Thomas Demeester, Tim Rocktäschel, Sebastian Riedel

Abstract

Neural link predictors are effective at capturing local patterns in knowledge graphs but often struggle with global logical consistency. We present Adversarial Set Regularisation (ASR), a framework that treats logical rule enforcement as a minimax game. By employing an adversary to identify the most significant violations within the continuous embedding space, ASR avoids the computational explosion associated with traditional rule grounding. Our results demonstrate significant improvements in predictive performance and data efficiency across standard benchmarks.

Introduction

Knowledge Graph (KG) completion tasks rely on neural link predictors such as DistMult and ComplEx to estimate the likelihood of missing triples. While these models excel at learning from observed facts, they typically process triples in isolation, ignoring global constraints like transitivity (e.g., if London is in the UK and the UK is in Europe, then London is in Europe).

Traditional methods to enforce such rules require "grounding"—checking rules against all possible entity combinations—which is computationally prohibitive for large-scale KGs. For instance, a simple transitivity rule on a dataset with 10,000 entities would require checking one trillion combinations. ASR addresses this by searching for adversarial examples in the continuous embedding space rather than the discrete entity space.

Methodology: Adversarial Set Regularisation

ASR frames the training process as a minimax optimization problem between two competing components: an adversary and a link predictor.

The ASR architecture: An adversary identifies adversarial inputs (embeddings) that maximize inconsistency loss, which the link predictor then minimizes alongside standard fact loss.

The Adversary and Discriminator

The adversary takes a logical rule, typically expressed as a Horn clause (e.g., $A \land B \Rightarrow C$), and searches the continuous space of entity embeddings to find "adversarial inputs" that maximize an inconsistency loss. This loss is derived using the Gödel t-norm, which provides a differentiable mapping from logical implications to mathematical functions. Essentially, it looks for the "worst-case scenario" where the model's current logic fails most spectacularly.

The discriminator (the link predictor) is trained to minimize a joint objective: the standard loss on observed facts and the inconsistency loss provided by the adversary. This setup forces the model to maintain a logically consistent worldview across the entire embedding space, not just for specific facts it has already seen.

Optimization and Closed-Form Solutions

A key innovation of ASR is the shift from discrete entity search to continuous embedding optimization. For certain common rules like symmetry or simple implications, the authors derived closed-form solutions (cASR), allowing for instantaneous identification of optimal adversarial examples and providing a 5x speedup over iterative search methods.

Geometric Considerations

The choice of embedding constraints significantly impacts the model's ability to represent logical rules. The study finds that unit cube constraints (restricting embeddings to $[0, 1]^k$) are superior to unit sphere constraints.

Comparison of inconsistency landscapes for (a) Unit Sphere and (b) Unit Cube constraints. The rotation-invariance of the sphere makes it difficult to represent non-symmetric relations.

As shown in Figure 4, sphere constraints are rotation-invariant, which mathematically complicates the representation of non-symmetric relations (e.g., "is a parent of"). The unit cube provides a more flexible geometry for rule injection, allowing the model to better distinguish between symmetric and non-symmetric logical structures.

Experimental Results

ASR was evaluated on synthetic datasets, WN18 (WordNet), and FB122 (Freebase).

  • Predictive Accuracy: On FB122, ASR significantly improved the Mean Reciprocal Rank (MRR) of the ComplEx model from 0.641 to 0.698.
  • Data Efficiency: ASR acts as a powerful regularizer. On WN18, a model trained with ASR on only 20% of the data achieved performance comparable to standard models trained on the full dataset.
  • Logical Consistency: In synthetic tests for transitivity, standard models often failed (scoring ~40% AUC-PR), while ASR-boosted models achieved ~65% AUC-PR.
  • Comparison to Baselines: ASR consistently outperformed KALE, a state-of-the-art grounding-based method, while being significantly more scalable.

Conclusion

Adversarial Set Regularisation provides a scalable and effective means of injecting logical prior knowledge into neural link predictors. By focusing on the "worst-case" violations in the embedding space, ASR ensures global consistency without the overhead of exhaustive grounding. Future work includes extending ASR to more complex logical forms beyond Horn clauses and integrating automated rule discovery from data.

Summary updated

BibTeX
@inproceedings{minervini2017adversarial,
  author = {Pasquale Minervini and Thomas Demeester and Tim Rocktäschel and Sebastian Riedel},
  title = {{Adversarial Sets for Regularising Neural Link Predictors}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=vRuPf7gIwp},
}
Figure