1 of 31

1

Today’s Topic:�Deep Networks

Welcome to BME 603/606�

Computational Methods for�Biological Modeling & Simulation

Course Website: https://bio-modeling-uw-madison-f26.github.io/

2 of 31

2

BME 603/606: Computational Methods for Biological Modeling & Simulation

Announcements / Reflection

  • Reflection: Lots of great questions!
    • When would you use PReLU?
    • What is the main way these weights are kept in these larger models? Is this all mainly reliant on RAM or is there a more efficient way that the networks "memory" is maintained?
    • When python uses the chain rule in backpropagation, will it use recursion?
    • How can these be integrated into a HUGE network without having to deal with constant memory issues?
    • Code applications?
  • No office hours on Fri this week.

3 of 31

3

BME 603/606: Computational Methods for Biological Modeling & Simulation

Q: When would you use PReLU?

​

A: Let the network decide which neurons to kill

Reflection Questions

4 of 31

4

BME 603/606: Computational Methods for Biological Modeling & Simulation

Reflection Questions

Q: What is the main way these weights are stored in these larger models?

A: GPU vRAM, high bandwidth shared memory

Image Credit: Gayathri Kolluru / Medium

5 of 31

5

BME 603/606: Computational Methods for Biological Modeling & Simulation

Reflection Questions

Q: What is the main way these weights are stored in these larger models?

A: GPU vRAM, high bandwidth shared memory

Image Credit: Gayathri Kolluru / Medium

6 of 31

6

BME 603/606: Computational Methods for Biological Modeling & Simulation

Reflection Questions

Q: How do you train a HUGE network?

7 of 31

7

BME 603/606: Computational Methods for Biological Modeling & Simulation

Reflection Questions

Q: Does backprop use recursion?

Image Credit: Sanat Ladkat

https://sanatladkat.github.io/

A: Correct intuition, but practically no, except for recurrent networks.

​

We use an autograd computation graph.

8 of 31

8

BME 603/606: Computational Methods for Biological Modeling & Simulation

Overfitting and underfitting

9 of 31

9

BME 603/606: Computational Methods for Biological Modeling & Simulation

Regularization

10 of 31

10

BME 603/606: Computational Methods for Biological Modeling & Simulation

Early Stopping

11 of 31

11

BME 603/606: Computational Methods for Biological Modeling & Simulation

Other ways to deal with overfitting

12 of 31

12

BME 603/606: Computational Methods for Biological Modeling & Simulation

L1 Regularization

13 of 31

13

BME 603/606: Computational Methods for Biological Modeling & Simulation

L2 Regularization

14 of 31

14

BME 603/606: Computational Methods for Biological Modeling & Simulation

L2 Regularization

15 of 31

15

BME 603/606: Computational Methods for Biological Modeling & Simulation

Dropout

16 of 31

16

BME 603/606: Computational Methods for Biological Modeling & Simulation

Dropout

17 of 31

17

BME 603/606: Computational Methods for Biological Modeling & Simulation

Dropout

18 of 31

18

BME 603/606: Computational Methods for Biological Modeling & Simulation

Deep Networks

19 of 31

19

BME 603/606: Computational Methods for Biological Modeling & Simulation

Convolutional Neural Networks (CNNs/ConvNets)

20 of 31

20

BME 603/606: Computational Methods for Biological Modeling & Simulation

Main Idea: Learnable Kernels

21 of 31

21

BME 603/606: Computational Methods for Biological Modeling & Simulation

Weight sharing

22 of 31

22

BME 603/606: Computational Methods for Biological Modeling & Simulation

Convolutional Neural Networks (CNNs/ConvNets)

23 of 31

23

BME 603/606: Computational Methods for Biological Modeling & Simulation

What does a CNN see?

24 of 31

24

BME 603/606: Computational Methods for Biological Modeling & Simulation

What does a CNN see?

25 of 31

25

BME 603/606: Computational Methods for Biological Modeling & Simulation

What does a CNN see?

26 of 31

26

BME 603/606: Computational Methods for Biological Modeling & Simulation

Object Detection with CNNs

27 of 31

27

BME 603/606: Computational Methods for Biological Modeling & Simulation

Skin cancer detection

28 of 31

28

BME 603/606: Computational Methods for Biological Modeling & Simulation

Object Segmentation with CNNs

29 of 31

29

BME 603/606: Computational Methods for Biological Modeling & Simulation

Cell segmentation

30 of 31

30

BME 603/606: Computational Methods for Biological Modeling & Simulation

Common CNN Architectures

31 of 31

31

BME 603/606: Computational Methods for Biological Modeling & Simulation

In-Class Exercises

Please ask Colin to mark you for completion before end of class.

Course Website: https://bio-modeling-uw-madison-f26.github.io/