A Unified Framework for Data Poisoning Attack to Graph-based Semi-supervised Learning

Xuanqing Liu, Si Si, Jerry Zhu, Yang Li, Cho-Jui Hsieh

TL;DR

This paper introduces the first unified framework for launching data poisoning attacks against Graph-based Semi-supervised Learning (G-SSL). By treating poisoning as an optimization problem, the authors demonstrate that G-SSL models are surprisingly fragile: in some cases, flipping just two labels in a dataset of 50,000 can reduce a model's performance to the level of a random guess.

What Problem Does This Paper Address?

Graph-based Semi-supervised Learning (G-SSL) is a powerful tool used when labeled data is scarce but unlabeled data is plentiful. It relies on the "manifold assumption"—the idea that similar data points (nodes in a graph) should share similar labels. While much research has focused on "adversarial examples" (perturbing data at test time), data poisoning—maliciously altering the training data to degrade the model's future performance—has been less explored in the context of graphs.

Illustration of a data poisoning attack in G-SSL.

The authors identify a significant gap: we lack a full understanding of how sensitive G-SSL is to small perturbations in training labels or features, nor do we have a standardized way to measure this robustness. Poisoning G-SSL is particularly challenging because the "error" injected into just a few labeled nodes propagates through the entire graph during the learning process.

Methods

The authors propose a unified optimization framework that covers both regression and classification tasks. They focus on two main types of attacks:

  1. Regression Tasks ($L_2$-norm constraint): The goal is to find a small perturbation that maximizes the Root Mean Square Error (RMSE). This results in a non-convex "trust region problem." The authors developed a specialized gradient-based algorithm that can find the global minimum in asymptotically linear time.
  2. Classification Tasks ($L_0$-norm constraint): This involves "flipping" a discrete number of labels, which is an NP-hard integer programming problem. Instead of using a standard (and often "myopic") greedy search, the authors proposed a probabilistic solver. They used a "reparameterization trick" (similar to Gumbel-Softmax) to make the discrete flipping process differentiable, allowing them to use powerful stochastic optimization tools like Adam.

The framework also accounts for different levels of attacker knowledge, including "white-box" scenarios (where the attacker knows everything) and "gray-box" scenarios (where the attacker must estimate ground truth labels or hyper-parameters).

Datasets

The researchers evaluated their framework on four diverse datasets:

  • Regression: cadata (California housing data) and E2006 (financial reports).
  • Classification: mnist17 (a subset of the MNIST handwritten digits focusing on '1' and '7') and rcv1 (Reuters newswire stories).

Key Results and Insights

Performance of poisoning attacks across different datasets and label densities.
  • Extreme Fragility: G-SSL is remarkably vulnerable. On the MNIST binary classification task (50,000 training points with 50 labeled), flipping just two labeled nodes was enough to make the model perform no better than a random coin flip (50% error).
  • Superiority over Baselines: As shown in the bottom row of the figure above, the proposed optimization-based attacks significantly outperformed traditional "centrality-based" attacks, such as targeting nodes with high degrees or high PageRank scores.
  • The Propagation Double-Edge: The very mechanism that makes G-SSL effective—propagating label information to neighbors—is what makes it vulnerable. A single "poisoned" node acts as a fountain of misinformation for its entire neighborhood.
  • Robustness vs. Label Density: The authors observed a "no free lunch" scenario (illustrated in the top row of the figure above). While G-SSL excels with very few labels, it is also at its most vulnerable in this state. As the number of legitimate labeled nodes increases, the model becomes significantly more resistant to poisoning.
  • Knowledge isn't Power (for the Victim): Surprisingly, an attacker doesn't need to know the true labels of the unlabeled data to be effective. Using the model's own estimated labels to plan the attack yielded results almost as devastating as knowing the ground truth.
  • Probabilistic vs. Greedy: For classification, the probabilistic solver consistently found better "flips" than the greedy method, especially as the "budget" for how many labels could be flipped increased.

Limitations and Future Work

The paper primarily focuses on the label propagation algorithm. While the authors mention that their ideas can extend to manifold regularization and feature poisoning, the bulk of the experimental evidence is centered on label flipping.

Additionally, the study focuses on "classical" G-SSL. As the field moves toward Deep Graph Learning (like Graph Convolutional Networks), a natural next step is to see if these sophisticated differentiable poisoning attacks can be adapted to compromise more complex, multi-layered neural architectures. Finally, the authors note that developing effective defenses against these unified attacks remains an open and urgent challenge.

Summary updated

BibTeX
@inproceedings{liu2019unified,
  author = {Xuanqing Liu and Si Si and Jerry Zhu and Yang Li and Cho-Jui Hsieh},
  title = {{A Unified Framework for Data Poisoning Attack to Graph-based Semi-supervised Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=Q_sn_sAmTmf},
}
Figure