# A Reconfigurable FPGA-Based ML Library for Kernel Methods

- Institution: CERN
- Department: FPGA Developers' Forum (FDF)
- Speaker: Yousef Alnaser
- Year: 2025
- Language: English
- Source: [CERN](https://videos.cern.ch/record/3021066)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Teens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

Kernel methods are fundamental in machine learning. They excel in regression, classification, and dimensionality reduction. They model nonlinear relationships and are widely used in many fields such as in face recognition, wind forecasting, and molecular energy estimation. However, their reliance on a kernel matrix leads to quadratic complexity in computation and storage, which makes large-scale datasets challenging. We propose an FPGA-accelerated library with high parallelism and efficient data movement. The library is accessed from Python via PYNQ with a plug-and-play solution without requiring hardware expertise. It currently supports Kernel Ridge Regression and Gaussian Processes. Five kernel functions are supported, with Partial Reconfiguration to switch between them. We achieve 30x speedup compared to Python libraries on a Kria SOM. Future work includes extending support to other kernel methods, and heterogeneous FPGA architectures like AMD Versal, with more advanced kernels..

0:00:00 Slide 1

0:02:07 Slide 2

0:03:37 Slide 3

0:05:03 Slide 4

0:07:09 Slide 5

0:09:08 Slide 6

0:10:20 Slide 7

0:11:49 Slide 8

0:13:11 Slide 9

0:15:26 Slide 10

0:18:13 Slide 11

0:20:50 Slide 12

0:22:01 Slide 13

0:23:10 Slide 14

## Lectures

1. [A Reconfigurable FPGA-Based ML Library for Kernel Methods](https://invisiblenetwork.ai/learn/cern/3021066/54cc4c8e6010), 29 min (CERN's player)
