Beyond Homophily: Towards Generalized Graph Reconstruction Attack and Defense

Zhanke Zhou, Bo Han, Xuan Li, Jiangchao Yao, Sanmi Koyejo, Michael K. NgarXiv 2026

TL;DR

This paper introduces a unified framework for both attacking and defending the privacy of graph structures in Graph Neural Networks (GNNs). By viewing GNN layers as a "Markov chain" of representations, the authors develop a powerful reconstruction attack (MC-GRA) and a principled defense (MC-GPB) that work effectively across both homophilic and heterophilic graph regimes.

What Problem Does This Paper Address?

Graph Neural Networks are the standard for learning on relational data, such as social networks, financial transactions, and molecular structures. However, these models can inadvertently "memorize" and leak the private training graph structure—the adjacency matrix.

A major challenge in the field of Graph Reconstruction Attacks (GRA) is that most existing methods assume homophily: the idea that connected nodes are similar. While this holds for citation networks, it fails for many real-world "heterophilic" graphs (e.g., a fraud network where a scammer connects to many victims). Furthermore, previous research lacked a unified way to handle different levels of attacker knowledge, such as having access to only final predictions versus intermediate layer embeddings.

Figure 1: Illustration of a graph reconstruction attack using characters from Game of Thrones. In the forward classification, a trained GNN fθ(·) predicts node categories bYA (family names shown in blue boxes) from node attributes and the private training graph A (kinship relations shown as red edges). In the backward inversion attack, an adversary reconstructs the original graph adjacency A despite not having access to the ground-truth adjacency.

Methods

The authors propose a "Markov chain approximation" lens. They treat the GNN forward pass as a sequence of topology-dependent representations: $X \to Z^{(1)} \to Z^{(2)} \to \dots \to \hat{Y}$.

The Attack: MC-GRA (+)

Instead of just looking at the final output, the Markov Chain-based Graph Reconstruction Attack (MC-GRA) seeks a surrogate adjacency matrix that makes the entire chain of representations in a "shadow" model match the observed representations from the target model.

  • Continuous Relaxation: They use a learnable distribution to optimize the discrete graph structure via gradients.
  • Heterophily Prior (+): For graphs where neighbors are different, they introduce a prior based on predicted label disagreement to bias the reconstruction toward cross-label connectivity.

The Defense: MC-GPB (+)

The Markov Chain-based Graph Privacy Bottleneck (MC-GPB) is a training-time defense inspired by the Information Bottleneck principle. It modifies the GNN's loss function to:

  1. Maximize Utility: Keep representations predictive of node labels.
  2. Minimize Leakage: Penalize mutual information between the hidden representations and the private adjacency matrix.
  3. Inject Stochasticity: Use techniques like "DropEdge" during training to prevent the model from deterministically encoding specific edges.
Figure 2: Modeling graph reconstruction as Markov-chain approximation.

Datasets

The study evaluates these methods across nine diverse real-world datasets:

  • Homophilic: Cora, Citeseer (citation), Polblogs (politics), USA, Brazil (air-traffic).
  • Heterophilic: Texas, Cornell, Wisconsin (webpages), AIDS (chemical bonds). These datasets vary significantly in their "edge homophily ratio," ranging from 0.91 (Polblogs) down to 0.09 (Cornell).

Key Insights and Ideas

  • Leakage is an Interaction: Adjacency leakage isn't just a property of the data; it's modulated by the interaction between graph homophily and the model's inductive bias. For example, GCNs tend to smooth features, making adjacency more recoverable on homophilic graphs.
  • The "V-shaped" Trajectory: During standard training, adjacency recoverability often increases early on as the model fits the structure, then slightly decreases as it "compresses" information to focus on the classification task.
  • Naive Fusion Fails: Simply averaging different leaked signals (like features and predictions) often yields worse results than a structured approach because the signals are often redundant or scaled differently.
  • Heterophily as a Vulnerability: Heterophilic edges were previously thought to be harder to reconstruct. This paper shows they are actually highly recoverable if the attacker uses a proper prior based on label disagreement.

Key Results

The proposed attack, MC-GRA (+), consistently outperforms prior methods like GraphMI. On the heterophilic Cornell dataset, it achieved a 105.5% relative improvement in reconstruction AUC over baseline ensembles.

On the defensive side, MC-GPB (+) successfully reduced reconstruction success to near-random levels (AUC $\approx$ 0.50) on several datasets while maintaining high classification accuracy. As shown in the qualitative visualizations, the defense effectively "washes out" the structural patterns that an attacker would normally exploit.

Figure 3: Recovered adjacency on Cora. Green dots are correct; red dots are errors. The protected GNN (right) shows significantly more errors.

Limitations and Future Work

The authors identify several areas for further exploration:

  • Transductive Setting: All experiments were conducted on a single graph in a transductive setting; the behavior in inductive (unseen nodes) or multi-graph settings remains untested.
  • Adaptive Attackers: While the defense is robust against current attacks, a "fully adaptive" attacker who knows the exact defense mechanism (e.g., the specific CKA-based penalty used) might find new ways to circumvent it.
  • Scalability: The current dense full-graph reconstruction approach may face computational hurdles on extremely large graphs, suggesting a need for subgraph-based or sparse parameterization techniques in the future.

Summary updated

BibTeX
@misc{zhou2026beyond,
  author = {Zhanke Zhou and Bo Han and Xuan Li and Jiangchao Yao and Sanmi Koyejo and Michael K. Ng},
  title = {{Beyond Homophily: Towards Generalized Graph Reconstruction Attack and Defense}},
  year = {2026},
  eprint = {2606.08067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.08067},
}
Figure