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 "Convolutional" part of the CTM introduces several key innovations to adapt the TM for image data:
- Clauses as Filters: Instead of global application, each clause acts as a $W \times W$ convolutional filter that slides across image patches.
- Location Awareness: Image patches are augmented with bit-encoded $(x, y)$ coordinates to provide spatial context.
- 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.
- 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.
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