Telling Peer Direct Effects from Indirect Effects in Observational Network Data

Xiaojing Du, Jiuyong Li, Debo Cheng, Lin Liu, Wentao Gao, Xiongren Chen, Ziqi Xu

TL;DR

In networked environments, your friends’ actions affect you in two distinct ways: directly through their behavior and indirectly through their results. This paper introduces gDIS, a novel framework that uses Graph Neural Networks (GNNs) and causal mediation analysis to disentangle these "peer effects," allowing researchers to see exactly how social influence drives individual outcomes.

The Challenge of Peer Effects in Networks

Standard causal inference often relies on the assumption that one person's treatment doesn't affect another's outcome. In the real world—especially on social media or in public health—this assumption is almost always wrong. We call this "interference" or "peer effects."

However, most existing models treat peer effects as a single, monolithic block. The authors argue that this is too simplistic. They break peer effects down into two components:

  1. Peer Direct Effect (PDE): How your neighbors' treatments affect you (e.g., your friend gets a flu shot, making them less likely to transmit the virus to you).
  2. Peer Indirect Effect (PIE): How your neighbors' outcomes affect you (e.g., your friend doesn't get sick, so you are less exposed to the virus overall).
Illustration of Peer Direct and Indirect Effects

Distinguishing between these is vital for decision-makers. For instance, if a vaccine mostly works via PDE (reducing transmission), you might prioritize vaccinating "social butterflies." If it works via PIE (reducing the total viral load in the community), your strategy might change entirely.

The gDIS Framework

The authors propose gDIS (group-level PDE, PIE, and STE estimation), which combines causal theory with deep learning to address these complexities:

  • Causal Mediation Analysis: They treat the neighbors' outcomes as a "mediator" between the neighbors' treatments and the individual’s outcome. This provides the mathematical foundation to separate PDE from PIE.
  • Multi-layer GNNs with Attention: To handle the complexity of networks, they use GNNs to capture high-order neighbor interactions. An attention mechanism is used because not all neighbors are equally influential; your best friend likely impacts your decisions more than a random acquaintance.
  • HSIC Regularization: They incorporate the Hilbert-Schmidt Independence Criterion (HSIC). This acts as a "honesty check" for the model, ensuring the learned embeddings don't just memorize spurious correlations between node features and treatments, which would bias the causal estimates.
  • Three-Stage Learning: The model first learns to predict neighbor outcomes, then individual outcomes, and finally uses Kernel Density Estimation (KDE) to calculate the final causal effects.
Comparison of gDIS with existing methods

Key Insights and Ideas

  • Peer Effects are Layered: The "aha moment" here is the formalization of PDE vs. PIE in a network setting. Most previous work only looked at "one-to-one" interactions; gDIS scales this to "many-to-one" (a whole neighborhood influencing one person), filling a significant gap in the literature.
  • The Power of Attention: By using attention weights, the model automatically learns which parts of a network structure are actually relevant for causal transmission, rather than treating the adjacency matrix as a flat list of connections.
  • Independence is Robustness: The use of HSIC to enforce independence between features and embeddings is a clever way to make GNNs—which are notoriously prone to overfitting—more reliable for the sensitive task of causal inference.

Experimental Validation

Because "ground truth" causal effects are impossible to observe in purely real-world data (you can't see what would have happened if a person was both treated and untreated simultaneously), the authors used semi-synthetic datasets (BlogCatalog & Flickr) where network structures are real but treatments/outcomes are simulated. They also analyzed a real-world recommendation system dataset (Coat).

Key Results: * Superior Accuracy: gDIS consistently achieved the lowest error (measured by $\epsilon_{PEHE}$) across both the BlogCatalog and Flickr datasets compared to baselines like NetEst and TNet. * Case Study Revelation: In the recommendation system analysis, they found that PIE (21.76%) was significantly larger than PDE (13.04%). This suggests that users are more influenced by seeing their friends actually buy a product (the outcome) than just knowing their friends saw an ad for it (the treatment). * Ablation Success: Removing the HSIC component led to a drop in performance, proving that the independence regularization is a key driver of the model's accuracy.

Limitations and Future Work

The biggest hurdle is the Network Unconfoundedness assumption. The model assumes we have measured all variables that influence both the treatment and the outcome. In the messy real world, "hidden confounders" (unmeasured factors) are common.

The authors suggest that future work should explore:

  • Instrumental Variables (IVs): Using "natural experiments" to account for those hidden confounders.
  • Latent Structure Learning: Automatically discovering hidden social structures that aren't explicitly mapped in the data.
  • Dynamic Networks: Moving from static snapshots to networks that evolve over time.

Summary updated

BibTeX
@inproceedings{du2025telling,
  author = {Xiaojing Du and Jiuyong Li and Debo Cheng and Lin Liu and Wentao Gao and XIONGREN CHEN and Ziqi Xu},
  title = {{Telling Peer Direct Effects from Indirect Effects in Observational Network Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=qdKzBrYhiu},
}
Figure