The Convolutional Tsetlin Machine

Lei Jiao, Ole-Christoffer Granmo, Sondre Glimsdal, Lei Jiao 0001, Morten Goodwin, Christian W. Omlin, Geir Thore BergearXiv 2019

Introduction

Deep learning, particularly Convolutional Neural Networks (CNNs), has revolutionized computer vision. However, these models are often criticized as "black boxes" due to their lack of interpretability. Furthermore, the reliance on intensive floating-point multiplications makes them computationally expensive and difficult to deploy on low-power edge devices. To address these challenges, the Convolutional Tsetlin Machine (CTM) is proposed as a novel architecture that replaces traditional weights with interpretable propositional logic.

Methodology

The CTM extends the Tsetlin Machine (TM), a logic-based learner. At its core, the TM utilizes a collective of Tsetlin Automata to learn conjunctive clauses (e.g., "If Pixel A is ON AND Pixel B is OFF..."). These automata decide whether to include or exclude specific literals—features or their negations—based on training feedback.

The internal logic of a Tsetlin Machine, where automata states determine the inclusion or exclusion of literals in a clause.

The "Convolutional" part of the CTM introduces several key innovations to adapt the TM for image data:

  1. Clauses as Filters: Instead of global application, each clause acts as a $W \times W$ convolutional filter that slides across image patches.
  2. Location Awareness: Image patches are augmented with bit-encoded $(x, y)$ coordinates to provide spatial context.
  3. Logical Pooling: A clause triggers for the entire image if it evaluates to true for at least one patch, effectively performing a logical OR operation across all patches.
  4. Stochastic Learning: Training involves a decentralized feedback mechanism. When a clause requires an update, a patch that caused it to trigger is randomly selected for feedback, facilitating local feature learning without backpropagation.
Architecture of the Convolutional Tsetlin Machine, illustrating how clauses operate as filters on image patches to produce a final classification.

Experimental Results

The CTM was evaluated on several benchmarks, including MNIST, Kuzushiji-MNIST (K-MNIST), Fashion-MNIST, and a synthetic 2D Noisy XOR dataset. The results demonstrate that the CTM achieves competitive accuracy while maintaining a significantly smaller memory footprint compared to standard deep learning models.

Dataset Peak Accuracy
MNIST 99.4%
K-MNIST 96.31%
Fashion-MNIST 91.5%
2D Noisy XOR 100.0%

Notably, a CTM with 250 clauses per class requires only 127 kB of memory, which is orders of magnitude less than a typical ResNet (~19 MB) or even a simple 3-layer CNN (~8 MB).

Discussion and Conclusion

The CTM offers a transparent alternative to CNNs, as its learned clauses can be directly interpreted as bit patterns representing visual features. Its reliance on bitwise logic (AND, OR, NOT) eliminates the need for power-hungry Multiplication-Accumulation (MAC) units, making it highly suitable for FPGA and ASIC implementations. While currently limited to single-layer architectures and binary inputs, future work aims to develop multi-layered "Deep CTMs" to capture more complex hierarchical features.

Summary updated

BibTeX
@misc{jiao2019convolutional,
  author = {Lei Jiao and Ole-Christoffer Granmo and Sondre Glimsdal and Lei Jiao and Morten Goodwin and Christian W. Omlin and Geir Thore Berge},
  title = {{The Convolutional Tsetlin Machine}},
  year = {2019},
  eprint = {1905.09688},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.09688},
}
Figure