LCM: LLM-focused Hybrid SPM-cache Architecture with Cache Management for Multi-Core AI Accelerators
Open Access
- 30 May 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 62-73
Abstract
The proliferation of large language models (LLMs) with substantial computational requirements and memory footprints has necessitated the design of more capable AI accelerators. Given the long compilation time of scratchpad memory-based (SPM-based) AI accelerators and the challenges brought by LLMs, we have explored the other side of the tradeoff - a multi-core AI accelerator system that incorporates a shared cache and application-specific management strategies - to provide significantly shorter compilation time at the cost of sometimes slightly lower performance than SPM-based systems. Besides, state-of-the-art mixed precision quantization methods also bring dynamic and irregular memory access patterns that do not fit SPMs well. Experiments conducted on cycle-accurate simulators have shown a maximum 30% memory time reduction with our cache management strategies, and up to 1.37x overall execution speedup with our prefetcher. Furthermore, we integrate the cache model into a state-of-the-art AI accelerator analytical model, allowing for a rapid understanding of the impact of caches for large-scale systems and big ML models. Overall, a system with our managed cache performs comparably with that using a conventional global SPM in non-quantized test-cases. However, our managed cache can outperform an SPM by 50.5% when a mixed precision quantization algorithm is used. With our cache management schemes, the proposed system can achieve a 2.57x speedup compared to LRU caches. Finally, we implement the design in RTL and the area of our design is 0.218mm2 with 15nm process, which can run at 1 GHz clock frequency. Our findings explore the potential of a shared cache design to assist the development of future AI accelerator systems.Keywords
Funding Information
- AI Chip Center for Emerging Smart Systems
- Huawei Hong Kong Research Center
This publication has 42 references indexed in Scilit:
- Stream: A Modeling Framework for Fine-grained Layer Fusion on Multi-core DNN Accelerators2023
- Atomic Dataflow based Graph-Level Workload Orchestration for Scalable DNN Accelerators2022
- NVIDIA A100 GPU: Performance & Innovation for GPU Computing2020
- A Multi-Neural Network Acceleration Architecture2020
- DaVinci: A Scalable Architecture for Neural Network Computing2019
- Timeloop: A Systematic Approach to DNN Accelerator Evaluation2019
- Exploring Heterogeneous NoC Design Space in Heterogeneous GPU-CPU ArchitecturesJournal of Computer Science and Technology, 2015
- Practical off-chip meta-data for temporal memory streaming2009
- Cache bursts: A new approach for eliminating dead blocks and increasing cache efficiency2008
- Timekeeping in the memory system: predicting and optimizing memory behavior2003