Multimedia & Machine Learning Algorithms · Multimedia Algorithms
Neural Network Foundations & Backpropagation
Explanation
Network Structure: Layers and Neurons
Single neuron: receives input vector , computes a weighted sum then applies an activation:
A deep network is a composition of neuron layers :
with .
Activation Functions
| Function | Definition | Derivative |
|---|---|---|
| ReLU | (: undefined, convention: ) | |
| Sigmoid | ||
| tanh |
Why is the sigmoid derivative convenient? Proof:
Forward Pass
Compute layer by layer, until Loss .
Backpropagation — Chain Rule on a Computational Graph
Goal: compute for each layer, for SGD.
Principle: from the computational graph , define backward gradients:
Chain rule for layer :
Weight gradients:
SGD — Stochastic Gradient Descent
Difference from classic GD: each update is computed on a small batch (or single sample), not the full dataset.
Interactive Visualization
Loading visualization
Worked Examples
Practice
Exercise 1 of 6
1
Compute — the derivative of the sigmoid at .
★Quiz
Test your knowledge from this lesson
A mix of questions from the lesson — each attempt varies slightly
Answer at least 4 out of 5 questions correctly to pass (70%)