Native Block-Quantized Matrix Multiplication and Explicit K/V Residency with Dual-View Access for LLM Inference on RISC-V Vector Processors
Abstract
Some key execution states in large language model inference persist across multiple instructions and are difficult to express and exploit within RVV semantics centered on individual operations. We define specialization boundaries according to data-state lifetimes and propose Quantized Block Streams (QBS) and Attention/KV Context (AKV) while preserving RVV programmability. QBS organizes native-block format processing, block traversal, integer computation, and ordered FP32 accumulation into a unified execution process, whereas AKV maintains local K/V residency and supplies operand views aligned with the computation direction while leaving Attention arithmetic on RVV. Cycle-accurate RTL evaluation shows that QBS achieves geometric-mean speedups of 35.68x and 51.34x for projection Compute and Matmul, respectively, while AKV achieves a 1.45x geometric-mean speedup over Tiled RVV for Decode Attention. Compared with the baseline, the complete design increases total area by 12.65%; on the evaluated projection workloads, throughput per area and energy efficiency improve by 46.63x and 19.78x, respectively. Further evaluation demonstrates applicability across multiple block-quantization formats and across models with different Attention organizations.
Create a lesson
Metadata
- Comments
- 7 pages, 6 figures, 3 tables
Related papers
Stratum: A Hardware-Software Co-Design Framework for SNN Inference on RISC-V
Shared title terminologycs.ARWajahat Riaz, Muhammad Adeel Pasha, Shahid Masud et al.
Rethinking ANNS on Commodity PIM: PIM-Native Vector Search with Cooperative Filtering
Shared title terminologycs.ARDawei Guo, Yizou Chen, Fan Yang et al.
Native FPGA Hard-Block Implementation from High-Level Synthesis
Shared title terminologycs.ARMohamed Bouaziz, Mahmoud A. Elshenawy, Krishnan B. Iyer et al.
Vector-Space Projection and Unified Complex-Valued Acceleration for Scaling Matrix-Based Brain-Inspired Representations
Shared title terminologycs.ARWilliam Youngwoo Chung, Hyunwoo Oh, Calvin Yeung et al.
MixMoMo: Accelerating Extra--Large MoE Inference with Mixed--Precision GPU--NPU Execution on Mobile Devices
Shared title terminologycs.ARHailong Zou, Maoliang Li, Taohong Han et al.
L2C2: Enhancing Large-scale Chiplets for Agent Long-Context LLM Inference with Sparse and Distributed Attention
Shared title terminologycs.ARKangbo Bai, Zhonghua Mu, Hongze Zhou et al.