Abstract
Dynamic Deep Neural Networks (DNNs) provide a mechanism for input-adaptive computation, allowing models to reduce latency and power consumption by exiting early on "easy" samples. Despite their potential, mapping these dynamic workloads onto the traditionally static architectures of Field-Programmable Gate Arrays (FPGAs) remains a significant challenge. This paper reviews the state-of-the-art in FPGA-based acceleration for Early-Exit Networks, examining hardware strategies, toolflow optimizations like ATHEENA, and the persistent bottlenecks in memory and software support.
Introduction
Modern Artificial Intelligence is currently engaged in a "resource arms race," where increasing accuracy is often achieved through deeper and wider models. This trend leads to massive memory footprints and power requirements that are frequently incompatible with embedded systems, such as drones or IoT sensors. While static compression techniques like quantization and pruning offer some relief, they treat every input with identical computational effort.
Dynamic DNNs address this inefficiency by adapting their processing per sample. For instance, a clear image of a sunny sky requires far less processing than a complex, cluttered scene. However, current hardware (FPGAs) and software frameworks (PyTorch/TensorFlow) are optimized for static, predictable workloads. This paper explores how researchers are bridging the gap between adaptive AI and reconfigurable hardware.
Early-Exit Network Architectures
The primary focus of recent research is the Early-Exit Network (EEN). In this architecture, intermediate classifiers are embedded throughout the model's backbone. If an early classifier achieves a high enough confidence score, the computation terminates immediately, saving both time and energy.
Hardware Implementation Strategies
Implementing these dynamic paths on FPGAs involves a trade-off between resource usage and performance. The paper highlights two distinct strategies:
- Pipelined Approach: The backbone computation stops and waits for the early-exit branch to finish. This saves hardware area but increases latency and requires saving intermediate feature maps to memory.
- Parallel Approach: The early-exit branch runs alongside the next layer of the backbone. This eliminates the "wait time" and the need for external memory buffering, but it consumes more on-chip logic (BRAM and DSPs).
System-Level Challenges and Toolflows
Several technical hurdles prevent the widespread adoption of dynamic FPGAs:
- The "Frozen Graph" Problem: Standard AI software typically exports models as static graphs, making it difficult to implement the data-dependent "if-then" logic required for dynamic inference.
- Memory Bottlenecks: Storing intermediate states to decide on an exit can quickly exhaust an FPGA's limited on-chip memory (BRAM).
- Throughput vs. Latency: Dynamic networks break traditional batch processing. Since every sample takes a different amount of time, scheduling becomes a significant challenge.
To address these, frameworks like ATHEENA have been developed. ATHEENA profiles exit probabilities for specific datasets and automatically reconfigures the FPGA's hardware layout to maximize throughput. This hardware-software co-design approach has demonstrated a 2x to 3x increase in throughput compared to static implementations.
Conclusion and Future Directions
While significant progress has been made in accelerating Convolutional Neural Networks (CNNs) with early exits, several frontiers remain. Future research must address the lack of "plug-and-play" libraries to lower the barrier to entry for non-specialists. Additionally, extending these techniques to Transformers and Recurrent Neural Networks (RNNs), as well as developing on-device training strategies to allow FPGAs to learn their own exit policies at runtime, represents the next step in high-performance, edge-based AI.
Summary updated