Abstract
Deploying complex deep neural networks (DNNs) on resource-constrained edge devices is hindered by limited hardware capacity and network unreliability. We present RoCoIn (Robust Cooperative Inference), a framework that enables high-performance distributed inference by combining model compression with redundant execution. By partitioning a large "teacher" model into independent "student" models and intelligently assigning them to device groups based on hardware profiles, RoCoIn achieves superior accuracy and low latency even in the presence of device failures or network timeouts.
Introduction
The deployment of modern DNNs on the "edge"—such as microcontrollers in smart homes or sensors in smart cities—remains a significant challenge. Standard models like ResNet-50 require nearly 100MB of memory, while many edge devices operate with less than 500KB of RAM.
Existing distributed inference methods, which split workloads across multiple devices, face two primary hurdles:
- Heterogeneity: Edge devices vary in memory and connectivity. Uniform splitting leads to "stragglers," where the slowest device bottlenecks the entire system.
- Unreliability: IoT devices are prone to crashes, power loss, or network timeouts. Traditional distributed systems often fail if even a single node drops out.
The RoCoIn Framework
RoCoIn addresses these challenges through a "distill-and-replicate" approach that moves beyond simple model-splitting. The framework consists of an offline configuration stage and a runtime cooperative inference stage.
Core Components
- Knowledge Distillation (KD): Instead of serial layer-splitting, RoCoIn distills a large "teacher" model into several independent, compact "student" models. Each student is trained to handle a specific portion of the teacher's feature space.
- Similarity-Aware Device Grouping: Devices are clustered based on their compute and communication profiles. To ensure redundancy, the same student model is assigned to multiple devices within a group.
- Normalized Cut Partitioning: To partition the teacher's knowledge effectively, the system analyzes filter activation patterns using a "Normalized Cut" spectral clustering algorithm. This ensures knowledge is split into balanced, independent chunks that minimize accuracy loss upon recombination.
- Optimal Student Assignment: Using the Kuhn-Munkres (KM) algorithm, RoCoIn solves a bipartite matching problem to pair student model complexity with the hardware constraints (CPU, memory, and bandwidth) of specific device groups.
Experimental Evaluation
The framework was evaluated using CIFAR-10, CIFAR-100, and VisDrone2019 (object detection using YOLOv5).
Key Results
- Accuracy and Efficiency: On CIFAR-100, RoCoIn achieved 72.42% accuracy, outperforming the state-of-the-art NoNN (70.78%) while maintaining a comparable computational footprint.
- Failure Resilience: In simulations where 50% of devices failed, RoCoIn maintained over 88% accuracy on CIFAR-10, whereas baseline methods suffered significant performance drops due to a lack of proactive redundancy.
- Latency Optimization: By matching model complexity to device capacity, RoCoIn avoids the straggler effect, significantly reducing response latency in heterogeneous environments.
Conclusion
RoCoIn demonstrates that redundancy and heterogeneity can be leveraged to create more resilient edge AI systems. By specializing student models and grouping devices, the framework ensures that inference can proceed as soon as a sufficient subset of results is received. Future work will explore dynamic, real-time resource scheduling to adapt to fluctuating network conditions and adversarial edge environments.
Summary updated