Introduction
Graph Neural Networks (GNNs) have emerged as the state-of-the-art for processing non-Euclidean data structures, such as point clouds and social graphs. However, their deployment on resource-constrained edge devices (e.g., mobile phones, drones, IoT sensors) remains a significant challenge. Standard GNN architectures are computationally intensive and memory-demanding, often resulting in sub-optimal performance on hardware like the Raspberry Pi.
While "device-edge co-inference"—partitioning a model between a local device and a powerful edge server—offers a potential solution, traditional "layer-split" methods are often ineffective for GNNs. Unlike Convolutional Neural Networks (CNNs), GNN operations can significantly expand intermediate data volume, potentially making the communication cost over wireless networks higher than the computation savings.
The GCoDE Framework
To address these challenges, we introduce GCoDE, the first automated framework designed to jointly optimize GNN architectures and their device-edge mapping schemes. The fundamental shift in GCoDE is treating inter-device communication not as an external constraint, but as a specialized operation within the GNN's design space.
GCoDE utilizes a Unified Design Space where "Communicate" is an abstract operation alongside standard GNN functions like Sample, Aggregate, and Combine. This allows a Neural Architecture Search (NAS) algorithm to perform Architecture-Mapping Co-Search, determining both the optimal sequence of operations and their physical execution location (on-device vs. on-edge) simultaneously.
Addressing the Communication Bottleneck
A critical insight of this work is the "Communication-Computation Seesaw." Certain GNN operations, particularly k-Nearest Neighbors (KNN), can generate massive intermediate graph data. If a split occurs immediately after such an operation, the resulting communication volume can be orders of magnitude larger than the original input.
As shown in the analysis, operations like KNN1 and KNN4 create significant spikes in communication volume. GCoDE’s co-search mechanism identifies these bottlenecks and learns to either offload these operations to the edge or restructure the architecture to find a "Minimum Volume" split point (e.g., after an MLP layer), optimizing the total inference latency.
System-Aware Optimization
To facilitate efficient search without the overhead of real-world hardware measurements for every candidate, GCoDE employs GNN-based performance predictors. These predictors estimate latency and energy consumption by combining operation types with hardware-specific lookup tables (LUTs). This "System Awareness" ensures that the discovered architectures are tailored to the specific hardware heterogeneity of the deployment environment, such as the differing strengths of an Intel CPU versus an Nvidia GPU.
Experimental Results
The framework was evaluated on benchmarks including ModelNet40 (3D point clouds) and MR (text classification). Key findings include:
- Massive Speedups: GCoDE achieved up to a 44.9× speedup compared to baseline models like DGCNN on a Raspberry Pi 4B and Nvidia 1060 GPU setup.
- Extreme Energy Efficiency: On-device energy consumption was reduced by up to 98.2%, with some inferences requiring as little as 10 mJ.
- Accuracy Preservation: Despite the focus on efficiency, GCoDE maintained high accuracy (e.g., ~92.8% on ModelNet40), outperforming other hardware-aware NAS frameworks.
- Predictor Precision: The latency and energy predictors reached 85.3% and 70.1% accuracy respectively within a 10% error bound.
Conclusion
GCoDE demonstrates that the key to efficient GNN deployment at the edge lies in the co-design of architecture and mapping. By abstracting communication as a first-class architectural component, GCoDE overcomes the limitations of traditional splitting methods. Future work will focus on enhancing the framework's robustness to network jitter and scaling the approach to massive-scale graph nodes.
Summary updated