Memory-efficient random forests in FPGA SmartNICs

Monterubbiano, Andrea; Azorin, Raphael; Castellano, Gabriele; Gallo, Massimo; Pontarelli, Salvatore; Rossi, Dario
CoNEXT 2023, In Companion of the 19th ACM International Conference on Emerging Networking EXperiments and Technologies, 5-8 December 2023, Paris, France

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.


DOI
Type:
Poster / Demo
City:
Paris
Date:
2023-12-05
Department:
Data Science
Eurecom Ref:
7749
Copyright:
© ACM, 2023. This is the author's version of the work. It is posted here by permission of ACM for your personal use. Not for redistribution. The definitive version was published in CoNEXT 2023, In Companion of the 19th ACM International Conference on Emerging Networking EXperiments and Technologies, 5-8 December 2023, Paris, France https://doi.org/10.1145/3624354.3630089
See also:

PERMALINK : https://www.eurecom.fr/publication/7749