The Weighted Tsetlin Machine: Compressed Representations with Weighted Clauses

Adrian Phoulady, Ole-Christoffer Granmo, Saeed Rahimi Gorji, Hady Ahmady Phoulady
11/28/2019
cs.LGcs.AIstat.ML

Official code: cair/pyTsetlinMachine (156 stars, MIT, last commit 2025-04-01). 1 more implementation below.

Abstract

The Tsetlin Machine (TM) is an interpretable mechanism for pattern recognition that constructs conjunctive clauses from data. The clauses capture frequent patterns with high discriminating power, providing increasing expression power with each additional clause. However, the resulting accuracy gain comes at the cost of linear growth in computation time and memory usage. In this paper, we present the Weighted Tsetlin Machine (WTM), which reduces computation time and memory usage by weighting the clauses. Real-valued weighting allows one clause to replace multiple, and supports fine-tuning the impact of each clause. Our novel scheme simultaneously learns both the composition of the clauses and their weights. Furthermore, we increase training efficiency by replacing $k$ Bernoulli trials of success probability $p$ with a uniform sample of average size $p k$, the size drawn from a binomial distribution. In our empirical evaluation, the WTM achieved the same accuracy as the TM on MNIST, IMDb, and Connect-4, requiring only $1/4$, $1/3$, and $1/50$ of the clauses, respectively. With the same number of clauses, the WTM outperformed the TM, obtaining peak test accuracies of respectively $98.63\%$, $90.37\%$, and $87.91\%$. Finally, our novel sampling scheme reduced sample generation time by a factor of $7$.

View on arXivView PDF

Code Implementations(2)

MIT

Implements the Tsetlin Machine, Convolutional Tsetlin Machine, Regression Tsetlin Machine, Weighted Tsetlin Machine, and Embedding Tsetlin Machine, with support for continuous features, multigranularity, clause indexing, and literal budget

15633C, PythonJun 11, 20191 years agoMIT
bandit-learningclassificationconvolutionembeddingfrequent-pattern-mining+6 more

Weighted Tsetlin Machine in C++

111C++, PythonDec 12, 20196 years ago

Similar Papers

Cite this paper

@article{phoulady2019weighted,
  title  = {The Weighted Tsetlin Machine: Compressed Representations with Weighted Clauses},
  author = {Adrian Phoulady and Ole-Christoffer Granmo and Saeed Rahimi Gorji and Hady Ahmady Phoulady},
  year   = {2019},
  eprint = {1911.12607},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1911.12607}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1911.12607.svg)](https://codeofpaper.com/paper/1911.12607)

Discussion