Abstract
Deploying deep Convolutional Neural Networks (CNNs) on resource-constrained edge devices necessitates distributed computing. However, system performance is often bottlenecked by "stragglers"—slow or unresponsive nodes. This paper introduces the Flexible Coded Distributed Convolution Computing (FCDCC) framework, which leverages novel tensor partitioning and numerically stable coding techniques to mitigate straggler effects. FCDCC achieves significant speedups (over 90%) and maintains extreme numerical stability ($10^{-26}$ MSE) across standard CNN architectures like VGGNet and AlexNet.
Introduction
The proliferation of IoT and edge computing has driven the need for local CNN inference. Distributing these workloads across multiple devices is a common strategy, but it introduces the "straggler problem," where the slowest node dictates the overall latency. Coded Distributed Computing (CDC) offers a solution by adding algorithmic redundancy, allowing a master node to reconstruct the final output from only a subset of worker results.
Despite its potential, traditional CDC faces challenges in CNN applications, including inefficient matrix transformations (e.g., im2col) and severe numerical instability when scaling to many nodes. FCDCC addresses these issues by operating directly on high-dimensional tensors and employing stable coding matrices.
The FCDCC Framework
The FCDCC framework consists of five main phases: Partitioning and Encoding, Upload, Computing, Download, and Decoding/Merge.
Numerically Stable Coded Tensor Convolution (NSCTC)
Traditional CDC often relies on real-valued Vandermonde matrices, which become ill-conditioned as the number of nodes increases. FCDCC adapts Circulant and Rotation Matrix Embedding (CRME) to high-dimensional tensors. By using complex Vandermonde matrices on the unit circle while maintaining real-field arithmetic, the framework ensures the decoding matrix remains perfectly well-conditioned, enabling massive scalability.
Adaptive-Padding Coded Partitioning (APCP)
Instead of flattening tensors into matrices, APCP partitions input feature maps along their spatial dimensions (height or width). It utilizes adaptive padding to maintain mathematical continuity across partition boundaries, ensuring that the distributed convolution matches the centralized result exactly.
Kernel-Channel Coded Partitioning (KCCP)
Complementing APCP, KCCP partitions the filter (weights) along the output channel dimension. By partitioning both inputs and filters, FCDCC creates a flexible trade-off space. An optimization algorithm determines the ideal split ratio ($k_A$ for inputs, $k_B$ for filters) to minimize communication and storage overhead based on the specific layer dimensions.
Experimental Evaluation
The authors evaluated FCDCC using LeNet-5, AlexNet, and VGGNet architectures on Amazon EC2 instances. Artificial delays were injected to simulate straggler nodes in a heterogeneous edge environment.
Key Results
- Numerical Stability: FCDCC maintained a Mean Squared Error (MSE) between $10^{-30}$ and $10^{-26}$. In contrast, baseline CDC methods failed due to numerical blowups when scaled beyond 40 nodes.
- Efficiency: The framework reduced total computation time by over 90% compared to single-node execution. The decoding overhead at the master node was negligible, typically representing less than 2% of the total worker computation time.
- Fault Tolerance: The system successfully tolerated up to the theoretical maximum number of stragglers ($\gamma$) without increasing inference latency.
Conclusion and Future Work
FCDCC provides a robust, scalable, and numerically stable solution for distributed CNN inference. By treating worker nodes as "black boxes," it remains compatible with various underlying convolution implementations. Future research will focus on extending these coded schemes to non-linear operations like pooling and ReLU, as well as incorporating privacy-preserving mechanisms for untrusted environments.
Summary updated