Runtime Tunable Tsetlin Machines for Edge Inference on eFPGAs
Tousif Rahman, Gang Mao, Bob Pattison, Sidharth Maheshwari, Marcos Sartori, Adrian Wheeldon, Rishad Shafik, Alex Yakovlev
TL;DR
This work addresses edge deployment of machine learning on resource-constrained eFPGAs by leveraging a bitwise, highly compressed Tsetlin Machine (TM). It proposes a runtime-tunable accelerator that uses Include-action compression to minimize LUT/FF usage and fit models in BRAM, enabling on-field recalibration without resynthesis. The design supports multiple configurations (base, single-core, multi-core) and header-based runtime reconfiguration via AXI streaming memory, achieving substantial energy savings and adaptability compared with MCU-based software and prior FPGA approaches like MATADOR. The results demonstrate practical edge deployments for small datasets (e.g., MNIST, CIFAR-2, KWS) with strong energy efficiency and the flexibility to recalibrate in the field when data drift occurs.
Abstract
Embedded Field-Programmable Gate Arrays (eFPGAs) allow for the design of hardware accelerators of edge Machine Learning (ML) applications at a lower power budget compared with traditional FPGA platforms. However, the limited eFPGA logic and memory significantly constrain compute capabilities and model size. As such, ML application deployment on eFPGAs is in direct contrast with the most recent FPGA approaches developing architecture-specific implementations and maximizing throughput over resource frugality. This paper focuses on the opposite side of this trade-off: the proposed eFPGA accelerator focuses on minimizing resource usage and allowing flexibility for on-field recalibration over throughput. This allows for runtime changes in model size, architecture, and input data dimensionality without offline resynthesis. This is made possible through the use of a bitwise compressed inference architecture of the Tsetlin Machine (TM) algorithm. TM compute does not require any multiplication operations, being limited to only bitwise AND, OR, NOT, summations and additions. Additionally, TM model compression allows the entire model to fit within the on-chip block RAM of the eFPGA. The paper uses this accelerator to propose a strategy for runtime model tuning in the field. The proposed approach uses 2.5x fewer Look-up-Tables (LUTs) and 3.38x fewer registers than the current most resource-fugal design and achieves up to 129x energy reduction compared with low-power microcontrollers running the same ML application.
