Hong Kong University of Science and Technology
Application-aware Caching and Predictive Memory Architectures for Deep Learning Workloads
Abstract
dc:description<p>The rapid scaling of deep learning models, particularly large language models, has placed enormous pressure on the memory subsystems of AI accelerators. As last-level caches are increasingly adopted in accelerator designs, their effective management has become a critical factor of system performance. This thesis investigates application-aware and predictive techniques for optimizing the memory hierarchy across multiple levels - from intra-cluster traffic reduction, through cache replacement, to bandwidth management.</p> <p>We start from gem5-NVDLA, which establishes the simulation-driven methodology that underpins the subsequent studies. As a cycle-level simulator that integrates the NVDLA accelerator RTL model with gem5, it exposes buffer allocation, scheduling, and prefetching, thereby enabling full-stack architectural exploration of multi-accelerator SoCs.</p> <p>Through a case study, we demonstrate that applying different caching strategies to weights and activations is essential to achieving a remarkable speedup with a limited buffer size.</p> <p>One significant bottleneck for AI chips is the limited on-chip SRAM size. GPUs’ L2 cache are hardware-managed and transparent to programmers, and therefore have a larger potential of improvement. We propose cache replacement policies that leverage a priori knowledge of per-tile access counts - information available before operator computation for AI workloads, to make informed eviction and anti-thrashing decisions. An analytical model is also developed to estimate performance for larger workloads to evaluate the efficacy of our policies.</p> <p>At the source of memory traffic, we present a dataflow-aided intra-cluster request coalescer that exploits knowledge of the number of intra-cluster reuses to reduce NoC and L2 cache bandwidth requirement. By guiding coalescing decisions with this reuse information, the design reduces the interference between inter-core and round-by-round reuse at the L2 level, thereby benefiting large GEMM and FlashAttention workloads. It also enhances load balance between cores, which is vital for larger workloads and persistent kernels. We identify a fundamental tradeoff between load balance and concurrency and suggest a dual-mode design, allowing programmers to select the strategy best suited to their application.</p>
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Lai, Chengtao
- Contributors dc:contributor
-
- Zhang, Wei
Rights
- Language dc:language
- English
Identifiers
dc:identifier.*- Repository record dc:identifier
- http://repository.hkust.edu.hk/ir/Record/1783.1-174913