Predicting Semantic Relations using Global Graph Properties

Yuval Pinter, Jacob Eisenstein

Abstract

Semantic graphs, such as WordNet, are resources which curate natural language on two distinguishable layers. On the local level, individual relations between synsets (semantic building blocks) such as hypernymy and meronymy enhance our understanding of the words used to express their meanings. Globally, analysis of graph-theoretic properties of the entire net sheds light on the structure of human language as a whole. In this paper, we combine global and local properties of semantic graphs through the framework of Max-Margin Markov Graph Models (M3GM), a novel extension of Exponential Random Graph Model (ERGM) that scales to large multi-relational graphs. We demonstrate how such global modeling improves performance on the local task of predicting semantic relations between synsets, yielding new state-of-the-art results on the WN18RR dataset, a challenging version of WordNet link prediction in which "easy" reciprocal cases are removed. In addition, the M3GM model identifies multirelational motifs that are characteristic of well-formed lexical semantic ontologies.

Introduction

Link prediction in semantic graphs like WordNet is a fundamental task in natural language processing. Most contemporary approaches rely on local embedding models that map concepts (synsets) into a vector space. While effective at capturing local semantic similarities, these models often ignore the global structural constraints inherent in linguistic ontologies. Researchers from Georgia Tech have introduced the Max-Margin Markov Graph Model (M3GM) to bridge this gap, combining local word embeddings with global graph properties to ensure predicted relations are both locally plausible and structurally coherent.

The Challenge of Global Structure

In semantic networks, relations like hypernymy (is-a) or meronymy (is-part-of) follow specific structural rules. For instance, a hypernymy graph should be a directed acyclic graph (DAG); it should not contain cycles or allow a single concept to have multiple unrelated parents.

Local models, however, are often blind to these global rules. A model might predict that a "cat" is a "boat" simply because they appear in similar contexts in a corpus, creating a structurally nonsensical graph where a node has two unrelated parents.

Figure 3: Examples of local vs. global relational plausibility. (a) shows a correct specific relation, (b) shows a locally plausible but globally inconsistent prediction (cat as both boat and mammal), and (c) shows a correct hierarchical structure.

The primary obstacle to incorporating global features has been scalability. Traditional global models like Exponential Random Graph Models (ERGMs) typically struggle with graphs larger than a few hundred nodes. WordNet, by contrast, contains over 100,000 nodes.

Methodology: Max-Margin Markov Graph Models

M3GM addresses the scalability issue by treating link prediction as a re-ranking task within a scalable framework.

1. Global Motifs

The model explicitly counts small structural patterns, or "motifs." These include simple structures like triangles and more complex "combinatory motifs"—for example, the frequency with which a derivation relation coincides with a hypernym. These motifs act as a structural "sanity check" on the graph.

2. Max-Margin Objective and Importance Sampling

Rather than using computationally expensive Maximum Likelihood Estimation, M3GM employs a margin-based hinge loss. To handle the scale of WordNet, the authors use importance sampling: a local relational model (such as TransE) suggests "smart" negative samples—edges that are locally likely but should be rejected based on global structural rules.

3. Hybrid Scoring

The final score for a potential edge is a weighted sum of the local embedding score and the change in global motif counts that would result from adding that edge.

Experimental Results

The model was evaluated on WN18RR, a refined version of the WordNet dataset that removes reciprocal relations to prevent "leakage" and force models to rely on true semantic and structural understanding.

Figure 6: Link prediction results on WN18RR. M3GM variants consistently outperform standard local embedding models like TransE and DistMult across all metrics.

As shown in the results table, the addition of global features via M3GM yielded a significant performance boost, improving metrics like Mean Reciprocal Rank (MRR) and Hits@10 by 3-4 absolute points over local-only baselines. Notably, M3GM outperformed several complex neural architectures, demonstrating that explicit structural features can be more effective than "black box" deep learning for relational tasks.

Conclusion

M3GM demonstrates that global graph properties are a powerful signal for semantic relation prediction. By using global motifs as constraints, the model ensures that predicted links contribute to a logically consistent ontology. While currently implemented as a re-ranker dependent on a local candidate generator, future work may explore using M3GM for the dynamic expansion of large-scale knowledge graphs.

Summary updated

BibTeX
@inproceedings{pinter2018predicting,
  author = {Yuval Pinter and Jacob Eisenstein},
  title = {{Predicting Semantic Relations using Global Graph Properties}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=B1bxuffOZB},
}
Figure