Abstract
PENDRAM is a novel design methodology that optimizes how Deep Neural Network (DNN) data is mapped to off-chip memory (DRAM). By intelligently exploiting the internal hierarchies of modern DRAM architectures—such as subarrays and tiered-latency segments—it reduces the energy-delay product (EDP) of memory accesses by up to 96%.
Introduction: The Memory Wall in AI Acceleration
While specialized hardware accelerators like TPUs have significantly accelerated AI inference, they are increasingly limited by the "Memory Wall." The cost of moving data between off-chip DRAM and the on-chip compute engine is orders of magnitude higher than the computation itself, both in terms of latency and energy consumption.
Most research attempts to mitigate this by reducing the volume of data moved through tiling and reuse. However, these approaches often treat DRAM as a monolithic "black box." Modern DRAM is actually a complex hierarchy of channels, ranks, banks, and subarrays. Advanced architectures like Subarray-Level Parallelism (SALP) and Tiered-Latency DRAM (TL-DRAM) offer unique performance characteristics that remain largely untapped without specialized data mapping strategies.
Methodology
PENDRAM introduces a three-part methodology to bridge the gap between CNN scheduling and DRAM architecture:
- Generalized DRAM Data Mapping Policy: A 4-step algorithm that prioritizes data placement to maximize row buffer hits, followed by bank-level parallelism, and finally subarray-level parallelism. For tiered-latency DRAM, it specifically prioritizes "near segments" (rows physically closer to sense amplifiers) to minimize latency.
- Design Space Exploration (DSE) Algorithm: This algorithm searches for the optimal combination of data partitioning (tile sizes), scheduling schemes, and mapping policies to minimize the global Energy-Delay Product (EDP) for specific CNN layers.
- Analytical EDP Model: A mathematical model used to estimate energy and latency based on access patterns, allowing for rapid evaluation without the overhead of full-system cycle-accurate simulations.
The methodology was validated using the Ramulator cycle-accurate DRAM simulator and the VAMPIRE energy simulator.
Key Insights: Exploiting DRAM Hierarchy
The core of PENDRAM's effectiveness lies in its architecture-awareness. DRAM is not a flat address space; its internal organization dictates access costs.
- Row Buffer Dynamics: Mapping data to different columns within the same row (a "row buffer hit") is significantly cheaper than opening a new row.
- The "Near" Advantage: In TL-DRAM, accessing the "near" segment is faster and more energy-efficient. PENDRAM is the first policy to explicitly prioritize these segments for high-reuse data.
- Parallelism Trade-offs: The study found that bank-level parallelism generally offers better energy/latency trade-offs than subarray-level parallelism.
Without an optimized mapping policy, advanced DRAM features can actually increase energy consumption due to row buffer conflicts. PENDRAM ensures that hardware capabilities translate into actual system gains.
Results and Evaluation
The methodology was evaluated using several prominent CNN architectures on the ImageNet dataset, including AlexNet, VGG-16, MobileNet, SqueezeNet, and a Sparse MobileNet variant.
Key findings include:
- Efficiency Gains: PENDRAM improved the EDP of DRAM accesses by up to 96% compared to standard mapping policies.
- Universal Applicability: Performance gains were consistent across all tested DRAM types (DDR3, SALP, TL-DRAM) and CNN models.
- Scheduling Synergy: Combining "adaptive-reuse" scheduling with PENDRAM mapping yielded the lowest total EDP for every network tested.
Conclusion and Future Work
PENDRAM demonstrates that significant efficiency gains are possible by making memory controllers aware of both the workload structure and the underlying DRAM hierarchy. While highly effective, future work is needed to address the hardware complexity of implementing these non-linear mapping schemes in real-time controllers. Additionally, extending this methodology to dynamic, multi-tenant environments and other data-intensive architectures like Transformers remains a promising avenue for research.
Summary updated