LightFPGA: Scalable and Automated FPGA Acceleration of LightGBM for Machine Learning Applications

Alish Kanani, Swar Vaidya, H. Agarwal
{"title":"LightFPGA: Scalable and Automated FPGA Acceleration of LightGBM for Machine Learning Applications","authors":"Alish Kanani, Swar Vaidya, H. Agarwal","doi":"10.1109/VDAT53777.2021.9600900","DOIUrl":null,"url":null,"abstract":"FPGAs are used for high speed machine learning inference, and are proving to be much faster and efficient than CPU. LightGBM is a gradient boosting algorithm that uses decision tree-based learners. In this work, we have developed a library named LightFPGA which extracts details from a pre-trained LightGBM model and generates the corresponding Verilog RTL for FPGA implementation. Since the whole process of code generation is automated, the design is scalable to the LightGBM model trained for any given dataset. Further, the library performs testing and accuracy verification of the implementation by generating testbench. Our results show that using LightFPGA, around 100–400× improvement in latency as compared to CPU can be achieved without any reduction in inference accuracy. Further, it has been observed in the tests performed, that the FPGA implementation of LightGBM offers around 7–8 folds of power reduction, as compared to CPU.","PeriodicalId":122393,"journal":{"name":"2021 25th International Symposium on VLSI Design and Test (VDAT)","volume":"55 6","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-09-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 25th International Symposium on VLSI Design and Test (VDAT)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/VDAT53777.2021.9600900","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

FPGAs are used for high speed machine learning inference, and are proving to be much faster and efficient than CPU. LightGBM is a gradient boosting algorithm that uses decision tree-based learners. In this work, we have developed a library named LightFPGA which extracts details from a pre-trained LightGBM model and generates the corresponding Verilog RTL for FPGA implementation. Since the whole process of code generation is automated, the design is scalable to the LightGBM model trained for any given dataset. Further, the library performs testing and accuracy verification of the implementation by generating testbench. Our results show that using LightFPGA, around 100–400× improvement in latency as compared to CPU can be achieved without any reduction in inference accuracy. Further, it has been observed in the tests performed, that the FPGA implementation of LightGBM offers around 7–8 folds of power reduction, as compared to CPU.
LightFPGA:用于机器学习应用的可扩展和自动FPGA加速
fpga用于高速机器学习推理,并且被证明比CPU更快更高效。LightGBM是一种梯度增强算法,它使用基于决策树的学习器。在这项工作中,我们开发了一个名为LightFPGA的库,它从预训练的LightGBM模型中提取细节,并生成相应的Verilog RTL用于FPGA实现。由于整个代码生成过程是自动化的,因此设计可扩展到针对任何给定数据集训练的LightGBM模型。此外,该库通过生成测试台架来执行实现的测试和准确性验证。我们的结果表明,与CPU相比,使用LightFPGA可以在不降低推理精度的情况下实现大约100 - 400倍的延迟改进。此外,在执行的测试中观察到,与CPU相比,LightGBM的FPGA实现提供了大约7-8倍的功耗降低。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信