Project Proposal: Neural Modelling of Mathematical Structures - - PowerPoint PPT Presentation

project proposal neural modelling of mathematical
SMART_READER_LITE
LIVE PREVIEW

Project Proposal: Neural Modelling of Mathematical Structures - - PowerPoint PPT Presentation

Introduction Implementation Results Comments Project Proposal: Neural Modelling of Mathematical Structures Martin Smol k, Josef Urban April 11, 2019 Martin Smol k, Josef Urban Neural Modelling of Mathematical Structures


slide-1
SLIDE 1

Introduction Implementation Results Comments

Project Proposal: Neural Modelling of Mathematical Structures

Martin Smol´ ık, Josef Urban April 11, 2019

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-2
SLIDE 2

Introduction Implementation Results Comments Goals Groups

Section 1 Introduction

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-3
SLIDE 3

Introduction Implementation Results Comments Goals Groups

Short introduction

Goals

◮ Build ”intuition” for a computer based on models ◮ Build models of theories based on their axioms ◮ Try to extend these models ◮ Guess truthfulness of theorems based on these models (future)

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-4
SLIDE 4

Introduction Implementation Results Comments Goals Groups

Groups

Group is a structure with functions ”composition” (·, binary) ”inverse” (−1, unary) and a constant ”unit” (e) that satisfy:

  • 1. (a · b) · c = a · (b · c) (associativity)
  • 2. a · e = e · a = a
  • 3. a · a−1 = a−1 · a = e

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-5
SLIDE 5

Introduction Implementation Results Comments Goals Groups

Used groups

Cyclic groups

(Zn, +, −, 0): Addition modulo n

Permutation groups

(Sn, ◦,−1 , id): Permutations with classic composition, inverse and identity

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-6
SLIDE 6

Introduction Implementation Results Comments General Groups Extensions

Section 2 Implementation

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-7
SLIDE 7

Introduction Implementation Results Comments General Groups Extensions

Implementation

Elements

Elements are embedded into Rn with handpicked representations

Functions

Functions are 4-layer feedforward NN, that inputs a vector of size n × arity and outputs a vector of size n. They are learned by either lookup table or by properties

Constants

Constants are learned vectors of size n - found by gradient descent

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-8
SLIDE 8

Introduction Implementation Results Comments General Groups Extensions

Group implementation

Composition

◮ Learned as a lookup table ◮ Some (up to 10%) values missing to test the ability to

generalize

◮ Minimizing the squared difference

composition X0 X1

  • X0 · X1

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-9
SLIDE 9

Introduction Implementation Results Comments General Groups Extensions

Unit

◮ Learned from the axiom e · a = a ◮ Used the learned NN for composition and mean squared

difference composition e a

  • e · a

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-10
SLIDE 10

Introduction Implementation Results Comments General Groups Extensions

Inverse

◮ Learned from the axiom a−1 · a = e ◮ Used the learned NN for composition and the learned unit

element. composition

  • a−1

a

  • a−1 · a

inverse

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-11
SLIDE 11

Introduction Implementation Results Comments General Groups Extensions

Extension

◮ ”What does half look like” ◮ Using the learned composition we find a constant h such that

h + h = 1 (in Zn) or h ◦ h = (1, 0) (in Sn)

◮ This h is not in the original embedding ◮ We look at the relationships between h and original elements

composition half half · half

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-12
SLIDE 12

Introduction Implementation Results Comments Cyclic group Permutation group

Section 3 Results

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-13
SLIDE 13

Introduction Implementation Results Comments Cyclic group Permutation group

Z10 with 10% testing data

sample (learned) composition: 8 + 8 = 6.048121; ˆ e = 0.00823911

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-14
SLIDE 14

Introduction Implementation Results Comments Cyclic group Permutation group

Z20 with 10% testing data

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-15
SLIDE 15

Introduction Implementation Results Comments Cyclic group Permutation group

Z20 half training

Values for half in different runs: 0.4999506

  • 6.5685954

10.500707 0.49987993 0.5000777 0.49967808 0.49978873 0.49993014 0.50047106 10.499506

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-16
SLIDE 16

Introduction Implementation Results Comments Cyclic group Permutation group

Group generated by learned half

We generate the group Z40 by using the learned composite on learned half repeatedly.

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-17
SLIDE 17

Introduction Implementation Results Comments Cyclic group Permutation group

Permutation group S4

Basic embedding

Identity: 0.0015894736 1.0011026 2.0010371 2.9997234

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-18
SLIDE 18

Introduction Implementation Results Comments Cyclic group Permutation group

S4 half

Basic embedding

h: 3.0214617 1.5137568 0.34816563 1.1509237 h ◦ h: 1.007834

  • 0.00332985

2.0015383 2.9760256 h4: 3.133353

  • 0.3489724

1.1988858 2.931558

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-19
SLIDE 19

Introduction Implementation Results Comments Cyclic group Permutation group

Permutation group S4

  • ne-of-n representation

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-20
SLIDE 20

Introduction Implementation Results Comments Cyclic group Permutation group

S4 identity

  • ne-of-n representation

0.9291287 0.39432997

  • 0.09073094
  • 0.00462165
  • 0.49930313

2.5813785

  • 1.0001388
  • 0.51179993

0.38528794 0.32126167 1.4879085

  • 0.3122037

0.16110185

  • 0.10436057
  • 0.3780875

1.356762

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-21
SLIDE 21

Introduction Implementation Results Comments Cyclic group Permutation group

S4 half

  • ne-of-n representation

learned half element:

  • 0.44275028

0.45813385 0.84849375

  • 0.4929848

0.29338264 0.25557452 0.701611

  • 0.33617198

0.5497755 0.75910103

  • 0.16280994
  • 0.17575327

0.20515643 0.25966993 0.10358979 1.0272595

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-22
SLIDE 22

Introduction Implementation Results Comments Cyclic group Permutation group

S4 half

  • ne-of-n representation

h ◦ h: 0.0016880417 0.99703968

  • 0.0002135747
  • 0.0009868203

0.99901026

  • 0.0018832732
  • 0.0010174632

0.0011361403

  • 0.0027710588
  • 0.0013556076

1.0073379

  • 0.001112761
  • 0.0005431428

0.0049326816

  • 0.0010595275

1.00323 Very nice!

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-23
SLIDE 23

Introduction Implementation Results Comments Cyclic group Permutation group

S4 half

  • ne-of-n representation

h ◦ (h ◦ (h ◦ h)): 0.72058374 0.17218184 0.04241377 0.04261543 0.4558762

  • 0.00405501

0.55539876 0.00293861

  • 0.02832983

0.10163078 0.4973646 0.4502491

  • 0.02180864

0.6911213

  • 0.02542126

0.4643306 What the $*%& is that?! This is not identity!!

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-24
SLIDE 24

Introduction Implementation Results Comments

Section 4 Comments

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures

slide-25
SLIDE 25

Introduction Implementation Results Comments

Comments

◮ More time/ power ◮ Relations ◮ Self-found embeddings ◮ Infinite structures ◮ ∃

Martin Smol´ ık, Josef Urban Neural Modelling of Mathematical Structures