On the Convergence of Tsetlin Machines for the IDENTITY- and NOT Operators

Xuan Zhang, Lei Jiao, Ole-Christoffer Granmo, Morten Goodwin · DOI

Abstract

The Tsetlin Machine (TM) is a recent machine learning algorithm with several distinct properties, such as interpretability, simplicity, and hardware-friendliness. Although numerous empirical evaluations report on its performance, the mathematical analysis of its convergence is still open. In this article, we analyze the convergence of the TM with only one clause involved for classification. More specifically, we examine two basic logical operators, namely, the "IDENTITY"- and "NOT" operators. Our analysis reveals that the TM, with just one clause, can converge correctly to the intended logical operator, learning from training data over an infinite time horizon. Besides, it can capture arbitrarily rare patterns and select the most accurate one when two candidate patterns are incompatible, by configuring a granularity parameter. The analysis of the convergence of the two basic operators lays the foundation for analyzing other logical operators. These analyses altogether, from a mathematical perspective, provide new insights on why TMs have obtained state-of-the-art performance on several pattern recognition problems.

Introduction

While Tsetlin Machines (TMs) have recently achieved state-of-the-art results in various pattern recognition tasks, they have largely been treated as an empirical success story. Unlike traditional deep learning models, which are often "black boxes," TMs are inherently interpretable because they are built on propositional logic. However, a major gap remained: there was no formal mathematical proof that the learning mechanism would actually converge to the intended solution.

This research sets out to bridge the gap between empirical performance and theoretical understanding by addressing a fundamental question: Can we mathematically prove that a Tsetlin Machine will learn the correct logical relationship given enough time and data? By starting with the simplest building blocks—unary operators like IDENTITY ($y=x$) and NOT ($y=1-x$)—this work lays the foundation for a complete theoretical framework of TM convergence.

Methods

The study employs Markov chain analysis and quasi-stationary analysis to model the behavior of Tsetlin Automata (TAs), the core learning components of a TM. A TA is a finite state machine that transitions between states based on feedback (Reward or Penalty).

State transitions of a Tsetlin Automaton under penalty (P) and reward (R) feedback.

Key aspects of the methodology include:

  • Tsetlin Automata Teams: Groups of TAs are modeled as interacting to form a "clause" (a logical conjunction of inputs). Each TA decides whether to "Include" (I) or "Exclude" (E) a specific literal.
  • Feedback Mechanisms: The analysis covers "Type I" feedback (reinforcing true positives and suppressing false negatives) and "Type II" feedback (suppressing false positives).
  • The Granularity Parameter ($s$): A central focus is the role of the $s$ parameter, which controls how aggressively the machine includes literals.
  • State Transition Scenarios: For noise-free cases, eight distinct training scenarios were mapped. For noisy cases, this was expanded to 16 scenarios, using balance equations to determine the probability of the machine being in a "correct" vs. "incorrect" state.
Architecture of a single clause formed by a team of Tsetlin Automata.

Theoretical Framework and Datasets

As a theoretical study, the analysis utilizes synthetic training distributions defined by probabilities rather than standard empirical datasets:

  • Noise-free distributions: Where the label $y$ perfectly matches the input $x$ (IDENTITY) or its inverse (NOT).
  • Noisy distributions: Where the relationship between $x$ and $y$ is probabilistic (e.g., $y=x$ holds 80% of the time), testing the limits of the algorithm's robustness.

The learning process is conceptualized as a decentralized game where the Tsetlin Automata reach a Nash equilibrium, which the paper proves corresponds to the most accurate logical pattern.

Key Results

The mathematical analysis yielded several significant proofs:

  • Sure Convergence (Theorem 1): In a noise-free environment, a single-clause TM will converge surely to the IDENTITY relation over an infinite time horizon, regardless of the starting state.
  • Noisy Robustness: Specific mathematical bounds for the $s$ parameter were derived that guarantee the TM will favor the "dominant" pattern even when data is corrupted by noise.
  • Rare Pattern Capture: TMs can capture arbitrarily rare patterns by increasing the $s$ parameter, allowing them to find infrequent but significant patterns that other algorithms might miss.
  • Incompatibility Resolution: When two patterns are incompatible (e.g., IDENTITY and NOT both appearing), the TM can be configured to automatically select the one with higher statistical accuracy.

Discussion and Future Work

The "Glass Box" nature of TMs, using integer-based increments and propositional logic, provides transparency without sacrificing learning reliability. Furthermore, since convergence relies on simple integer state changes rather than complex floating-point gradients, TMs are naturally suited for low-power hardware implementations.

However, several limitations remain for future exploration:

  • Scope of Operators: This work is limited to unary operators. Proofs for binary operators (AND, OR, XOR) and more complex multi-clause architectures are still needed.
  • Convergence Rate: While convergence is proven for an infinite time horizon, the rate of convergence—the number of samples required for confidence in finite time—remains to be determined.
  • Multi-Clause Dynamics: Future research must address the interactions between hundreds or thousands of clauses and their collective "voting" mechanism.

Summary updated

BibTeX
@article{zhang2020convergence,
  author = {Xuan Zhang and Lei Jiao and Ole-Christoffer Granmo and Morten Goodwin},
  title = {{On the Convergence of Tsetlin Machines for the IDENTITY- and NOT Operators}},
  journal = {IEEE TPAMI},
  year = {2020},
  doi = {10.1109/tpami.2021.3085591},
}
Figure