Skip to main content
QUICK REVIEW

[Paper Review] Tsetlin Machine for Solving Contextual Bandit Problems

Raihan Seraj, Jivitesh Sharma|arXiv (Cornell University)|Feb 4, 2022
Machine Learning and AlgorithmsComputer Science5 citations
TL;DR

This paper proposes an interpretable contextual bandit algorithm using the Tsetlin Machine (TM), leveraging propositional logic for decision-making through bit manipulation and Thompson sampling. Empirically, the TM-based learner outperforms other base learners on eight out of nine datasets while enabling transparent, logic-based interpretation of arm selection via propositional expressions.

ABSTRACT

This paper introduces an interpretable contextual bandit algorithm using Tsetlin Machines, which solves complex pattern recognition tasks using propositional logic. The proposed bandit learning algorithm relies on straightforward bit manipulation, thus simplifying computation and interpretation. We then present a mechanism for performing Thompson sampling with Tsetlin Machine, given its non-parametric nature. Our empirical analysis shows that Tsetlin Machine as a base contextual bandit learner outperforms other popular base learners on eight out of nine datasets. We further analyze the interpretability of our learner, investigating how arms are selected based on propositional expressions that model the context.

Motivation & Objective

  • To develop a contextual bandit algorithm that combines high performance with interpretability using propositional logic.
  • To adapt the Tsetlin Machine—a logic-based pattern recognizer—for online, incremental learning in contextual bandit settings.
  • To enable Thompson sampling in non-parametric, logic-based learners like the Tsetlin Machine through bootstrapping techniques.
  • To provide interpretable arm selection policies via explicit propositional expressions derived from learned clauses.
  • To empirically validate the TM-based bandit against popular base learners across diverse datasets.

Proposed method

  • The Tsetlin Machine is used as a base learner to model the expected reward for each arm using propositional logic clauses.
  • Each arm's selection policy is represented as a Disjunctive Normal Form (DNF) expression composed of logical ORs of clauses formed by logical ANDs of input features and their negations.
  • Bit-level operations are used to efficiently compute clause evaluations, enabling fast and interpretable inference.
  • Thompson sampling is implemented via bootstrapping, where multiple TMs are trained on resampled data to estimate posterior distributions over arm values.
  • The final arm selection is made by sampling from the posterior distribution over the TMs' predictions, with the highest-scoring arm selected.
  • Interpretability is achieved by extracting and analyzing the propositional logic expressions that govern arm selection for each context.

Experimental results

Research questions

  • RQ1Can the Tsetlin Machine be effectively adapted as a base learner for contextual bandit problems?
  • RQ2How can Thompson sampling be implemented in a non-parametric, logic-based model like the Tsetlin Machine?
  • RQ3To what extent does the Tsetlin Machine-based contextual bandit outperform existing base learners in terms of cumulative regret?
  • RQ4How interpretable are the arm selection policies generated by the Tsetlin Machine in terms of propositional logic expressions?
  • RQ5What is the impact of context binarization on performance, and can it be compensated by the model's inherent interpretability and efficiency?

Key findings

  • The Tsetlin Machine-based contextual bandit outperformed other base learners on eight out of nine benchmark datasets in terms of cumulative regret.
  • The proposed method achieved competitive performance with significantly reduced computational complexity due to bit-level operations and efficient clause evaluation.
  • Interpretability was demonstrated through explicit propositional logic expressions that directly link context features to arm selection, such as 'x10 ∨ x14 ∨ x15 ∨ x3' for Arm-1 on the Iris dataset.
  • The use of bootstrapped TMs enabled effective Thompson sampling in a non-parametric setting, maintaining both performance and interpretability.
  • Despite requiring context binarization, the model maintained strong performance, suggesting that the logical abstraction captures essential patterns effectively.
  • The interpretability of the model allows users to trace decisions via logical rules, such as '¬x10 ∨ ¬x11 ∨ ¬x15 ∨ (x1 ∧ ¬x12 ∧ ...)', providing clear insight into selection logic.

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.