[Paper Review] ZigZag: A Memory-Centric Rapid DNN Accelerator Design Space Exploration Framework
ZigZag is a memory-centric, rapid DNN accelerator design space exploration (DSE) framework that enables full exploration of both even and uneven temporal mappings across flexible memory hierarchies. By using a memory-centric nested-loop representation and a latency-enhanced analytical cost model, it identifies up to 33% more energy-efficient designs than prior frameworks, particularly in non-shared memory hierarchies where spatial unrolling significantly impacts efficiency.
Building efficient embedded deep learning systems requires a tight co-design between DNN algorithms, memory hierarchy, and dataflow. However, owing to the large degrees of freedom in the design space, finding an optimal solution through the implementation of individual design points becomes infeasible. Recently, several estimation frameworks for fast design space exploration (DSE) have emerged, yet they either suffer from long runtimes or a limited exploration space. This work introduces ZigZag, a memory-centric rapid DNN accelerator DSE framework which extends the DSE with uneven mapping opportunities, in which operands at shared memory levels are no longer bound to use the same memory levels for each loop index. For this, ZigZag uses a memory-centric nested-for-loop format as a uniform representation to integrate algorithm, accelerator, and algorithm-to-accelerator mapping, and consists of three key components: 1) a latency-enhanced analytical Hardware Cost Estimator, 2) a Temporal Mapping Generator that supports even/uneven scheduling on any type of memory hierarchy, and 3) an Architecture Generator that explores the whole memory hierarchy design space. Benchmarking experiments against existing frameworks, together with three case studies at different design abstraction levels show the strength of ZigZag. Up to 33% more energy-efficient solutions are found by introducing ZigZag's uneven scheduling opportunities.
Motivation & Objective
- To address the challenge of exploring the vast DNN accelerator design space efficiently, especially under power and area constraints in embedded systems.
- To overcome the limitations of existing DSE frameworks that restrict exploration to even mappings or shared memory hierarchies.
- To enable the discovery of Pareto-optimal accelerator designs by jointly optimizing algorithm-to-hardware mapping, memory hierarchy, and dataflow scheduling.
- To provide a fast, analytical, and accurate cost estimation method that supports both even and uneven scheduling across diverse memory configurations.
- To demonstrate that spatial unrolling and memory hierarchy design significantly affect energy efficiency, especially when memory levels are not shared across operands.
Proposed method
- ZigZag uses a memory-centric nested-for-loop representation to unify algorithm, accelerator, and mapping design spaces.
- It employs a Hardware Cost Estimator based on the Loop Relevance Principle to analytically compute energy and throughput with low overhead.
- The Temporal Mapping Generator supports both even and uneven loop blocking schemes, enabling flexible scheduling across any memory hierarchy.
- The Architecture Generator explores the full space of valid memory hierarchies, including balanced/unbalanced and shared/separate configurations.
- The framework integrates these components into a unified DSE pipeline that enables rapid, analytical exploration of high-dimensional design spaces.
- It supports both fixed and fully flexible hardware templates, allowing exploration from high-level constraints to detailed memory configurations.
Experimental results
Research questions
- RQ1Can a DSE framework achieve rapid and accurate exploration of DNN accelerator design space while supporting both even and uneven temporal mappings?
- RQ2How does the absence of memory level sharing across operands affect the impact of spatial unrolling on energy efficiency?
- RQ3To what extent can uneven scheduling expand the design space and lead to more energy-efficient solutions compared to even scheduling?
- RQ4Is a Network-on-Chip with configurable memory bypassing and operand reassignment worth the area and power overhead for enabling workload-specific memory hierarchies?
- RQ5Does the assumption that spatial unrolling has minimal impact on energy when the PE array is fully mapped hold true across all memory hierarchy designs?
Key findings
- ZigZag discovers up to 33% more energy-efficient designs than existing frameworks by enabling uneven scheduling, particularly in non-shared memory hierarchies.
- The impact of spatial unrolling on energy efficiency can be up to 5× when memory levels are not shared among operands, contradicting prior assumptions.
- In shared memory hierarchies, temporal mapping can compensate for unbalanced data reuse from spatial unrolling, reducing its energy impact.
- For non-shared memory hierarchies, the choice of spatial unrolling significantly affects energy efficiency due to reduced scheduling flexibility.
- Workloads such as MobileNetV2 benefit from custom memory hierarchies, and a Network-on-Chip with configurable memory bypassing can reduce inference cost by up to 30%.
- The framework’s analytical cost model achieves high accuracy with minimal runtime overhead, enabling rapid exploration of hundreds of design points per layer.
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.