A Methodology for Transparent Logic-Based Classification Using a Multi-Task Convolutional Tsetlin Machine

Mayur Kishor Shende, Ole‐Christoffer Granmo, Runar Helin, V. Zadorozhny, Rishad Shafik

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:

  1. 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.
  2. 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.

Mapping of convolutional clauses from the Clause Bank to spatial locations for interpretation.

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).

Local interpretations for MNIST digits showing positive (red) and negative (blue) literal activations.

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

Abstract

The Tsetlin Machine (TM) is a novel machine learning paradigm that employs finite-state automata for learning and utilizes propositional logic to represent patterns. Due to its simplistic approach, TMs are inherently more interpretable than learning algorithms based on Neural Networks. The Convolutional TM has shown comparable performance on various datasets such as MNIST, K-MNIST, F-MNIST and CIFAR-2. In this paper, we explore the applicability of the TM architecture for large-scale multi-channel (RGB) image classification. We propose a methodology to generate both local interpretations and global class representations. The local interpretations can be used to explain the model predictions while the global class representations aggregate important patterns for each class. These interpretations summarize the knowledge captured by the convolutional clauses, which can be visualized as images. We evaluate our methods on MNIST and CelebA datasets, using models that achieve 98.5% accuracy on MNIST and 86.56% F1-score on CelebA (compared to 88.07% for ResNet50) respectively. We show that the TM performs competitively to this deep learning model while maintaining its interpretability, even in large-scale complex training environments. This contributes to a better understanding of TM clauses and provides insights into how these models can be applied to more complex and diverse datasets.
BibTeX
@misc{shende2025methodology,
  author = {Mayur Kishor Shende and Ole‐Christoffer Granmo and Runar Helin and V. Zadorozhny and Rishad Shafik},
  title = {{A Methodology for Transparent Logic-Based Classification Using a Multi-Task Convolutional Tsetlin Machine}},
  year = {2025},
  eprint = {2510.01906},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.01906},
}

Loading related content...

Figure