Introduction
As deep learning (DL) inference workloads become a cornerstone of modern data center operations, cloud providers like Amazon, Alibaba, and Microsoft are increasingly deploying Field-Programmable Gate Arrays (FPGAs). FPGAs offer a compelling balance of high performance and energy efficiency compared to traditional CPUs and GPUs. However, a significant barrier remains: virtualization. While cloud environments require the ability to share hardware resources among multiple tenants or dynamic workloads, existing FPGA-based Deep Neural Network (DNN) accelerators are largely designed for single-task, static execution. This research addresses the critical trade-off between security isolation and reconfiguration speed in FPGA virtualization.
The Challenges of FPGA Virtualization
Currently, sharing an FPGA typically relies on one of two methods, both of which present significant drawbacks for cloud-scale deployment:
- Time-Division Multiplexing (TDM): In this model, users take turns utilizing the entire chip. This approach suffers from poor physical and performance isolation. If one user's task crashes or hangs, it can impact others, and the lack of strict partitioning creates potential security vulnerabilities and unpredictable latency.
- Space-Division Multiplexing (SDM): This method partitions the chip into dedicated physical resources for different users. While SDM solves the isolation problem, it introduces a massive temporal overhead. Reallocating resources dynamically requires recompiling the hardware instruction set, a process that typically takes approximately 100 seconds. For inference tasks that are measured in milliseconds, a multi-minute delay is unacceptable.
Proposed Solution: Hardware-Software Co-Design
The authors propose a novel virtualization framework for Instruction Set Architecture (ISA) based DNN accelerators. The system utilizes a hardware-software co-design to achieve strict isolation without the traditional reconfiguration penalty.
Hardware: Multi-Core Space-Division Multiplexing
Instead of treating the FPGA as a single monolithic computing core, the framework divides the hardware into a "multi-core hardware resources pool." Users are allocated dedicated small cores, ensuring that their workloads are physically separated. To manage this complexity, the system introduces a two-level Instruction Dispatch Module (IDM). The first level acts as a global task scheduler across different users, while the second level manages instruction distribution and synchronization within the specific cores allocated to a single user.
Software: Two-Stage Static-Dynamic Compilation
To eliminate the minutes-long delay associated with SDM reconfiguration, the authors developed a two-stage compilation process:
- Offline (Static Compiler): Before deployment, the compiler slices the DNN model into "tiling-based instruction frame packages" (IFPs). These packages are simulated to build a latency look-up table, effectively pre-calculating the execution requirements.
- Online (Dynamic Compiler): When cloud resources need to be reallocated, a lightweight dynamic compiler takes over. Instead of recompiling the entire design, it simply selects the pre-packaged IFPs and assigns them to available cores using a workload-balanced algorithm. This shift moves the computational heavy lifting to the offline phase.
Experimental Results
The framework was evaluated using standard CNN models (VGG16, ResNet50, Inception v3, and MobileNet) on both local Xilinx Alveo U200 FPGAs and Alibaba Cloud f3 instances (Xilinx VU9P).
Performance Isolation
In public cloud testing, the FPGA virtualization design maintained near-perfect isolation, with performance deviation remaining under 1% for multiple concurrent users. By comparison, a virtualized Nvidia Tesla V100 GPU exhibited performance deviations between 5.5% and 13.1% under similar multi-tenant conditions, demonstrating the FPGA's superior ability to prevent resource contention.
Reconfiguration Speed and Throughput
The two-stage compiler reduced the context switching cost—including recompilation and transfer time—to between 0.45 and 1.70 milliseconds. This represents a total elimination of the traditional 100-second overhead. Furthermore, the multi-core design proved more efficient than monolithic cores; in dynamic private cloud scenarios, the system achieved 1.07x to 1.69x higher throughput than a static single-core baseline.
Discussion and Limitations
While the framework significantly advances FPGA virtualization, some limitations remain. The current implementation is restricted to a single FPGA node; scaling this to multi-node, multi-FPGA systems is a necessary next step for massive data centers. Additionally, the management logic (the two-level IDM and routing) introduces overhead, consuming nearly 50% of the FPGA’s Look-Up Tables (LUTs) and Flip-Flops (FFs). Finally, for models that are compute-light but parameter-heavy (such as MobileNet), the small-core approach can lead to memory bandwidth saturation, suggesting that future iterations must further optimize the balance between compute and memory access.
Conclusion
By combining multi-core hardware partitioning with a two-stage static-dynamic compiler, this framework enables FPGAs to meet the flexibility and security requirements of modern cloud environments. The ability to switch configurations in approximately one millisecond while maintaining strict performance isolation makes FPGAs a viable, high-performance alternative to GPUs for multi-tenant deep learning workloads.
Summary updated