Memory-efficient Random Forests in FPGA SmartNICs
Abstract
Random Forests (RF) have been a popular Machine Learning (ML) algorithm for more than two decades. This success can be attributed to its simplicity, effectiveness and explainability. However, implementing them in a high-speed programmable data plane is not trivial. To make predictions, i.e., inference, RFs must traverse each tree from the root to the leaf by comparing the features vector at each split node. This process is particularly challenging in network devices where memory is limited, and packet processing cannot be delayed, i.e., predictions occur at line rate. Nevertheless, this implementation is crucial for incorporating recent ML advances in the network, which could benefit use cases such as scheduling, measurements, and routing [1]. Prior studies such as Planter [4] have examined the implementation of RF in network switches, mapping trees to Match-Action Tables (MAT). Another line of work focused on RF implementations optimized for FPGA, mapping tree layers to pipeline stages as done in [2]. Such approaches use different tree representations that naturally come with their strengths and weaknesses depending on the trees' sparsity, depth, and input features. In this work we (1) propose a novel representation for FPGA-based Random Forests, (2) compare it against state-of-the-art implementations in terms of memory and computation requirements, and (3) evaluate our design on a flow classification task using CAIDA traffic traces.
BibTeX
@inproceedings{monterubbiano2023memory,
author = {Andrea Monterubbiano and Raphaël Azorin and Gabriele Castellano and Massimo Gallo and Salvatore Pontarelli and Dario Rossi},
title = {{Memory-efficient Random Forests in FPGA SmartNICs}},
booktitle = {CoNEXT (Short Papers)},
year = {2023},
doi = {10.1145/3624354.3630089},
}Ask Althea to put this paper to the test.
Loading related content...