{"title":"基于fpga的提前终止优化的流水线kNN加速器","authors":"Sandra Djosic, Milica Jovanovic, 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, Milica Jovanovic, 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}
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''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.