[Paper Review] Marvel: A Data-centric Compiler for DNN Operators on Spatial Accelerators
Marvel is a data-centric compiler that uses the Maestro Data-Centric (MDC) notation to formally characterize DNN operators and enable efficient, scalable search for optimal mappings on spatial accelerators. By decomposing the mapping space into off-chip and on-chip subspaces and leveraging MDC’s analyzable cost model, Marvel reduces the search space by up to $O(10^{10})$ and achieves a 10.25× geometric mean throughput improvement and 2.01× lower energy consumption compared to prior state-of-the-art mappers.
The efficiency of a spatial DNN accelerator depends heavily on the compiler and its cost model ability to generate optimized mappings for various operators of DNN models on to the accelerator's compute and memory resources. But, existing cost models lack a formal boundary over the operators for precise and tractable analysis, which poses adaptability challenges for new DNN operators. To address this challenge, we leverage the recently introduced Maestro Data-Centric (MDC) notation. We develop a formal understanding of DNN operators whose mappings can be described in the MDC notation, because any mapping adhering to the notation is always analyzable by the MDC's cost model. Furthermore, we introduce a transformation for translating mappings into the MDC notation for exploring the mapping space. Searching for the optimal mappings is challenging because of the large space of mappings, and this challenge gets exacerbated with new operators and diverse accelerator configurations.To address this challenge, we propose a decoupled off-chip/on-chip approach that decomposes the mapping space into off-chip and on-chip subspaces, and first optimizes the off-chip subspace followed by the on-chip subspace. The motivation for this decomposition is to reduce the size of the search space dramatically and also to prioritize the optimization of off-chip data movement, which is 2-3 orders of magnitude more compared to the on-chip data movement. We implemented our approach in a tool called {\em Marvel}, and another major benefit of our approach is that it is applicable to any DNN operator conformable with the MDC notation.
Motivation & Objective
- To address the lack of formal boundaries in existing cost models for DNN operator mappings, which limits adaptability to new operators and accelerator configurations.
- To develop a formal characterization of DNN operators whose mappings can be expressed in the Maestro Data-Centric (MDC) notation, enabling precise and tractable analysis.
- To introduce a transformation that maps loop-nest-based operator mappings into the MDC notation for broader exploration of the mapping space.
- To propose a decoupled off-chip/on-chip optimization strategy that drastically reduces the search space while prioritizing costly off-chip data movement.
- To implement a compiler tool, Marvel, that is universally applicable to any DNN operator conformable with the MDC notation, ensuring high performance and energy efficiency.
Proposed method
- The paper introduces a formal set of rules to identify DNN operators that are conformable with the MDC notation, ensuring their mappings are analyzable via MDC’s cost model.
- A novel transformation is proposed to convert loop-nest representations of operator mappings into the MDC notation, enabling systematic exploration of complex data layouts and scheduling strategies.
- The mapping space is decomposed into off-chip and on-chip subspaces, with off-chip optimization performed first to reduce data movement costs, which are 2–3 orders of magnitude more expensive than on-chip movement.
- The off-chip subspace is optimized using a cost model based on MDC notation, which enables precise estimation of data movement and reuse patterns.
- The on-chip subspace is then optimized with a focus on maximizing PE array utilization and minimizing idle cycles, guided by the same MDC cost model.
- The entire pipeline is implemented in a tool called Marvel, which integrates the MDC-based cost model, transformation engine, and decoupled search strategy for end-to-end optimization.
Experimental results
Research questions
- RQ1Which DNN operators can be formally characterized and analyzed using the Maestro Data-Centric (MDC) notation, and what are the defining structural properties of such operators?
- RQ2How can loop-nest-based operator mappings be systematically transformed into the MDC notation to enable formal analysis and optimization?
- RQ3To what extent can decoupling off-chip and on-chip optimization reduce the effective search space for DNN operator mappings on spatial accelerators?
- RQ4Can the proposed MDC-based, decoupled optimization strategy outperform existing state-of-the-art mappers in terms of throughput and energy efficiency across diverse DNN workloads?
- RQ5How generalizable is the approach to non-convolutional operators such as GEMM, LSTM, and MLP, and what performance gains are achievable?
Key findings
- Marvel reduced the search space for four major CNN models (AlexNet, VGG16, ResNet50, MobileNetV2) by a factor of approximately $10^{10}$, from $9.4 \times 10^{18}$ to $2.1 \times 10^8$.
- Marvel achieved a geometric mean throughput improvement of 10.25× and a 2.01× reduction in energy consumption compared to three state-of-the-art mapping styles from prior work.
- For GEMM, LSTM, and MLP workloads, Marvel-generated mappings were 4.46× faster than those from the dMazeRunner-like optimizer and 1.22× faster than those from the Interstellar-like optimizer.
- The decoupled off-chip/on-chip strategy enabled significant search space reduction by prioritizing off-chip data movement optimization, which dominates energy and latency costs.
- The MDC notation enabled precise cost modeling, allowing the compiler to reason about data reuse and movement without relying on heuristic or sampling-based search strategies.
- Marvel demonstrated consistent performance gains across diverse workloads, including non-convolutional operators, validating its general applicability to any DNN operator conformable with the MDC notation.
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.