The Feed-Forward Neural Network (FFNN) is the simplest and basic artificial neural network we should know first before talking about other complicated networks.
Feed-Forward Neural Network (FFNN)
A feed-forward neural network is an artificial neural network wherein connections between the units do not form a cycle. - Wikipedia
FFNN is often called multilayer perceptrons (MLPs) and deep feed-forward network when it includes many hidden layers. It consists of an input layer, one or several hidden layers, and an output layer when every layer has multiple neurons (units). Each connection between neurons is associated with weight and bias.
Consider a FFNN with hidden layers, is index of the hidden layers. The forward propagation process of FFNN can be described as below.
- : the vector of inputs into layer
- : the vector of outputs from layer
- equals to as the input
- : any hidden unit
- : a weight matrix in the layer
- : a bias vector in the layer
- : an activation function such as a sigmoid, hyperbolic tangent, rectified linear unit, or softmax function
In the backpropagation step, the neural network can be trained with gradient descent algorithm. The main goal of this step is to minimize the error function such as cross entropy for the classification problem and mean-squared error for the regression problem. The gradient descent algorithm updates the parameters and in every iteration as below.
- : an element of the weight matrix associated with the connection between unit in layer and unit in layer
- : an element of the bias vector associated with unit in layer and is the learning rate