Skip to main content
QUICK REVIEW

[Paper Review] Feed Forward and Backward Run in Deep Convolution Neural Network

P. P. Murugan|arXiv (Cornell University)|Nov 9, 2017
Neural Networks and ApplicationsComputer Science7 references13 citations
TL;DR

This paper provides a comprehensive mathematical explanation of feedforward and backpropagation in deep convolutional neural networks (CNNs), focusing on the architecture, activation functions (ReLU, sigmoid), loss function (cross-entropy), and gradient-based parameter updates. It details the forward pass through convolutional, pooling, and fully connected layers, followed by backward propagation to compute gradients for weight and bias updates using stochastic gradient descent, offering a foundational guide for understanding CNN mechanics in a simplified, grayscale-image setting.

ABSTRACT

Convolution Neural Networks (CNN), known as ConvNets are widely used in many visual imagery application, object classification, speech recognition. After the implementation and demonstration of the deep convolution neural network in Imagenet classification in 2012 by krizhevsky, the architecture of deep Convolution Neural Network is attracted many researchers. This has led to the major development in Deep learning frameworks such as Tensorflow, caffe, keras, theno. Though the implementation of deep learning is quite possible by employing deep learning frameworks, mathematical theory and concepts are harder to understand for new learners and practitioners. This article is intended to provide an overview of ConvNets architecture and to explain the mathematical theory behind it including activation function, loss function, feedforward and backward propagation. In this article, grey scale image is taken as input information image, ReLU and Sigmoid activation function are considered for developing the architecture and cross-entropy loss function are used for computing the difference between predicted value and actual value. The architecture is developed in such a way that it can contain one convolution layer, one pooling layer, and multiple dense layers

Motivation & Objective

  • To provide a clear, mathematically grounded explanation of the feedforward and backpropagation processes in deep convolutional neural networks (CNNs) for new learners and practitioners.
  • To demystify the core components of CNNs—convolution layers, pooling layers, fully connected layers—by deriving their mathematical operations step by step.
  • To illustrate the role of activation functions (ReLU, sigmoid) and loss functions (cross-entropy) in training CNNs using a simplified grayscale image input.
  • To derive and explain the gradient computation for weights and biases in convolutional and fully connected layers using chain rule and backpropagation.
  • To present a complete, end-to-end workflow of forward and backward passes in a CNN with explicit equations for parameter updates via gradient descent.

Proposed method

  • The network architecture consists of one convolutional layer, one pooling layer, and multiple fully connected layers, with input as a grayscale image.
  • Forward propagation computes activations using linear transformations (z = Wx + b), followed by non-linear activation via ReLU or sigmoid functions.
  • The loss function is defined as cross-entropy between predicted and true labels, used to evaluate model performance.
  • Backward propagation computes gradients using the chain rule, starting from the final layer and propagating errors backward through the network.
  • Gradients for weights and biases are derived using partial derivatives: ∂L/∂W and ∂L/∂b, with specific expressions for ReLU and sigmoid activations.
  • Parameter updates are performed using standard stochastic gradient descent (SGD) with learning rate α, updating weights and biases via W = W - α·∂L/∂W and b = b - α·∂L/∂b.

Experimental results

Research questions

  • RQ1How does the forward pass propagate signals through convolutional, pooling, and fully connected layers in a CNN?
  • RQ2What is the mathematical derivation of the loss function and its gradient with respect to network parameters in a CNN?
  • RQ3How are gradients of the loss function computed for weights and biases in convolutional layers using backpropagation?
  • RQ4What role do activation functions like ReLU and sigmoid play in shaping the output and gradient flow in CNNs?
  • RQ5How is the error signal propagated backward through the network, and how are gradients computed for kernel weights and biases in convolutional layers?

Key findings

  • The forward pass computes layer-wise activations using linear combinations (z = Wx + b) followed by non-linear activation (ReLU or sigmoid), producing feature maps and final predictions.
  • The cross-entropy loss function is used to measure the difference between predicted and true labels, with gradients computed using the derivative of the loss with respect to the output layer.
  • For the final fully connected layer, the gradient of the loss with respect to the bias is derived as ∂L/∂b^L+1_i = z^{L-1}_i - y_i, assuming ReLU activation.
  • The gradient of the loss with respect to the convolutional kernel weights is computed as ∂L/∂k^{p,q}_{u,v} = Σ_{m,n} (P^{p,q}_{m,n}) · I_{m-u,n-v}, where P^{p,q}_{m,n} is the upstream gradient.
  • The gradient with respect to the bias in the convolutional layer is the sum of upstream gradients: ∂L/∂b^{p,q} = Σ_{m,n} ∂L/∂C^{p,q}_{m,n}.
  • Parameter updates are performed via standard SGD, with weights and biases updated using the learning rate α and the computed gradients.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.