GRAND : Graph Reconstruction from potential partial Adjacency and Neighborhood Data

Sofiane Azogagh, Zelma Aubin Birba, Josée Desharnais, Sébastien Gambs, Marc-Olivier Killijian, Nadia TawbiKDD 2024 · DOI

Abstract

Cryptographic approaches, such as secure multiparty computation, can be used to compute in a secure manner the function of a distributed graph without centralizing the data of each participant. However, the output of the protocol itself can leak sensitive information about the structure of the original graph. In particular, in this work we propose an approach by which an adversary observing the result of a private protocol for the computation of the number of common neighbors between all pairs of vertices, can reconstruct the adjacency matrix of the graph. In fact, this can only be done up to co-squareness, a notion we introduce, as two different graphs can have the same matrix of common neighbors. We consider two models of adversary, one who observes the common neighbors matrix only, and a knowledgeable one, that has a partial knowledge of the original graph. Our results demonstrate that secure multiparty protocols are not enough for privacy protection, especially in the context of highly structured data such as graphs. The reconstruction that we propose is interesting in itself from the point of view of graph theory.

Introduction

In the realm of privacy-preserving data analysis, researchers often use Secure Multiparty Computation (SMC) to compute functions on distributed data without revealing raw inputs. For graphs, a common task is link prediction, which often relies on the number of common neighbors between two nodes. The prevailing assumption has been that as long as the protocol only outputs the count of common neighbors (the $G^2$ matrix) and not the edges themselves, the underlying graph remains private.

GRAND (Graph Reconstruction from potential partial Adjacency and Neighborhood Data) shatters this assumption. This framework demonstrates that an adversary can reconstruct a graph’s entire structure simply by knowing the number of common neighbors between pairs of vertices. By combining deterministic topological rules with spectral analysis, the authors prove that seemingly innocuous summary statistics can leak significant amounts of "private" graph data.

Methodology

The authors introduce GRAND as a pipeline that uses a "two-pronged" attack strategy to tackle the reconstruction problem:

1. Topological Attacks

These are deterministic, logic-based algorithms. For example, if a node's degree is known and some neighbors are identified, the remaining candidates are constrained. Specific rules include the DegreeCombinationAttack, which uses row sums in the common neighbor matrix to identify neighborhoods, and Triangle & Biclique Attacks, which identify specific structural motifs uniquely identifiable from neighbor counts.

A graph $G^\star$ and its corresponding partial adjacency matrix, where '?' represents unknown entries.

2. Spectral Attacks and Hybridization

Building on previous work by Erdős et al., this method uses Singular Value Decomposition (SVD) to iteratively approximate the graph. GRAND improves this by adding a "closeness" constraint, forcing the algorithm to stay consistent with the edges already discovered by the topological attacks. This hybridization is key, as purely mathematical attacks often struggle with sparse graphs.

3. Targeted Error Forgetting

Since spectral methods can introduce noise, GRAND includes a cleanup step that identifies nodes where neighbor counts do not add up and "rolls back" those specific predictions to a state of uncertainty (?) to be re-evaluated.

Results and Key Insights

The authors evaluated GRAND on four diverse real-world datasets: Netscience, Bio-diseasome, Polblogs, and Cora.

Comparison of reconstruction results ($\hat{G}$) and common neighbor matrices ($\hat{G}^2$) between the baseline (Erdős et al.) and GRAND.
  • Perfect Reconstruction: On the Polblogs dataset, GRAND achieved perfect reconstruction (zero error) even without any prior knowledge of the edges.
  • Outperforming the Baseline: In all tests, GRAND significantly outperformed the previous state-of-the-art spectral attack (Erdős et al.), consistently achieving lower Relative Absolute Error (RAE).
  • The Danger of Partial Knowledge: The attack becomes devastatingly effective if the attacker already knows even a small fraction of the graph's edges. For the Netscience and Bio-diseasome datasets, knowing just 10-20% of the edges beforehand allowed GRAND to reconstruct the rest with near-perfect accuracy.

Conclusion

GRAND demonstrates that the output of a private protocol can be just as revealing as the input. If a protocol reveals the $G^2$ matrix, it is effectively revealing the graph's skeleton. The paper also introduces the theoretical concept of co-squareness—where two different graphs produce the same common neighbor matrix—representing the theoretical limit of reconstruction. While currently focused on undirected graphs, GRAND highlights a critical need for stronger privacy protections in graph-based secure computation.

Summary updated

BibTeX
@inproceedings{azogagh2024grand,
  author = {Sofiane Azogagh and Zelma Aubin Birba and Josée Desharnais and Sébastien Gambs and Marc-Olivier Killijian and Nadia Tawbi},
  title = {{GRAND : Graph Reconstruction from potential partial Adjacency and Neighborhood Data}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3711896.3736988},
}
Figure