Link Prediction in Relational Data

Benjamin Taskar, Ming Fai Wong, Pieter Abbeel, Daphne KollerNeurIPS 2003

Standard machine learning often assumes that data points are independent and identically distributed (i.i.d.). However, in relational domains—like the World Wide Web, biological networks, or social networks—this assumption fundamentally fails. Entities are linked in complex ways, and the existence of one link often provides strong evidence for the existence of another.

This foundational work in relational machine learning explores how to predict relationships between entities by looking at the "big picture" of a network rather than treating each connection as an isolated event. By modeling the entire graph of entities and relationships as a single joint distribution, the authors demonstrate how incorporating structural patterns significantly outperforms traditional "flat" classifiers.

The Challenge of Relational Data

The authors tackle two primary challenges in network analysis:

  1. Link Existence: Predicting whether a relationship exists between two objects (e.g., is there a friendship between these two people?).
  2. Link Classification: Predicting the type of an existing relationship (e.g., is this a student-advisor link or a student-TA link?).

Traditional "flat" models look only at the isolated attributes of the two entities involved. This paper argues that to make accurate predictions, we must instead look at the graph structure—the patterns of interactions and the context surrounding the entities.

Methodology: Relational Markov Networks

To capture these complex dependencies, the researchers utilize Relational Markov Networks (RMNs). Unlike standard Markov Networks, which define a fixed set of random variables, RMNs use a "template" approach. They define cliques and potentials at a schema level, which can then be "unrolled" into a specific graph for any given dataset.

Key methodological contributions include:

  • Links as First-Class Citizens: The model treats potential links as objects with a binary Exists attribute. This allows the framework to handle link prediction and object classification simultaneously.
  • Subgraph Templates: The authors introduced specific templates to capture common network motifs:
  • Similarity Templates: Objects that share a graph-based property (e.g., being listed in the same "Research" section of a webpage) are more likely to have similar labels or relationship types.
  • Transitivity Templates: These capture "triadic closure"—the idea that if A is linked to B and B is linked to C, a link between A and C is more probable.
  • Collective Inference: Because the model is joint, it uses Loopy Belief Propagation to allow information to flow across the graph. Predicting one link helps refine the prediction of its neighbors.

Key Results

The paper evaluates the model on two distinct relational datasets, proving the superiority of relational models over flat baselines.

1. University Webpage Dataset

This dataset consists of 2,954 pages from the CS departments of Stanford, Berkeley, and MIT, including 7,161 candidate links categorized into types like Advisor, Member, and Teaching Assistant.

When page categories were known, the relational models (using "Section" and "Triad" templates) achieved a 10.5% relative reduction in error compared to a flat logistic regression baseline. Furthermore, the relational approach improved the accuracy of predicting webpage categories by an average of 4.9% over flat classification.

Accuracy of different relational models compared to a flat baseline on the University Webpage dataset.

2. Social Network Dataset

The second dataset features data from an online university community, including personal profiles and friendship links within 16 different student residences.

The "Compatibility" model, which used similarity templates to find commonalities between friends, significantly outperformed the flat baseline. Impressively, this held true even when only a small fraction (as low as 10%) of the network links were observed.

Average Precision/Recall breakeven points showing the compatibility model outperforming the flat baseline across varying levels of observed links.

Insights and Future Directions

The success of RMNs highlights the power of context. For instance, a student-advisor link is rarely predicted by words alone; it is often signaled by the fact that both individuals participate in the same research projects. RMNs successfully capture this contextual evidence. Furthermore, the model can perform structural bootstrapping—even when entity labels are hidden, it can infer those labels from the link structure, which in turn improves link prediction.

Despite these successes, the authors note a few limitations:

  • Inference Bottlenecks: The reliance on Loopy Belief Propagation can fail to converge in very dense graphs with many short loops, which are common in social networks.
  • Manual Feature Engineering: The subgraph templates (triads, sections) were manually designed. Automatic feature induction—letting the model discover these patterns itself—is a critical next step.
  • Scalability: Modeling all potential links creates a massive number of variables, necessitating more robust methods for handling large-scale link graphs in the future.

Summary updated

BibTeX
@inproceedings{taskar2003link,
  author = {Benjamin Taskar and Ming Fai Wong and Pieter Abbeel and Daphne Koller},
  title = {{Link Prediction in Relational Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2003},
}
Figure