Dynamic Tsetlin Machine Accelerators for On-Chip Training at the Edge using FPGAs
Gang Mao, Tousif Rahman, Sidharth Maheshwari, Bob Pattison, Zhuang Shao, Rishad Shafik, Alex Yakovlev
TL;DR
The paper tackles the challenge of on-edge training for privacy-sensitive IoT data, where backpropagation-heavy DNN training is impractical on resource-constrained hardware. It presents a Dynamic Tsetlin Machine (DTM) accelerator implemented on an FPGA that supports both Vanilla TM and Coalesced TM (CoTM) through runtime reconfiguration, partial clause computation, and LUT/BRAM-friendly arithmetic. Key contributions include a modular five-module architecture (Clause Matrix, Weight Matrix, Weight Update Matrix, TA Update Matrix, Argmax), a PRNG cluster for on-chip randomness, and mechanisms to skip TA updates when unused, enabling energy-efficient, adaptable edge training. Evaluation on MNIST, Fashion-MNIST, KMNIST, and KWS-6 demonstrates competitive GOP/s/W, flexible TM switching, and significant training-time reductions, paving the way for online recalibration and personalized edge learning. Future work envisions extending to Convolution and Composite TM to handle larger datasets and more complex tasks.
Abstract
The increased demand for data privacy and security in machine learning (ML) applications has put impetus on effective edge training on Internet-of-Things (IoT) nodes. Edge training aims to leverage speed, energy efficiency and adaptability within the resource constraints of the nodes. Deploying and training Deep Neural Networks (DNNs)-based models at the edge, although accurate, posit significant challenges from the back-propagation algorithm's complexity, bit precision trade-offs, and heterogeneity of DNN layers. This paper presents a Dynamic Tsetlin Machine (DTM) training accelerator as an alternative to DNN implementations. DTM utilizes logic-based on-chip inference with finite-state automata-driven learning within the same Field Programmable Gate Array (FPGA) package. Underpinned on the Vanilla and Coalesced Tsetlin Machine algorithms, the dynamic aspect of the accelerator design allows for a run-time reconfiguration targeting different datasets, model architectures, and model sizes without resynthesis. This makes the DTM suitable for targeting multivariate sensor-based edge tasks. Compared to DNNs, DTM trains with fewer multiply-accumulates, devoid of derivative computation. It is a data-centric ML algorithm that learns by aligning Tsetlin automata with input data to form logical propositions enabling efficient Look-up-Table (LUT) mapping and frugal Block RAM usage in FPGA training implementations. The proposed accelerator offers 2.54x more Giga operations per second per Watt (GOP/s per W) and uses 6x less power than the next-best comparable design.
