Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3....

74
Birds, books, and matrices: a brief adventure in artificial intelligence and neural networks Thomas Pietraho Spring, 2018

Transcript of Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3....

Page 1: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Birds, books, and matrices: a brief adventurein artificial intelligence and neural networks

Thomas PietrahoSpring, 2018

Page 2: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

I am an algebraist

Page 3: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural networks: major successes

Page 4: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can recognize images

carball

bridge burrito

Current accuracy ≈ 95%

Page 5: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can translate

Polish: mój poduszkowiec jest pełen węgorzy

English: my hovercraft is full of eels

Google’s version is very close to human translation for anumber of languages. Not Chinese.

Page 6: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can play games

Top ranked Go player defeated by AlphaGo (4-1). AlphaGodestroyed by AlphaGo Zero (100-0).

Image by Saran Poroong

Page 7: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural networks: minor successes

Page 8: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can judge a book by its cover

history science romance sports

Problem: Predict book genre based on its cover.

Accuracy 76%.

with Parikshit Sharma, ’17, IndieBio

Page 9: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can identify birds

cardinal wood duck anhinga chickadee

Problem: Predict species of bird based on image.

Accuracy 87%. (P., 2017)

american crow fish crow common raven

Page 10: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can identify birds

cardinal wood duck anhinga chickadee

Problem: Predict species of bird based on image.

Accuracy 87%. (P., 2017)

american crow fish crow common raven

Page 11: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets can be useful to an algebraist?

From The Accountant

Page 12: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

What are neural nets?

Page 13: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

x

y

Image courtesy of JD Cruzan

Page 14: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

2

4

Image courtesy of JD Cruzan

Page 15: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

3

9

Image courtesy of JD Cruzan

Page 16: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

4

16

Image courtesy of JD Cruzan

Page 17: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

1.00 4.98 7.21 9.89 1.01 2.30

3.72 2.67 22.01 1.92 3.70

Image courtesy of JD Cruzan

Page 18: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

1.00 4.98 7.21 9.89 1.01 2.30

3.72 2.67 22.01 1.92 3.70

In this form, neural nets can carry out

• regression, or•

Image courtesy of JD Cruzan

Page 19: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are functions

1.00 4.98 7.21 9.89 1.01 2.30

0 0 0 1 0

In this form, neural nets can carry out

• regression, or• classification

Image courtesy of JD Cruzan

Page 20: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are made up of “neurons”

Two parameters: laziness and loudness.This specifies a neuron’s activation function.

Page 21: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are networks of neurons

output

input

Page 22: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Neural nets are universal

Theorem (G. Cybenko 1989)Every function can be modeled as a neural network.

Examples of functions: image classification, languagetranslation, etc.

Question: Why no self-drivingcars in the 1990s?

Page 23: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Learning with neural nets

Procedure:

• assemble a neural network (craft)• adjust laziness and loudness for each neuron (math)• measure error based on a sample of data and repeat(fast processors)

Advances in all three parts of this process are responsible forthe machine learning revolution since 2012.

Image courtesy of Kaiming He

Page 24: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

We don’t completely understand why neural nets work

Image courtesy of Elsayed et. al.

Page 25: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A problem in algebra

Page 26: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)

·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

Page 27: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)

=( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

Page 28: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

Page 29: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 83× 3 274× 4 64

1000× 1000 109

Page 30: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 274× 4 64

1000× 1000 109

Page 31: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 274× 4 ��ZZ64 49 (Strassen, 1969)

1000× 1000 109

Page 32: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 274× 4 ��ZZ64 49 (Strassen, 1969)

1000× 1000 ��ZZ109 264M (Strassen, 1969)

Page 33: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 ��ZZ27 23 (Lederman, 1976)4× 4 ��ZZ64 49 (Strassen, 1969)

1000× 1000 ��ZZ109 264M (Strassen, 1969)

Page 34: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 ��ZZ27 23 (Lederman, 1976)4× 4 ��ZZ64��ZZ49 48 (Stothers, 2012)

1000× 1000 ��ZZ109 264M (Strassen, 1969)

Page 35: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Matrix multiplication

( 0.98 0.23 0.120.12 0.34 0.670.11 0.54 0.18

)·( 0.56 0.09 0.100.99 0.45 0.410.39 0.02 0.11

)=

( 0.82 0.19 0.210.67 0.18 0.230.67 0.26 0.25

)

This process is a mess, involving lots of ordinary addition andmultiplication. But it is an important mess.

Goal: minimize number of ordinary multiplications: “rank”

matrix size rank2× 2 �A8 7 (Strassen, 1969)3× 3 ��ZZ27 23 (Lederman, 1976)4× 4 ��ZZ64��ZZ49 48 (Stothers, 2012)

1000× 1000 ��ZZ109���XXX264M 238M (Stothers, 2012)

Page 36: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)

·(e fg h

)=

(i jk l

)

Page 37: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)·(e fg h

)

=(i jk l

)

Page 38: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)·(e fg h

)=

(i jk l

)

Page 39: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)·(e fg h

)=

(i jk l

)

Page 40: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)·(e fg h

)=

(i jk l

)

Page 41: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

A little insight

A neural network can model matrix multiplication:

(a bc d

)·(e fg h

)=

(i jk l

)

Question: can our methods learn this network?

Page 42: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8

X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 43: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X

7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 44: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7

X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 45: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X

6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 46: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6

X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 47: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X

2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 48: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11

X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 49: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X

10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 50: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10

X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 51: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X

3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 52: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15

X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 53: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X

14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 54: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14

X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 55: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X

3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 56: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23

X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 57: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X

22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 58: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22

X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 59: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X

4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 60: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49

X 48 X 47 X 46 X 45 X 44 X

Page 61: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X

48 X 47 X 46 X 45 X 44 X

Page 62: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48

X 47 X 46 X 45 X 44 X

Page 63: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X

47 X 46 X 45 X 44 X

Page 64: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47

X 46 X 45 X 44 X

Page 65: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X

46 X 45 X 44 X

Page 66: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46

X 45 X 44 X

Page 67: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X

45 X 44 X

Page 68: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45

X 44 X

Page 69: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X

44 X

Page 70: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44

X

Page 71: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

error over learning time

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 72: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

Will it learn?

Thanks: Dj and HPC

Upshot: This result reduces the computational costfor 1000 × 1000 matrix multiplication from 238M to172M ordinary multiplications!

matrix size rank2× 2 8 X 7 X 6 X2× 3 11 X 10 X3× 2 15 X 14 X3× 3 23 X 22 X4× 4 49 X 48 X 47 X 46 X 45 X 44 X

Page 73: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

I am an algebraist

Luckily (for algebraists), the neural network solution is only anapproximation.

Question: how can one obtain an exact solution?

Hint: algebra

Page 74: Welcome to Bowdoin | Bowdoin College - Birds, books, and …tpietrah/TALKS/bbm.pdf · 2018. 3. 28. · Birds, books, and matrices: a brief adventure in artificial intelligence and

I am an algebraist

Luckily (for algebraists), the neural network solution is only anapproximation.

Question: how can one obtain an exact solution?

Hint: algebra