# To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI

SIMDを使うか否か：AIの非線形関数に向けたRVVとCGRA SoCの比較

Sameer Deshmukh, Naoya Mizuki, Takumi Honda · arXiv · 2026年11月9日

- **課題** AIアクセラレータでは行列乗算ユニットの性能が速く向上してきましたが、SiLUやsoftmaxのような非線形関数を計算するベクトルユニットや再構成可能ユニットはそれに追いついていません。この論文は、同じメモリ階層と行列乗算ユニットの条件で、RVVベクトルユニットとelastic CGRAを比較します。
- **手法** Saturn RVVベクトルユニットとelastic RIKEN CGRAを、それぞれGemmini行列乗算ユニットと組み合わせた2つのSoC（ME-VE、ME-RE）を構成します。SwiGLUとAttentionの非線形段階を、サイクル数と相対誤差で比べます。
- **結果** SiLUの活性化段階ではCGRAが最大7.12倍高速で、softmax段階ではベクトルユニットが最大9.8倍高速です。

## 非線形関数がAIアクセラレータのボトルネックになる理由

大規模言語モデルでは、行列乗算のほかにSiLUやsoftmaxのような非線形関数が精度に重要な役割を果たします。一方、AI向けチップは行列乗算ユニット（MMU）の性能を速いペースで高めてきましたが、非線形関数を計算するベクトルユニットやスカラー処理ユニットの性能は、その速度に追いつけていません。特に対数、除算、指数、極値のような演算は、一般的な行列乗算ユニットではサポートが難しいです。

FPGAとCGRAは非線形関数計算の代替案として提案されてきましたが、ベクトル処理ユニットと行列乗算ユニットを組み合わせた構成との体系的な比較例は少なかったです。この論文は、同じメモリ階層と行列乗算ユニットを共有する2つのSoCを作り、非線形演算エンジンだけを入れ替えて、その差をサイクル数で比べます。

## 2つのSoCの構造と共通条件

ME-VEはSaturn RISC-Vベクトルプロセッサ、Gemmini行列乗算ユニットを組み合わせ、ME-REはelastic RIKEN CGRAと同じGemminiを組み合わせます。2つのSoCは単一コアのin-order Rocket CPUで動作し、同じメモリ階層を使います。2つの設計の違いは、非線形演算を担当するベクトルユニットか再構成可能ユニットかだけです。

![Figure 1: The “ME-VE” SoC. We combine a Saturn RISC-V vector processor with Gemmini using a Rocket CPU to simulate the combination of a matrix multiplication a…](https://refivu.com/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9/figures/figure-f1fd492889c75e4b456a06ade8636070.png?thumb=512)

**Fig. 1** . The “ME-VE” SoC. We combine a Saturn RISC-V vector processor with Gemmini using a Rocket CPU to simulate the combination of a matrix multiplication accelerator with a vector processor.

[出典](https://arxiv.org/abs/2611.12435v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sameer Deshmukh, Naoya Mizuki, Takumi Honda · To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

SaturnはCPUコアに結合され、同じパイプラインから命令を取り出して解釈します。CGRAはRoCCコントローラを介して接続されます。論文では、Saturnを128ビット幅で構成し、LMULを4に設定したと述べられています。この設定により、ベクトルユニットのロードパイプラインが飽和し、命令数が減るとも説明されています。Gemminiは FP32の4x4空間アレイで構成されます。

## CGRAのマッピングとパイプライン深度

RIKEN CGRAは4x4のPE格子で、各PEはFMUL、FADD、FDIV、FEXP、FSQRTユニットを持ちます。演算器コアはFloPoCoで生成されたパイプラインFP32コアで、パイプライン深度はFADDが3サイクル、FEXPが3サイクル、FMULが6サイクル、FSQRTが10サイクル、FDIVが15サイクルとされています。論文では、この値を生成されたVerilogのレジスタ段で計算したと述べられています。

![Figure 2: The “ME-RE” SoC. We combine a CGRA-ME elastic RIKEN architecture with Gemmini using a Rocket CPU to simulate the combination of a matrix multiplicati…](https://refivu.com/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9/figures/figure-14eb5e59e97103ad3021b765c1729b77.png?thumb=512)

**Fig. 2** . The “ME-RE” SoC. We combine a CGRA-ME elastic RIKEN architecture with Gemmini using a Rocket CPU to simulate the combination of a matrix multiplication accelerator with a reconfigurable array.

[出典](https://arxiv.org/abs/2611.12435v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sameer Deshmukh, Naoya Mizuki, Takumi Honda · To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

この深度は目標動作周波数によって変わるため、演算器間の深度比が結果に影響しうるとされています。論文は、この影響はパイプラインの充填の面では限定的だが、分岐の不均衡による比率効果は完全には含められていないと、限界として述べています。

## SiLUとsoftmaxのマッピング

SiLUのマッピングでは、yはg1と exp(−g)·uの和として計算されます。一方の分岐はFMUL、FEXP、FADD、FDIVを経て27サイクルかかり、もう一方の分岐はFMUL 1段で6サイクルかかります。弾性CGRAは、この不均衡を弾性バッファで吸収します。論文では、このバッファの深さを32に固定して2つのマッピングに使ったと説明されています。

softmaxでは、最大値と逆数をRocket CPUで計算し、CGRAは指数の和を求めるリダクションループと要素ごとの乗算ループを実行します。累算器はFP32なので、行をまたぐ累積をそのままにすると相対誤差が大きくなります。そのため、各チャンクの境界で初期化する設定を使ったと論文は報告しています。

## SiLU活性化段階の結果

SwiGLUの活性化段階では、SiLUはME-REのCGRAで、ME-VEのベクトルユニットより少ないサイクルで計算されます。論文の図4は、Nが16、32、64、128のとき、ME-REがそれぞれ6.22倍、6.37倍、6.31倍、7.12倍速いと報告しています。

![Figure 4: Clock cycles bySiLUon the ME-VE and ME-RE](https://refivu.com/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9/figures/figure-d38449e86e96814ba4fc519af49603fd.png?thumb=512)

**Fig. 4** . Clock cycles bySiLUon the ME-VE and ME-RE.

[出典](https://arxiv.org/abs/2611.12435v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sameer Deshmukh, Naoya Mizuki, Takumi Honda · To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

著者らは、この差はベクトル側の指数関数が多項式ベースのソフトウェアカーネルで計算されることに由来すると説明しています。

![Figure 6: Cycles / element for computing theSiLUfor the ME-VE with and without the exponential compared to the ME-RE with the exponential. Costs are normalised…](https://refivu.com/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9/figures/figure-bda22d3aa2b3dae4453bfca6d557702a.png?thumb=512)

**Fig. 6** . Cycles / element for computing theSiLUfor the ME-VE with and without the exponential compared to the ME-RE with the exponential. Costs are normalised by theN 2 elements of the activation tensor, on the same measurements as Table III, so the ratio between the first and third bars reproduces that table’s activation speedup exactly. ME-VE is slower than ME- RE even without the exponential calculation, indicating that better pipelining leads to faster execution in the ME-RE.

[出典](https://arxiv.org/abs/2611.12435v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sameer Deshmukh, Naoya Mizuki, Takumi Honda · To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## softmaxの結果とCGRAのボトルネック分解

Attentionのsoftmax段階では、状況が逆になります。論文の表IVは、N=128で1要素あたり約89.3サイクルかかり、そのうちRUNが40.62サイクルを占めると報告しています。

![Figure 8: Cycles / element for the activation computation of the Attention calculation on the ME-VE compared to the ME-RE. Our mapping gives the ME-VE an advan…](https://refivu.com/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9/figures/figure-cafc84e73a41861bc70fbffe40fc2f5a.png?thumb=512)

**Fig. 8** . Cycles / element for the activation computation of the Attention calculation on the ME-VE compared to the ME-RE. Our mapping gives the ME-VE an advantage over the ME-RE.

[出典](https://arxiv.org/abs/2611.12435v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Sameer Deshmukh, Naoya Mizuki, Takumi Honda · To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI · 論文の図を引用 · 元のPDFの8ページ目から図の部分を抽出しています。

論文は、このコストを5つの要因に分解しています。2回のパス、オペランドの複製、プロローグ、ストリーミング速度、チャンク再開のコストがそれです。この分解はN=128の場合にのみ当てはまり、再開コストは測定値に合わせたフィッティング値だと論文は述べています。したがって、この分解は独立した検証ではなく、前の4つの項目との整合性の確認として読む必要があります。

## 適用範囲と限界

この結果は、すべての演算ユニットをFP32に固定した条件で得られたものです。そのため、bf16やfp8環境での結果は測定していません。論文では、行列エンジンと非線形エンジンの処理量の比率を変える感度分析も、今後の課題として残されています。

また、2つのSoCは同じクロックで構成され、サイクル数を報告しているため、合成と静的タイミング解析による実際の周波数の差は扱っていません。各節で報告された比率は、該当するSoC構成とN設定で得られた値として読む必要があります。

## 論文情報

- **著者**: Sameer Deshmukh, Naoya Mizuki, Takumi Honda
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2026年11月9日
- **登録日**: 2026年11月10日
- **更新日**: 2026年11月9日
- **バージョン**: v1
- **arXiv**: 2611.12435
- **カテゴリ**: cs.AR · cs.AI
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2611.12435v1) · [PDF ↗](https://arxiv.org/pdf/2611.12435v1)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Non-linear functions are an important class of operations in modern large language models. However, chip vendors building for AI have so far relied on traditional vector or scalar processing units for non-linear functions. The performance of these units has not kept pace with matrix multiplication units (MMUs), which can be found in both high-performance and edge-computing devices from almost every vendor. Reconfigurable units such as FPGAs and CGRAs have been proposed in the literature, but have not been systematically compared with traditional units backed by MMUs. In this paper, we build two SoCs: one using an RVV vector processor and the other using a latency-insensitive (\\emph{elastic}) CGRA, both coupled with an MMU and driven by a single-core CPU. We then propose mappings for common feed-forward networks on our SoCs and find that the CGRA reaches a maximum speedup in clock cycles of 7.12x over RVV on the activation stage of simple point-wise non-linear functions like SiLU, whereas the RVV reaches a maximum speedup of \\textbf{9.8x} over the CGRA on complex non-linear functions such as $\\mathrm{softmax}$. Over the enclosing feed-forward block the corresponding maxima are 3.16x and 4.24x.

## この論文を引用

Sameer Deshmukh, Naoya Mizuki, Takumi Honda (2026). To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI. arXiv:2611.12435v1. https://arxiv.org/abs/2611.12435v1

**BibTeX**

```
@misc{deshmukh2026simd,
  title = {{To SIMD or Not to SIMD: Comparing RVV vs. CGRA SoCs for Non-Linear Functions in AI}},
  author = {Sameer Deshmukh and Naoya Mizuki and Takumi Honda},
  year = {2026},
  eprint = {2611.12435},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12435v1}
}
```

## この論文の用語

- [Softmax](https://refivu.com/ja/terms/4a7673b6518d-softmax)
- [SwiGLU](https://refivu.com/ja/terms/9b64288c190e-swiglu)
- [SiLU](https://refivu.com/ja/terms/35a5fbe5a085-silu)

## ほかの論文解説

- [Translating KV Caches Between Hybrid-Attention Language Models: MLA Latents, Linear-Attention States and Sparse-Attention Indexers](https://refivu.com/ja/papers/5eb33cd3-9543-41d1-88c1-8ec06cec0762-translating-kv-caches-between-hybrid-attention-language.md)
- [Competing Influence in LLM Populations: Budget Timing and Baseline Drift](https://refivu.com/ja/papers/0c46aeac-7fe7-4f4c-9eb7-13d04ed0b581-competing-influence-in-llm-populations-budget-timing-and.md)
- [VeilTune: Secure Fine-Tuning of Private LoRA Adapters on Public Pretrained Language Models](https://refivu.com/ja/papers/1ac3c6eb-7952-4bcf-b058-eb348429161e-veiltune-secure-fine-tuning-of-private-lora-adapters.md)
- [Weight-Space Programming of Policies and Their Verification via Model Checking](https://refivu.com/ja/papers/812e0c2d-92df-41d6-8419-2738a51f42de-weight-space-programming-of-policies-and-their-verification.md)
- [WarBias: A Bilingual LLM Benchmark of Stereotypes About Internally Displaced People and Veterans](https://refivu.com/ja/papers/d1a75005-9e8d-4870-a69c-f94be2d0840d-warbias-a-bilingual-llm-benchmark-of-stereotypes-about.md)
- [GradReason: LLMs as Meta-Learners that Replace Training Epochs with Training-Data-Free Weight Updates](https://refivu.com/ja/papers/256ec645-cf61-4699-8fbc-03d5adc197dc-gradreason-llms-as-meta-learners-that-replace-training.md)
- [UCB-min: Combining Bandits Under Variance Heterogeneity (Extended Version)](https://refivu.com/ja/papers/56e0a733-e917-4ca1-ad8d-a1bfd4416399-ucb-min-combining-bandits-under-variance-heterogeneity.md)
- [Two-Phase Rapid Simulation-Based Inference with Differentiable Simulators](https://refivu.com/ja/papers/87f16791-a967-476a-a2aa-45227a0ceb2c-two-phase-rapid-simulation-based-inference-with.md)
- [Can Frontier Auto Researchers Reconstruct Human Research Decisions in AI?](https://refivu.com/ja/papers/0c85bfc9-bf64-4283-91a0-a827acd3a1ad-can-frontier-auto-researchers-reconstruct-human-research.md)
- [Physics-informed neural networks in the small-data regime: A controlled comparison with classical PDE surrogates](https://refivu.com/ja/papers/8d56e715-c6f6-46f8-8431-93b1ab3905d7-physics-informed-neural-networks-in-the-small-data.md)
- [Optimal Rates for Adaptive Private $k$-PCA](https://refivu.com/ja/papers/5c4a7be8-5d8f-450a-bcc2-41b497ec645a-optimal-rates-for-adaptive-private-k-pca.md)
- [AutoBuddy: Evaluating Proactive, Always-On Agents on Task Discovery and Execution in a Simulated Workplace](https://refivu.com/ja/papers/378ee874-91fd-422d-b509-0e860e119144-autobuddy-evaluating-proactive-always-on-agents-on-task.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/863b68ad-a0a5-475e-a3d8-a641f6d0b1e9-to-simd-or-not-to-simd-comparing-rvv)
