Abstract
Distributed inference on edge devices often suffers from rigid architectural dependencies, where the failure of a single node can halt the entire processing pipeline. This paper introduces Fluid Dynamic DNNs (Fluid DyDNNs), a modular architecture designed to decouple sub-networks, allowing them to operate both independently and collectively. By employing a Nested Incremental Training algorithm, Fluid DyDNNs enable resilient execution and adaptive performance. Our evaluation demonstrates that Fluid DyDNNs can maintain continuous inference during device failure and achieve up to a 2.5x throughput improvement over static models through parallel execution modes.
1. Introduction
Deep Neural Network (DNN) inference at the edge—utilizing devices such as smartphones, IoT sensors, and local gateways—frequently leverages distributed computing to handle computationally intensive tasks. In a standard distributed setup, a "Master" device partitions a task and offloads portions of the workload to "Worker" devices. However, this paradigm is inherently brittle. Traditional static DNNs require every component to be functional; if one device fails or experiences a network bottleneck, the entire inference process is compromised.
While dynamic DNNs (which can adjust their size) offer some flexibility, they typically suffer from a "dependency trap." In these models, larger sub-networks are physically dependent on the weights of smaller, foundational sub-networks. If the device hosting the base weights goes offline, the remaining weights on other devices become computationally useless. Fluid DyDNNs are proposed to solve this lack of modularity, providing a framework for truly independent yet collaborative distributed inference.
2. Methodology
2.1 Fluid DyDNN Architecture
The core innovation of the Fluid DyDNN is its modular design. Unlike traditional slimmable or dynamic networks where a 100% model physically contains the 50% model, Fluid DyDNNs treat sub-networks as discrete, functional modules. For instance, an "upper 50%" module is trained to function as a standalone classifier. When resources allow, this module can be integrated with a "lower 50%" module to form a high-capacity model that yields higher accuracy. This modularity ensures that if the Master device (holding the lower weights) fails, the Worker device (holding the upper weights) can still produce a valid, albeit lower-precision, inference result.
2.2 Nested Incremental Training
To achieve this independence without sacrificing joint performance, the authors developed a Nested Incremental Training algorithm. The process follows three primary stages:
- Base Training: A standard dynamic base is trained to establish performance benchmarks across various scales (e.g., 25%, 50%, 75%, and 100% versions).
- Slice Independence: The system specifically trains "upper" slices of the network weights to function as independent models. This ensures that the weights stored on a Worker device are not merely auxiliary but are self-contained functional units.
- Iterative Fine-Tuning: Weights are shared and fine-tuned across modules so that they maintain high performance when operating in isolation (for reliability) and when combined (for maximum accuracy).
2.3 Execution Modes
Fluid DyDNNs support two primary operational modes to adapt to environmental conditions:
- High-Accuracy (HA) Mode: Multiple devices process the same input jointly, combining their sub-networks to reach peak precision.
- High-Throughput (HT) Mode: Devices process separate inputs in parallel using their independent sub-networks. This maximizes the number of images processed per second at the cost of some per-image accuracy.
3. Experimental Setup
The researchers validated the Fluid DyDNN framework using the MNIST handwritten digit dataset. The hardware environment consisted of Arm CPUs on an Nvidia Jetson Xavier NX platform. To simulate a real-world distributed edge environment, the devices communicated via TCP protocols, allowing the researchers to measure the impact of device failure and network latency on total system throughput.
4. Key Results and Discussion
4.1 Resilience and Reliability
The most significant advantage of Fluid DyDNNs is their fail-safe capability. In experimental scenarios where a device was simulated to fail, both static and traditional dynamic DNNs saw throughput and accuracy drop to zero immediately. In contrast, Fluid DyDNNs maintained continuous inference by allowing the surviving device to switch to its independent sub-network mode.
4.2 Throughput Gains
In High-Throughput mode, Fluid DyDNNs demonstrated a 2.5x throughput increase compared to static DNNs and a 2x increase over traditional dynamic DNNs. Specifically, when both devices were operational in a distributed setup, the system reached a throughput of 28.3 images per second (images/s) in HT mode, whereas a standard static distributed setup managed only 11.1 images/s.
4.3 The Regularization Effect
An unexpected finding was that Fluid DyDNNs achieved slightly higher peak accuracy than their static counterparts. The authors suggest that the Nested Incremental Training process acts as a form of regularization. By forcing the network to learn robust features that are useful both in isolation and in combination, the training prevents overfitting and improves the generalizability of the weights.
5. Limitations and Future Work
While the results are promising, several areas for further research remain:
- Model Scaling: The current study utilized a relatively small architecture with three convolutional layers. Future research must determine if these modular benefits scale to massive architectures like ResNets or Transformers and more complex datasets like ImageNet.
- Communication Bottlenecks: Data exchange between devices remains a primary bottleneck. Future iterations could incorporate intermediate data compression or more efficient edge-native communication protocols.
- Mesh Complexity: The current experiments focused on a simple Master-Worker pair. Scaling this logic to a mesh of dozens of devices will require sophisticated scheduling and dynamic partitioning logic to manage the various sub-network combinations.
6. Conclusion
Fluid DyDNNs represent a shift toward more resilient edge AI. By breaking the rigid weight dependencies of traditional models, this architecture allows distributed systems to remain functional under stress and highly efficient during peak demand. The ability to toggle between high-accuracy and high-throughput modes provides a level of fluidity essential for the unpredictable nature of edge computing environments.
Summary updated