Introduction
In contemporary machine learning, a persistent trade-off exists between predictive performance and model transparency. While deep neural networks (DNNs) achieve state-of-the-art accuracy, their "black box" nature—characterized by millions of non-linear transformations—poses significant risks in high-stakes domains such as healthcare and law. This paper presents a methodology to bridge this gap using Tsetlin Machines (TMs), a logic-based alternative that utilizes propositional "if-then" rules instead of complex calculus. The authors demonstrate how to scale Convolutional Tsetlin Machines to large-scale RGB image classification while maintaining full interpretability, achieving performance comparable to modern DNNs.
Problem Statement
The primary challenge in deep learning is the difficulty of tracing a prediction back to its underlying logic. Methods like Grad-CAM provide saliency maps, but these are often blurry approximations that do not explain the specific logical conditions met by the input. Tsetlin Machines are inherently transparent because they learn using bitwise operations (AND, OR, NOT). However, as these models scale to complex color images and incorporate convolutional layers, interpreting the resulting thousands of logical "clauses" becomes computationally and conceptually difficult. This research addresses this by proposing systematic ways to generate local interpretations for single images and global representations for entire classes.
Methods: The Convolutional Coalesced Tsetlin Machine
The core architecture employed is the Convolutional Coalesced Tsetlin Machine (CoTM). Unlike standard TMs, where each class maintains an independent set of rules, the CoTM shares a "Clause Bank" across all classes. This design is particularly efficient for multi-label tasks, such as identifying multiple facial attributes simultaneously.
To achieve transparency, the authors introduce two primary algorithms:
- Local Interpretation: This algorithm maps activated logical clauses back to original input pixels. When a clause "fires," the model identifies the specific pixel patch that triggered the logic.
- Global Class Representation: Utilizing a patch-counting mechanism, the model analyzes which clauses activate most frequently at specific coordinates across the training set. This allows for the reconstruction of a visual "prototype" for each class.
Data representation is handled via Thermometer Encoding, which binarizes pixel intensities and spatial coordinates. This allows the TM to process continuous ranges (e.g., "if the x-coordinate is within a specific bound") using discrete logic.
Experimental Setup and Datasets
The methodology was evaluated on two benchmark datasets:
- MNIST: A standard dataset of 70,000 grayscale handwritten digits used to validate the model's ability to learn basic shapes.
- CelebA (Celebrity Faces and Attributes): A large-scale dataset containing over 200,000 RGB images with 40 attributes. The researchers focused on a balanced subset of seven classes (e.g., "Smiling," "Male," "Wearing Lipstick") to test the model's scalability to complex color imagery.
A key hyperparameter identified was $q$, which serves as a lever for balancing precision and recall in multi-label scenarios, though its impact is less pronounced in simpler multi-class problems.
Results and Interpretation
The experimental results indicate that logic-based models can compete with deep learning architectures:
- MNIST: The CoTM achieved 98.5% accuracy, establishing a state-of-the-art benchmark for logic-based models.
- CelebA: The model reached an 86.56% F1-score, nearly matching the 88.07% achieved by a ResNet50 model. This demonstrates that the TM can reach within 2% of a world-class DNN while offering superior interpretability.
The qualitative success of the model is evident in its local interpretations. As shown in the MNIST examples, the model identifies specific strokes that define a digit. These visualizations reveal "positive literals" (patterns the model looks for), "negative literals" (patterns it expects to be absent), and "don't care" regions (ignored areas).
Conclusion and Future Work
This research demonstrates that Tsetlin Machines offer a viable, transparent alternative to black-box neural networks for image classification. By using bitwise operations, they are not only interpretable but also highly energy-efficient, making them suitable for edge computing.
Current limitations include a high sensitivity to class imbalance, which can degrade performance on rare attributes in datasets like CelebA. Future research will focus on developing robust training methods for imbalanced data, extending interpretation techniques to Natural Language Processing, and exploring "TM Composites" to further enhance accuracy on complex datasets.
Summary updated