Basic Architecture (Concept) of Artificial Neural Networks — Beginner-Friendly Notes
1. From Perceptron to Network
One perceptron = one linear separator. Stack many → artificial neural network (ANN) that can learn non-linear boundaries (solves XOR).
2. Three Layers (conceptual — what exam expects)
Input layer (features) → Hidden layer(s) (learned features) → Output layer (prediction)
- Input layer: raw features (e.g., pixels, sensor values) — no computation, just distribution.
- Hidden layer: each neuron computes , then non-linear activation (ReLU , sigmoid, tanh). Learns intermediate representations.
- Output layer: produces final prediction — e.g., softmax for classification, linear for regression.
Key idea: Depth (number of hidden layers) and width (neurons per layer) give capacity.
3. How Data Flows (forward pass — concept)
- Input flows to hidden neurons, each computes activation.
- Activations flow to next layer, etc.
- Output layer gives .
No loops here — this is a feed-forward network (recurrent nets add loops, not in syllabus).
4. How It Learns (concept — not heavy maths)
- Define loss (e.g., MSE, cross-entropy).
- Compute gradient of loss w.r.t. weights via backpropagation (chain rule backwards through layers).
- Update weights by gradient descent: .
- Repeat over many epochs until loss plateaus.
You only need to state "learns by backprop + gradient descent" — no derivation needed for this introductory topic.
5. Why Non-Linear Activation Is Essential
Without it, stacking linear layers = single linear layer → still cannot learn curves/XOR. Activation breaks linearity.
6. One-Line Summary
A feed-forward ANN stacks input, hidden and output layers of neurons with non-linear activations, learning via backpropagation and gradient descent to represent non-linear functions.
7. Quick Self-Check
- What would happen if hidden neurons used no activation (just linear)?
- Name one activation and its role.