ARApr 8

TRAPTI: Time-Resolved Analysis for SRAM Banking and Power Gating Optimization in Embedded Transformer Inference

arXiv:2604.0695550.6
Predicted impact top 30% in AR · last 90 daysOriginality Incremental advance
AI Analysis

This work addresses memory and energy constraints for embedded transformer inference, offering incremental improvements through optimized memory management.

The paper tackles the challenge of deploying transformer neural networks on embedded hardware by addressing the memory footprint of the Key-Value (KV) cache, which strains on-chip memory utilization during inference. It introduces TRAPTI, a methodology that uses time-resolved analysis to optimize memory banking and power gating, showing that DeepSeek-R1-Distill-Qwen-1.5B reduces peak on-chip memory utilization by 2.72x compared to GPT-2 XL in the same accelerator configuration.

Transformer neural networks achieve state-of-the-art accuracy across language and vision tasks, but their deployment on embedded hardware is hindered by stringent area, latency, and energy constraints. During inference, performance and efficiency are increasingly dominated by the Key--Value (KV) cache, whose memory footprint grows with sequence length, straining on-chip memory utilization. Although existing mechanisms such as Grouped-Query Attention (GQA) reduce KV cache requirements compared to Multi-Head Attention (MHA), effectively exploiting this reduction requires understanding how on-chip memory demand evolves over time. This work presents TRAPTI, a two-stage methodology that combines cycle-level inference simulation with time-resolved analysis of on-chip memory occupancy to guide design decisions. In the first stage, the framework obtains memory occupancy traces and memory access statistics from simulation. In the second stage, the framework leverages the traces to explore banked memory organizations and power-gating configurations in an offline optimization flow. We apply this methodology to GPT-2 XL and DeepSeek-R1-Distill-Qwen-1.5B under the same accelerator configuration, enabling a direct comparison of MHA and GQA memory profiles. The analysis shows that DeepSeek-R1-Distill-Qwen-1.5B exhibits a 2.72x reduction in peak on-chip memory utilization in this setting compared to GPT-2 XL, unlocking further opportunities for power-gating optimization.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes