Understanding the Core Concepts of Deep Learning with MIT 6.S191

🧠 The Building Block: Perceptron
The perceptron is the simplest type of artificial neuron. It's modeled after biological neurons and takes weighted inputs, adds a bias, and passes the result through an activation function.
Forward propagation :
for a single perceptron can be written as:
Where:
- are the input features
- are the weights
- is the bias
- is the activation function
- is the output of the neuron
Activation functions introduce non-linearity, such as:
- Sigmoid:
- ReLU:

🕸️ Expanding the Web: Neural Networks
A neural network consists of layers of neurons. Each hidden layer performs a transformation on its inputs using dense connections (fully connected layers).
Where
- is the layer index
- is the activation of layer
- is the activation function
📉 Loss Functions: Measuring the Error
The loss function quantifies the difference between predicted and true values. Common types include: Mean Squared Error (MSE):
Cross-Entropy Loss (for classification):
🔄 Backpropagation: The Learning Engine
Backpropagation is the process that allows the network to learn by updating weights based on the loss gradient.
It works by applying the chain rule from calculus, moving layer by layer from output to input.
🧠 Error propagation:
For layer :
For weights update:
🎯 Optimization: Gradient Descent
We minimize the loss using gradient descent, which updates weights to reduce the error:
Where is the learning rate.
Variants include:
- Stochastic Gradient Descent (SGD): uses a random mini-batch
- Mini-Batch Gradient Descent: faster, uses subset of data
- Adaptive methods: e.g., Adam optimizer

📉 Visualizing Gradient Descent
This graph shows how gradient descent minimizes a loss function:
This One shows a 3d like view:

🧩 Generalization and Overfitting
A network that memorizes training data but performs poorly on new data is said to overfit.
🔧 Regularization Techniques:
• Dropout: Randomly deactivates neurons during training • Early stopping: Halts training when validation loss stops improving

🧭 Final Thoughts
This MIT 6.S191 session covered the mechanics everything else gets built on — perceptrons, adaptive learning, generalization. None of it is glamorous, and all of it matters later. Next in the series: convolutional networks and sequence models.
👨💻 If you want to learn along, check out: MIT 6.S191 Intro to Deep Learning
Written by Breye.
