NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

An Optimized Toolbox for Advanced Image Processing with Tsetlin Machine Composites

Ylva Grønningsæter, Halvor S. Smørvik, Ole-Christoffer Granmo · DOI

Abstract: The Tsetlin Machine (TM) has achieved competitive results on several image classification benchmarks, including MNIST, K-MNIST, F-MNIST, and CIFAR-2. However, color image classification is arguably still in its infancy for TMs, with CIFAR-10 being a focal point for tracking progress. Over the past few years, TM's CIFAR-10 accuracy has increased from around 61% in 2020 to 75.1% in 2023 with the introduction of Drop Clause. In this paper, we leverage the recently proposed TM Composites architecture and introduce a range of TM Specialists that use various image processing techniques. These include Canny edge detection, Histogram of Oriented Gradients, adaptive mean thresholding, adaptive Gaussian thresholding, Otsu's thresholding, color thermometers, and adaptive color thermometers. In addition, we conduct a rigorous hyperparameter search, where we uncover optimal hyperparameters for several of the TM Specialists. The result is a toolbox that provides new state-of-the-art results on CIFAR-10 for TMs with an accuracy of 82.8%. In conclusion, our toolbox of TM Specialists forms a foundation for new TM applications and a landmark for further research on TM Composites in image analysis.

1. Introduction

Tsetlin Machines (TMs) represent a significant advancement in interpretable machine learning, utilizing propositional logic and Tsetlin Automata to derive human-readable rules. While deep learning architectures like Vision Transformers (ViT) achieve high accuracy, they often function as "black boxes" with immense energy requirements. TMs offer a transparent alternative but have historically struggled with the complexity of color image classification. On the CIFAR-10 benchmark, TM accuracy has progressed from approximately 61% in 2020 to 75.1% in 2023. This work aims to bridge the remaining performance gap by introducing a "TM Composite" architecture that leverages a diverse toolbox of image processing techniques to reach a new state-of-the-art.

2. Methodology

The proposed architecture utilizes the TM Composites framework, where multiple independent "Specialists" are trained on distinct representations of the input data. The final classification is determined by normalizing and aggregating the votes from these specialists.

The proposed workflow: from raw data to a team of TM Specialists.

A critical component of this approach is the conversion of raw color images into Boolean bit-strings suitable for TM processing. We employ seven distinct Booleanization techniques:

  • Canny Edge Detection for structural boundaries.
  • Histogram of Oriented Gradients (HOG) for local shape capture.
  • Adaptive Mean and Gaussian Thresholding for varying illumination.
  • Otsu’s Thresholding for automated intensity thresholding.
  • Color Thermometers for discretized color representation.
  • Adaptive Color Thermometers, a novel method that places thresholds based on image color histogram peaks.

In total, 22 specialists were developed by applying these techniques to both original and horizontally flipped (augmented) CIFAR-10 data. Hyperparameter optimization was conducted using Optuna to maximize the performance of each individual specialist.

3. Results and Discussion

The experimental results on the CIFAR-10 dataset demonstrate the efficacy of the composite approach. The final TM Composite achieved a new state-of-the-art accuracy of 82.8%, representing a 7.7 percentage point improvement over previous TM benchmarks.

Detailed accuracy results for all 22 specialists and the final composite across different clause counts.

Key findings include:

  • Ensemble Synergy: The composite model significantly outperformed any single specialist. While the 5x5 Color Thermometer was the strongest individual performer (75.4%), the integration of diverse "views" provided complementary information that drove the overall accuracy higher.
  • Adaptive Discretization: The success of Adaptive Color Thermometers highlights the importance of data-driven thresholding, allowing the TM to focus on the most relevant color ranges.
  • Scalability: Performance generally improved with the number of clauses, although certain techniques like HOG reached saturation earlier. Notably, even with only 2,000 clauses per specialist, the composite reached 79.5% accuracy, surpassing previous records.

4. Conclusion

This study introduces an optimized toolbox of TM Specialists that establishes a new performance landmark for Tsetlin Machines on color image classification. By achieving 82.8% accuracy on CIFAR-10, we demonstrate that interpretable, logic-based models can become increasingly competitive with traditional deep learning. Future work will focus on extending this toolbox to more complex datasets and further exploring the balance between model complexity and interpretability.

Summary updated

BibTeX
@misc{grnningster2024optimized,
  author = {Ylva Grønningsæter and Halvor S. Smørvik and Ole-Christoffer Granmo},
  title = {{An Optimized Toolbox for Advanced Image Processing with Tsetlin Machine Composites}},
  year = {2024},
  eprint = {2406.00704},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00704},
}
Figure