Abstract
Efficiently mapping Deep Neural Network (DNN) operators onto spatial accelerators is a critical challenge due to the astronomical search space of possible tiling and scheduling configurations. We present MARVEL, a data-centric compiler that addresses this "mapping explosion" by decoupling off-chip and on-chip data movement optimizations. MARVEL leverages a formal Maestro Data-Centric (MDC) notation to identify conformable operators and employs a decoupled search strategy that prioritizes expensive off-chip DRAM traffic. Our evaluation demonstrates that MARVEL reduces the mapping search space by a factor of $10^{10}$ while delivering a 10.25x geometric mean improvement in throughput and a 2x reduction in energy consumption compared to state-of-the-art fixed mapping styles.
Introduction
Modern spatial accelerators, such as the TPU or Eyeriss, leverage large arrays of processing elements (PEs) to accelerate DNN workloads. However, the performance of these accelerators is highly dependent on the "mapping"—the specific strategy for tiling, scheduling, and moving data across the memory hierarchy and PE array. For complex models like ResNet-50, the number of valid mappings can exceed $10^{19}$, making exhaustive search impossible. Furthermore, existing compilers often lack formal guarantees on which operators can be effectively optimized, leading to unpredictable performance for custom DNN layers.
The MARVEL Framework
MARVEL introduces a decoupled, model-driven approach to mapping. It is built upon the Maestro Data-Centric (MDC) notation, which explicitly describes data distribution across space and time rather than just operation order.
The framework employs a two-stage decoupled search strategy:
- Off-chip Optimization: MARVEL first identifies the best tile sizes to minimize high-cost DRAM traffic using a classical "Distinct Block" (DB) locality model.
- On-chip Optimization: It then explores the remaining mapping space for L2-to-PE movement, optimizing for throughput and energy using the MDC cost model.
MARVEL also includes an automated transformation engine that converts standard imperative loop-nests into MDC directives. By establishing formal rules for "conformable" operators (e.g., perfectly nested loops, linear subscripts), MARVEL ensures that developers can mathematically prove their operator is optimizable.
Evaluation and Results
MARVEL was evaluated using diverse models (AlexNet, VGG16, ResNet50, MobileNetV2) and operators (2D Conv, Depth-wise Conv, GEMM, LSTM, MLP) on simulated Eyeriss-like and Edge-scale accelerators.
The "off-chip first" heuristic allowed MARVEL to prune the search space by $10^{10}$, reducing search times from days to minutes. Compared to fixed mapping styles like Row-Stationary or Weight-Stationary, MARVEL achieved a 10.25x geometric mean improvement in throughput and a 2.01x average reduction in energy. It also outperformed existing optimizers like Interstellar and dMazeRunner in both mapping quality and search efficiency.
Conclusion
MARVEL demonstrates that decoupling data movement optimization and formalizing operator analyzability can overcome the mapping explosion in spatial accelerators. By shifting focus from compute-centric loop orders to data-centric distributions, MARVEL provides a robust foundation for future compiler-hardware co-design and automated neural architecture search.
Summary updated