TL;DR
This paper introduces Eva-CiM, a comprehensive framework for evaluating the performance and energy efficiency of Computing-in-Memory (CiM) architectures. It addresses the challenge of predicting the true benefits of CiM by providing a system-level analysis that considers the host CPU, memory hierarchy, and various device technologies, enabling more realistic design space exploration.
What Problem Does This Paper Address?
The "memory wall" – the growing gap between processor speed and memory access speed – is a major bottleneck in modern computing. Computing-in-Memory (CiM) architectures aim to alleviate this by performing computations directly within memory, reducing costly data transfers. However, designing effective CiM systems is complex. Designers face critical questions: how much can an application truly benefit from CiM? Where in the memory hierarchy should CiM be implemented? Which technology is best suited? Existing evaluation methods often focus on isolated CiM modules, lack system-level integration, or rely on manual analysis, making it difficult to get a holistic understanding of CiM's impact. This paper aims to bridge this gap by providing a unified, automated framework for system-level CiM evaluation.
Methods
Eva-CiM is a multi-level, trace-driven evaluation framework that integrates existing tools like GEM5, McPAT, and DESTINY. Its core novelty lies in:
- Instruction Dependency Graph (IDG) Analyzer: This novel approach automatically identifies potential "offloading candidates" – instruction sequences suitable for CiM execution – by analyzing program dependencies and memory access patterns. It moves beyond simple Load-Load-OP-Store patterns to capture more complex variants.
- Multi-level Modeling: Eva-CiM models CiM at different levels, from device (using SPICE and DESTINY for energy/latency of memory cells and sense amplifiers) to architecture (using modified McPAT for system-level profiling).
- System-Level Integration: It leverages GEM5 as a backbone to simulate the entire system, including the host CPU and memory hierarchy, capturing interactions between the CPU and CiM.
- Trace Reshaping: The framework reshapes instruction traces to accurately reflect the execution flow with CiM operations, enabling realistic profiling.
Datasets
The paper uses a set of benchmarks from various categories, including machine learning, string processing, multimedia applications, and graph processing. These benchmarks are representative of workloads that are often data-intensive. Specific benchmarks mentioned include Naive Bayes (NB), Decision Tree (DT), Support Vector Machine (SVM), Longest Common Subsequence (LCS), MPEG-2 decode (M2D), Breadth First Search (BFS), and others from the SPEC 2006 suite. The paper does not introduce new benchmarks but uses existing ones to evaluate its framework.
Key Insights and Ideas
- Data-intensive doesn't always mean CiM-sensitive: The paper reveals that benchmarks with high memory access rates are not automatically good candidates for CiM. The actual benefit depends on the specific data access patterns and how well they align with CiM capabilities.
- Larger memory isn't always better for CiM: While larger caches might offer more opportunities for CiM, they can also increase the energy cost per CiM operation, potentially negating the benefits.
- System-level analysis is crucial: The interaction between the host CPU, memory hierarchy, and the CiM module significantly impacts overall performance and energy. Isolated CiM module evaluations can be misleading.
- MACR as an indicator: The "memory access conversion ratio" (MACR) – the proportion of memory accesses with suitable locality for CiM – is identified as a useful metric for predicting if a program will benefit from CiM.
Key Results
- Validation: Eva-CiM's energy estimates show a ~24% deviation from DESTINY, which is considered reasonable due to Eva-CiM's inclusion of multi-level cache hierarchy impacts. CiM-supported memory access selection in Eva-CiM was around 65% for LCS, compared to 58% reported by [23].
- Performance: Speedups for CiM-enabled systems range from 1.0x to 1.5x across benchmarks, with some benchmarks showing performance degradation.
- Energy Improvement: Energy improvements (ratio of baseline to CiM system energy) range from 1.3x to 6.0x. The energy benefits are contributed by both the CiM module and the host CPU, with host CPU contributions often being more significant due to reduced memory accesses.
- Technology Impact: FeFET-based CiM shows 50-70% higher energy benefits and better performance than CMOS SRAM due to lower latency.
- Cache Configuration: Larger cache sizes generally lead to higher benefits, but the energy per operation can increase. Supporting CiM in L1 cache provides more benefits than L2 only, due to more frequent L1 accesses.
Limitations and Future Work
- Limitations:
- The paper acknowledges that the current implementation of Eva-CiM uses a simplified approach to mimic CiM behavior with a regular compiler, which might not fully capture all nuances of specialized CiM compilers.
- The analysis of data locality and dependency management for reshaping traces is noted as an area that could be further refined.
- The current framework supports SRAM and FeFET technologies, but extending it to other emerging non-volatile memories (like ReRAM) would be beneficial.
- Future Work:
- The authors suggest that Eva-CiM can be extended to support more technologies and design configurations.
- The framework's ability to explore design space and provide insights into trade-offs for different technologies and architectures is highlighted as a key direction for future research.
- Further investigation into the impact of compiler optimizations and specialized CiM instruction sets on system performance and energy is implied.
Summary updated