Residual Neural Networks

Residual Neural Network Preview
In the previous post we discussed convolutional neural networks. We found that we could actually use a concept of convolution to extract features from 2 dimensional input data. It sped up training time. It allowed our model to recognize extracted features when processing future input. We concluded that the model still had potential for growth. Which leads us to Residual Neural Networks. These are a further extension of the CNN architecture. We will discuss it with the following questions. What is a Residual Neural Network? When can it be used? Why should we use it? How does it work? How does it compare with a CNN architecture?
What is a Residual Neural Network
A residual neural network is a CNN with a residual block. That is a small scale definition. In the world of Machine Learning we have specialized "Res Net" architectures. They are usually classed by how many layers they are comprised of (i.e. Res Net 9 for 9 layers, Res Net 18 and so on...).
When can we use a Residual Neural Network?
A Res Net architecture can be implemented any time we have two dimensional input. This is due to it being an extension of convolution. In order for our input to be convoluted it need to have a matrix shape to be able to change shape.
Why is it useful?
They are useful in solving the vanishing gradient problem. This is a problem to do with a higher amount of layers in a network. Inputs go through a number of layers. In each layer the value of the product of the derivative decreases. As the amount of layers in your network increase. The value of the derivative approaches zero. Hence the term "vanishing gradient".
How does it work?
It is a very simple algorithm. It adds input prior to a convolution layer to the output of the convolution layer. That is it. You can see how this can help with the vanishing gradient problem. It is always taking preventative measures to keep input large enough. That way the gradients do not approach zero as quickly, or at all.

How does it compare to CNN?
We have seen previously that certain architectures can differ vastly. With feed forward and CNN they were specialized for entirely separate problems. The method in which they operated was different. Res Net is not too different from CNN. In fact it can be thought of more as an extension of CNN. This being due to it working with CNN layers. The only non inherited property is how it residually adds inputs to outputs as data passes through the model. We find that in solving the vanishing gradient problem this can help vastly in the performance and training time of our model.
Summary
We found that Residual Neural Networks are a specialization of Convolutional Neural Networks. They take a number of convolutional layers and residually add the inputs to the outputs. This helped stop gradients from vanishing as data passes through the model. With that added architecture our models could train to make accurate predictions in a shorter span of time.
Sources:




Comments