1D convolution for neural networks, part 5: Backpropagation
Key Takeaways
The video discusses backpropagation for 1D convolutional neural networks, covering the mathematical equations and differentiation required for training, with a focus on calculating the partial derivative of the loss with respect to the inputs.
Full Transcript
having equations for convolution is a great start they are specific enough that we can turn around and implement them in code the other thing that we have to be able to do in a neural network that uses back propagation to learn is we have to be able to differentiate these equations specifically with respect to the error gradient the lost gradient that's going to be passed back down through the layers if these concepts are unfamiliar there are some links in the text up above that you can use to get familiar with them for now I'm going to assume that they're not totally new and kind of jump in back propagation is how we take the sensitivity of the loss function to changes in each of our layers output values so this is the partial derivative of the loss with respect to the outputs Y and we want to be able to propagate that back and calculate the partial derivative of the loss with respect to the inputs X this is one link in our chain and we back propagate this sensitivity of the loss to each set of outputs and inputs all the way back through the network by the chain rule of calculus the way that we get the partial derivative of loss with respect to X is we take the partial derivative of loss with respect to Y and multiply it by the partial derivative of Y with respect to X now in our case x and y are arrays they're not single values they're a whole long line of values the list of values so really what we want to calculate is the partial derivative of the loss with respect to each one of the inputs individually and the way we calculate that is by the chain rule the partial derivative of the loss with respect to Y times the partial derivative of Y with respect to each input element and each of our outputs are so individual values not one element and so to get to really break this down to individual elements we have the partial of loss with respect to each input element is the sum of the partial of loss to each output element times the partial of that output element to the input element added up over all of the output elements so because it's so verbose we'll use as a shorthand for a partial derivative of loss with respect to the output we'll just call that the output gradient and the partial derivative of the loss with respect to the input will call the input gradient so to go from the output gradient to the input gradient we have to know this quantity here the partial derivative of each output element with respect to each input element that's what we mean when we say that the layer is differentiable we have to be able to calculate this bit to be able to do back propagation so in order to do that we can go back to our definition of convolution we can explode it back out and now say each y sub J is equal to X sub J minus P times W sub P etc etc we expand that summation out and we expand out for all of our potential elements J so this is just a longhand way to represent that summation sign and to represent the various elements J then we can take in each of these cases we can take the derivative of that Y sub J with respect to each of the X's that occur in it so in this case the very first element if we take the derivative of Y sub J with respect to X sub J minus P the derivative if J is W sub P the very next term the derivative of Y sub J with respect to X sub J minus P plus one is w sub P plus one and so what we get is a bunch of small partial derivatives of individual output values with respect to individual input values so this is starting to look really good this is the type of thing that we're looking for
Original Description
Part of an 9-part series on 1D convolution for neural networks.
Catch the rest at https://e2eml.school/321
Playlist
Uploads from Brandon Rohrer · Brandon Rohrer · 51 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
▶
52
53
54
55
56
57
58
59
60
Robot Learning with a Biologically-Inspired Brain (BECCA)
Brandon Rohrer
BECCA talk at AGI 2011
Brandon Rohrer
Robot Learning with a Biologically-Inspired Brain (BECCA), The Sequel
Brandon Rohrer
BECCA listens to The Hobbit
Brandon Rohrer
Learning the building blocks of speech: BECCA extracts a hierarchy of audio features
Brandon Rohrer
BECCA listens for sound effects in The Hobbit
Brandon Rohrer
BECCA finds movie trailers while watching the Big Bang Theory
Brandon Rohrer
Listening for unexpected sounds: BECCA detects anomalies in audio data
Brandon Rohrer
Learning the building blocks of vision: BECCA extracts a spatio-temporal hierarchy of features
Brandon Rohrer
Watching for the unexpected: BECCA detects anomalies in video data
Brandon Rohrer
BECCA finds a stationary target
Brandon Rohrer
BECCA finds a stationary target at 3X speed
Brandon Rohrer
BECCA watches the X-men and Bruce Lee
Brandon Rohrer
BECCA plays Quidditch
Brandon Rohrer
BECCA chases a ball
Brandon Rohrer
BECCA chases a ball, part 2
Brandon Rohrer
Becca chases a ball, part 3
Brandon Rohrer
BECCA creates features from MNIST
Brandon Rohrer
How reinforcement learning works in Becca 7
Brandon Rohrer
Deep Learning Demystified
Brandon Rohrer
How Data Science Works
Brandon Rohrer
How Convolutional Neural Networks work
Brandon Rohrer
How Bayes Theorem works
Brandon Rohrer
How Deep Neural Networks Work
Brandon Rohrer
Recurrent Neural Networks (RNN) and Long Short-Term Memory (LSTM)
Brandon Rohrer
How Support Vector Machines work / How to open a black box
Brandon Rohrer
How autocorrelation works
Brandon Rohrer
Getting closer to human intelligence through robotics
Brandon Rohrer
A minimalist's guide to slicing and indexing pandas DataFrames
Brandon Rohrer
How decision trees work
Brandon Rohrer
Data scientist archetypes
Brandon Rohrer
How to use python's datetime package
Brandon Rohrer
How optimization for machine learning works, part 1
Brandon Rohrer
How optimization for machine learning works, part 2
Brandon Rohrer
How optimization for machine learning works, part 3
Brandon Rohrer
How optimization for machine learning works, part 4
Brandon Rohrer
How convolutional neural networks work, in depth
Brandon Rohrer
How to pick a machine learning model 4: Splitting the data
Brandon Rohrer
How to pick a machine learning model 3: Choosing a loss function
Brandon Rohrer
How to pick a machine learning model 2: Separating signal from noise
Brandon Rohrer
How to pick a machine learning model 1: Choosing between models
Brandon Rohrer
How to pick a machine learning model 5: Navigating assumptions
Brandon Rohrer
What do neural networks learn?
Brandon Rohrer
Interview with iRobot's Director of Data Science Angela Bassa
Brandon Rohrer
How Backpropagation Works
Brandon Rohrer
Evolutionary Powell's method: A discrete optimizer for hyperparameter optimization
Brandon Rohrer
1D convolution for neural networks, part 1: Sliding dot product
Brandon Rohrer
1D convolution for neural networks, part 2: Convolution copies the kernel
Brandon Rohrer
1D convolution for neural networks, part 3: Sliding dot product equations longhand
Brandon Rohrer
1D convolution for neural networks, part 4: Convolution equation
Brandon Rohrer
1D convolution for neural networks, part 5: Backpropagation
Brandon Rohrer
1D convolution for neural networks, part 6: Input gradient
Brandon Rohrer
1D convolution for neural networks, part 7: Weight gradient
Brandon Rohrer
1D convolution for neural networks, part 8: Padding
Brandon Rohrer
1D convolution for neural networks, part 9: Stride
Brandon Rohrer
The Four Grand Challenges of Robots in the Home
Brandon Rohrer
How Convolution Works
Brandon Rohrer
The Softmax neural network layer
Brandon Rohrer
Batch normalization
Brandon Rohrer
Getting ready to learn Python, Mac edition #1: Files and directories
Brandon Rohrer
More on: ML Maths Basics
View skill →Related Reads
📰
📰
📰
📰
One H100, Many Models: What I Learned Sharing GPUs on Kubernetes
Medium · Machine Learning
AFM-Jev: A Local Decision Engine for Resource-Constrained Banking Workflows
Medium · Machine Learning
Normal Distribution Explained with a Simple Example
Medium · AI
MLOps Best Practices 2026
Dev.to AI
🎓
Tutor Explanation
DeepCamp AI