[Paper Review] SMAUG: End-to-End Full-Stack Simulation Infrastructure for Deep Learning Workloads
SMAUG is a novel deep learning framework designed for end-to-end, cycle-accurate simulation of DNN workloads within a full-system SoC simulator (gem5-Aladdin), enabling early-stage hardware-software co-design without requiring RTL. It achieves up to 5× speedup in end-to-end inference latency by optimizing data movement, software stack overhead, and SoC-accelerator interfaces—without modifying accelerator microarchitecture.
In recent years, there has been tremendous advances in hardware acceleration of deep neural networks. However, most of the research has focused on optimizing accelerator microarchitecture for higher performance and energy efficiency on a per-layer basis. We find that for overall single-batch inference latency, the accelerator may only make up 25-40%, with the rest spent on data movement and in the deep learning software framework. Thus far, it has been very difficult to study end-to-end DNN performance during early stage design (before RTL is available) because there are no existing DNN frameworks that support end-to-end simulation with easy custom hardware accelerator integration. To address this gap in research infrastructure, we present SMAUG, the first DNN framework that is purpose-built for simulation of end-to-end deep learning applications. SMAUG offers researchers a wide range of capabilities for evaluating DNN workloads, from diverse network topologies to easy accelerator modeling and SoC integration. To demonstrate the power and value of SMAUG, we present case studies that show how we can optimize overall performance and energy efficiency for up to 1.8-5x speedup over a baseline system, without changing any part of the accelerator microarchitecture, as well as show how SMAUG can tune an SoC for a camera-powered deep learning pipeline.
Motivation & Objective
- To address the lack of simulation infrastructure that supports holistic, early-stage evaluation of full-stack DNN performance before RTL is available.
- To identify and quantify the significant performance bottlenecks in end-to-end DNN inference beyond accelerator compute, particularly in data movement and software stack overhead.
- To provide researchers with a flexible, fast, and extensible framework for co-designing accelerators, SoCs, and software stacks for DNN inference.
- To enable optimization of system-level factors such as data layout transformations, multi-accelerator scheduling, and SoC interface efficiency.
Proposed method
- SMAUG is built on gem5-Aladdin, leveraging its cycle-accurate, full-system simulation capabilities for heterogeneous SoCs without requiring RTL for accelerator modeling.
- It provides a Python API for defining DNN architectures and supports a wide range of operators and network topologies.
- The framework includes a complete software stack that manages operator tiling, multi-threaded scheduling, synchronization, and data movement between CPU, accelerators, and memory.
- SMAUG enables plug-and-play integration of custom hardware accelerators via behavioral models, allowing rapid exploration of accelerator microarchitectures.
- It supports simulation of complex SoC topologies, including multiple accelerators, memory hierarchies, and system-level contention.
- The framework enables accurate performance and energy modeling of both accelerator and system-level activities, including data movement and CPU processing overheads.
Experimental results
Research questions
- RQ1What proportion of end-to-end DNN inference latency is attributable to accelerator compute versus data movement and software stack overheads in real-world workloads?
- RQ2How can system-level factors such as data layout transformations, SoC interface design, and multi-accelerator scheduling impact overall DNN inference performance?
- RQ3To what extent can end-to-end performance be improved through software and system-level optimizations without changing the underlying accelerator microarchitecture?
- RQ4Can a simulation framework that supports full-stack, cycle-accurate simulation enable faster and more effective hardware-software co-design for DNN accelerators?
Key findings
- On average, only 25% of end-to-end inference latency is spent on accelerator compute, while 34% is due to data movement and 42% to CPU processing in the software stack.
- By optimizing SoC-accelerator interfaces and software stack management, SMAUG enables up to 5× speedup in end-to-end inference latency without altering the accelerator microarchitecture.
- For a camera-powered deep learning pipeline, SMAUG enables system-level tuning that achieves significant performance improvements through optimized dataflow and accelerator utilization.
- The framework achieves fast simulation speeds by avoiding RTL or HLS requirements, enabling rapid design space exploration of accelerators and SoCs.
- Case studies show that 1.8–5× speedup is possible through system-level optimizations such as improved data layout, scheduling, and interface efficiency.
- SMAUG demonstrates that software and system-level bottlenecks are major performance constraints, and that holistic, full-stack simulation is essential for identifying and resolving them.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.