Abstract
In this article, we introduce a novel variant of the Tsetlin machine (TM) that randomly drops clauses, the key learning elements of a TM. In effect, TM with drop clause ignores a random selection of the clauses in each epoch, selected according to a predefined probability. In this way, additional stochasticity is introduced in the learning phase of TM. To explore the effects drop clause has on accuracy, training time, interpretability and robustness, we conduct extensive experiments on nine benchmark datasets in natural language processing (NLP) and image classification. Our proposed model outperforms baseline machine learning algorithms by a wide margin and achieves competitive performance in comparison with recent deep learning models such as BERT and AlexNET-DFA. In brief, we observe up to +10% increase in accuracy and 2x to 4x faster learning compared with standard TM. We further employ the Convolutional TM to document interpretable results on the CIFAR datasets, visualizing how the heatmaps produced by the TM become more interpretable with drop clause.
Introduction
While deep learning has achieved state-of-the-art results across numerous domains, its "black box" nature remains a significant hurdle for adoption in high-stakes environments like healthcare or finance. The Tsetlin Machine (TM) offers a compelling alternative: a natively interpretable algorithm that learns using propositional logic (AND/OR rules) rather than complex calculus. However, standard TMs often suffer from overfitting and redundancy, where multiple clauses capture the same noise or patterns in the training data.
To address these challenges, we propose Drop Clause (DC), a regularization technique that introduces structural stochasticity into the TM learning process.
The Drop Clause Mechanism
The core idea of Drop Clause is inspired by Dropout in neural networks but adapted for the discrete logic of Tsetlin Machines. In a standard TM, every clause is updated during every training epoch. With Drop Clause, each clause is ignored with a predefined probability $p$ during each training iteration.
By "dropping" clauses, the model is forced to mobilize its remaining clauses to solve the task. This prevents any single group of clauses from becoming a "crutch" for a specific pattern, forcing the model to learn a more diverse and unique set of rules. This structural randomness encourages the model to find multiple "logical paths" to the correct answer, enhancing generalization.
Experimental Results
We evaluated Drop Clause across nine diverse benchmarks, including sentiment analysis (IMDb, MR), text categorization (R8, R52), and image classification (MNIST, CIFAR-10).
Performance and Efficiency
The introduction of Drop Clause led to significant performance gains. On the IMDb dataset, accuracy increased from 87.2% to 91.27%. On CIFAR-10, it rose from 69.3% to 75.1%. Beyond accuracy, Drop Clause significantly improves computational efficiency. Because fewer clauses are active during training, the computational load is reduced, leading to training speedups of 2x to 4x compared to standard TMs.
Robustness
We also evaluated learning robustness by introducing corruptions in the test data (e.g., MNIST-C). On the corrupted MNIST-C dataset, the accuracy of a standard Convolutional TM (CTM) dropped by over 11%, while the Drop Clause version only dropped by 7.7%. This suggests that by avoiding over-indexing on fragile, redundant features, the model becomes more resilient to out-of-distribution noise.
Interpretability and Qualitative Analysis
One of the primary advantages of the TM is its interpretability. Drop Clause enhances this by reducing redundancy, ensuring that the remaining clauses represent distinct and meaningful patterns.
In NLP tasks, as seen in Figure 3, the Drop Clause TM identifies a wider variety of descriptive words and negations (e.g., "NOT witty," "NOT honest") compared to the vanilla version, which often repeats the same few patterns. This diversity leads to more robust sentiment predictions.
For image classification, we utilized the Convolutional Tsetlin Machine (CTM) to generate heatmaps. These heatmaps visualize which parts of an image the clauses are focusing on to make a classification.
As shown in Figure 1, TMs trained with Drop Clause localize objects (such as ships or planes) with much higher precision than vanilla versions. The resulting heatmaps are cleaner and more aligned with the actual object boundaries, providing a clear "explanation" for the model's decision.
Limitations and Future Work
Despite these advancements, Tsetlin Machines still face the "Boolean Gap." TMs require Boolean input, and the process of binarizing 8-bit color images inevitably loses information. This is likely why TMs still lag behind state-of-the-art deep neural networks on complex datasets like CIFAR-100. Additionally, TMs do not yet natively support the high-dimensional continuous embeddings common in modern NLP. Future research will focus on improving the "Booleanization" process and integrating high-dimensional features while maintaining the TM's inherent transparency and speed.
Conclusion
Drop Clause is a simple yet powerful modification to the Tsetlin Machine architecture. By introducing structural stochasticity, it simultaneously improves accuracy, slashes training time, and enhances both the robustness and interpretability of the resulting logic rules. This makes the Tsetlin Machine an even more viable candidate for applications where both performance and transparency are paramount.
Summary updated