Atik: A Shared-Mesh Transformer Accelerator for RISC-V
Abstract
Transformer inference repeatedly invokes dense matrix multiplication and attention, including its data-dependent softmax normalization. We present Atik, an open-source RoCC accelerator for RocketChip that executes matrix multiplication and dense attention through one shared fixed-point MAC mesh. Atik accepts and returns BF16 tensors, uses a streaming online-softmax schedule that never materializes the full score matrix, and is invoked through a small descriptor-based ABI. We evaluate three meshes cycle-by-cycle on FireSim and report standalone Sky130 physical-design area. Across 137 logged FireSim test records, all tests pass their benchmark tolerance with zero reported output mismatches. Relative to the same scalar Rocket BF16 reference, the 8x8 configuration reaches 31.5x peak matmul speedup and 225.8x peak attention speedup. Hybrid projections for the single-layer workload-derived C models, using directly measured accelerator-kernel cycles, give aggregate speedups of 44.2x, 77.1x, and 32.3x for ViT, TinyBERT, and GPT-2 prefill, respectively; these are not full-model hardware replays.
Create a lesson
Related papers
STEdgeFormer: MCU and NPU Deployable Transformer Architecture
Shared title terminology · Sudhakar Sah
When do stored facts become available in looped transformers?
Shared title terminology · Fabio Valerio Massoli, Arnau Padrés Masdemont, Jordi Ros Giralt et al.
Specialized Large Language Models for Markovian Reasoning: Structural Cache Compression, Transition Pretraining, and Dual-Loop Transformers
Shared title terminology · Haibin Tong, Liangliang Xin, Yamei Zhu et al.
GGDriver: Glance at What Is Shared, Gaze at What Differs for Perception-Free Planning
Shared title terminology · Jiawei Sun, Maosen Li, Jiamin Shi et al.
IdealCache: Rethinking Cache Scheduling in Diffusion Transformers via Ideal Trajectories
Shared title terminology · Shang Xue, Li Zhu, Ping Chen
FOSCAR: Accelerating Decode Attention over 2- and 4-Bit KV Caches through Affine Folding
Shared title terminology · Donglin Zhuang, Pragaash Ponnusamy, Xiaoxia Wu et al.