Skip to content
Home » Backpropagation Learning

Backpropagation Learning

Backpropagation Learning

1. What is Backpropagation Learning?

Backpropagation is a supervised learning algorithm used to train multilayer neural networks.

It improves the network by calculating the error between the actual output and the target output, then propagating this error backward and adjusting the weights.

Backpropagation = Forward calculation + Error calculation + Backward weight adjustment


2. Basic Working

Input
  ↓
Forward Propagation
  ↓
Predicted Output
  ↓
Calculate Error
  ↓
Backpropagate Error
  ↓
Update Weights & Biases
  ↓
Repeat

The process is repeated for many training examples and epochs until the error becomes sufficiently small.


3. Steps of Backpropagation Learning

Step 1: Initialize Weights

Weights and biases are initially assigned small random values.

Weights → Small random values
Biases  → Initial values

Step 2: Forward Propagation

Input is passed through the network.

For a neuron:\[ z = \sum w_i x_i + b \]

Then an activation function is applied:\[ y=f(z) \]

The output travels:

Input Layer → Hidden Layer → Output Layer


Step 3: Calculate Error

The predicted output is compared with the target output.

A common error function is:\[ E=\frac{1}{2}(t-y)^2 \]

Where:

  • \(t\) = target output
  • \(y\) = predicted output
  • \(E\) = error

Example:

Target Output     = 1.0
Predicted Output  = 0.8

Error = 1.0 - 0.8 = 0.2

Step 4: Backward Propagation

The error is propagated backward from the output layer toward the hidden layers.

The algorithm calculates how much each weight contributed to the error.

This is done using the chain rule of calculus.


Step 5: Update Weights

Weights are adjusted to reduce the error.

A common update formula is:\[ w_{new}=w_{old}-\eta\frac{\partial E}{\partial w} \]

Where:

  • \(w\) = weight
  • \(\eta\) = learning rate
  • \(E\) = error

The learning rate controls how large the weight adjustment is.


Step 6: Repeat

The complete process is repeated:

Forward Pass
     ↓
Error Calculation
     ↓
Backward Pass
     ↓
Weight Update
     ↓
Repeat

until the network reaches an acceptable error level.


4. Simple Example

Suppose:

Target = 1.0
Output = 0.7

There is an error.

The backpropagation algorithm determines which weights contributed to this error and adjusts them.

After repeated training:

Output:
0.70 → 0.78 → 0.87 → 0.94 → 0.98

The output gradually approaches the target.


5. Important Terms

TermMeaning
EpochOne complete training cycle through the training data
Learning RateControls the size of weight updates
Error/LossDifference between target and predicted output
GradientDirection/rate of change of error
WeightStrength of a neural connection
BiasAdditional adjustable parameter
Activation FunctionProduces neuron output

6. Advantages

  • Can train multilayer networks
  • Can learn nonlinear relationships
  • Useful for classification and prediction
  • Automatically adjusts weights
  • Forms the basis of many neural network training methods

Limitations

  • Training can be computationally expensive.
  • Learning rate must be chosen carefully.
  • Can suffer from vanishing/exploding gradients in deep networks.
  • May get stuck in local minima or saddle regions.
  • Requires labeled training data.

7. Exam Definition

Backpropagation Learning is a supervised learning algorithm used to train multilayer feed-forward neural networks. It calculates the error at the output, propagates the error backward through the network, and adjusts the weights and biases using gradient-based learning to minimize the error.

Memory Line

Forward → Calculate Error → Backward → Update Weights → Repeat