Repository navigation
Module 07
Level: Intermediate
Scope: Course Core
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.
- Derive gradients for a two-layer MLP.
- Explain intermediate activations in backpropagation.
- Distinguish forward and backward computations.
- Module-07-Lesson-Map
- Module-07-Important-Lessons
- Module-07-Numericals-and-Exercises
- Module-07-Implementation-Roadmap
- Module-07-Research-Extensions
- Module-07-feedforward-neural-networks-backpropagation
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-07A-Feedforward-Networks-and-Forward-Propagation — [COURSE CORE] [ARCHITECTURE]
- Module-07B-Backpropagation-and-Gradient-Verification — [COURSE CORE] [MATHEMATICAL IMPLEMENTATION]
- Module-07-Lesson-01
- Module-07-Lesson-02
- Module-07-Lesson-03
- Module-07-Lesson-04
- Module-07-Lesson-05
- Module-07-Lesson-06
- Module-07-Lesson-07
- Module-07-Lesson-08
- Module-07-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
A feedforward neural network is a composition of affine maps and non-linearities. Backpropagation applies the chain rule efficiently by propagating sensitivities from the output toward earlier layers and accumulating parameter gradients.
For layer l: $$ a^{(l)}=W^{(l)}h^{(l-1)}+b^{(l)}, \qquad h^{(l)}=\phi(a^{(l)}). $$
For a scalar loss, define
For a one-hidden-unit network
flowchart LR
A[Input] --> B[Hidden layer 1]
B --> C[Hidden layer 2]
C --> D[Output and loss]
D -. backward gradients .-> C
C -. chain rule .-> B
B -. chain rule .-> A
Implement a tiny network using NumPy and compare each parameter gradient against PyTorch autograd and finite differences. Test batch and single-example cases separately.
Backpropagation is a gradient-computation algorithm, not an optimizer. Gradients must be accumulated correctly across a batch. In-place operations can invalidate saved tensors. A wrong reduction (sum versus mean) changes gradient scale.
Study computational graphs, checkpointing, reverse-mode autodiff, residual networks and gradient accumulation for large batches.
- 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