Modeling Social Networks with Node Attributes using the Multiplicative Attribute Graph Model

Myunghwan Kim, Jure Leskovec

TL;DR

The Multiplicative Attribute Graph (MAG) model bridges the gap between generative network models and real-world node attributes. By modeling edge probabilities as the product of attribute-specific affinities and introducing a scalable variational EM algorithm (MagFit), the authors provide a way to fit complex, analytically tractable models to large-scale social networks while capturing both global structure and local homophily.

What Problem Does This Paper Address?

Network modeling has traditionally been split into two camps. Mechanistic models (like the Copying model) use simple rules to generate realistic global structures (e.g., power-law degree distributions) but are notoriously difficult to fit to specific real-world datasets. Statistical models (like Exponential Random Graphs) are designed for parameter estimation but often lack analytical tractability and fail to scale to large networks.

Crucially, most existing models ignore node attributes—the profile information like age, gender, or interests that naturally drive link formation. The authors set out to create a model that is:

  1. Analytically tractable: Capable of provably generating real-world network properties.
  2. Attribute-aware: Directly incorporating node features into the generative process.
  3. Scalable: Capable of being fitted to networks with hundreds of thousands of nodes.

Methods

The core of the paper is the Multiplicative Attribute Graph (MAG) model. In this framework, each node $i$ has a vector of categorical attributes $F_i$. For each attribute $l$, there is an associated $2 \times 2$ affinity matrix $\Theta_l$. The probability of an edge existing between nodes $i$ and $j$ is the product of the affinities selected by their respective attribute values:

$$p_{ij} = \prod_{l=1}^L \Theta_l[F_{il}, F_{jl}]$$

The MAG model selects entries from affinity matrices based on node attributes to calculate link probability.

To estimate parameters ($\Theta$ and latent attributes $F$) from observed networks, the authors developed MagFit, a variational Expectation-Maximization (EM) algorithm.

  • E-step: Uses a variational distribution $Q(F)$ to approximate the posterior of latent attributes.
  • M-step: Updates the affinity matrices $\Theta$ to maximize the lower bound of the log-likelihood.
  • Scalability Trick: Since real networks are sparse, the authors approximate the summation over all node pairs by splitting it into a "background" term (treating the graph as empty) and an "adjustment" term for actual edges. This reduces the computational complexity from $O(N^2)$ to $O(E)$, where $E$ is the number of edges.

Datasets

The authors evaluated MAG and MagFit using both synthetic and real-world datasets:

  • LinkedIn: A snapshot of the professional social network ($N=4,096$, $E=10,052$).
  • Yahoo!-Answers: A question-answering interaction network ($N=4,096$, $E=5,678$).
  • AddHealth: A high-school friendship network ($N=457$, $E=2,259$) that includes over 70 real-world student attributes (e.g., GPA, school year, courses taken).

Key Insights and Ideas

  • Versatility through Multiplication: The multiplicative nature of the model allows it to capture diverse social phenomena simultaneously. A single model can represent homophily (linking to similar others), heterophily (linking to different others), and core-periphery structures just by varying the values in the affinity matrices $\Theta_l$.
Different affinity matrix structures represent homophily, heterophily, and core-periphery patterns.
  • Latent Attribute Inference: Even when node attributes are not provided, MagFit can infer "latent" attributes from the network structure alone. These latent attributes often capture meaningful social clusters or roles.
  • Regularization Matters: The authors found that adding a mutual information penalty during estimation helps ensure that inferred attributes remain independent, preventing the model from collapsing into redundant local optima.

Key Results

  • Superior Structural Fit: Compared to the state-of-the-art Kronecker graphs model, MAG showed a 50-70% improvement in matching structural properties like clustering coefficients and triad participation on the LinkedIn dataset.
  • Likelihood Gains: In terms of log-likelihood, MAG outperformed Kronecker models by a wide margin, showing 23 to 35 times better accuracy in representing the probabilistic structure of the networks.
  • Efficiency: The optimized MagFit algorithm is roughly 100x faster than a naive implementation on a 4,000-node network, enabling it to scale to much larger systems.
Figure 3: Parameter convergence and scalability.
  • Real-World Interpretability: On the AddHealth dataset, the model correctly identified that "School year" and "GPA" are strong drivers of homophily in high school friendships, while certain advanced courses (like AP English) create very dense local subgraphs.

Limitations and Future Work

While powerful, the authors note a few areas for expansion:

  • Missing Data: The current model assumes attributes are either fully known or fully latent. Real-world scenarios often involve partially observed attribute data.
  • Alternative Affinity Combinations: While the multiplicative approach is analytically elegant, other ways of combining attribute affinities (e.g., additive or max-based) might better suit certain types of social interactions.
  • Attribute Cardinality: The paper focuses primarily on binary attributes for simplicity; extending this to high-cardinality categorical or continuous attributes remains a future challenge.

Summary updated

BibTeX
@inproceedings{kim2011modeling,
  author = {Myunghwan Kim and Jure Leskovec},
  title = {{Modeling Social Networks with Node Attributes using the Multiplicative Attribute Graph Model}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2011},
}
Figure