An FPGA Library Based Design of Variable CNN Weight Compression using Resizable K-Means Clustering

R. Yap, Emmanuel C. Del Rosario, Raymund Miguel Francisco Munchua
{"title":"An FPGA Library Based Design of Variable CNN Weight Compression using Resizable K-Means Clustering","authors":"R. Yap, Emmanuel C. Del Rosario, Raymund Miguel Francisco Munchua","doi":"10.46338/ijetae1222_10","DOIUrl":null,"url":null,"abstract":"Convolutional Neural Networks (CNN) is a popular tool used for image recognition. In CNN architecture, a set of weights undergo a series of updating while the training process for image recognition is ongoing. These weight values can be quite a lot in memory consumption. One way to reduce memory consumption is to use a form of weight compression through weight sharing. To do this, one can quantize the weights using K-Means clustering. To use the K means Clustering algorithm, one can manually try different values of K and then choose the best value that can save the CNN memory usage and at the same time will not deteriorate the recognition ability of the CNN. The method of trying different values of K to search for the best compression rate, can be time consuming for the user. In this paper, using XILINX Virtex FPGA library, a proposed hardware model design for a CNN integrated to a resizable Kmeans Clustering Model is presented. The hardware model design highlights the elimination of the manual search for best value of K. A synthesizable hardware model for the control and data path of the integration is proposed. A Hardware Model algorithm for an automated search for the best value of K in steps of 10, is presented. The proposed integration will allow the system to work by itself, to auto search for the best compression ratio after the CNN has finished training.","PeriodicalId":169403,"journal":{"name":"International Journal of Emerging Technology and Advanced Engineering","volume":"47 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-12-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Journal of Emerging Technology and Advanced Engineering","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.46338/ijetae1222_10","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Convolutional Neural Networks (CNN) is a popular tool used for image recognition. In CNN architecture, a set of weights undergo a series of updating while the training process for image recognition is ongoing. These weight values can be quite a lot in memory consumption. One way to reduce memory consumption is to use a form of weight compression through weight sharing. To do this, one can quantize the weights using K-Means clustering. To use the K means Clustering algorithm, one can manually try different values of K and then choose the best value that can save the CNN memory usage and at the same time will not deteriorate the recognition ability of the CNN. The method of trying different values of K to search for the best compression rate, can be time consuming for the user. In this paper, using XILINX Virtex FPGA library, a proposed hardware model design for a CNN integrated to a resizable Kmeans Clustering Model is presented. The hardware model design highlights the elimination of the manual search for best value of K. A synthesizable hardware model for the control and data path of the integration is proposed. A Hardware Model algorithm for an automated search for the best value of K in steps of 10, is presented. The proposed integration will allow the system to work by itself, to auto search for the best compression ratio after the CNN has finished training.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于FPGA库的可调整k均值聚类变CNN权值压缩设计
卷积神经网络(CNN)是一种用于图像识别的流行工具。在CNN架构中,一组权值在进行图像识别的训练过程中进行一系列的更新。这些权重值在内存消耗中可能相当大。减少内存消耗的一种方法是通过权重共享使用某种形式的权重压缩。要做到这一点,可以使用K-Means聚类来量化权重。使用K means聚类算法,可以手动尝试不同的K值,然后选择最优值,既可以节省CNN的内存使用,同时又不会降低CNN的识别能力。尝试不同的K值来搜索最佳压缩率的方法,对于用户来说可能会很耗时。本文利用XILINX Virtex FPGA库,提出了一种集成可缩放Kmeans聚类模型的CNN硬件模型设计方案。硬件模型的设计突出了消除人工搜索k的最佳值,提出了集成控制和数据路径的综合硬件模型。提出了一种以10步为单位自动搜索K的最优值的硬件模型算法。所提出的集成将允许系统自行工作,在CNN完成训练后自动搜索最佳压缩比。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Impact of Climate Change on Fish Species Classification Using Machine Learning and Deep Learning Algorithms Bibliometric Analysis of the Influence of Artificial Intelligence on the Development of Education Wireless IoT Networks Security and Lightweight Encryption Schemes- Survey Challenges of Requirements Engineering in Agile Projects: A Systematic Review From Data to Design: An IoT-Based Novel Solution for Combating Distracted Driving and Speeding Events
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1