= = = f f BOB BOB meaning vectors of words not does like - - PowerPoint PPT Presentation

f f bob bob meaning vectors of words not does like not
SMART_READER_LITE
LIVE PREVIEW

= = = f f BOB BOB meaning vectors of words not does like - - PowerPoint PPT Presentation

Physics, Language, Maths & Music (partly in arXiv:1204.3458) Bob Coecke, Oxford, CS-Quantum SyFest, Vienna, July 2013 ALICE ALICE f f f f = = = f f BOB BOB meaning vectors of words not does like not like = Alice Bob


slide-1
SLIDE 1

Physics, Language, Maths & Music

(partly in arXiv:1204.3458) Bob Coecke, Oxford, CS-Quantum SyFest, Vienna, July 2013

=

f f

=

f f f

ALICE BOB

=

ALICE BOB

f

=

not

like

Bob Alice does Alice not

like

not Bob meaning vectors of words pregroup grammar
slide-2
SLIDE 2

. . . via (some sort of) Logic

(partly in arXiv:1204.3458) Bob Coecke, Oxford, CS-Quantum SyFest, Vienna, July 2013

=

f f

=

f f f

ALICE BOB

=

ALICE BOB

f

=

not

like

Bob Alice does Alice not

like

not Bob meaning vectors of words pregroup grammar
slide-3
SLIDE 3

— PHYSICS —

Samson Abramsky & BC (2004) A categorical semantics for quantum proto-

  • cols. In: IEEE-LiCS’04. quant-ph/0402130

BC (2005) Kindergarten quantum mechanics. quant-ph/0510032

slide-4
SLIDE 4

— genesis — [von Neumann 1932] Formalized quantum mechanics in “Mathematische Grundlagen der Quantenmechanik”

slide-5
SLIDE 5

— genesis — [von Neumann 1932] Formalized quantum mechanics in “Mathematische Grundlagen der Quantenmechanik” [von Neumann to Birkhoff 1935] “I would like to make a confession which may seem immoral: I do not believe absolutely in Hilbert space no more.” (sic)

slide-6
SLIDE 6

— genesis — [von Neumann 1932] Formalized quantum mechanics in “Mathematische Grundlagen der Quantenmechanik” [von Neumann to Birkhoff 1935] “I would like to make a confession which may seem immoral: I do not believe absolutely in Hilbert space no more.” (sic) [Birkhoff and von Neumann 1936] The Logic of Quan- tum Mechanics in Annals of Mathematics.

slide-7
SLIDE 7

— genesis — [von Neumann 1932] Formalized quantum mechanics in “Mathematische Grundlagen der Quantenmechanik” [von Neumann to Birkhoff 1935] “I would like to make a confession which may seem immoral: I do not believe absolutely in Hilbert space no more.” (sic) [Birkhoff and von Neumann 1936] The Logic of Quan- tum Mechanics in Annals of Mathematics. [1936 – 2000] many followed them, ... and FAILED.

slide-8
SLIDE 8

— genesis — [von Neumann 1932] Formalized quantum mechanics in “Mathematische Grundlagen der Quantenmechanik” [von Neumann to Birkhoff 1935] “I would like to make a confession which may seem immoral: I do not believe absolutely in Hilbert space no more.” (sic) [Birkhoff and von Neumann 1936] The Logic of Quan- tum Mechanics in Annals of Mathematics. [1936 – 2000] many followed them, ... and FAILED.

slide-9
SLIDE 9

— the mathematics of it —

slide-10
SLIDE 10

— the mathematics of it — Hilbert space stuff: continuum, field structure of com- plex numbers, vector space over it, inner-product, etc.

slide-11
SLIDE 11

— the mathematics of it — Hilbert space stuff: continuum, field structure of com- plex numbers, vector space over it, inner-product, etc. WHY?

slide-12
SLIDE 12

— the mathematics of it — Hilbert space stuff: continuum, field structure of com- plex numbers, vector space over it, inner-product, etc. WHY? von Neumann: only used it since it was ‘available’.

slide-13
SLIDE 13

— the physics of it —

slide-14
SLIDE 14

— the physics of it — von Neumann crafted Birkhoff-von Neumann Quan- tum ‘Logic’ to capture the concept of superposition.

slide-15
SLIDE 15

— the physics of it — von Neumann crafted Birkhoff-von Neumann Quan- tum ‘Logic’ to capture the concept of superposition. Schr¨

  • dinger (1935): the stuff which is the true soul of

quantum theory is how quantum systems compose.

slide-16
SLIDE 16

— the physics of it — von Neumann crafted Birkhoff-von Neumann Quan- tum ‘Logic’ to capture the concept of superposition. Schr¨

  • dinger (1935): the stuff which is the true soul of

quantum theory is how quantum systems compose. Quantum Computer Scientists: Schr¨

  • dinger is right!
slide-17
SLIDE 17

— the game plan —

slide-18
SLIDE 18

— the game plan — Task 0. Solve: tensor product structure the other stuff = ???

slide-19
SLIDE 19

— the game plan — Task 0. Solve: tensor product structure the other stuff = ??? i.e. axiomatize “⊗” without reference to spaces.

slide-20
SLIDE 20

— the game plan — Task 0. Solve: tensor product structure the other stuff = ??? i.e. axiomatize “⊗” without reference to spaces. Task 1. Investigate which assumptions (i.e. which struc- ture) on ⊗ is needed to deduce physical phenomena.

slide-21
SLIDE 21

— the game plan — Task 0. Solve: tensor product structure the other stuff = ??? i.e. axiomatize “⊗” without reference to spaces. Task 1. Investigate which assumptions (i.e. which struc- ture) on ⊗ is needed to deduce physical phenomena. Task 2. Investigate wether such an “interaction struc- ture” appear elsewhere in “our classical reality”.

slide-22
SLIDE 22

— wire and box language —

slide-23
SLIDE 23

— wire and box language —

f

  • utput wire(s)
  • utput wire(s)

input wire(s) input wire(s)

Box Box = :

Interpretation: wire := system ; box := process

slide-24
SLIDE 24

— wire and box language —

f

  • utput wire(s)
  • utput wire(s)

input wire(s) input wire(s)

Box Box = :

Interpretation: wire := system ; box := process

  • ne system:

n subsystems: no system:

  • 1

. . .

  • n
slide-25
SLIDE 25

— wire and box games — sequential or causal or connected composition:

g ◦ f ≡

g f

parallel or acausal or disconnected composition:

f ⊗ g ≡

f f g

slide-26
SLIDE 26

— merely a new notation? —

(g ◦ f) ⊗ (k ◦ h) = (g ⊗ k) ◦ ( f ⊗ h)

=

f h g k f h g k

slide-27
SLIDE 27

— quantitative metric —

f : A → B

f A B

slide-28
SLIDE 28

— quantitative metric —

f †: B → A

f B A

slide-29
SLIDE 29

— asserting (pure) entanglement — quantum classical =

= =

slide-30
SLIDE 30

— asserting (pure) entanglement — quantum classical =

= =

⇒ introduce ‘parallel wire’ between systems: subject to: only topology matters!

slide-31
SLIDE 31

— quantum-like — E.g.

=

slide-32
SLIDE 32

Transpose:

f f

=

Conjugate:

f f

=

slide-33
SLIDE 33

classical data flow? f

=

f f f

slide-34
SLIDE 34

classical data flow? f

=

f

slide-35
SLIDE 35

classical data flow? f

=

f

slide-36
SLIDE 36

classical data flow? f

ALICE BOB

=

ALICE BOB

f

⇒ quantum teleportation

slide-37
SLIDE 37

— symbolically: dagger compact categories —

  • Thm. [Kelly-Laplaza ’80; Selinger ’05] An equa-

tional statement between expressions in dagger com- pact categorical language holds if and only if it is derivable in the graphical notation via homotopy.

  • Thm. [Hasegawa-Hofmann-Plotkin; Selinger ’08]

An equational statement between expressions in dag- ger compact categorical language holds if and only if it is derivable in the dagger compact category of fi- nite dimensional Hilbert spaces, linear maps, tensor product and adjoints.

slide-38
SLIDE 38

— LANGUAGE—

BC, Mehrnoosh Sadrzadeh & Stephen Clark (2010) Mathematical foundations for a compositional distributional model of meaning. arXiv:1003.4394

slide-39
SLIDE 39

— the logic of it — WHAT IS “LOGIC”?

slide-40
SLIDE 40

— the logic of it — WHAT IS “LOGIC”? Pragmatic option 1: Logic is structure in language.

slide-41
SLIDE 41

— the logic of it — WHAT IS “LOGIC”? Pragmatic option 1: Logic is structure in language.

“Alice and Bob ate everything or nothing, then got sick.” connectives (∧, ∨) : and, or negation (¬) : not (cf. nothing = not something) entailment (⇒) : then quantifiers (∀, ∃) : every(thing), some(thing) constants (a, b) : thing variable (x) : Alice, Bob predicates (P(x), R(x, y)) : eating, getting sick truth valuation (0, 1) : true, false

(∀z : Eat(a, z) ∧ Eat(b, z)) ∧ ¬(∃z : Eat(a, z) ∧ Eat(b, z)) ⇒ S ick(a), S ick(b)

slide-42
SLIDE 42

— the logic of it — WHAT IS “LOGIC”? Pragmatic option 1: Logic is structure in language. Pragmatic option 2: Logic lets machines reason.

slide-43
SLIDE 43

— the logic of it — WHAT IS “LOGIC”? Pragmatic option 1: Logic is structure in language. Pragmatic option 2: Logic lets machines reason. E.g. automated theory exploration, ...

slide-44
SLIDE 44

— the logic of it — WHAT IS “LOGIC”? Pragmatic option 1: Logic is structure in language. Pragmatic option 2: Logic lets machines reason. Our framework appeals to both senses of logic, and moreover induces important new applications: From truth to meaning in natural language processing:

— (December 2010)

Automated theorem generation for graphical theories:

http://sites.google.com/site/quantomatic/

slide-45
SLIDE 45

— the from-words-to-a-sentence process — Consider meanings of words, e.g. as vectors (cf. Google):

word 1 word 2 word n

...

slide-46
SLIDE 46

— the from-words-to-a-sentence process — What is the meaning the sentence made up of these?

word 1 word 2 word n

...

slide-47
SLIDE 47

— the from-words-to-a-sentence process — I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n

...

?

slide-48
SLIDE 48

— the from-words-to-a-sentence process — I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n

...

grammar

slide-49
SLIDE 49

— the from-words-to-a-sentence process — Information flow within a verb:

verb

  • bject
  • bject

subject subject

slide-50
SLIDE 50

— the from-words-to-a-sentence process — Information flow within a verb:

verb

  • bject
  • bject

subject subject

Again we have:

=

slide-51
SLIDE 51

— pregoup grammar — Lambek’s residuated monoids (1950’s): b ≤ a ⊸ c ⇔ a · b ≤ c ⇔ a ≤ c b

slide-52
SLIDE 52

— pregoup grammar — Lambek’s residuated monoids (1950’s): b ≤ a ⊸ c ⇔ a · b ≤ c ⇔ a ≤ c b

  • r equivalently,

a · (a ⊸ c) ≤ c ≤ a ⊸ (a · c) (c b) · b ≤ c ≤ (c · b) b

slide-53
SLIDE 53

— pregoup grammar — Lambek’s residuated monoids (1950’s): b ≤ a ⊸ c ⇔ a · b ≤ c ⇔ a ≤ c b

  • r equivalently,

a · (a ⊸ c) ≤ c ≤ a ⊸ (a · c) (c b) · b ≤ c ≤ (c · b) b Lambek’s pregroups (2000’s): a · ∗a ≤ 1 ≤ ∗a · a b∗ · b ≤ 1 ≤ b · b∗

slide-54
SLIDE 54

— pregoup grammar — Lambek’s residuated monoids (1950’s): b ≤ a ⊸ c ⇔ a · b ≤ c ⇔ a ≤ c b

  • r equivalently,

a · (a ⊸ c) ≤ c ≤ a ⊸ (a · c) (c b) · b ≤ c ≤ (c · b) b Lambek’s pregroups (2000’s): a · −1a ≤ 1 ≤ −1a · a b−1 · b ≤ 1 ≤ b · b−1

slide-55
SLIDE 55

— pregoup grammar — A A A A A A A A

  • 1
  • 1
  • 1
  • 1

=

A A A A

=

A A A A

=

A A A A

=

A A A A

  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
  • 1
slide-56
SLIDE 56

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

slide-57
SLIDE 57

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

slide-58
SLIDE 58

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

slide-59
SLIDE 59

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

slide-60
SLIDE 60

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Diagrammatic type reduction:

n n s n n

  • 1
  • 1
slide-61
SLIDE 61

— pregoup grammar — For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Diagrammatic meaning:

verb n n

flow flow flow flow

slide-62
SLIDE 62

— algorithm for meaning of sentences —

slide-63
SLIDE 63

— algorithm for meaning of sentences —

  • 1. Perform type reduction:

(word type 1) . . . (word type n) sentence type

slide-64
SLIDE 64

— algorithm for meaning of sentences —

  • 1. Perform type reduction:

(word type 1) . . . (word type n) sentence type

  • 2. Interpret diagrammatic type reduction as linear map:

f :: →       

  • i

ii|        ⊗ id ⊗       

  • i

ii|       

slide-65
SLIDE 65

— algorithm for meaning of sentences —

  • 1. Perform type reduction:

(word type 1) . . . (word type n) sentence type

  • 2. Interpret diagrammatic type reduction as linear map:

f :: →       

  • i

ii|        ⊗ id ⊗       

  • i

ii|       

  • 3. Apply this map to tensor of word meaning vectors:

f − → v 1 ⊗ . . . ⊗ − → v n

slide-66
SLIDE 66

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

slide-67
SLIDE 67

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

Alice

not

like

Bob

meaning vectors of words

not

grammar

does

slide-68
SLIDE 68

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

Alice

like

Bob

meaning vectors of words grammar not

slide-69
SLIDE 69

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

Alice

like

Bob

meaning vectors of words grammar not

slide-70
SLIDE 70

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

Alice

like

Bob

meaning vectors of words grammar not

=

not

like

Bob Alice

slide-71
SLIDE 71

— − − − − → Alice ⊗ − − − → does ⊗ − − → not ⊗ − − → like ⊗ − − → Bob —

Alice

like

Bob

meaning vectors of words grammar not

=

not

like

Bob Alice

=

not

like

Bob Alice

Using:

=

like like

=

like like

slide-72
SLIDE 72

— experiment: word disambiguation — E.g. what is “saw”’ in: “Alice saw Bob with a saw”.

Edward Grefenstette & Mehrnoosh Sadrzadeh (2011) Experimental support for a categorical compositional distributional model of meaning. Accepted for: Empirical Methods in Natural Language Processing (EMNLP’11).

slide-73
SLIDE 73

— Frobenius algebras —

slide-74
SLIDE 74

— Frobenius algebras — ‘spiders’ =           

m

  • ....

....

  • n

           such that, for k > 0:

m+m′−k

  • ....

.... .... .... ....

  • n+n′−k

= .... ....

BC & Dusko Pavlovic (2007) Quantum measurement without sums. In: Math- ematics of Quantum Computing and Technology. quant-ph/0608035 BC, Dusko Pavlovic & Jamie Vicary (2008) A new description of orthogonal

  • bases. Mathematical Structures in Computer Science. 0810.0812
slide-75
SLIDE 75

— Frobenius algebras — ‘spiders’ =           

m

  • ....

....

  • n

           such that, for k > 0:

m+m′−k

  • ....

.... .... .... ....

  • n+n′−k

= .... ....

BC & Dusko Pavlovic (2007) Quantum measurement without sums. In: Math- ematics of Quantum Computing and Technology. quant-ph/0608035 BC, Dusko Pavlovic & Jamie Vicary (2008) A new description of orthogonal

  • bases. Mathematical Structures in Computer Science. 0810.0812
slide-76
SLIDE 76

— Frobenius algebras — Language-meaning: Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomy

  • f Relative Pronouns. MOL ’13.
slide-77
SLIDE 77

— Frobenius algebras — Language-meaning: Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomy

  • f Relative Pronouns. MOL ’13.
slide-78
SLIDE 78

— Frobenius algebras — Language-meaning: Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomy

  • f Relative Pronouns. MOL ’13.
slide-79
SLIDE 79

— MATHS —

slide-80
SLIDE 80

— MATHS —

“Topological” QFT (Atiyah ’88): F :: → f : V ⊗ V → V

slide-81
SLIDE 81

— MATHS —

“Topological” QFT (Atiyah ’88): F :: → f : V ⊗ V → V “Grammatical” QFT: F :: →       

  • i

ii|       ⊗id⊗       

  • i

ii|       

slide-82
SLIDE 82

— MUSIC —

slide-83
SLIDE 83

— MUSIC —