Towards logics for neural conceptors Till Mossakowski joint work - - PowerPoint PPT Presentation

towards logics for neural conceptors
SMART_READER_LITE
LIVE PREVIEW

Towards logics for neural conceptors Till Mossakowski joint work - - PowerPoint PPT Presentation

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions Towards logics for neural conceptors Till Mossakowski joint work with Razvan Diaconescu and Martin Glauer Otto-von-Guericke-Universitt Magdeburg AITP 2018, Aussois, March


slide-1
SLIDE 1

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Towards logics for neural conceptors

Till Mossakowski joint work with Razvan Diaconescu and Martin Glauer

Otto-von-Guericke-Universität Magdeburg

AITP 2018, Aussois, March 30, 2018

slide-2
SLIDE 2

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Overview

1

Conceptors

2

Conceptors at work: Japanese Vowels Pattern Recognition

3

A fuzzy logic for conceptors

4

Conclusions

slide-3
SLIDE 3

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Overview

1

Conceptors

2

Conceptors at work: Japanese Vowels Pattern Recognition

3

A fuzzy logic for conceptors

4

Conclusions

slide-4
SLIDE 4

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Motivation

Conceptors [Jaeger14] Combination of neural networks and logic Using a distributed representation like in deep learning and human brain

most neural-symbolic integration use localist represtation e.g. logic tensor networks (AITP17): one network for each predicate

Boolean operators

provide concept hierarchy new samples can be added without re-training

Our contribution Conceptors obey the laws of fuzzy sets Fuzzy logic is the natural logic for conceptors

slide-5
SLIDE 5

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Reservoir dynamics [Jaeger14]

reservoir = randomly created recurrent neural network input signal p drives this network for timesteps n = 0,1,2,...L, x(n +1) = tanh(W x(n)+W inp(n +1)+b)

W: N ×N matrix of reservoir-internal connection weights W in: N ×1 vector of input connection weights b: bias p: input signal (pattern)

W, W in and b are randomly created

slide-6
SLIDE 6

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Conceptors [Jaeger14]

collect state vectors x0,...xL into N ×L matrix X = cloud of points in the N-dimensional reservoir state space reservoir state correlation matrix: R = XX T/L conceptor: normalised ellipsoid (inside the unit sphere) representing the cloud of points C = R(R +α−2I)−1 ∈ [0,1]N×N α: aperture (scaling parameter) We here use a simplified version where C = diag(c1 ...cn). The ci are called conception weights.

slide-7
SLIDE 7

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Boolean operations on simplified conceptors

(¬c)i := 1−ci (c ∧b)i := cibi/(ci +bi −cibi), if not ci = bi = 0 0, if ci = bi = 0 (c ∨b)i := (ci +bi −2cibi)/(1−cibi), if not ci = bi = 1 1, if ci = bi = 1 Aperture adaption ϕ(c,γ)i := ci/(ci +γ −2(1−ci)) for 0 < γ < ∞ ϕ(c,0)i := 0, if ci < 1 1, if ci = 1 ϕ(c,∞)i := 1, if ci > 0 0, if ci = 0

slide-8
SLIDE 8

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Overview

1

Conceptors

2

Conceptors at work: Japanese Vowels Pattern Recognition

3

A fuzzy logic for conceptors

4

Conclusions

slide-9
SLIDE 9

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

"Japanese Vowels" Pattern Recognition [Jaeger14]

Data: 12-channel recordings of short utterance of 9 male Japanese speakers 270 training recordings, 370 test recordings Task: train speaker recognizer on training data, test on test data

slide-10
SLIDE 10

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Conceptors at work: Japanse vowels [Jaeger14]

for each speaker j, build a conceptor Cj for a test pattern p, compute the reservoir response signal r positive classification for speaker j: use 1

L(r TCjr)

negative classification for speaker j, using Boolean conceptor logic 1 L(r T¬(C1 ∨···∨Cj−1 ∨Cj+1 ∨···∨Cn)r)

slide-11
SLIDE 11

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Result of Japanese vowel classification [Jaeger14]

with 10-neuron reservoirs, mean (50 trials with fresh reservoirs) test errors for 370 tests: 8.4 (positive ev.) / 5.9 (neg-neg ev.) / 3.4 (combined) incremental model extension possible, again enabled by Boolean logic

slide-12
SLIDE 12

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Overview

1

Conceptors

2

Conceptors at work: Japanese Vowels Pattern Recognition

3

A fuzzy logic for conceptors

4

Conclusions

slide-13
SLIDE 13

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Conceptors are fuzzy

Central thesis: Conceptors and conception vectors behave like fuzzy sets, and their logic should be a fuzzy logic.

Proposition

Conceptors form a (generalised) de Morgan triplet, i.e. a t-norm, a t-conorm and a negation that interact usefully.

slide-14
SLIDE 14

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Laws for a deMorgan triplet

¬0 = 1,¬1 = 0 x < y implies ¬x > ¬y (strict anti-monotonicity) ¬¬x = x (involution) T1: x ∧1 = x (identity) T2: x ∧y = y ∧x (commutativity) T3: x ∧(y ∧z) = (x ∧y)∧z (associativity) T4: If x ≤ u and y ≤ v then x ∧y ≤ u ∧v (monotonicity) S1: x ∨0 = x (identity) T2: x ∨y = y ∨x (commutativity) T3: x ∨(y ∨z) = (x ∨y)∨z (associativity) T4: If x ≤ u and y ≤ v then x ∨y ≤ u ∨v (monotonicity) x ∨y = ¬(¬x ∧¬y) (de Morgan)

slide-15
SLIDE 15

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Further algebraic laws

∧ and ∨ do not form a lattice, so De Morgan algebras, residuated lattices, BL-agebras, MV-algebras, MTL-algebras etc. do not apply [Jaeger14] lists: C ∨C = ϕ(C, √ 2) C ∧C = ϕ(C,

  • 1

2)

A ≤ B iff ∃C.A∨C = B A ≤ B iff ∃C.A = B ∧C

slide-16
SLIDE 16

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Implication

In a De Morgan triplet, we can define implication as x → y = ¬x ∨y Alternative: residual implication R(x,y) = sup{t | x ∧t ≤ y} But: has the unpleasant property that R(c,0)i = 0, if ci > 0 1, if ci = 0 while our implication behaves more smoothly: (c → 0)i = 1−ci

slide-17
SLIDE 17

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Fuzzy conceptor logic

parameterised over dimension N ∈ N two sorts: individuals and conception vectors Signatures: constants for individuals and for conception vectors Models: interpret constants as N-dimensional vectors in [0,1]N

individuals are interpretated as feature vectors, conceptor terms as conception vectors

Conceptor terms: C ::= c | x | 0 | 1 | ¬x | C1 ∨C2 | C1 ∧C2 | ϕ(C,r) Atomic formulas:

1

  • rdering relations between conceptor terms

2

memberships of individual constants in conception vectors

slide-18
SLIDE 18

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Fuzzy conceptor logic: semantics

A formula yields a fuzzy truth value in [0,1]: [[C1 ≤ C2]] = minj=1...N([[C1]]j → [[C2]]j) [[i ∈ C]] = 1

N [[i]]Tdiag([[C]])[[i]]

Complex formulas like in FOL: F ::= i ∈ C|C1 ≤ C2| ¬F |F1∨F2|F1∧F2|∀xi.F |∀xc.F |∃xi.F |∃xc.F xi: variable ranging over individuals xc: variable ranging over conception vectors. Interpretation of formulas like in fuzzy FOL:

infimum for universal quantification supremum for existential quantification

slide-19
SLIDE 19

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Fuzzy conceptor logic: subset relations

Consider C ≤ D versus ∀xi.(xi ∈ C → xi ∈ D):

slide-20
SLIDE 20

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Fuzzy conceptor logic in action

Suppose we have two sets of speakers, call them Dialect1 and

  • Dialect2. Using disjunction, we can build conceptors C1 and C2

for these sets. Then we can ask: how far is Dialect1 similar to Dialect2? (C1 ≤ C2 ∧C2 ≤ C1) how much is Dialect1 a sub-dialect of Dialect2? (C1 ≤ C2) If we have an ontology of dialects, we can test the ontology by checking how far it follows from speaker data infer new consequences by (fuzzy/crisp) reasoning in the (fuzzy/crisp) ontology

slide-21
SLIDE 21

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Overview

1

Conceptors

2

Conceptors at work: Japanese Vowels Pattern Recognition

3

A fuzzy logic for conceptors

4

Conclusions

slide-22
SLIDE 22

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Conclusions

Defined a new fuzzy logic for conceptors

In his conceptor report, Jaeger only defines two crisp logics

Can be basis for neural-symbolic integration

Crisp and fuzzy reasoning about ontologies of concepts Learning and classification using conceptors

slide-23
SLIDE 23

Conceptors Japanese vowels A fuzzy logic for conceptors Conclusions

Future work

Fuzzy conceptor logic

suitable algebraisation proof calculus automated theorem proving

Work out details of integrated reasoning