TL;DR
DRMap is a novel data mapping policy designed to slash the energy and latency costs of moving data between off-chip DRAM and CNN accelerators. By intelligently prioritizing how data tiles are assigned to DRAM columns, banks, and subarrays, DRMap achieves up to a 96% improvement in Energy-Delay Product (EDP) compared to standard mapping techniques.
The Challenge of Off-Chip Data Access
While Convolutional Neural Network (CNN) accelerators are incredibly fast at computation, they are often "starved" by the slow and power-hungry process of fetching data from off-chip memory (DRAM). In many embedded systems, DRAM access accounts for a massive portion of the total energy consumption.
Modern DRAM is not a flat block of memory; it is organized into a hierarchy of channels, ranks, banks, and rows. The efficiency of data access depends heavily on the state of the memory. Accessing a "row" that is already open (a row buffer hit) is fast and cheap. Conversely, opening a new row (a row buffer miss or conflict) is significantly slower and more energy-intensive.
Furthermore, newer architectures like SALP (Subarray-Level Parallelism) allow multiple parts of a single bank to be accessed in parallel. However, standard software mapping policies often fail to exploit these hardware nuances, leading to unnecessary row conflicts and wasted energy.
Methods: DRMap and Design Space Exploration
The authors propose a two-part solution: the DRMap policy and a Design Space Exploration (DSE) framework.
The DRMap Mapping Policy
DRMap is a specific strategy for laying out CNN data (weights, inputs, and outputs) in DRAM. It follows a strict priority list to maximize hardware efficiency by exploiting the physical organization of the DRAM bank:
- Priority 1: Map data to different columns in the same row to maximize row buffer hits.
- Priority 2: Map remaining data to different banks to exploit bank-level parallelism.
- Priority 3: Map data to different subarrays within a bank to exploit subarray-level parallelism (SALP).
- Priority 4: Only move to a different row or rank when absolutely necessary, as these are the most expensive operations.
DSE Framework
Since CNNs have varying layer sizes and reuse patterns (e.g., weight-heavy vs. feature-map-heavy), the authors developed an analytical model to estimate the Energy-Delay Product (EDP). This framework evaluates various combinations of tile sizes, scheduling schemes, and DRAM architectures, allowing the researchers to demonstrate that DRMap is consistently the optimal choice across different hardware configurations.
Evaluation and Key Results
The researchers evaluated DRMap using the AlexNet architecture and the ImageNet dataset. Simulations were conducted using Ramulator (a cycle-accurate DRAM simulator) and VAMPIRE (a power simulator).
DRMap (referred to as Mapping-3 in the study) was compared against five common mapping policies. The results demonstrated significant gains:
- EDP Reduction: DRMap improved the Energy-Delay Product by up to 96% for DDR3, 94% for SALP-1, and 80% for SALP-MASA compared to the least efficient policies.
- Consistency: Across all layers of AlexNet and various scheduling schemes (weight-reuse, input-reuse, etc.), DRMap consistently provided the lowest EDP, proving its robustness as a "one-size-fits-all" policy for CNNs.
Key Insights
- The "Row" is King: Avoiding row conflicts is the single most important factor in DRAM efficiency. DRMap is specifically engineered to minimize these costly operations.
- Architecture vs. Policy: Advanced hardware (like SALP) is not a silver bullet. Without an intelligent mapping policy, sophisticated architectures can actually perform worse by triggering more row conflicts.
- Generic Applicability: DRMap is effective across a wide range of memory technologies, from standard DDR3 to cutting-edge SALP-MASA memory.
Limitations and Future Work
While the study utilized a TPU-like accelerator with an 8x8 MAC array, the specific tile-size optimizations may need adjustment for massive data-center-scale accelerators. Additionally, while AlexNet is a standard benchmark, future work could explore more modern architectures like Transformers or pruned networks.
The authors suggest that this research paves the way for deeper hardware-software co-design, where CNN compilers become "DRAM-aware," optimizing network structures to fit the physical constraints of memory chips from the outset.
Summary updated