Repository navigation
Module 05
Level: Beginner–Intermediate
Scope: Course Core + Essential Foundation
Status: Planned — navigation and lesson specifications
This module is a self-contained learning unit within the larger Deep Learning curriculum. Its purpose is to build understanding from motivation and prerequisites through mathematical reasoning, implementation and critical evaluation.
- Explain why stacked linear layers remain linear.
- Compare activation ranges and derivatives.
- State what universal approximation does and does not guarantee.
- Module-05-Lesson-Map
- Module-05-Important-Lessons
- Module-05-Numericals-and-Exercises
- Module-05-Implementation-Roadmap
- Module-05-Research-Extensions
- Module-05-activation-functions-neural-network-units-expressivity
Each page below isolates a specific concept or closely related group of concepts. The labels make its role in the curriculum visible at first glance.
- Module-05A-Activation-Functions-and-Gradients — [COURSE CORE] [THEORETICAL]
- Module-05B-Nonlinearity-Expressivity-and-Approximation — [FOUNDATION] [ADVANCED THEORY]
- Module-05-Lesson-01
- Module-05-Lesson-02
- Module-05-Lesson-03
- Module-05-Lesson-04
- Module-05-Lesson-05
- Module-05-Lesson-06
- Module-05-Lesson-07
- Module-05-Lesson-08
- Module-05-Lesson-09
- Study the lessons in prerequisite order.
- Write a notation sheet and derive central equations.
- Solve at least one hand-worked example per major mechanism.
- Implement core operations where appropriate.
- Verify outputs and gradients.
- Complete conceptual and coding exercises.
- Record limitations and research extensions.
- Conceptual understanding
- Mathematical derivations
- Worked numerical examples
- NumPy implementation (where applicable)
- PyTorch implementation (where applicable)
- Tests and numerical verification
- Experiments and interpretation
- Revision and self-assessment
An activation function introduces non-linearity. Without non-linear activations, composing affine layers remains one affine transformation, regardless of depth. Activation choice affects gradient flow, output range, smoothness and optimization.
Common activations: $$ \sigma(z)=\frac{1}{1+e^{-z}}, \qquad \tanh(z)=\frac{e^z-e^{-z}}{e^z+e^{-z}}, $$ $$ \mathrm{ReLU}(z)=\max(0,z), \qquad \mathrm{GELU}(z)=z\Phi(z). $$
For multiclass logits
A two-layer linear network
flowchart LR
A[Input] --> B[Affine transformation]
B --> C[Non-linear activation]
C --> D[Next layer]
D --> E[Prediction]
Plot activation functions and their derivatives over a broad input range. Compare saturation and gradient magnitudes. For classification, pass logits to a stable cross-entropy loss instead of manually composing softmax and logarithms.
Sigmoid saturates for large positive or negative inputs. ReLU can produce inactive units. Softmax outputs sum to one but does not guarantee calibrated probabilities. GELU and SiLU are smooth alternatives, not universally superior choices.
Study universal approximation assumptions, expressivity versus depth, activation sparsity, gated activations and normalization interactions.
- Reproduce the smallest mathematical example by hand.
- Implement the central operation using NumPy.
- Implement the same operation using PyTorch.
- Compare outputs and gradients with numerical tolerances.
- Change one assumption or hyperparameter and document what changes.
- Record environment, random seed, data split, compute budget and limitations.
- Explain the motivation and assumptions without notes.
- Derive the principal equations and define every symbol.
- Complete at least one worked numerical example.
- Trace tensor shapes through the computation.
- Implement and test the central mechanism.
- Explain at least two failure modes.
- Read one primary paper and summarize its contribution and limitations.
Content status: This page now contains a technical chapter and a practical learning specification. The linked lesson pages provide focused subtopic treatment; experiments are not claimed complete until their result logs are added.
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths · ❓ Question bank · 📖 Glossary · 📚 References · ✏️ Contributing
🏠 Home · 🗺️ Curriculum · 🧭 Learning paths
❓ Question bank · 📖 Glossary · 📚 References
Jump to module:
01 02 03 04 05 06 07 08 09 10 11 12
13 14 15 16 17 18 19 20 21 22 23 24