A Low-Power General Matrix Multiplication Accelerator with Sparse Weight-and-Output Stationary Dataflow.

IF 3 3区 工程技术 Q2 CHEMISTRY, ANALYTICAL Micromachines Pub Date : 2025-01-16 DOI:10.3390/mi16010101
Peng Liu, Yu Wang
{"title":"A Low-Power General Matrix Multiplication Accelerator with Sparse Weight-and-Output Stationary Dataflow.","authors":"Peng Liu, Yu Wang","doi":"10.3390/mi16010101","DOIUrl":null,"url":null,"abstract":"<p><p>General matrix multiplication (GEMM) in machine learning involves massive computation and data movement, which restricts its deployment on resource-constrained devices. Although data reuse can reduce data movement during GEMM processing, current approaches fail to fully exploit its potential. This work introduces a sparse GEMM accelerator with a weight-and-output stationary (WOS) dataflow and a distributed buffer architecture. It processes GEMM in a compressed format and eliminates on-chip transfers of both weights and partial sums. Furthermore, to map the compressed GEMM of various sizes onto the accelerator, an adaptable mapping scheme is designed. However, the irregular sparsity of weight matrices makes it difficult to store them in local buffers with the compressed format; denser vectors can exceed the buffer capacity, while sparser vectors may lead to the underutilization of buffers. To address this complication, this work also proposes an offline sparsity-aware shuffle strategy for weights, which balances the utilization of distributed buffers and minimizes buffer waste. Finally, a low-cost sparse computing method is applied to the WOS dataflow with globally shared inputs to achieve high computing throughput. Experiments with an FPGA show that the proposed accelerator achieves 1.73× better computing efficiency and 1.36× higher energy efficiency than existing approaches.</p>","PeriodicalId":18508,"journal":{"name":"Micromachines","volume":"16 1","pages":""},"PeriodicalIF":3.0000,"publicationDate":"2025-01-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC11767631/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Micromachines","FirstCategoryId":"5","ListUrlMain":"https://doi.org/10.3390/mi16010101","RegionNum":3,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"CHEMISTRY, ANALYTICAL","Score":null,"Total":0}
引用次数: 0

Abstract

General matrix multiplication (GEMM) in machine learning involves massive computation and data movement, which restricts its deployment on resource-constrained devices. Although data reuse can reduce data movement during GEMM processing, current approaches fail to fully exploit its potential. This work introduces a sparse GEMM accelerator with a weight-and-output stationary (WOS) dataflow and a distributed buffer architecture. It processes GEMM in a compressed format and eliminates on-chip transfers of both weights and partial sums. Furthermore, to map the compressed GEMM of various sizes onto the accelerator, an adaptable mapping scheme is designed. However, the irregular sparsity of weight matrices makes it difficult to store them in local buffers with the compressed format; denser vectors can exceed the buffer capacity, while sparser vectors may lead to the underutilization of buffers. To address this complication, this work also proposes an offline sparsity-aware shuffle strategy for weights, which balances the utilization of distributed buffers and minimizes buffer waste. Finally, a low-cost sparse computing method is applied to the WOS dataflow with globally shared inputs to achieve high computing throughput. Experiments with an FPGA show that the proposed accelerator achieves 1.73× better computing efficiency and 1.36× higher energy efficiency than existing approaches.

Abstract Image

Abstract Image

Abstract Image

查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
采用稀疏加权输出静态数据流的低功耗通用矩阵乘法加速器
机器学习中的通用矩阵乘法(GEMM)涉及大量的计算和数据移动,这限制了它在资源受限设备上的部署。虽然数据重用可以减少GEMM处理期间的数据移动,但目前的方法未能充分利用其潜力。本文介绍了一种具有权重和输出固定(WOS)数据流和分布式缓冲架构的稀疏GEMM加速器。它以压缩格式处理GEMM,并消除了权重和部分和的片上传输。此外,为了将压缩后的各种尺寸的GEMM映射到加速器上,设计了一种自适应的映射方案。然而,权矩阵的不规则稀疏性使得用压缩格式将它们存储在局部缓冲区中变得困难;较密集的向量可能超过缓冲区容量,而较稀疏的向量可能导致缓冲区利用率不足。为了解决这个问题,这项工作还提出了一种离线稀疏感知的权重洗牌策略,该策略平衡了分布式缓冲区的利用率,并最大限度地减少了缓冲区浪费。最后,将低成本的稀疏计算方法应用于具有全局共享输入的WOS数据流,以获得较高的计算吞吐量。在FPGA上的实验表明,该加速器的计算效率比现有方法提高了1.73倍,能量效率提高了1.36倍。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
Micromachines
Micromachines NANOSCIENCE & NANOTECHNOLOGY-INSTRUMENTS & INSTRUMENTATION
CiteScore
5.20
自引率
14.70%
发文量
1862
审稿时长
16.31 days
期刊介绍: Micromachines (ISSN 2072-666X) is an international, peer-reviewed open access journal which provides an advanced forum for studies related to micro-scaled machines and micromachinery. It publishes reviews, regular research papers and short communications. Our aim is to encourage scientists to publish their experimental and theoretical results in as much detail as possible. There is no restriction on the length of the papers. The full experimental details must be provided so that the results can be reproduced.
期刊最新文献
Comparative Evaluation of Two Image-Analysis Software Platforms for Microfluidic Assessment of Red Blood Cell Deformability in Chronic Lymphocytic Leukemia. Germanium-on-Silicon Waveguide-Integrated Photodiode with Dual Optical Inputs for Datacenter Applications. Enhanced Fringing Field Micro-Moisture Sensor with Elements Optimization. Synthesis and Characterization of CNC/CNF/rGO Composite Films for Advanced Functional Applications. An Enhanced Q-Factor Cantilever Resonator in Viscous Liquids Using Strategic Perforation.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1