mlsanityData to 14 Oct 2026

Optimizing Foundation Model Inference on a Many-tiny-core Open-source RISC-V Platform

arXiv 2405.19284 ↗First posted 29 May 2024cs.DC cs.AI cs.ARcited by 1

Not on the map. Why?

Abstract (arXiv)

Transformer-based foundation models have become crucial for various domains, most notably natural language processing (NLP) or computer vision (CV). These models are predominantly deployed on high-performance GPUs or hardwired accelerators with highly customized, proprietary instruction sets. Until now, limited attention has been given to RISC-V-based general-purpose platforms. In our work, we present the first end-to-end inference results of transformer models on an open-source many-tiny-core RISC-V platform implementing distributed Softmax primitives and leveraging ISA extensions for SIMD floating-point operand streaming and instruction repetition, as well as specialized DMA engines to minimize costly main memory accesses and to tolerate their latency. We focus on two foundational transformer topologies, encoder-only and decoder-only models. For encoder-only models, we demonstrate a speedup of up to 12.8x between the most optimized implementation and the baseline version. We reach over 79% FPU utilization and 294 GFLOPS/W, outperforming State-of-the-Art (SoA) accelerators by more than 2x utilizing the HW platform while achieving comparable throughput per computational unit. For decoder-only topologies, we achieve 16.1x speedup in the Non-Autoregressive (NAR) mode and up to 35.6x speedup in the Autoregressive (AR) mode compared to the baseline implementation. Compared to the best SoA dedicated accelerator, we achieve 2.04x higher FPU utilization.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 31 of its 65 references that are in the map. First posted on arXiv 29 May 2024.

Builds on

31 of 65 references.

References · 31

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  7. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  8. 2023A Survey of Large Language Modelscited by 2,576
  9. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  10. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  11. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  12. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
19 more
  1. 2022Efficiently Scaling Transformer Inferencecited by 539
  2. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 439
  3. 2023A Comprehensive Survey on Pretrained Foundation Models: A History from BERT to ChatGPTcited by 368
  4. 2020Visual Transformers: Token-based Image Representation and Processing for Computer Visioncited by 334
  5. 2021I-BERT: Integer-only BERT Quantizationcited by 255
  6. 2022EfficientFormer: Vision Transformers at MobileNet Speedcited by 241
  7. 2019A Study of BFLOAT16 for Deep Learning Trainingcited by 232
  8. 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 223
  9. 2022FP8 Formats for Deep Learningcited by 196
  10. 2018Training Deep Neural Networks with 8-bit Floating Point Numberscited by 164
  11. 2023SparQ Attention: Bandwidth-Efficient LLM Inferencecited by 119
  12. 2023Cerebras-GPT: Open Compute-Optimal Language Models Trained on the Cerebras Wafer-Scale Clustercited by 109
  13. 2023OmniVec: Learning robust representations with cross modal sharingcited by 44
  14. 2023AccelTran: A Sparsity-Aware Accelerator for Dynamic Inference with Transformerscited by 24
  15. 2018Whisper: Fast Flooding for Low-Power Wireless Networkscited by 14
  16. 2020Snitch: A tiny Pseudo Dual-Issue Processor for Area and Energy Efficient Execution of Floating-Point Intensive Workloadscited by 11
  17. 2023A Comprehensive Performance Study of Large Language Models on Novel AI Acceleratorscited by 7
  18. 2020Manticore: A 4096-core RISC-V Chiplet Architecture for Ultra-efficient Floating-point Computingcited by 5
  19. 2023A High-performance, Energy-efficient Modular DMA Engine Architecturecited by 4

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.