GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

TL;DR: Social networks are massive sparse graphs where structure carries as much signal as content. GNNs unify both: node features (posts, profile) and graph structure (followers, retweets) are jointly processed. Key applications: fake news detection (exploit propagation tree structure), community detection (cluster embedding space), influence prediction, and friend recommendation.
GraphSAGE for social networks
GraphSAGE inductive learning on social network graphs (Hamilton et al., 2017)

Why Graphs for Social Networks?

Intuition First: Content-only models ask โ€œwhat did this user post?โ€ Graph models ask โ€œwho did this user talk to, and what did those people say?โ€ These are fundamentally different questions. A verified journalist with 50,000 followers has very different influence from a bot account with the same follower count โ€” the difference is entirely in the graph structure (diverse, organic follow graph vs. dense, synthetic bot network). GNNs capture this structural information directly, while text classifiers are blind to it.

Social influence is inherently relational:

  • A userโ€™s political views are correlated with their friendsโ€™ views (homophily)
  • Misinformation spreads along retweet chains โ€” the propagation tree matters
  • Community structure (echo chambers, polarisation) is a global graph property
  • Influence of an account cannot be measured by its own features alone

GNNs capture these relational patterns โ€” structure that content-only models (text classification, user attribute prediction) miss.

Task 1: Fake News and Misinformation Detection

The propagation graph approach: when a news article is shared, it creates a propagation tree (root โ†’ shares โ†’ reshares). Each node is a user; each edge is a retweet.

Key observations:

  • Fake news propagates differently from real news: faster initial spread, shallower tree (bot amplification), then dies out
  • Real news: slower spread, deeper tree, more diverse users

GNN-FakeNews (Bian et al., 2020): builds two propagation graphs โ€” top-down (spread direction) and bottom-up (source tracing). Runs GNN on both, then combines embeddings with a claim encoder for final classification.

Advantage over content-only methods: two articles with identical content but different propagation patterns โ†’ different predictions. Structure provides signal that text alone cannot.

Task 2: Community Detection

Traditional methods: spectral clustering, Louvain algorithm (modularity optimisation). These use only graph structure.

GNN approach: combine node features + graph structure for richer community embeddings.

SEAL (Learning from Subgraphs for Link Prediction): learns community structure implicitly during link prediction training โ€” communities are nodes that tend to be mutually linked.

Graph Autoencoders (GAE/VGAE, Kipf & Welling, 2016):

Z = GCN(A, X) (encode) ร‚ = ฯƒ(Z Z^T) (decode: reconstruct adjacency)

Train to reconstruct A from Z. The latent Z captures community structure โ€” nodes in the same community cluster together in latent space. Communities are found by clustering Z.

Why graph autoencoders work for community detection: Two nodes in the same community share many common neighbours. The GCN encoder propagates these shared neighbourhood patterns into similar embeddings. The decoder reconstructing A from Z^T forces Z to encode the block structure of the adjacency (community structure). Clustering the resulting Z recovers communities.

Task 3: Influence Estimation and Viral Prediction

Influence maximisation: which K users to seed to maximise information spread? A combinatorial problem (NP-hard).

GNN approach (Chen et al., 2021): train a GNN to predict the expected spread from a seed set. The GNN takes the seed set (as initial node activations) and propagates via the graph, simulating the cascade. Output: expected reach after T steps.

This replaces expensive Monte Carlo simulation (10,000 cascade simulations per seed set) with a single GNN forward pass.

Viral content prediction: given a postโ€™s initial shares (first 1 hour), predict total reach at 24 hours. The postโ€™s propagation subgraph at 1 hour โ†’ GNN โ†’ reach prediction. Structure of early spread is highly predictive of final virality.

Key Insight: Fake news detection illustrates perfectly why structure matters more than content. Two tweets with identical text โ€” "Breaking: political figure says X" โ€” can have completely different truth values depending on propagation pattern. If the first tweet spreads through verified news accounts and journalists (deep, diverse tree), it is likely real. If the second spreads only through bot accounts in the first hour then dies out (shallow, homogeneous tree), it is likely fake. The GNN sees the propagation tree; the text classifier sees only the words.

Task 4: Friend and Follow Recommendation

Link prediction on social graphs: predict (u, v) edge probability = will user u follow user v?

GraphSAGE for link prediction:

  1. Sample neighbourhoods for u and v
  2. Compute embeddings h_u, h_v via GNN
  3. Score = ฯƒ(h_u^T h_v) or concat + MLP

On Twitter/Instagram-scale graphs (billions of nodes), neighbourhood sampling (PinSage-style) is necessary.

Challenges Specific to Social Networks

Scale: Facebook has 3B users, 1T+ edges. Full-graph GNNs are infeasible. Must use minibatch training with neighbourhood sampling.

Heterophily: political/social networks are often heterophilic (users follow people with opposite views to monitor them, debate, or due to bot-following patterns).

Temporal dynamics: social graphs evolve rapidly. Static GNNs must be retrained; TGN-style dynamic models are preferable.

Adversarial manipulation: spammers and bots create synthetic edges to boost influence. GNNs trained on observed graphs may encode these manipulated patterns. Adversarially robust GNNs (GNN-Guard, RobustGCN) add graph cleaning or certified training.

Summary

TaskGraph structure usedKey model
Fake news detectionPropagation tree structureGNN-FakeNews
Community detectionAdjacency + featuresVGAE, node clustering
Influence estimationFull social graphGNN cascade simulator
Friend recommendationUser-user graphGraphSAGE, LightGCN
Bot detectionFollow/retweet graphGCN + temporal features

Social networks demonstrate that GNNs are not just machine learning tools โ€” they are instruments for understanding and intervening in sociotechnical systems. The structural patterns they capture determine how information, influence, and misinformation propagate through society.

References