논문 해설
Atik: A Shared-Mesh Transformer Accelerator for RISC-V
Atik: RISC-V를 위한 공유 메시 트랜스포머 가속기
- 연구 문제 Transformer 추론의 밀집 행렬 곱셈과 어텐션 softmax를 하나의 RISC-V 연동 가속기로 함께 다루는 것이 이 연구의 문제입니다.
- 연구 방법 Atik은 RoCC로 Rocket 코어에 연결되며, 하나의 고정소수점 MAC 메시로 행렬 곱셈과 어텐션의 두 행렬 곱을 수행하고 온라인 소프트맥스로 전체 점수 행렬을 저장하지 않습니다.
행렬 곱셈과 어텐션을 함께 가속하려는 이유
Transformer 추론에서는 밀집 행렬 곱셈과 데이터 의존적인 softmax를 포함한 어텐션이 반복적으로 실행됩니다. 범용 코어에서는 두 연산 모두 비용이 클 수 있으며, 한쪽 커널만 가속하는 설계는 나머지 커널을 느린 경로에 남깁니다. 기존 연구들은 ASIC으로 어텐션이나 softmax만 가속하거나, 정수 데이터형을 쓰거나, 전체 시스템 시뮬레이션에 머무는 경우가 많다고 원문은 정리합니다. Atik은 RocketChip의 RoCC 인터페이스에 붙는 실제 코어 연동 가속기로서, 행렬 곱셈과 어텐션을 한 계산 경로에서 다루고 통합 RTL을 FireSim으로 사이클 단위 평가하는 범위를 제시합니다.

Table 1 : Positioning of Atik against representative transformer-related accelerators.Couplingdistinguishes a standalone ASIC, an instruction-set extension (ISA-ext), and a tightly-coupled accelerator attached to a general-purpose core (TCA).Evaluation methodnames the platform and evidence type used by each paper; it is not a quality ranking. “Yes” indicates that the paper reports the corresponding capability or releases the design; a dash indicates that it does not.
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.공유 MAC 메시와 RoCC 제어 흐름
Atik의 핵심 설계는 R×C 고정소수점 곱셈-누적 셀 메시를 행렬 곱셈과 어텐션에 공통으로 사용하는 것입니다. 메시는 C+=AB, 어텐션 점수의 score+=QK^T, 그리고 출력의 O+=PV 누적을 같은 하드웨어로 수행하며, 입력 멀티플렉서가 행렬 곱셈 제어기와 어텐션 제어기 중 어느 쪽 피연산자를 받을지 선택합니다. 누산기 타일은 축소 차원 전체에 걸쳐 메시 안에 머무르므로 부분합을 메모리에 내보내지 않습니다. 소프트웨어는 80바이트 디스크립터에 텐서 주소, leading dimension, 문제 크기, 연산 종류를 채운 뒤 set_desc와 run 명령을 내고 상태 워드를 폴링합니다. 타일링, 패킹, DMA와 쓰기 동작은 하드웨어가 담당합니다.

Figure 2 : AtikCore block diagram. A RoCC command router drives a top-level controller that dispatches to the matmul or attention controller. Both share a single MAC mesh, the BF16↔fixed-point converters, the SRAM tile banks, and the tile-DMA read/write path.
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.수치 경로와 스트리밍 온라인 소프트맥스
외부 텐서는 행우선 BF16이며, 내부 계산은 고정소수점으로 수행됩니다. BF16toFixed 유닛이 각 원소를 24비트 부호 있는 고정소수점 값으로 바꾸고 곱은 64비트 부호 있는 누산기에 더해지며, FixedToBF16 유닛이 결과를 다시 BF16으로 바꿉니다. 어텐션은 전체 점수 행렬을 만들지 않고 키/값 축을 청크 단위로 순회합니다. 각 청크의 점수 타일에 대해 행별 최댓값과 분모를 갱신하고 기존 출력 누산기를 재조정한 뒤, 확률 타일과 V의 곱을 같은 메시로 누적합니다. 지수와 역수는 작은 룩업 테이블로 근사하며, 이 스칼라 레인은 면적을 우선한 선택으로 softmax 갱신을 직렬로 처리합니다.
값 열 루프가 키/값 루프를 감싸므로 val_cols가 NC보다 크면 점수와 softmax 계산이 열 타일마다 반복됩니다.
FireSim 측정 환경과 기준선
각 인스턴스는 Chipyard로 생성된 SoC에서 하나의 Rocket 코어에 RoCC로 연결됩니다. 기능 확인은 Verilator로 하고, 보고된 성능 수치는 AWS F2의 FireSim 사이클 정확 에뮬레이션에서 얻었습니다. 기준선은 같은 Rocket 코어와 메모리 시스템에서 실행한 BF16 소프트웨어 참조 구현이므로 비교는 Rocket과 Rocket+Atik의 차이입니다. 허용오차 검사는 벤치마크 수준의 수치 일치를 확인할 뿐, 작업 정확도나 비트 단위 동일성을 입증하지 않습니다. 원문 로그에는 137개의 통과 기록이 있으며 최대 절대 차이는 0.0625입니다.
표준 커널 결과와 효율 지표
표 2의 GEMM64에서 Rocket은 0.1151 FLOP/cyc., Atik은 end-to-end RoCC 호출을 포함해 3.6195 FLOP/cyc.를 기록합니다. 어텐션 사례는 Q=K_V=D=V=128에서 두 행렬 곱의 FLOP만 분자에 넣어 0.4100 FLOP/cyc.를 보고합니다. softmax 사이클은 측정에 포함되지만 FLOP으로 환산되지 않습니다. 내부 카운터인 DMA 읽기, 메시 계산, softmax 사이클은 서로 겹치므로 합산하지 않습니다.

Table 2 : Direct 8×8 kernel efficiency from FireSim logs. End- to-end cycles include the RoCC call; internal cycles are TOTAL_CYCLES. Attention counts only its two matrix products in the FLOP numerator.
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.워크로드 기반 하이브리드 투영
ViT, TinyBERT, GPT-2 prefill은 전체 CPU 실행을 프로파일링한 뒤 Atik이 대체하는 커널의 CPU 비용을 빼고 가속기 측정 비용을 더하는 하이브리드 투영으로 평가됩니다. 이 방식은 전체 모델을 하드웨어에서 재실행한 결과가 아니며 대체되지 않은 나머지 부분이 변하지 않는다고 가정합니다. 집계 값은 일치하는 문제 크기의 기준 사이클을 합산한 비율이며, 작은 사례는 설정과 DMA 비용이 상대적으로 커서 집계에 낮게 반영됩니다.

Table 3 : Per-case hybrid projected ViT speedup over the Rocket baseline.𝑆 is the post-patch token count,𝐷 the model dimension,𝐻 the head count, and MLP the feed-forward hid- den size (all cases use 10 output classes).
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Table 4 : Per-case hybrid projected GPT-2 prefill speedup over the Rocket baseline. 𝑆 is the sequence length, 𝐷 the model dimension,𝐻 the head count, and 𝑉 the vocabulary projec- tion size (FFN hidden size 128/256).
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Table 5 : Per-case hybrid projected TinyBERT speedup over the Rocket baseline (𝑆 tokens, model dimension 𝐷,𝐻 heads; 2 output classes). “—” marks a case not run for that configu- ration; aggregate comparisons use only matched cases.
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.면적 연구의 범위와 남은 한계
예비 Sky130 면적 연구는 독립형 AtikCore만 대상으로 하며 RocketTile, ChipTop, 타이밍, 전력, 실리콘 검증을 포함하지 않습니다. 메시 크기가 4, 16, 64 MAC 레인으로 커질 때 MAC 레인당 면적은 180,303에서 48,920 μm²로 줄어듭니다. 이는 고정 제어와 DMA 비용이 큰 메시에 분산된다는 서술적 관찰일 뿐 PPA 비교가 아닙니다. 기준선은 SIMD나 벡터 유닛이 없는 스칼라 Rocket이므로 보고된 절대 속도 향상에는 스칼라 파이프라인의 BF16 행렬 처리 한계가 일부 반영되어 있습니다. 또한 Atik은 희소 어텐션을 활용하지 않으며, 자기회귀 decode 단계의 KV 캐시 가속은 아직 다루지 않습니다.

Table 6 : Preliminary standalone AtikCore area estimate (𝜇m2) across mesh configurations.
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Figure 4 : Preliminary standalone AtikCore VLSI output from the Sky130 flow: layout view (left) and colored placement view (right).
원문 · CC BY 4.0 · Ahmed Zeer, Erkan Uslu · Atik: A Shared-Mesh Transformer Accelerator for RISC-V · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.논문 정보
- 저자
- Ahmed Zeer, Erkan Uslu
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 11월 6일
- 등록일
- 2026년 11월 9일
- 수정일
- 2026년 11월 6일
- 버전
- v1
- arXiv
- 2611.09522
- 분류
- cs.AI · cs.AR
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
Ahmed Zeer, Erkan Uslu (2026). Atik: A Shared-Mesh Transformer Accelerator for RISC-V. arXiv:2611.09522v1. https://arxiv.org/abs/2611.09522v1
BibTeX
@misc{zeer2026atik,
title = {{Atik: A Shared-Mesh Transformer Accelerator for RISC-V}},
author = {Ahmed Zeer and Erkan Uslu},
year = {2026},
eprint = {2611.09522},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.09522v1}
}