Abstract
Network embedding maps graph nodes into low-dimensional vectors, but often suffers from noise and overfitting. While Generative Adversarial Networks (GANs) have been proposed for regularization, they are frequently unstable and computationally expensive. This paper introduces Adversarial Training (AdvT) for network embedding, injecting "worst-case" perturbations directly into the embedding space during training. We propose two methods: AdvT with adaptive $L_2$ norm constraints and Interpretable AdvT (iAdvT). Our approach achieves significant gains in link prediction and node classification across five benchmark datasets, offering a more stable and efficient alternative to GAN-based regularization.
Introduction
Network embedding is a fundamental task in graph analysis, aiming to represent nodes as low-dimensional vectors that preserve structural information. However, real-world graphs are often noisy, and models are prone to overfitting. Recent attempts to use GANs for regularization have faced challenges due to training instability and high computational costs.
This work argues that the complexity of GANs is unnecessary for achieving robustness. Instead, we adapt Adversarial Training—a technique successful in computer vision—to the discrete domain of graphs by applying perturbations directly in the embedding space.
Methodology
We build upon the DeepWalk model and propose two primary adversarial training strategies:
1. Adversarial Training with Adaptive Constraints (AdvT)
Standard adversarial training adds a perturbation $\epsilon$ to maximize loss. We adapt this by defining perturbations in the embedding space with an adaptive $L_2$ norm constraint. Using Pointwise Mutual Information (PMI) to measure connectivity, we allow smaller perturbations for strongly connected nodes to preserve signal and larger perturbations for weakly connected nodes to prevent overfitting to coincidental links.
2. Interpretable Adversarial Training (iAdvT)
To make adversarial noise more meaningful, iAdvT restricts perturbation directions to point toward the embeddings of existing nodes in the graph. This effectively simulates "node substitution" (e.g., "What if this citation was actually to Paper B instead of Paper A?"), making the adversarial examples interpretable within the graph domain.
Key Insights: The Vulnerability Gap
A core finding of this research is that network embeddings are significantly more vulnerable to adversarial noise than random noise. Unlike computer vision, where noise can be added to pixels, graphs are discrete. By moving the adversarial attack into the embedding space, the authors bypass this limitation.
As shown in Figure 1, a small, calculated nudge in the gradient direction (adversarial) drastically reduces accuracy across multiple datasets, whereas random noise of the same magnitude has a negligible effect. This "vulnerability gap" justifies the focus on "worst-case" perturbations during training to ensure local smoothness and robustness.
Experimental Results
The proposed methods were evaluated on five benchmark datasets: Cora, Citeseer, Wiki, CA-GrQc, and CA-HepTh.
- Link Prediction: The proposed
Dwns_AdvTmodel achieved an average 4.62% improvement in AUC score across all datasets compared to the base DeepWalk model. - Node Classification: Adversarial models consistently outperformed baselines like LINE and node2vec, particularly when training data was sparse. For example, on the Cora dataset, AdvT improved accuracy by several percentage points even with low training ratios.
- Efficiency: By utilizing a simple fast gradient method for noise generation, AdvT is significantly faster and more stable than GAN-based alternatives like AIDW.
Conclusion and Future Work
Adversarial training provides a robust and efficient framework for regularizing network embeddings. While this study focuses on skip-gram based models like DeepWalk, future work includes extending these techniques to more complex architectures such as Graph Convolutional Networks (GCNs) and deep autoencoders. Additionally, exploring the trade-off between the pure mathematical "worst-case" noise of AdvT and the domain-specific "interpretable" noise of iAdvT remains an open area for research.
Summary updated