Introduction
Deep learning optimization techniques, such as pruning, quantization, and neural architecture search, typically produce "static" models optimized for a single point on the accuracy-vs-latency curve. However, real-world inference environments are inherently dynamic. For instance, an autonomous vehicle may require ultra-low latency in high-traffic urban areas but can prioritize high-accuracy processing on open highways. Similarly, mobile devices must often trade accuracy for energy efficiency as battery levels fluctuate.
While "SuperNets"—large networks containing thousands of weight-shared "SubNets"—offer a solution for dynamic switching, current hardware accelerators struggle with the resulting memory overhead. Switching between SubNets frequently triggers expensive reloads of weights from off-chip memory, even when those weights are shared across models. This paper introduces SUSHI (SubGraph Stationary Hardware-Software Inference Co-design), a vertically integrated framework designed to eliminate these bottlenecks through a novel hardware-software co-design.
The SuperNet Paradigm and SubGraph Stationarity
To address dynamic Service Level Objectives (SLOs), SUSHI utilizes weight-shared SuperNets. As shown in Figure 1, a SuperNet acts as a container for various SubNets, which in turn are composed of shared SubGraphs. By selecting different SubNets, a system can navigate the Pareto frontier of accuracy and latency in real-time.
The core insight of SUSHI is SubGraph Stationarity (SGS). Unlike traditional accelerators that focus on data reuse within a single model execution, SUSHI identifies and caches shared SubGraphs across a stream of different queries. This approach exploits the temporal locality often found in query streams, where consecutive requests may share significant architectural components.
The SUSHI Framework
The SUSHI system consists of three primary components that bridge the gap between high-level software requirements and low-level hardware execution:
- SushiSched (Software Scheduler): This component monitors incoming queries and their specific SLOs (e.g., "Latency < 10ms, Accuracy > 70%"). It selects the optimal SubNet for each query and predicts which SubGraph should be cached to maximize future performance based on recent query patterns.
- SushiAbs (Hardware Abstraction): To decouple the scheduler from hardware specifics, SushiAbs provides a lookup table. This allows the scheduler to predict the latency of any given SubNet based on the current state of the hardware cache without needing to model low-level gate logic.
- SushiAccel (Hardware Accelerator): An FPGA-based accelerator featuring a Persistent Buffer (PB). The PB is specifically designed for SGS optimization, keeping shared SubGraph weights on-chip to minimize energy-intensive DRAM accesses.
Experimental Evaluation
The researchers evaluated SUSHI using ResNet50 and MobileNetV3 architectures derived from the Once-for-All (OFA) framework. By keeping shared weights in the Persistent Buffer, SUSHI effectively shifts memory-bound layers into compute-bound ones, significantly increasing hardware utilization.
Key Results:
- Latency Reduction: SUSHI achieved up to a 25% reduction in average latency for dynamic query streams compared to standard execution methods.
- Energy Efficiency: By drastically reducing off-chip weight fetching, the system realized up to a 78.7% reduction in off-chip energy consumption.
- Accuracy Gains: Because SUSHI processes queries more efficiently, it can often serve higher-accuracy SubNets within the same latency budget, resulting in a 0.98% increase in served accuracy.
- Industry Comparison: Compared to the state-of-the-art Xilinx DPU, SushiAccel demonstrated a 25.1% geometric mean speedup.
Conclusion and Future Work
SUSHI demonstrates that hardware-software co-design is essential for efficient dynamic inference. By moving beyond intra-model reuse to cross-query SubGraph stationarity, SUSHI significantly improves the throughput and energy profile of edge AI systems. Future research will explore extending these principles to Transformer-based architectures and optimizing the overhead associated with updating the Persistent Buffer in high-frequency switching scenarios.
Summary updated