Modeling homophily and stochastic equivalence in symmetric relational data

Peter D. HoffNeurIPS 2007

The Challenge of Relational Data

Relational data—such as friendships, protein interactions, or word associations—typically exhibit one of two structural patterns:

  1. Homophily: Often summarized as "birds of a feather flock together," these networks show high transitivity (if A knows B and B knows C, A likely knows C). This is typically modeled by placing nodes in a latent Euclidean space where proximity dictates a higher probability of connection.
  2. Stochastic Equivalence: Nodes act as functional "blocks" or roles. For example, in a grammar network, nouns might connect frequently to verbs but rarely to other nouns. This is usually modeled by assigning nodes to discrete latent classes.
Stochastic Equivalence Example

The challenge is that most real-world networks are messy hybrids. A model designed for homophily (distance-based) struggles to represent block structures, while a class-based model requires an impractical number of groups to capture spatial transitivity. This paper introduces the eigenmodel, a flexible latent variable framework that unifies both concepts without requiring an a priori choice.

The Eigenmodel Framework

For a pair of nodes $i$ and $j$, the eigenmodel describes their relationship $y_{i,j}$ using a linear predictor and a latent interaction term:

$$y_{i,j} \approx \beta^T x_{i,j} + u_i^T \Lambda u_j$$

Here, $u_i$ and $u_j$ are vectors of latent characteristics for each node, and $\Lambda$ is a diagonal matrix of weights (eigenvalues).

The Power of the Sign: The ingenuity of this approach lies in $\Lambda$. If its elements are positive, the model rewards similarity (homophily), functioning much like a distance model. If the elements are negative, it can represent "disassortative" patterns where similar nodes avoid each other, or complex block structures where members of one group only connect to another. The paper proves that the eigenmodel is a mathematical superset: any latent class or latent distance model can be represented as an eigenmodel, but the reverse is not true.

The model employs a Bayesian approach with Markov chain Monte Carlo (MCMC) for parameter estimation. To handle various data types (like binary links or ordinal counts), it is wrapped in a probit or ordered probit framework, treating observed data as manifestations of an underlying continuous latent variable.

Experimental Validation

The eigenmodel was evaluated against standalone latent class and latent distance models across three distinct datasets using five-fold cross-validation, measured by the Area Under the ROC Curve (AUC):

  • Adolescent Health (Add Health): A friendship network of 247 high schoolers, representing classic homophily and transitivity. The distance model performed best (AUC 0.82), with the eigenmodel (labeled "vector" in plots) a close second (AUC 0.80). The class model failed significantly (AUC 0.69).
  • Genesis Word Neighbors: Word associations from the Book of Genesis, representing stochastic equivalence. The class model and eigenmodel tied (AUC 0.82), while the distance model struggled (AUC 0.74).
  • Protein-Protein Interactions: A biological network of 230 proteins acting as a "hybrid" with both hubs and tight clusters. Here, the eigenmodel outperformed both (AUC 0.90 vs. 0.85 for distance and 0.86 for class).
Performance on Homophily Data

These results confirm that while specialized models might win on "pure" data, the eigenmodel is the most robust and versatile choice for complex, real-world systems. By performing a low-rank eigenvalue decomposition of the relationship grid, it captures the most important structural signals while smoothing over noise.

Limitations and Future Directions

  • Symmetry: The current model is designed specifically for symmetric data (where the relationship from $i$ to $j$ equals $j$ to $i$).
  • Directed Extensions: For directed networks (like citations or social media follows), the framework could be adapted using Singular Value Decomposition (SVD) instead of eigenvalue decomposition, employing separate latent vectors for "sender" and "receiver" effects ($u_i^T D v_j$).
  • Computational Scale: Bayesian MCMC methods can become computationally expensive as the number of nodes grows into the tens of thousands. Future large-scale applications may require variational inference or other approximation techniques.

Summary updated

BibTeX
@inproceedings{hoff2007modeling,
  author = {Peter D. Hoff},
  title = {{Modeling homophily and stochastic equivalence in symmetric relational data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2007},
}
Figure