Skip to content

Module 11

Anurag Prasad edited this page Nov 7, 2026 · 8 revisions

Module 11: Convolutional Neural Networks and Advanced CNN Architectures

Level: Intermediate
Status: Planned — navigation and lesson specifications

Module purpose

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.

Introduction and conceptual foundation

Convolutional networks exploit local connectivity and shared filters to process grid-structured data such as images. Convolution produces feature maps; stacking layers builds increasingly broad receptive fields and hierarchical features.

How the ideas develop

Learn convolution indexing, channels, padding, stride and output dimensions. Calculate receptive fields and pooling effects. Then compare LeNet, AlexNet, VGG, Inception, ResNet, DenseNet and EfficientNet, focusing on their architectural motivations.

What the reader should be able to explain

By the end of this module, a reader should be able to define its central objects, explain the motivation behind its main methods, interpret the governing equations, work through a small example, and identify assumptions and limitations. The goal is understanding the mechanism—not memorizing a list of terms.

Learning outcomes

  • Calculate output shapes and parameter counts.
  • Explain receptive field and weight sharing.
  • Compare plain and residual networks.

Navigation

Topic-wise lessons

  1. Module-11-Lesson-01
  2. Module-11-Lesson-02
  3. Module-11-Lesson-03
  4. Module-11-Lesson-04
  5. Module-11-Lesson-05
  6. Module-11-Lesson-06
  7. Module-11-Lesson-07
  8. Module-11-Lesson-08
  9. Module-11-Lesson-09
  10. Module-11-Lesson-10
  11. Module-11-Lesson-11
  12. Module-11-Lesson-12
  13. Module-11-Lesson-13

How to complete this module

  1. Study the lessons in prerequisite order.
  2. Write a notation sheet and derive central equations.
  3. Solve at least one hand-worked example per major mechanism.
  4. Implement core operations where appropriate.
  5. Verify outputs and gradients.
  6. Complete conceptual and coding exercises.
  7. Record limitations and research extensions.

Completion status

  • 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

Independent deep-dive

Technical chapter

1. Why this area matters

CNNs exploit local connectivity and shared filters. Convolution layers learn spatial feature detectors; pooling or strided operations reduce resolution; deeper layers combine local patterns into larger receptive fields. Architectures such as LeNet, AlexNet, VGG, Inception, ResNet, DenseNet and EfficientNet make different trade-offs in depth, width, connectivity and compute.

2. Core mathematical formulation

For a 2-D convolution with input channels C_in and output channels C_out: $$ Y_{n,o,i,j}=\sum_{c=1}^{C_{in}}\sum_{u,v} W_{o,c,u,v}X_{n,c,i+u,j+v}. $$

Output height: $$ H_{out}=\left\lfloor\frac{H+2P-D(K-1)-1}{S}\right\rfloor+1. $$

A residual block computes $y=F(x)+x$ (or a projection when shapes differ).

3. Worked reasoning example

For input height 32, kernel 3, padding 1, stride 1 and dilation 1, output height is 32. With stride 2, it becomes 16. Always compute spatial dimensions before implementing a stack.

4. Conceptual flow

flowchart LR
  A[Image tensor] --> B[Convolution + activation]
  B --> C[Pooling or strided convolution]
  C --> D[Deeper feature maps]
  D --> E[Global pooling / classifier]
  E --> F[Class scores]
Loading

5. Implementation and verification

Implement a small convolution manually for a tiny array, then compare with torch.nn.Conv2d. Verify padding, stride, channel order and parameter count. Use hooks to inspect intermediate feature-map shapes.

6. Common failure modes and misconceptions

Convolution libraries often implement cross-correlation rather than mathematically flipped convolution. Padding conventions differ. Pooling is not equivalent to convolution. Translation equivariance is not full translation invariance.

7. Advanced and research directions

Study depthwise separable convolution, grouped convolution, feature pyramids, ConvNeXt, vision transformers and neural architecture scaling.

8. Suggested practical assignment

  1. Reproduce the smallest mathematical example by hand.
  2. Implement the central operation using NumPy.
  3. Implement the same operation using PyTorch.
  4. Compare outputs and gradients with numerical tolerances.
  5. Change one assumption or hyperparameter and document what changes.
  6. Record environment, random seed, data split, compute budget and limitations.

9. Completion criteria

  • 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.

🎓 Deep Learning Hub

🏠 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

Part 1 · Mathematical foundations
Part 2 · Neural network fundamentals
Part 3 · Training deep networks
Part 4 · Core architectures
Part 5 · Representation and generative learning
Part 6 · Specialised, modern and responsible deep learning
Reference and meta

Clone this wiki locally