TL;DR
Temporal Graph Neural Networks (TGNNs) are the backbone of modern fraud detection and cybersecurity, yet they are surprisingly fragile. This paper introduces TR-BCD, the first gradient-based evasion attack designed for continuous-time dynamic graphs, demonstrating that perturbing just 5% of edges can slash model performance by up to 53%.
What Problem Does This Paper Address?
Most graph research focuses on static snapshots, but the real world is messy and evolving. Whether it's a stream of financial transactions or a series of social media interactions, these are best modeled as Continuous-Time Dynamic Graphs (CTDGs). To process this data, researchers use TGNNs, which maintain an internal "memory" to track how nodes change over time.
While we know a lot about how to break static Graph Neural Networks, the adversarial robustness of temporal models is largely uncharted territory. Attacking these models is significantly harder because the search space is massive—an attacker has to decide not just which nodes to connect, but exactly when to connect them. Furthermore, because TGNNs have memory, a single adversarial edge can "pollute" the model’s state, causing errors to persist and compound across all future predictions.
Methods
The authors propose TR-BCD (Temporally-aware Randomized Block Coordinate Descent), a framework for white-box evasion attacks. Unlike "poisoning" attacks that happen during training, an evasion attack happens at inference time on a deployed model.
Key technical innovations include:
- Continuous Relaxation: Since choosing to add an edge is a discrete (0 or 1) decision that you can't differentiate through, the authors relax these choices into continuous weights. This allows them to use gradients to find the most damaging perturbations.
- Randomized Block Coordinate Descent (RBCD): Optimizing every possible edge pair ($V^2$) is computationally impossible for large graphs. TR-BCD instead samples a "block" of candidate edges to optimize at each step, making the attack scalable to massive networks like Reddit.
- Mixed Candidate Sampling: The attack doesn't just pick random edges. It specifically targets "historical negatives"—edges that existed in the past but are currently absent. These are particularly effective at confusing models that rely on historical patterns.
- Multi-Dimensional Perturbations: The framework allows for structural (adding edges), contextual (modifying features), and temporal (manipulating timestamps) attacks, either individually or in combination.
Datasets
The authors evaluated their attack on six diverse real-world temporal networks:
- Social/Interaction: Wikipedia, Reddit, MOOC, LastFM.
- Communication: Enron, UCI. These datasets include a mix of bipartite and non-bipartite structures, as well as attributed (with features) and non-attributed graphs.
Key Insights and Ideas
- The "Memory Pollution" Effect: The most critical insight is that temporal attacks are "sticky." In a static graph, a perturbation only affects its local neighborhood. In a TGNN, an adversarial edge corrupts the node's memory state, which then propagates to every future interaction that node has.
- Structure Over Context: The study found that structural perturbations (adding fake edges) are far more devastating than contextual perturbations (changing edge features). TGNNs seem to rely much more heavily on the "who and when" than the "what."
- Stealth is Possible: By distributing adversarial edges across temporal batches rather than injecting a single "burst" of fake data, TR-BCD can bypass sophisticated anomaly detectors like SPOTLIGHT that look for sudden spikes in graph activity.
- Vulnerability Generalizes: The attacks are transferable. An adversarial perturbation optimized to break one model (like TGN) often successfully degrades the performance of a completely different architecture (like TNCN).
Key Results
- Massive Performance Drops: On the MOOC dataset, TR-BCD reduced the Mean Reciprocal Rank (MRR)—a standard metric for link prediction—by 53.83% while only perturbing 5% of the edges.
- Superiority Over Heuristics: TR-BCD significantly outperformed heuristic baselines (like random edge insertion) and existing temporal attacks like MemStranding, particularly in its ability to remain undetected by anomaly detection systems.
- Efficiency: Despite the complexity of temporal graphs, the block-based optimization allowed the attack to run with a memory footprint that scales linearly with the block size, rather than quadratically with the number of nodes.
Limitations and Future Work
The primary limitation acknowledged is the white-box setting: the attacker is assumed to have full access to the model's architecture and gradients. While this provides a necessary "upper bound" on vulnerability, real-world attackers often operate in "black-box" scenarios.
Future work suggested by the authors includes:
- Developing black-box versions of TR-BCD that don't require gradient access.
- Exploring simultaneous insertion and deletion of edges.
- Using these findings to develop adversarial defense mechanisms, such as specialized adversarial training for temporal models, to make TGNNs robust enough for high-stakes deployment.
Summary updated