Tsetlin Machine-Based Image Classification FPGA Accelerator With On-Device Training
The Tsetlin Machine (TM) is a novel machine learning algorithm that uses Tsetlin automata (TAs) to define propositional logic expressions (clauses) for classification. This paper describes a field-programmable gate array (FPGA) accelerator for image classification based on the Convolutional Coalesced Tsetlin Machine. The accelerator classifies booleanized images of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$28\times 28$ </tex-math></inline-formula> pixels into 10 classes, and is configured with 128 clauses in a highly parallel architecture. To achieve fast clause evaluation and class prediction, the TA action signals and the clause weights per class are available from registers. Full on-device training is included, and the TAs are implemented with 34 Block RAM (BRAM) instances which operate in parallel. Each BRAM is addressed by the clause number and has a 72-bit word width that supports 8 TAs. The design is implemented in a Xilinx Zynq Ultrascale+ XCZU7 FPGA. Running at 50 MHz, the accelerator core achieves 134k image classifications per second, with an energy consumption per classification of <inline-formula xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink"> <tex-math notation="LaTeX">$13.3~\mu $ </tex-math></inline-formula> J. A single training epoch of 60k samples requires a processing time of 1.5 seconds. The accelerator obtains a test accuracy of 97.6% on MNIST, 84.1% on Fashion-MNIST and 82.8% on Kuzushiji-MNIST.
Authors
- Alex Yakovlev (ORCID: https://orcid.org/0000-0003-0826-9330)
- Svein Anders Tunheim (ORCID: https://orcid.org/0000-0001-7947-8485)
- Ole‐Christoffer Granmo (ORCID: https://orcid.org/0000-0002-7287-030X)
- Rishad Shafik (ORCID: https://orcid.org/0000-0001-5444-537X)
- Lei Jiao (ORCID: https://orcid.org/0000-0002-7115-6489)
Institutions
- University of Agder (NO)
- Newcastle University (GB)
Publication Details
- Journal
- IEEE Transactions on Circuits and Systems I Regular Papers
- Published
- 2024-12-23
- DOI
- https://doi.org/10.1109/tcsi.2024.3519191
- Citations
- 8
- Primary Topic
- Neural Networks and Applications
- Type
- article
- Field-Weighted Citation Impact
- 2.78
Funders
- Engineering and Physical Sciences Research Council