Deep Learning · Glossary
Deep Learning Glossary — Key Words Explained Simply
Quick summary — deep learning key words in plain language
Deep learning is a type of machine learning that uses neural networks with many layers. This glossary explains the key words in plain English — no maths degree needed.
In this guide you will learn:
- Basics — neuron, layer, network, activation.
- Training — loss, epoch, batch, backpropagation, optimizer.
- Advanced — embedding, attention, transformer, fine-tuning.
- Cheat sheet — all terms on one page.
- How to remember — simple analogies for each term.
SECTION 01Basics — Neuron, Layer, Network
Deep learning is built from small pieces. Start with these core words — they are the alphabet of deep learning.
| Term | Plain English | Real-World Analogy | Why It Matters |
|---|---|---|---|
| Neuron | A tiny calculation unit | Like a single brain cell | The smallest building block |
| Layer | A row of neurons | Like a row of workers on an assembly line | More layers = deeper network |
| Weight | How important an input is | Like a volume knob | Learning = adjusting weights |
| Bias | A starting offset | Like setting the baseline on a scale | Helps the model fit better |
| Neural Network | Many layers of neurons | Like a team of workers | The whole model |
# A single neuron in plain Python
inputs = [0.5, 0.8, 0.2]
weights = [0.4, 0.1, 0.7]
bias = 0.1
# Step 1: weighted sum
total = sum(i * w for i, w in zip(inputs, weights)) + bias
# 0.5*0.4 + 0.8*0.1 + 0.2*0.7 + 0.1 = 0.48
# Step 2: activation (simple ReLU)
output = max(0, total) # 0.48
print(output)
Input Layer → Hidden Layer → Output Layer
(3) (4) (1)
Each arrow = a weight.
The network learns by adjusting these weights
so the final output matches the correct answer.
SECTION 02Activation Functions
An activation function decides whether a neuron should "fire" or not. It adds non-linearity — which is what lets deep networks learn complex patterns.
| Term | Plain English | Formula | When to Use |
|---|---|---|---|
| ReLU | Pass positive values, block negatives | max(0, x) | Default for hidden layers |
| Sigmoid | Squash any value into 0–1 | 1 / (1 + e-x) | Binary output |
| Softmax | Turn scores into probabilities | exi / Σ exj | Multi-class output |
| Tanh | Squash into −1 to 1 | (ex − e-x) / (ex + e-x) | Small networks |
def relu(x):
return max(0, x)
print(relu(-3)) # 0
print(relu(0)) # 0
print(relu(5)) # 5
# ReLU is simple, fast, and works well in deep networks.
# It blocks negatives, which helps avoid "vanishing gradients".
import math
def softmax(scores):
# Subtract max for numerical stability
m = max(scores)
exps = [math.exp(s - m) for s in scores]
total = sum(exps)
return [e / total for e in exps]
print(softmax([2.0, 1.0, 0.1]))
# [0.659, 0.242, 0.099] → sums to 1.0
SECTION 03Training — Loss, Epoch, Batch
Training is how a network learns. These words describe the training loop.
| Term | Plain English | Analogy | Typical Value |
|---|---|---|---|
| Loss | How wrong the model is | Like a score on an exam | Lower is better |
| Epoch | One full pass over the data | Like one reading of a textbook | 10–100+ |
| Batch | A small chunk of data | Like a page of the textbook | 32, 64, 128 |
| Learning Rate | Step size for weight updates | Like how fast you walk downhill | 0.001–0.01 |
| Overfitting | Memorizing instead of learning | Like memorizing answers without understanding | Watch validation loss |
for epoch in range(num_epochs):
for batch in dataloader: # split data into batches
predictions = model(batch.X) # forward pass
loss = loss_fn(predictions, batch.y)
loss.backward() # compute gradients
optimizer.step() # update weights
optimizer.zero_grad() # reset gradients
print(f"Epoch {epoch}, Loss = {loss.item():.4f}")
Suppose you have 1,000 images.
Batch size = 100 → 10 batches per epoch
Epochs = 10 → 10 full passes over the data
Total weight updates = 10 epochs × 10 batches = 100 updates.
SECTION 04Backpropagation & Optimizers
Backpropagation is how a neural network learns from its mistakes. Optimizers decide how to update the weights based on those mistakes.
Forward pass:
Input → Hidden → Output → Loss
Backward pass (backprop):
Loss → Output → Hidden → Input
At each step, we ask:
"If I nudge this weight slightly,
how does the loss change?"
That number is the gradient.
We move each weight in the opposite direction
of the gradient — that's gradient descent.
# Stochastic Gradient Descent (plain)
weights -= learning_rate * gradients
# Adam (adaptive)
# Keeps a running average of past gradients
# and adapts the step size per weight.
#
# Faster convergence, less tuning.
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)
SECTION 05Embeddings & Attention
Embeddings turn words and images into numbers. Attention lets a model focus on the important parts of the input. Both are foundational to modern AI.
| Term | Plain English | Analogy | Where You See It |
|---|---|---|---|
| Embedding | A list of numbers representing meaning | Like coordinates on a map | Word2Vec, BERT, GPT |
| Vector | An ordered list of numbers | Like a point in space | Any embedding |
| Attention | Weighting the important parts | Like highlighting a sentence | Transformers, GPT |
| Self-Attention | Words look at other words in the same sentence | Like a group discussion | BERT, T5 |
# Each word becomes a 3-number vector.
# Words with similar meaning end up close together.
king = [0.8, 0.5, 0.2]
queen = [0.7, 0.6, 0.2]
apple = [0.1, 0.9, 0.4]
# Distance between king and queen is small.
# Distance between king and apple is large.
# Meaning is captured by position in space.
Famous trick (Word2Vec):
king - man + woman ≈ queen
The model learns that "king" and "queen"
differ mainly in gender — without being told.
This is the magic of embeddings.
SECTION 06Fine-Tuning & Transformers
Fine-tuning is how you take a pre-trained model and adapt it to your task. Transformers are the architecture behind GPT, BERT, and most modern AI.
Pretrained model (trained on billions of words)
↓
Fine-tuning (your data: 1,000 examples)
↓
Model adapted to your task
Why it works:
- The model already "knows" language.
- You just teach it your specific style.
Example: Fine-tune GPT-2 on your company's
support emails to build a custom assistant.
Transformer block:
Input tokens
↓
Multi-Head Self-Attention
↓
Add & Norm
↓
Feed-Forward Network
↓
Add & Norm
↓
Output tokens
Stack many blocks → GPT / BERT.
The magic: attention lets every token
look at every other token in parallel.
SECTION 07Test yourself — deep learning glossary quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
What is the difference between a neuron and a layer?
A neuron is a single calculation unit. A layer is a row of neurons. Stack layers to get a deep network.
What is the difference between loss and accuracy?
Loss measures how wrong the model is (lower is better). Accuracy measures how often it is right (higher is better). Loss guides training; accuracy tells you the result.
Do I need calculus to understand backpropagation?
At a high level, no — think of backprop as "find out which weights caused the error and nudge them". Under the hood, it uses the chain rule from calculus.
What is a transformer in simple terms?
A transformer is a neural network architecture that uses attention to process sequences — like words in a sentence — all at once. It powers GPT, BERT, and most modern language models.
What is fine-tuning?
Fine-tuning means taking a model that was already trained on a large dataset and continuing to train it on a smaller, specific dataset for your task. It's faster and cheaper than training from scratch.
SECTION 09Related reads
Classroom & online · Noida
Ready to go deeper into AI?
Our Data Analytics Training Course is designed to help you recover and rebuild — with skills, projects, and interview prep that get you hired.
₹15,500 · full programme- Deep learning fundamentals
- Hands-on projects
- Mock interviews
- Weekday & weekend batches