基于fpga的提前终止优化的流水线kNN加速器

IF 2.5 3区 工程技术 Q3 COMPUTER SCIENCE, HARDWARE & ARCHITECTURE
Sandra Djosic, Milica Jovanovic, Goran Lj,Djordjevic
{"title":"基于fpga的提前终止优化的流水线kNN加速器","authors":"Sandra Djosic,&nbsp;Milica Jovanovic,&nbsp;Goran Lj,Djordjevic","doi":"10.1016/j.vlsi.2025.102515","DOIUrl":null,"url":null,"abstract":"<div><div>In this paper, we present the design and implementation of a high-throughput pipelined k-Nearest Neighbors (kNN) hardware accelerator optimized for System-on-Chip (SoC) FPGA platforms. To address the computational intensity of extensive distance calculations in kNN, we propose a novel approach that combines algorithmic and architectural optimizations. Central to our design is an early termination mechanism that reduces redundant computations by halting distance evaluations exceeding the current kNN radius. We enhance the baseline early termination strategy by incorporating techniques for estimating initial distances and optimizing iterative computations for both Manhattan and Euclidean distance metrics. These algorithmic improvements are supported by a pipelined hardware architecture featuring checkpoint-based early termination, drip-feeding mechanisms, and configurable pipeline stages. Additionally, we develop a custom software tool that enables design space exploration, allowing fine-tuned configuration of architectural parameters for optimal performance and resource efficiency across diverse datasets. The proposed design is implemented and evaluated on an AMD Zynq-7010 SoC FPGA platform. Experimental results demonstrate significant throughput improvements, delivering up to a 4x speedup over the baseline brute-force kNN pipeline architecture, while maintaining low resource utilization. These results highlight the effectiveness of our kNN accelerator for embedded applications requiring high throughput machine learning capabilities.</div></div>","PeriodicalId":54973,"journal":{"name":"Integration-The Vlsi Journal","volume":"105 ","pages":"Article 102515"},"PeriodicalIF":2.5000,"publicationDate":"2025-08-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"FPGA-based pipelined kNN accelerator with early termination optimization\",\"authors\":\"Sandra Djosic,&nbsp;Milica Jovanovic,&nbsp;Goran Lj,Djordjevic\",\"doi\":\"10.1016/j.vlsi.2025.102515\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><div>In this paper, we present the design and implementation of a high-throughput pipelined k-Nearest Neighbors (kNN) hardware accelerator optimized for System-on-Chip (SoC) FPGA platforms. To address the computational intensity of extensive distance calculations in kNN, we propose a novel approach that combines algorithmic and architectural optimizations. Central to our design is an early termination mechanism that reduces redundant computations by halting distance evaluations exceeding the current kNN radius. We enhance the baseline early termination strategy by incorporating techniques for estimating initial distances and optimizing iterative computations for both Manhattan and Euclidean distance metrics. These algorithmic improvements are supported by a pipelined hardware architecture featuring checkpoint-based early termination, drip-feeding mechanisms, and configurable pipeline stages. Additionally, we develop a custom software tool that enables design space exploration, allowing fine-tuned configuration of architectural parameters for optimal performance and resource efficiency across diverse datasets. The proposed design is implemented and evaluated on an AMD Zynq-7010 SoC FPGA platform. Experimental results demonstrate significant throughput improvements, delivering up to a 4x speedup over the baseline brute-force kNN pipeline architecture, while maintaining low resource utilization. These results highlight the effectiveness of our kNN accelerator for embedded applications requiring high throughput machine learning capabilities.</div></div>\",\"PeriodicalId\":54973,\"journal\":{\"name\":\"Integration-The Vlsi Journal\",\"volume\":\"105 \",\"pages\":\"Article 102515\"},\"PeriodicalIF\":2.5000,\"publicationDate\":\"2025-08-21\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Integration-The Vlsi Journal\",\"FirstCategoryId\":\"5\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S0167926025001725\",\"RegionNum\":3,\"RegionCategory\":\"工程技术\",\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q3\",\"JCRName\":\"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Integration-The Vlsi Journal","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0167926025001725","RegionNum":3,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q3","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0

摘要

在本文中,我们提出了一种针对片上系统(SoC) FPGA平台优化的高吞吐量流水线k-近邻(kNN)硬件加速器的设计和实现。为了解决kNN中广泛距离计算的计算强度问题,我们提出了一种结合算法和架构优化的新方法。我们设计的核心是一个早期终止机制,通过停止超过当前kNN半径的距离评估来减少冗余计算。我们通过结合估算初始距离的技术和优化曼哈顿和欧几里得距离度量的迭代计算来增强基线早期终止策略。这些算法的改进得到了流水线硬件架构的支持,该架构具有基于检查点的早期终止、滴注机制和可配置的流水线阶段。此外,我们还开发了一种定制软件工具,可以进行设计空间探索,允许对架构参数进行微调配置,以实现跨不同数据集的最佳性能和资源效率。该设计在AMD Zynq-7010 SoC FPGA平台上进行了实现和评估。实验结果显示了显著的吞吐量改进,在保持低资源利用率的同时,比基线暴力kNN管道架构提供了高达4倍的加速。这些结果突出了我们的kNN加速器对于需要高吞吐量机器学习能力的嵌入式应用的有效性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
FPGA-based pipelined kNN accelerator with early termination optimization
In this paper, we present the design and implementation of a high-throughput pipelined k-Nearest Neighbors (kNN) hardware accelerator optimized for System-on-Chip (SoC) FPGA platforms. To address the computational intensity of extensive distance calculations in kNN, we propose a novel approach that combines algorithmic and architectural optimizations. Central to our design is an early termination mechanism that reduces redundant computations by halting distance evaluations exceeding the current kNN radius. We enhance the baseline early termination strategy by incorporating techniques for estimating initial distances and optimizing iterative computations for both Manhattan and Euclidean distance metrics. These algorithmic improvements are supported by a pipelined hardware architecture featuring checkpoint-based early termination, drip-feeding mechanisms, and configurable pipeline stages. Additionally, we develop a custom software tool that enables design space exploration, allowing fine-tuned configuration of architectural parameters for optimal performance and resource efficiency across diverse datasets. The proposed design is implemented and evaluated on an AMD Zynq-7010 SoC FPGA platform. Experimental results demonstrate significant throughput improvements, delivering up to a 4x speedup over the baseline brute-force kNN pipeline architecture, while maintaining low resource utilization. These results highlight the effectiveness of our kNN accelerator for embedded applications requiring high throughput machine learning capabilities.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
Integration-The Vlsi Journal
Integration-The Vlsi Journal 工程技术-工程:电子与电气
CiteScore
3.80
自引率
5.30%
发文量
107
审稿时长
6 months
期刊介绍: Integration''s aim is to cover every aspect of the VLSI area, with an emphasis on cross-fertilization between various fields of science, and the design, verification, test and applications of integrated circuits and systems, as well as closely related topics in process and device technologies. Individual issues will feature peer-reviewed tutorials and articles as well as reviews of recent publications. The intended coverage of the journal can be assessed by examining the following (non-exclusive) list of topics: Specification methods and languages; Analog/Digital Integrated Circuits and Systems; VLSI architectures; Algorithms, methods and tools for modeling, simulation, synthesis and verification of integrated circuits and systems of any complexity; Embedded systems; High-level synthesis for VLSI systems; Logic synthesis and finite automata; Testing, design-for-test and test generation algorithms; Physical design; Formal verification; Algorithms implemented in VLSI systems; Systems engineering; Heterogeneous systems.
×
引用
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学术官方微信