Abstract
Graph Machine Learning as a Service (GMLaaS) has become a popular paradigm for deploying Graph Neural Networks (GNNs), yet it remains vulnerable to Model Extraction Attacks (MEAs). In an MEA, an adversary queries a target model's API to reconstruct a functional surrogate, threatening intellectual property and competitive advantage. This paper presents ATOM (Attacks deTector On GMLaaS), a proactive, real-time defense framework. ATOM treats attack detection as a dynamic monitoring task, utilizing structural graph analysis, differential sequential modeling, and reinforcement learning. Evaluated on five benchmark datasets, ATOM demonstrates superior detection accuracy and the ability to identify attacks early in the query sequence, significantly outperforming existing passive and general-purpose detection methods.
Introduction
The rise of GMLaaS allows organizations to offer sophisticated GNN-based predictions for domains such as fraud detection, drug discovery, and social network analysis. However, these services are susceptible to MEAs, where attackers systematically query the model to "steal" its logic. Traditional defenses, such as watermarking or fingerprinting, are largely passive—they only provide evidence of theft after the model has been exfiltrated. Furthermore, standard detection techniques for deep learning often fail to account for the unique structural dependencies inherent in graph data. ATOM addresses these gaps by providing a real-time, proactive monitor that identifies the strategic "fingerprints" of an extraction attack as it unfolds.
Methodology: The ATOM Framework
ATOM's architecture is designed to capture the nuances of graph-based query strategies through three primary components.
1. Attack Simulation via Active Learning
To overcome the scarcity of real-world attack data, ATOM utilizes high-fidelity simulations. The framework employs modified active learning algorithms—specifically AGE, GRAIN, and IGP—to model "smart" attackers. These simulated adversaries strategically select nodes to maximize information gain while attempting to remain indistinguishable from legitimate users.
2. Structural Embedding with $k$-core Centrality
A critical challenge in GNN attack detection is understanding the topological significance of a query. ATOM incorporates $k$-core centrality into its node embeddings. By scaling node features based on their connectivity within the graph, the detector can better identify patterns where attackers target high-value, central nodes to accelerate their learning process.
3. Differential Sequential Modeling and Reinforcement Learning
ATOM processes query sequences using a specialized Gated Recurrent Unit (GRU) that employs differential input encoding. Rather than analyzing queries in isolation, ATOM examines the change between consecutive queries, capturing the underlying trajectory of the user's strategy. This sequential model is optimized using Proximal Policy Optimization (PPO), a reinforcement learning technique that allows the detector to adapt dynamically to evolving attacker behaviors.
Experimental Evaluation
The framework was rigorously tested on five benchmark datasets: three citation networks (Cora, Citeseer, PubMed) and two webpage networks (Cornell, Wisconsin). These datasets were "weaponized" with simulated attack sequences to create a robust environment for evaluating detection capabilities.
Key Results
ATOM consistently outperformed baseline models, including standard RNNs and specialized detectors like PRADA. On the Cora dataset, ATOM achieved an F1 score of approximately 86.88%, a substantial improvement over the ~58% achieved by standard sequential models.
A standout feature of ATOM is its capacity for early detection. As shown in the performance analysis, ATOM's accuracy scales rapidly with the number of queries processed. Even when only 25% of an attack sequence has been observed, ATOM provides significantly more reliable detection than competing methods, allowing for timely intervention by service providers.
The inclusion of $k$-core structural embeddings proved essential for performance. Ablation studies indicated that removing this component led to a significant drop in detection accuracy—for instance, a 19% decrease in F1 score on the PubMed dataset—underscoring the importance of graph topology in identifying malicious intent.
Conclusion and Future Directions
ATOM represents a significant advancement in securing GMLaaS by shifting the defensive paradigm from passive verification to proactive monitoring. By leveraging the unique structural properties of graphs and the strategic nature of query sequences, it provides a robust shield against model extraction. Future research will focus on extending ATOM to detect distributed "Sybil" attacks, where adversaries coordinate across multiple accounts to mask their sequential patterns, and validating the framework against large-scale, real-world industrial query logs.
Summary updated