Skip to main content
QUICK REVIEW

[Paper Review] The Weighted Tsetlin Machine: Compressed Representations with Weighted Clauses

Adrian Phoulady, Ole‐Christoffer Granmo|arXiv (Cornell University)|Nov 28, 2019
Optimization and Search ProblemsComputer Science13 references5 citations
TL;DR

The Weighted Tsetlin Machine (WTM) introduces real-valued clause weights to compress pattern representations in the Tsetlin Machine, enabling fewer clauses to achieve comparable or better accuracy. By learning both clause composition and weights jointly, and replacing Bernoulli sampling with binomial-based sampling, the WTM reduces computation time and memory usage by up to 50× while maintaining or improving performance on MNIST, IMDb, and Connect-4.

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

Motivation & Objective

  • To reduce the computational and memory overhead of the Tsetlin Machine (TM) by enabling clause compression through real-valued weights.
  • To improve training efficiency by replacing repeated Bernoulli trials with binomial sampling followed by uniform sampling.
  • To maintain or enhance classification accuracy while significantly reducing the number of clauses required.
  • To enable fine-grained control over clause impact through continuous weighting, improving model expressiveness and interpretability.

Proposed method

  • Introduces weighted conjunctive clauses where each clause outputs a continuous value instead of a binary result, allowing one clause to represent multiple unweighted clauses.
  • Learns both clause composition and real-valued weights simultaneously using a novel feedback mechanism combining Type I and Type II learning automata feedback.
  • Replaces k independent Bernoulli trials with a single binomial draw of size pk, followed by uniform sampling, to generate feedback more efficiently.
  • Uses majority voting over weighted clause outputs to make final predictions, with weights learned during training to maximize accuracy.
  • Employs a modified learning automaton update rule that incorporates weight adjustments based on feedback, enabling dynamic clause impact tuning.
  • Applies the method to binary classification tasks using propositional logic clauses formed from binary features, with weights learned end-to-end.

Experimental results

Research questions

  • RQ1Can real-valued clause weights in the Tsetlin Machine reduce the number of clauses needed without sacrificing accuracy?
  • RQ2Does the proposed binomial sampling scheme significantly reduce training time compared to standard Bernoulli sampling?
  • RQ3Can the WTM achieve higher test accuracy than the standard TM with the same number of clauses?
  • RQ4How does the WTM perform in terms of memory and computation efficiency across diverse datasets like MNIST, IMDb, and Connect-4?

Key findings

  • On MNIST, the WTM achieved 98.63% test accuracy with only 1/4 the number of clauses required by the standard TM.
  • On IMDb, the WTM reached 90.25% accuracy with 25,000 clauses per class, outperforming the TM’s 89.80% under the same conditions.
  • On Connect-4, the WTM achieved 87.32% accuracy with 200 clauses, matching the TM’s performance using 10,000 clauses—50× fewer clauses.
  • The binomial sampling scheme reduced sample generation time by a factor of 7 compared to standard Bernoulli sampling.
  • With equal clause counts, the WTM consistently outperformed the TM on all three datasets, demonstrating superior expressiveness and efficiency.
  • The WTM reduced average training time per epoch by 19% on Connect-4 and 12% on IMDb, despite the added computational cost of weight updates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.