Robust Certification for Laplace Learning on Geometric Graphs

Matthew Thorpe, Bao Wang

TL;DR

This paper provides the first theoretical adversarial robustness certification for Graph Laplacian (GL) classifiers in semi-supervised learning. The authors prove that GL classifiers are intrinsically more robust than $k$-nearest neighbor ($k$NN) classifiers, requiring significantly fewer neighbors to guarantee stability against $\ell_2$-norm perturbations. Furthermore, they demonstrate that adapting traditional $k$NN defense mechanisms to GL classifiers remarkably boosts their empirical defense performance.

What Problem Does This Paper Address?

Graph Laplacian (GL)-based semi-supervised learning (often called Laplace learning) is a cornerstone technique for node classification, leveraging a small set of labeled data alongside a large pool of unlabeled data. While highly effective in practice, machine learning models—including graph-based ones—are notoriously vulnerable to adversarial attacks, where tiny, intentional perturbations to input features cause catastrophic misclassifications.

While researchers have previously established theoretical "robustness certifications" (guarantees that a model's prediction won't change within a certain perturbation radius) for algorithms like $k$NN, no such guarantee existed for GL classifiers. This paper bridges that gap by providing a rigorous mathematical framework to certify the adversarial robustness of GL-based regression and classification.

Methods

The authors analyze the GL framework through the lens of a constrained energy minimization problem, specifically minimizing the graph Dirichlet energy. To establish a robustness certification, they introduce a $\delta$-robustness radius, defined as the maximum $\ell_2$-norm perturbation an adversary can inject into the unlabeled data features without changing the classifier's prediction by more than a tolerance threshold ($\delta$).

The core methodology relies on connecting discrete graph equations to their large-data continuum limits (partial differential equations). By analyzing how perturbations affect the underlying geometric random graphs, the authors prove high-probability bounds on the stability of the system. They also adapt existing $k$NN adversarial defense strategies to the GL setting, including:

  • Adversarial Training (ATGL): Augmenting the training set with adversarially perturbed examples.
  • Data Pruning (RobustGL): Cleaning the training set to ensure data points maintain a minimum separation distance.

Datasets

The theoretical claims were numerically validated using three distinct benchmark datasets:

  1. Halfmoon: A synthetic 2D dataset consisting of two interlocking crescent shapes (2,000 training points, 1,000 test points).
  2. MNIST 1v7: A binary classification subset of the classic handwritten digits dataset, focusing on distinguishing '1' from '7' (1,000 training images, 1,000 test images).
  3. Abalone: A physical-measurement dataset from the UCI Machine Learning Repository used to predict the age of abalone shells (500 training samples, 100 test samples).

Key Insights and Ideas

  • Intrinsic Superiority over $k$NN: Under a standard adversarial attack regime, GL classifiers are inherently more robust than $k$NN. To achieve certified robustness, $k$NN requires the number of neighbors $k$ to scale at a rate of $\Omega(\sqrt{N \log N})$, whereas GL only requires $k = \Omega(\frac{N \log N}{N-M})$, where $N$ is total data and $M$ is unlabeled data. If the labeled fraction is constant, GL needs only $\Omega(\log N)$ neighbors.
  • The Power of Unlabeled Data: The maximum allowed adversarial perturbation radius ($r_{max}$) for GL follows a square-root law relative to the labeling ratio: $r_{max} \propto \sqrt{(N-M)/N}$. This mathematically demonstrates how the density of unlabeled data stabilizes the graph structure against attacks.
  • Cross-Applicability of Defenses: Even though defenses like data pruning were designed for $k$NN, applying them to GL graph construction yields massive robustness gains, outperforming $k$NN across the board.

Key Results

  • Theoretical Bounds: The paper proves that within a calculated radius $r$, the difference between the clean GL solution and the adversarially attacked GL solution is bounded by a small factor $\delta$ with a probability of at least $1 - CNe^{-cN\beta\epsilon^d}$.
  • Empirical Performance: Across all datasets, GL-based classifiers consistently maintained higher classification accuracy than $k$NN counterparts under both White-Box attacks (Direct Attack and Kernel Substitution Attack) and Black-Box attacks (using logistic regression, neural networks, or kernel methods as surrogate models).
  • Data Scaling Effect: As the volume of training data increases, GL-based classifiers show a clear upward trend in average robust accuracy under attack, a property not consistently shared by $k$NN.

Limitations and Future Work

  • Boundary Effects: The current theoretical certification holds true for data points located away from the domain's boundary ($\partial\Omega$). Near boundaries, the convergence rates between graph Laplacians and continuum limits deteriorate, making certification more complex.
  • Evasion vs. Poisoning: This work focuses strictly on evasion attacks (perturbing the features of unlabeled data during inference). It does not cover poisoning attacks, where an adversary maliciously alters training labels or inserts fraudulent nodes before training.
  • Graph Construction Assumptions: The formal proofs are built on geometric random graphs with a continuous kernel ($\eta$). Extending these exact mathematical guarantees to strict $k$NN graph constructions remains an open conjecture, though experimental data suggests it holds true.

Summary updated

Abstract

Graph Laplacian (GL)-based semi-supervised learning is one of the most used approaches for classifying nodes in a graph. Understanding and certifying the adversarial robustness of machine learning (ML) algorithms has attracted large amounts of attention from different research communities due to its crucial importance in many security-critical applied domains. There is great interest in the theoretical certification of adversarial robustness for popular ML algorithms. In this paper, we provide the first adversarial robust certification for the GL classifier. More precisely we quantitatively bound the difference in the classification accuracy of the GL classifier before and after an adversarial attack. Numerically, we validate our theoretical certification results and show that leveraging existing adversarial defenses for the $k$-nearest neighbor classifier can remarkably improve the robustness of the GL classifier.
BibTeX
@inproceedings{thorpe2021robust,
  author = {Matthew Thorpe and Bao Wang},
  title = {{Robust Certification for Laplace Learning on Geometric Graphs}},
  booktitle = {MSML},
  year = {2021},
  url = {https://openreview.net/forum?id=FfgM1gymiW},
}
Figure