NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Poisoning Attack against Unsupervised Node Embedding Methods

Mingjie Sun, Jian Tang, Huichen Li, Bo Li, Chaowei Xiao, Yao Chen, Dawn SongarXiv 2018

Introduction

Node embedding methods, such as DeepWalk and LINE, have become essential tools for mapping complex graph structures into low-dimensional vectors. These embeddings power critical applications ranging from social media recommendations to biological mapping. While the robustness of supervised graph neural networks has been scrutinized, the vulnerability of unsupervised methods remained largely unexplored. This paper introduces the first systematic data poisoning attack against these unsupervised node embedding techniques, demonstrating that a malicious actor can significantly degrade performance or manipulate specific connections by strategically adding or removing a small number of edges.

Problem Formulation

The authors focus on the task of link prediction: determining the likelihood of an edge existing between two nodes. They investigate two types of attacks:

  • Integrity Attack: Strategically adding or deleting edges to ensure certain nodes are or are not recommended to each other.
  • Availability Attack: Aiming to decrease the overall accuracy of the link prediction system.

The core challenge lies in the non-differentiable nature of random-walk-based methods. To address this, the researchers leverage the theoretical insight that many popular unsupervised embedding methods are equivalent to implicit matrix factorization.

Methodology

The proposed "Opt-attack" follows a multi-step optimization process:

  1. Unified Formulation: DeepWalk and LINE are represented as matrix factorization problems.
  2. Gradient Derivation: By applying first-order Karush-Kuhn-Tucker (KKT) conditions, the authors derive gradients of the loss function with respect to the graph's adjacency matrix. This reveals how specific edge changes influence the final embeddings.
  3. Projected Gradient Descent (PGD): To handle the discrete nature of graphs, the attack treats edge weights as continuous during optimization and then projects them back to binary values (0 or 1) to select the final edges for manipulation.
  4. Attack Scenarios: The study evaluates both direct attacks (modifying edges connected to target nodes) and indirect attacks (modifying the graph elsewhere).

Experimental Results

The Opt-attack was evaluated on several real-world datasets, including Facebook, Cora, Citeseer, and DBLP.

Performance of Opt-attack across different datasets and embedding methods.

The results, summarized in the figure above, highlight several key findings:

  • Effectiveness: Opt-attack consistently outperforms baselines like random edge manipulation and heuristics such as Personalized PageRank.
  • Vulnerability Variance: DeepWalk was generally found to be more sensitive to poisoning than LINE, suggesting that random-walk-based methods may be inherently less robust.
  • Transferability: Attacks optimized for DeepWalk often successfully fooled other models like Spectral Clustering or Variational Graph Autoencoders (GAE), indicating high transferability.
  • Strategy: In coauthor networks, the algorithm effectively identified "bridge" edges—rare links between different research communities—as primary targets for deletion to decrease similarity between researchers.

Discussion and Future Work

The study demonstrates that adding a few strategic "fake" edges is generally more effective at disrupting embeddings than deleting existing ones. For instance, on the Cora dataset, adding only 300 edges reduced the Average Precision (AP) of DeepWalk from 0.917 to 0.503.

While this work exposes significant vulnerabilities in link prediction, future research is needed to explore the impact on other downstream tasks like node classification and community detection. Furthermore, the development of defense mechanisms—such as robust training protocols or anomaly detection for graph edges—is a critical next step for securing graph-based systems. The authors acknowledge that they have provided the "sword" but not yet the "shield," emphasizing the urgent need for defensive research.

Summary updated

BibTeX
@misc{sun2018data,
  author = {Mingjie Sun and Jian Tang and Huichen Li and Bo Li and Chaowei Xiao and Yao Chen and Dawn Song},
  title = {{Data Poisoning Attack against Unsupervised Node Embedding Methods}},
  year = {2018},
  eprint = {1810.12881},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.12881},
}
Figure