Tsetlin machine

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
A simple block diagram of the Tsetlin machine

A Tsetlin machine is an artificial intelligence algorithm based on propositional logic.

Background

[edit | edit source]

A Tsetlin machine is a form of learning automaton collective for learning patterns using propositional logic. Ole-Christoffer Granmo created[1] and gave the method its name after Michael Lvovitch Tsetlin, who invented the Tsetlin automaton[2] and worked on Tsetlin automata collectives and games.[3] 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 networks.[4]

As of April 2018 it has shown promising results on a number of test sets.[5][6]

Types

[edit | edit source]
  • Original Tsetlin machine[4]
  • Convolutional Tsetlin machine[7]
  • Regression Tsetlin machine[8]
  • Relational Tsetlin machine[9]
  • Weighted Tsetlin machine[10][11]
  • Arbitrarily deterministic Tsetlin machine[12]
  • Parallel asynchronous Tsetlin machine[13]
  • Coalesced multi-output Tsetlin machine[14]
  • Tsetlin machine for contextual bandit problems[15]
  • Tsetlin machine autoencoder[16]
  • Tsetlin machine composites: plug-and-play collaboration between specialized Tsetlin machines[17][18]
  • Contracting Tsetlin machine with absorbing automata[19]
  • Graph Tsetlin machine[20]
  • Fuzzy-Pattern Tsetlin Machine[21][22]

Applications

[edit | edit source]

Original Tsetlin machine

[edit | edit source]
A detailed block diagram of the original Tsetlin Machine
A detailed block diagram of the original Tsetlin machine
List of hyperparameters[38]
Description Symbol
Number of binary inputs NInputs
Number of classes NClasses
Number of clauses per class NClauses
Number of automaton states 2n
Automaton decision boundary n
Automaton initialization state Init
Feedback threshold T
Learning sensitivity s

Tsetlin automaton

[edit | edit source]

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:

{Φ_,α_,β_,F(,),G()}.

  • A Tsetlin automaton has 2n states, here 6:

Φ_={ϕ1,ϕ2,ϕ3,ϕ4,ϕ5,ϕ6}

  • The FSM can be triggered by two input events

β_={βPenalty,βReward}

  • The rules of state migration of the FSM are stated as

F(ϕu,βv)={ϕu+1,if1u3andv=Penaltyϕu1,if4u6andv=Penaltyϕu1,if1<u3andv=Rewardϕu+1,if4u<6andv=Rewardϕu,otherwise.

  • It includes two output actions

α_={α1,α2}

  • Which can be generated by the algorithm

G(ϕu)={α1,if1u3α2,if4u6.

Boolean input

[edit | edit source]

A basic Tsetlin machine takes a vector X=[x1,,xo] of o Boolean features as input, to be classified into one of two classes, y=0 or y=1. Together with their negated counterparts, x¯k=¬xk=1xk, the features form a literal set L={x1,,xo,x¯1,,x¯o}.

Clause computing module

[edit | edit source]

A Tsetlin machine pattern is formulated as a conjunctive clause Cj, formed by ANDing a subset LjL of the literal set:

     Cj(X)=lLjl=lLjl.

For example, the clause Cj(X)=x1¬x2=x1x¯2 consists of the literals Lj={x1,x¯2} and outputs 1 iff x1=1 and x2=0.

Summation and thresholding module

[edit | edit source]

The number of clauses employed is a user-configurable parameter n. 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)=1ifv0else0:

y^=u(j=1n/2Cj+(X)j=1n/2Cj(X)). 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

     y^=u(x1x¯2+x¯1x2x1x2x¯1x¯2),

for instance, captures the XOR-relation.

Feedback module

[edit | edit source]

Type I feedback

[edit | edit source]
Type I Feedback
Action Clause 1 0
Literal 1 0 1 0
Include literal P(reward) s1s 0 0
P(inaction) 1s s1s s1s
P(penalty) 0 1s 1s
Exclude literal P(reward) 0 1s 1s 1s
P(inaction) 1s s1s s1s s1s
P(penalty) s1s 0 0 0

Type II feedback

[edit | edit source]
Type II Feedback
Action Clause 1 0
Literal 1 0 1 0
Include literal P(reward) 0 0 0
P(inaction) 1.0 1.0 1.0
P(penalty) 0 0 0
Exclude literal P(reward) 0 0 0 0
P(inaction) 1.0 0 1.0 1.0
P(penalty) 0 1.0 0 0

Resource allocation

[edit | edit source]

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 X, the probability of reinforcing a clause gradually drops to zero as the clause output sum

v=j=1n/2Cj+(X)j=1n/2Cj(X) approaches a user-set target T 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 v equals or exceeds the target T (the Tsetlin Machine has successfully recognized the input X), no clauses are reinforced. Accordingly, they are free to learn new patterns, naturally balancing the pattern representation resources.

Implementations

[edit | edit source]

Software

[edit | edit source]

Hardware

[edit | edit source]
  • One of the first FPGA-based hardware implementation[48][49] of the Tsetlin Machine on the Iris flower data set was developed by the μSystems (microSystems) Research Group at Newcastle University.
  • They also presented the first ASIC[50][51] implementation of the Tsetlin Machine focusing on energy frugality, claiming it could deliver 10 trillion operation per Joule.[52] The ASIC design had demoed on DATA2020.[53]

Further reading

[edit | edit source]

Books

[edit | edit source]
  • An Introduction to Tsetlin Machines[54]

Conferences

[edit | edit source]
  • International Symposium on the Tsetlin Machine (ISTM)[55][56][57]

Videos

[edit | edit source]

Papers

[edit | edit source]
  • On the Convergence of Tsetlin Machines for the XOR Operator[65]
  • Learning Automata based Energy-efficient AI Hardware Design for IoT Applications[38]
  • On the Convergence of Tsetlin Machines for the IDENTITY- and NOT Operators[66]
  • The Tsetlin Machine - A Game Theoretic Bandit Driven Approach to Optimal Pattern Recognition with Propositional Logic[4]

Publications/news/articles

[edit | edit source]
  • A low-power AI alternative to neural networks[52]
  • Can a Norwegian invention revolutionise artificial intelligence?[67]

References

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)."
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  7. ^ a b c Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)."
  9. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  10. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  11. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)."
  12. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  13. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  14. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  15. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  16. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  17. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  18. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  19. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  20. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  21. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  22. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  23. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  24. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  25. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  26. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  27. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  28. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  29. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)."
  30. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  31. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  32. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  33. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  34. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  35. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  36. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  37. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  38. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  39. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  40. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  41. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  42. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  43. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  44. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  45. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  46. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  47. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  48. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  49. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  50. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  51. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  52. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  53. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  54. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  55. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  56. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  57. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  58. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  59. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  60. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  61. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  62. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  63. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  64. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  65. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  66. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  67. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).