Drop Clause: Enhancing Performance, Robustness and Pattern Recognition Capabilities of the Tsetlin Machine

Jivitesh Sharma, Rohan Kumar Yadav, Ole-Christoffer Granmo, Lei JiaoAAAI 2023

Abstract

Tsetlin Machines (TMs) offer a transparent, logic-based alternative to the "black box" nature of Deep Neural Networks. However, TMs have historically struggled with an accuracy gap and overfitting. This paper introduces Drop Clause (DC), a novel regularization technique inspired by Dropout. By randomly disabling logical clauses during training, DC forces the model to learn more diverse and robust patterns. Our evaluation across nine NLP and image benchmarks shows that DC TM improves accuracy by up to 10%, speeds up training by 2x–4x, and achieves performance competitive with state-of-the-art models like BERT-Large.

1. Introduction

Modern AI is dominated by Deep Neural Networks (DNNs), which, despite their power, lack interpretability. Tsetlin Machines (TMs) address this by learning propositional logic rules (AND/OR) that are inherently human-readable. Despite their transparency, "vanilla" TMs often overfit to noisy data, capturing redundant patterns that limit generalization. Reducing the number of clauses typically degrades performance rather than solving the overfitting problem.

2. The Drop Clause Mechanism

The proposed Drop Clause (DC) technique introduces structural stochasticity into the TM learning process. In a TM, the fundamental units of learning are clauses—conjunctions of literals that vote on a class. With DC, a subset of these clauses is randomly deactivated in each training epoch with a probability $p$.

Figure 1: Logical clauses and feature importance in sentiment analysis. The model learns to associate specific keywords with sentiment through propositional logic.

This mechanism prevents the model from relying on a few dominant, potentially redundant clauses. Instead, it "mobilizes" underutilized clauses to capture a broader variety of discriminative patterns. This "forced diversity" ensures that the final ensemble of rules is more robust and generalized.

3. Experimental Setup

The researchers evaluated DC TM on nine diverse datasets:

  • NLP: IMDb, R8, R52, MR, and TREC.
  • Computer Vision: MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100.

DC TM was compared against traditional machine learning algorithms (SVM, Random Forest, XGBoost) and deep learning architectures (CNNs, BERT-Large).

4. Key Results and Discussion

4.1 Performance and Efficiency

DC TM consistently outperformed vanilla TMs, with accuracy improvements reaching up to 10%. Notably, on NLP tasks, DC TM achieved results competitive with BERT-Large. In image classification (CIFAR-10), it surpassed several binary neural network architectures.

Unlike Dropout in neural networks, which often increases computational overhead, Drop Clause significantly improves efficiency. Since deactivated clauses are not processed during training, the training time scales down proportionally with the drop rate, resulting in 2x to 4x faster training.

4.2 Robustness and Pattern Recognition

DC TM exhibits superior resilience to corrupted data, such as blurred images or synonym-swapped text. By learning a more diverse set of unique patterns, the model remains functional even when specific features are obscured.

Figure 2: Visual comparison of feature localization in a CIFAR-10 image. Drop Clause (p=0.5) results in more distinct and relevant feature capture compared to the vanilla TM (p=0).

Visual analysis via heatmaps confirms that DC TM focuses on more distinct, relevant features. As shown in Figure 2, the vanilla TM ($p=0$) produces "muddier" heatmaps, whereas DC TM ($p=0.5$) identifies clearer structural components of the object.

5. Conclusion

Drop Clause is a significant advancement for Tsetlin Machines, bridging the accuracy gap with deep learning while preserving interpretability. By inducing stochasticity, DC forces the model to learn a more robust and diverse set of logical rules. While challenges remain in handling high-complexity continuous data like CIFAR-100, DC TM represents a major step toward high-performance, transparent AI.

Summary updated

BibTeX
@inproceedings{sharma2023drop,
  author = {Jivitesh Sharma and Rohan Kumar Yadav and Ole-Christoffer Granmo and Lei Jiao},
  title = {{Drop Clause: Enhancing Performance, Robustness and Pattern Recognition Capabilities of the Tsetlin Machine}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i11.26588},
}
Figure