Tsetlin Machine
   HOME

TheInfoList



OR:

A Tsetlin machine is an
Artificial Intelligence Artificial intelligence (AI) is intelligence—perceiving, synthesizing, and inferring information—demonstrated by machines, as opposed to intelligence displayed by animals and humans. Example tasks in which this is done include speech re ...
algorithm based on propositional logic.


Background

A Tsetlin machine is a form of
learning automaton A learning automaton is one type of machine learning algorithm studied since 1970s. Learning automata select their current action based on past experiences from the environment. It will fall into the range of reinforcement learning if the environme ...
collective for learning patterns using propositional logic. Ole-Christoffer Granmo gave the method its name after
Michael Lvovitch Tsetlin Michael Lvovitch Tsetlin (the surname is also written Cetlin, Tzetlin, Zeitlin, Zetlin; cyrillic: Михаил Львович Цетлин) (22 September 1924 – 30 May 1966) was a Soviet mathematician and physicist who worked on cybernetics. He i ...
, who invented the Tsetlin automaton and worked on Tsetlin automata collectives and games. Collectives of Tsetlin automata were originally constructed, implemented, and studied theoretically by Vadim Stefanuk in 1962. The Tsetlin machine uses computationally simpler and more efficient primitives compared to more ordinary
artificial neural network Artificial neural networks (ANNs), usually simply called neural networks (NNs) or neural nets, are computing systems inspired by the biological neural networks that constitute animal brains. An ANN is based on a collection of connected unit ...
s. As of April 2018 it has shown promising results on a number of test sets.


Types

* Original Tsetlin machine * Convolutional Tsetlin machine * Regression Tsetlin machine * Relational Tsetlin machine * Weighted Tsetlin machine * Arbitrarily deterministic Tsetlin machine * Parallel asynchronous Tsetlin machine * Coalesced multi-output Tsetlin machine * Tsetlin machine for contextual bandit problems * Tsetlin machine autoencoder * Tsetlin machine composites: plug-and-play collaboration between specialized Tsetlin machines


Applications

*
Keyword spotting Keyword spotting (or more simply, word spotting) is a problem that was historically first defined in the context of speech processing. In speech processing, keyword spotting deals with the identification of keywords in utterances. Keyword spotting ...
* Aspect-based sentiment analysis * Word-sense disambiguation *
Novelty detection Novelty detection is the mechanism by which an intelligent organism is able to identify an incoming sensory pattern as being hitherto unknown. If the pattern is sufficiently salient or associated with a high positive or strong negative utility, i ...
* Intrusion detection * Semantic relation analysis *
Image analysis Image analysis or imagery analysis is the extraction of meaningful information from images; mainly from digital images by means of digital image processing techniques. Image analysis tasks can be as simple as reading bar coded tags or as sophi ...
*
Text categorization Document classification or document categorization is a problem in library science, information science and computer science. The task is to assign a document to one or more classes or categories. This may be done "manually" (or "intellectually") ...
* Fake news detection * Game playing * Batteryless sensing * Recommendation systems * Word embedding * ECG analysis * Edge computing *
Bayesian network A Bayesian network (also known as a Bayes network, Bayes net, belief network, or decision network) is a probabilistic graphical model that represents a set of variables and their conditional dependencies via a directed acyclic graph (DAG). Bay ...
learning


Original Tsetlin machine


Tsetlin automaton

The Tsetlin automaton is the fundamental learning unit of the Tsetlin machine. It tackles the multi-armed bandit problem, learning the optimal action in an environment from penalties and rewards. Computationally, it can be seen as a finite-state machine (FSM) that changes its states based on the inputs. The FSM will generate its outputs based on the current states. * A quintuple describes a two-action Tsetlin automaton: \. * A Tsetlin automaton has 2n states, here : \underline = \ * The FSM can be triggered by two input events \underline = \ * The rules of state migration of the FSM are stated as F(\phi_u, \beta_v) = \begin \phi_,& \text~ 1 \le u \le 3 ~\text~ v = \text\\ \phi_,& \text~ 4 \le u \le 6 ~\text~ v = \text\\ \phi_,& \text~ 1 < u \le 3 ~\text~ v = \text\\ \phi_,& \text~ 4 \le u < 6 ~\text~ v = \text\\ \phi_,& \text. \end * It includes two output actions \underline = \ * Which can be generated by the algorithm G(\phi_u) = \begin \alpha_1, & \text~ 1 \le u \le 3\\ \alpha_2, & \text~ 4 \le u \le 6. \end


Boolean input

A basic Tsetlin machine takes a vector X= _1,\ldots,x_o/math> of Boolean features as input, to be classified into one of two classes, y=0 or y=1. Together with their negated counterparts, \bar_k = _k = 1-x_k, the features form a literal set L = \.


Clause computing module

A Tsetlin machine pattern is formulated as a conjunctive clause C_j, formed by ANDing a subset L_j L of the literal set: C_j (X)=\bigwedge_ l = \prod_ l. For example, the clause C_j(X)=x_1\landx_2=x_1 \bar_2 consists of the literals L_j = \ and outputs iff x_1 = 1 and x_2 = 0.


Summation and thresholding module

The number of clauses employed is a user-configurable parameter . Half of the clauses are assigned positive polarity. The other half is assigned negative polarity. The clause outputs, in turn, are combined into a classification decision through summation and thresholding using the unit step function u(v) = 1 ~\text~ v \ge 0 ~\text~ 0: \hat = u\left(\sum_^ C_j^+(X) - \sum_^ C_j^-(X)\right). In other words, classification is based on a majority vote, with the positive clauses voting for y=1 and the negative for y=0. The classifier \hat = u\left(x_1 \bar_2 + \bar_1 x_2 - x_1 x_2 - \bar_1 \bar_2\right), for instance, captures the
XOR Exclusive or or exclusive disjunction is a logical operation that is true if and only if its arguments differ (one is true, the other is false). It is symbolized by the prefix operator J and by the infix operators XOR ( or ), EOR, EXOR, , ...
-relation.


Feedback module


Type I feedback


Type II feedback


Resource allocation

Resource allocation dynamics ensure that clauses distribute themselves across the frequent patterns, rather than missing some and overconcentrating on others. That is, for any input , the probability of reinforcing a clause gradually drops to zero as the clause output sum v = \sum_^ C_j^+(X) - \sum_^ C_j^-(X) approaches a user-set target for y=1 (-T for y=0). If a clause is not reinforced, it does not give feedback to its Tsetlin automata, and these are thus left unchanged. In the extreme, when the voting sum equals or exceeds the target (the Tsetlin Machine has successfully recognized the input ), no clauses are reinforced. Accordingly, they are free to learn new patterns, naturally balancing the pattern representation resources.


Implementations


Software

* Tsetlin Machine in C, Python, multithreaded Python,
CUDA CUDA (or Compute Unified Device Architecture) is a parallel computing platform and application programming interface (API) that allows software to use certain types of graphics processing units (GPUs) for general purpose processing, an approach ca ...
* Convolutional Tsetlin Machine * Weighted Tsetlin Machine in C++


Hardware

* One of the first
FPGA A field-programmable gate array (FPGA) is an integrated circuit designed to be configured by a customer or a designer after manufacturinghence the term '' field-programmable''. The FPGA configuration is generally specified using a hardware de ...
-based hardware implementation of the Tsetlin Machine on the Iris dataset was developed by the µSystems (microSystems) Research Group at
Newcastle University Newcastle University (legally the University of Newcastle upon Tyne) is a UK public university, public research university based in Newcastle upon Tyne, North East England. It has overseas campuses in Singapore and Malaysia. The university is ...
. * They also presented the first
ASIC An application-specific integrated circuit (ASIC ) is an integrated circuit (IC) chip customized for a particular use, rather than intended for general-purpose use, such as a chip designed to run in a digital voice recorder or a high-efficien ...
implementation of the Tsetlin Machine focusing on energy frugality, claiming it could deliver 10 trillion operation per Joule. The
ASIC An application-specific integrated circuit (ASIC ) is an integrated circuit (IC) chip customized for a particular use, rather than intended for general-purpose use, such as a chip designed to run in a digital voice recorder or a high-efficien ...
design had demoed on DATA2020.


Additional Read


Books

* An Introduction to Tsetlin Machines


Conferences

* International Symposium on the Tsetlin Machine (ISTM)


Videos

* Tsetlin Machine—A new paradigm for pervasive AI * Keyword Spotting Using Tsetlin Machines * IOLTS Presentation: Explainability and
Dependability In systems engineering, dependability is a measure of a system's availability, reliability, maintainability, and in some cases, other characteristics such as durability, safety and security. In real-time computing, dependability is the ability to ...
Analysis of
Learning Automata A learning automaton is one type of machine learning algorithm studied since 1970s. Learning automata select their current action based on past experiences from the environment. It will fall into the range of reinforcement learning if the environme ...
based AI hardware * FPGA and uC co-design: Tsetlin Machine on Iris demo * The-Ruler-of-Tsetlin-Automaton * Interpretable clustering and dimension reduction with Tsetlin automata machine learning. * Predicting and explaining economic growth using real-time interpretable learning * Early detection of breast cancer from a simple blood test * Recent advances in Tsetlin Machines


Papers

* On the Convergence of Tsetlin Machines for the XOR Operator *
Learning Automata A learning automaton is one type of machine learning algorithm studied since 1970s. Learning automata select their current action based on past experiences from the environment. It will fall into the range of reinforcement learning if the environme ...
based Energy-efficient AI Hardware Design for IoT Applications * On the Convergence of Tsetlin Machines for the IDENTITY- and NOT Operators {{Cite journal, last1=Zhang, first1=Xuan, last2=Jiao, first2=Lei, last3=Granmo, first3=Ole-Christoffer, last4=Goodwin, first4=Morten, date=2021, title=On the Convergence of Tsetlin Machines for the IDENTITY- and NOT Operators, url=https://ieeexplore.ieee.org/document/9445039, journal=IEEE Transactions on Pattern Analysis and Machine Intelligence, volume=PP, issue=10 , pages=6345–6359 , doi=10.1109/TPAMI.2021.3085591, pmid=34077353, language=en, arxiv=2007.14268, s2cid=220831619 * The Tsetlin Machine - A Game Theoretic Bandit Driven Approach to Optimal Pattern Recognition with Propositional Logic


Publications/news/articles

* A low-power AI alternative to
neural network A neural network is a network or circuit of biological neurons, or, in a modern sense, an artificial neural network, composed of artificial neurons or nodes. Thus, a neural network is either a biological neural network, made up of biological ...
s


References

Finite automata Classification algorithms Logic gates