Abstract
Fast-OverlaPIM is a high-performance mapping framework designed to accelerate Deep Neural Networks (DNNs) on Processing In-Memory (PIM) architectures. By utilizing analytical algorithms to exploit computational overlap—where a succeeding layer starts before the previous one finishes—it produces hardware mappings up to 18.1× faster than current state-of-the-art tools while running the optimization process itself up to 323× faster.
Introduction
Processing In-Memory (PIM) is a hardware paradigm that places logic directly inside memory banks, drastically reducing the energy and time spent moving data. Because PIM hardware has massive spatial resources (thousands of memory banks), it can host multiple neural network layers simultaneously.
However, traditional mapping tools usually treat DNN execution as a sequence of isolated steps: finishing Layer 1 before starting Layer 2. In reality, Layer 2 only needs a small portion of Layer 1's output to begin its own work. If we can "overlap" these executions, we can hide a massive amount of latency. The challenge is that the design space—the number of ways to arrange this data—is astronomically large. Previous attempts to optimize for overlap were either too slow to be practical or used simplistic heuristics that missed optimal configurations.
Methodology
Fast-OverlaPIM replaces slow, exhaustive simulations with fast mathematical models. Its core components include fine-grained data space generation using analytical formulas and a new algorithm for analytical overlap analysis. This reduces the complexity of determining "ready times" for inputs from a massive search to a quick calculation.
The framework also employs a mapping transformation mechanism that "shuffles" standard mappings into overlap-friendly versions. As shown in the mapping strategies below, different parallelization schemes can significantly impact how data is processed across the hardware's wordline drivers and sense amplifiers, directly affecting the potential for inter-layer overlap.
Furthermore, Fast-OverlaPIM introduces novel search strategies. Rather than just optimizing from the first layer to the last ("Forward"), the tool can start from the last layer ("Backward") or the most data-heavy layer ("Middle"). This prevents the optimizer from getting stuck in local optima that might benefit one layer but degrade overall network performance.
Experimental Evaluation
The framework was evaluated using industry-standard DNN workloads, including ResNet-18, ResNet-50, VGG-16, and BERT transformer components. Testing spanned both DRAM-based (HBM2) and ReRAM-based PIM architectures.
Key results include:
- Framework Efficiency: Analytical algorithms improved the framework's own runtime by 3.4× to 323.1× compared to previous overlap-based frameworks.
- Mapping Performance: Fast-OverlaPIM produced mappings 4.6× to 18.1× faster than those from industry-standard tools like Timeloop.
- Workload Gains: On ResNet-50, the "Best Transform" strategy achieved an 18.1× speedup. BERT case studies showed up to a 12× speedup for specific matrix-multiplication operations.
Key Insights
A critical finding is the "Local vs. Global" trap: the mapping that makes a single layer run fastest in isolation is often not the best for the whole network. A slightly slower Layer 1 might produce outputs in an order that allows Layer 2 to start much earlier. Additionally, starting optimization at the "Middle" (the layer with the largest output or overall size) helps prioritize the biggest bottlenecks first, leading to better global results than a simple start-to-finish approach.
Conclusion
Fast-OverlaPIM demonstrates that significant performance gains are available by exploiting inter-layer overlap in PIM architectures. While a truly global optimization remains computationally prohibitive, the framework's analytical approach provides a highly effective and efficient heuristic for modern DNN acceleration. Future work will explore more complex, non-convolutional operators found in emerging AI models.
Summary updated