KV-Cache Oriented Query-Aware Sparse Attention Accelerator With Cross-Stage Precision-Configurable Digital CIM
This work proposes KV-CIM, a KV-Cache oriented Digital Compute-In-Memory (DCIM) sparse attention accelerator, to address computational and memory bottlenecks in autoregressive inference for large language models. Key innovations include: a) A query-aware pre-compute architecture, which dynamically selects and accesses KV-Cache for critical tokens at the pre-compute stage (Stage1) and deploys KV-Cache segmentally on memory-constrained edge devices while maintaining computational accuracy at the formal computation stage (Stage2); b) A cross-stage DCIM macro featuring precision-configurable adder trees, which works in approximate mode at Stage1 and changes to full precision mode at Stage2; c) A query-stationary dataflow that retains the current query tensors in q-CIM across stages to eliminate data movement. Under 28-nm CMOS technology, the proposed KV-CIM achieves 35.16 TOPS/W and 82% reduction of external memory access with negligible degradation in LLaMA2 expressiveness.
Authors
- Lizheng Ren
- Hao Cai (ORCID: https://orcid.org/0000-0001-9794-8049)
- Yang Zhang (ORCID: https://orcid.org/0009-0005-1455-5749)
- Yiran Zhang (ORCID: https://orcid.org/0000-0002-8477-0074)
- Bo Liu (ORCID: https://orcid.org/0000-0002-0894-1054)
- Zhen Wang (ORCID: https://orcid.org/0000-0002-7821-2252)
- Yizhi Ding
- Weixuan Wang (ORCID: https://orcid.org/0000-0003-4551-0795)
- Xilong Kang
- Ruth Tan
Institutions
- Southeast University (CN)
Publication Details
- Journal
- IEEE Transactions on Circuits & Systems II Express Briefs
- Published
- 2025-06-17
- DOI
- https://doi.org/10.1109/tcsii.2025.3580135
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- National Key Research and Development Program of China