Abstract
This technical report details the architectural mapping of Convolutional Neural Network (CNN) layers onto Manticore, a high-performance 4096-core processor. The research focuses on optimizing the Compute-to-Communication Ratio (CCR) to overcome the "memory wall" inherent in many-core systems. By implementing strategies such as data stacking and inter-cluster data reuse, the authors demonstrate how to transform memory-bound CNN workloads into compute-bound operations, effectively saturating the hardware's floating-point units.
Introduction: The Memory Wall Challenge
Modern many-core architectures like Manticore offer immense theoretical peak performance, often measured in Tflop/s. However, these systems are frequently throttled by the "memory wall"—the disparity between the speed of data processing and the speed of data movement from main memory. For CNNs, the challenge lies in mapping 3D data volumes (width, height, depth) onto a hierarchical hardware structure (clusters, quadrants, chiplets) such that each piece of data loaded from expensive off-chip memory is reused as many times as possible.
Algorithmic Mapping Strategies
The researchers propose a progression of five algorithms designed to maximize efficiency by increasing data reuse:
- Output Slice Parallelization: A baseline approach where each cluster handles one output depth slice. While simple, it is heavily memory-bound due to redundant input data reloads.
- Stacking (Tiling): Clusters process "stacks" of output slices simultaneously. This increases the reuse of each input depth slice, significantly boosting the CCR.
- Inter-Cluster Reuse: Within an L2 quadrant, clusters share input data via the on-chip network rather than fetching it from main memory. This reduces off-chip traffic by nearly 16x.
- Batching for Fully-Connected (FC) Layers: To address the low inherent reuse in FC layers, batching ensures filter parameters are used multiple times.
- Stacked FC Layers: This applies the stacking concept to FC layers to handle large output volumes that exceed the 128 KiB local scratchpad memory.
Optimizing the Compute-to-Communication Ratio (CCR)
The "North Star" for efficiency in this architecture is the CCR, defined as MAC operations per word accessed. If the CCR is too low, the system waits for data; if high enough, the floating-point units (FPUs) become the bottleneck.
As shown in the bandwidth hierarchy, the available bandwidth increases dramatically as data moves from HBM2E (512 GB/s) to the L1 network (32 TB/s). By utilizing the 128 KiB L1 scratchpad as a collaborative cache, Algorithm 3 turns the local memory into a high-speed buffer for neighboring clusters.
Key Results and Performance
The optimized mapping strategies yield significant improvements:
- Compute-Bound Convolutions: With Algorithm 2, the CCR reaches 141.8 MAC/word for single-precision data, ensuring that the FPUs are fully utilized.
- Traffic Reduction: Algorithm 3 reduces main memory loads for input depth slices by 93.75% by leveraging inter-cluster communication.
- FC Layer Efficiency: For a batch size of 32, the implementation achieves a CCR of ~30 MAC/word, sufficient to exploit Manticore’s computational potential despite the lower reuse nature of FC layers.
Conclusion and Future Work
While the theoretical mapping is highly efficient, several areas remain for future exploration. The synchronization overhead introduced by inter-cluster communication needs detailed performance profiling on actual silicon. Additionally, moving from static tiling to dynamic partitioning via the Runtime Environment (RTE) could further optimize memory usage. This work provides a foundational framework for deploying high-performance AI workloads on next-generation many-core hardware.
Summary updated