🌍 Deep Learning · subject

Deep Learning Convolutional Neural Networks Syllabus

The Convolutional Neural Networks syllabus for Deep Learning in full: 5 chapters and 20 topics, every one listed below, plus 50 Convolutional Neural Networks flashcards with answers.

5Chapters
20Topics
50Flashcards

Convolutional Neural Networks syllabus: all 5 chapters

Expand any chapter to see its topics and sub-topics.

  1. Convolution Fundamentals

    4 topics
    • The Convolution Operation
    • Pooling Layers
    • Feature Maps and Channels
    • Parameter Sharing and Sparsity
  2. Classic CNN Architectures

    5 topics
    • LeNet and AlexNet
    • VGGNet
    • GoogLeNet and Inception
    • ResNet and Residual Connections
    • EfficientNet and Scaling Laws
  3. Object Detection

    4 topics
    • Region-Based Detectors
    • Single-Shot Detectors (YOLO, SSD)
    • Anchor Boxes and NMS
    • Detection Transformers (DETR)
  4. Image Segmentation

    4 topics
    • Semantic vs Instance Segmentation
    • Fully Convolutional Networks
    • U-Net Architecture
    • Mask R-CNN
  5. Transfer Learning and Fine-Tuning

    3 topics
    • Pretrained Backbones
    • Feature Extraction vs Fine-Tuning
    • Domain Adaptation

Deep Learning Convolutional Neural Networks flashcards — 50 questions with answers

  1. What is the discrete 2D convolution (cross-correlation) operation used in CNNs, expressed as a formula?

    For input $I$ and kernel $K$, the output feature map is $$S(i,j)=(I*K)(i,j)=\sum_{m}\sum_{n} I(i+m,\,j+n)\,K(m,n).$$ Deep-learning libraries implement cross-correlation (no kernel flip), though it is called convolution.

  2. Give the formula for the output spatial dimension of a convolution layer in terms of input size $W$, kernel size $F$, padding $P$, and stride $S$.

    $$O=\left\lfloor \frac{W-F+2P}{S}\right\rfloor + 1.$$ Same padding keeps $O=W$ (for stride 1) using $P=\frac{F-1}{2}$; valid padding uses $P=0$.

  3. What is 'same' vs 'valid' padding?

    Valid padding applies no padding, so the output shrinks by $F-1$ each dimension. Same padding adds zeros so the output spatial size equals the input (at stride 1), requiring $P=\frac{F-1}{2}$ for odd $F$.

  4. Define the receptive field of a neuron in a CNN and how it grows with depth.

    The receptive field is the region of the input that influences a given activation. It grows with each layer; stacking two $3\times3$ convs gives an effective $5\times5$ receptive field, and stride/pooling multiply the growth rate.

  5. What is the purpose of a pooling layer, and what are the two most common types?

    Pooling downsamples feature maps to reduce spatial size and computation and to add small translation invariance. The two common types are max pooling (takes the maximum in each window) and average pooling (takes the mean).

  6. How does max pooling behave during the backward pass?

    The gradient is routed only to the input element that was the maximum in each pooling window (argmax); all other positions in the window receive zero gradient. Average pooling instead distributes the gradient equally across the window.

  7. What is global average pooling (GAP) and why is it used instead of fully connected layers?

    GAP averages each entire feature map to a single value, producing a vector of length equal to the number of channels. It has no learnable parameters, reduces overfitting, and enforces correspondence between channels and classes (used in NiN, GoogLeNet, ResNet).

  8. Define a feature map and a channel in a convolutional layer.

    A feature map is the 2D activation produced by convolving one filter over the input, responding to a specific pattern. A channel is one such map; a layer's output is a stack of $C$ channels (a tensor of shape $H\times W\times C$).

  9. How many parameters does a convolution layer have with $C_{in}$ input channels, $C_{out}$ filters, and kernel size $F\times F$ (with bias)?

    $$\#\text{params}=(F\times F\times C_{in}+1)\times C_{out}.$$ The $+1$ per filter is the bias term. Crucially this is independent of the input spatial size.

  10. Explain parameter sharing in CNNs and the benefit it provides.

    The same filter weights are reused at every spatial location, so a feature detector applies everywhere. This drastically reduces parameters versus a fully connected layer and gives translation equivariance: shifting the input shifts the feature map correspondingly.

  11. Explain sparse connectivity (local receptive fields) in convolution.

    Each output unit connects only to a small local patch of the input (the kernel size) rather than the whole input. This yields sparse interactions, fewer parameters, and lower computation than dense (fully connected) layers.

  12. What is a $1\times1$ convolution and what is it used for?

    A $1\times1$ convolution mixes information across channels at each spatial location, acting as a per-pixel fully connected layer. It is used for dimensionality reduction/expansion of channels (bottlenecks in Inception, ResNet) and to add nonlinearity cheaply.

  13. Describe the architecture of LeNet-5 and what it was designed for.

    LeNet-5 (LeCun, 1998) for handwritten digit recognition: two conv+subsampling (avg pool) stages followed by fully connected layers, using $5\times5$ convolutions and tanh/sigmoid activations, ending in a 10-way output. It is the classic template of alternating conv and pooling layers.

  14. What key innovations did AlexNet (2012) introduce that revived deep learning?

    AlexNet used ReLU activations, GPU training, dropout, local response normalization, overlapping max pooling, and data augmentation. It won ImageNet 2012 with a top-5 error of about 15.3%, far ahead of the runner-up, launching the deep CNN era.

  15. What is the design principle of VGGNet?

    VGG stacks many small $3\times3$ convolutions (stride 1, same padding) with $2\times2$ max pooling, doubling channels after each pool. Using stacked $3\times3$ filters instead of large ones gives the same receptive field with fewer parameters and more nonlinearity. VGG-16 and VGG-19 are common variants.

  16. Why are two stacked $3\times3$ convolutions preferred over one $5\times5$ convolution?

    They share the same $5\times5$ effective receptive field but use fewer parameters ($2\cdot 9C^2=18C^2$ vs $25C^2$ per channel pair) and insert an extra nonlinearity, increasing representational power. Three $3\times3$ convs equal one $7\times7$.

  17. What is the Inception module in GoogLeNet and its key idea?

    An Inception module runs parallel branches ($1\times1$, $3\times3$, $5\times5$ convolutions and $3\times3$ max pooling) and concatenates their outputs, letting the network capture multiple scales. $1\times1$ convolutions are placed before the larger convs as bottlenecks to cut computation.

  18. What are auxiliary classifiers in GoogLeNet (Inception v1)?

    Auxiliary classifiers are small classification heads attached to intermediate layers during training. They inject additional gradient signal to combat vanishing gradients and act as regularizers; their losses are weighted (e.g., 0.3) and they are removed at inference.

  19. State the residual learning formulation used in ResNet.

    Instead of learning a direct mapping $H(x)$, a residual block learns $F(x)=H(x)-x$ and outputs $$y=F(x)+x.$$ The identity skip connection makes it easy to learn near-identity mappings, enabling training of very deep networks (e.g., 152 layers).

  20. How do residual (skip) connections mitigate the vanishing gradient problem?

    The identity shortcut provides an additive gradient path so that $\frac{\partial y}{\partial x}=1+\frac{\partial F}{\partial x}$, ensuring gradients flow directly to earlier layers even when $\frac{\partial F}{\partial x}$ is small, preventing degradation as depth increases.

Show the other 30 Convolutional Neural Networks flashcards
  1. What is a bottleneck residual block in ResNet-50/101/152?

    A bottleneck stacks $1\times1$ (reduce channels), $3\times3$, then $1\times1$ (restore channels) convolutions with a skip connection. The $1\times1$ layers cut computation so deeper networks stay efficient compared with two $3\times3$ layers.

  2. What problem motivated ResNet, and what did it observe about plain deep networks?

    The degradation problem: adding more layers to a plain network increased training error (not just from overfitting). ResNet showed that residual connections let deeper networks match or beat shallow ones, winning ImageNet 2015.

  3. What is compound scaling in EfficientNet?

    EfficientNet scales network depth $d$, width $w$, and input resolution $r$ together with a single coefficient $\phi$: $d=\alpha^{\phi}$, $w=\beta^{\phi}$, $r=\gamma^{\phi}$, subject to $\alpha\cdot\beta^{2}\cdot\gamma^{2}\approx 2$, so FLOPs scale by about $2^{\phi}$. This balanced scaling beats scaling any single dimension.

  4. What baseline building block does EfficientNet use, and what does its constraint $\alpha\cdot\beta^{2}\cdot\gamma^{2}\approx2$ mean?

    EfficientNet-B0 is built from MBConv (mobile inverted bottleneck) blocks with squeeze-and-excitation. The constraint ensures that for each unit increase in $\phi$ the total FLOPs roughly double, since width and resolution contribute quadratically to compute.

  5. Contrast two-stage (region-based) detectors with one-stage detectors.

    Two-stage detectors (R-CNN family) first propose candidate regions, then classify/refine them—more accurate but slower. One-stage detectors (YOLO, SSD) predict boxes and classes directly over a dense grid in a single pass—faster, historically slightly less accurate on small objects.

  6. Describe the R-CNN pipeline and its main drawback.

    R-CNN uses selective search to generate ~2000 region proposals, warps each, runs a CNN per region for features, then classifies with SVMs and regresses boxes. Its drawback is extreme slowness: the CNN runs separately on every proposal, with no shared computation.

  7. How does Fast R-CNN improve on R-CNN?

    Fast R-CNN runs the CNN once over the whole image, then uses RoI pooling to extract fixed-size features per proposal from the shared feature map, and trains classification and bounding-box regression jointly with a multi-task loss—much faster and more accurate.

  8. What is the key innovation of Faster R-CNN?

    Faster R-CNN replaces selective search with a learnable Region Proposal Network (RPN) that shares convolutional features with the detector and predicts objectness and box offsets over anchors, giving a near real-time end-to-end trainable two-stage detector.

  9. What is RoI Pooling, and how does RoI Align differ?

    RoI Pooling divides each region proposal into a fixed grid and max-pools features, but quantizes coordinates, causing misalignment. RoI Align (from Mask R-CNN) avoids quantization by using bilinear interpolation at sampled points, giving precise, sub-pixel-accurate features—critical for segmentation.

  10. How does YOLO frame object detection, and what does it predict per grid cell?

    YOLO treats detection as a single regression: it divides the image into an $S\times S$ grid and each cell predicts $B$ bounding boxes (x, y, w, h, confidence) plus $C$ class probabilities. Confidence is $P(\text{object})\times \text{IoU}$. It is very fast (single forward pass).

  11. How does SSD (Single Shot Detector) detect objects at multiple scales?

    SSD attaches detection heads to several feature maps of decreasing resolution, using default (anchor) boxes of multiple aspect ratios at each location. Shallow high-resolution maps detect small objects; deep low-resolution maps detect large objects—all in one pass.

  12. What are anchor boxes and why are they used?

    Anchor boxes are predefined reference boxes of various scales and aspect ratios placed densely across the feature map. The network predicts class scores and offsets relative to each anchor rather than absolute coordinates, making detection of multiple objects and shapes per location tractable.

  13. Define Intersection over Union (IoU) and its formula.

    IoU measures overlap between predicted box $A$ and ground-truth box $B$: $$\text{IoU}=\frac{|A\cap B|}{|A\cup B|}.$$ It ranges from 0 (no overlap) to 1 (perfect). A threshold (commonly 0.5) decides positive matches.

  14. Describe the Non-Maximum Suppression (NMS) algorithm.

    NMS removes duplicate detections: sort boxes by confidence, select the highest, remove all remaining boxes with IoU above a threshold (e.g., 0.5) relative to it, and repeat on the rest. It keeps one box per object. Soft-NMS decays scores instead of hard removal.

  15. How is mean Average Precision (mAP) computed for object detection?

    For each class, compute Average Precision as the area under the precision–recall curve (matches decided by an IoU threshold), then average AP over all classes. COCO reports mAP averaged over IoU thresholds from 0.5 to 0.95 in steps of 0.05.

  16. What is DETR and how does it eliminate hand-designed components?

    DETR (DEtection TRansformer) treats detection as direct set prediction: a CNN backbone feeds a transformer encoder–decoder that outputs a fixed set of predictions from learned object queries. It removes anchors and NMS, replacing them with bipartite matching and self-attention.

  17. What loss and matching does DETR use to train?

    DETR uses the Hungarian algorithm to find a bipartite matching between predicted and ground-truth objects (a one-to-one assignment), then applies a set loss combining classification cross-entropy and box loss ($\ell_1$ + generalized IoU). Unmatched predictions are trained toward a 'no object' class.

  18. What are object queries in DETR?

    Object queries are a fixed set of $N$ learned embeddings fed to the transformer decoder; each attends to image features and produces one detection (class + box). $N$ is set larger than the typical number of objects, with extras predicting 'no object'.

  19. Distinguish semantic segmentation, instance segmentation, and panoptic segmentation.

    Semantic segmentation labels every pixel with a class but does not separate object instances. Instance segmentation detects and masks each object separately (only 'things'). Panoptic segmentation unifies both: per-pixel class labels plus instance IDs for countable objects, with 'stuff' regions labeled semantically.

  20. What defines a Fully Convolutional Network (FCN) for segmentation?

    An FCN replaces the fully connected layers of a classifier with convolutions, so it outputs a spatial class map instead of a single vector, accepting arbitrary input sizes. Upsampling (transposed convolution) restores resolution to produce dense per-pixel predictions.

  21. What is transposed convolution (deconvolution) and its role in segmentation?

    Transposed convolution is a learnable upsampling operation that increases spatial resolution by spreading each input value over a kernel-sized output region (the gradient operation of convolution). FCNs and U-Net use it to map coarse feature maps back to full-resolution masks.

  22. What are skip connections in FCN (e.g., FCN-8s) used for?

    They fuse coarse, deep semantic features with finer, shallow high-resolution features (via elementwise addition after upsampling), recovering spatial detail lost to downsampling. FCN-8s combines predictions from pool3, pool4, and the final layer for sharper boundaries.

  23. Describe the U-Net architecture.

    U-Net has a symmetric encoder–decoder ('U' shape): a contracting path of conv+pooling captures context, an expanding path of transposed convs restores resolution, and skip connections concatenate encoder feature maps to the matching decoder level, preserving spatial detail. Designed for biomedical image segmentation.

  24. Why are skip connections in U-Net concatenations rather than additions, and what do they provide?

    U-Net concatenates encoder features onto decoder features at each resolution so the decoder can combine high-resolution localization information with upsampled semantic context, producing precise boundaries. Concatenation preserves both signals rather than merging them additively.

  25. What loss functions are common for semantic segmentation, and why is Dice loss useful?

    Pixel-wise cross-entropy is standard. Dice loss, based on the Dice coefficient $$\text{Dice}=\frac{2|X\cap Y|}{|X|+|Y|},$$ directly optimizes overlap and handles class imbalance well (e.g., small foreground regions), so it is popular in medical imaging.

  26. How does Mask R-CNN extend Faster R-CNN?

    Mask R-CNN adds a third branch that outputs a binary segmentation mask for each RoI in parallel with the classification and box-regression branches, and replaces RoI Pooling with RoI Align for pixel-accurate features—enabling instance segmentation.

  27. Why does Mask R-CNN predict masks per class independently rather than with a softmax across classes?

    It predicts a separate binary mask for each class and relies on the classification branch to select which mask to use. This decouples mask prediction from class competition, avoiding inter-class competition and improving mask quality.

  28. What is a pretrained backbone and why is transfer learning with one effective?

    A backbone is a feature-extraction network (e.g., ResNet, VGG, EfficientNet) pretrained on a large dataset like ImageNet. Its early layers learn general features (edges, textures) transferable across tasks, so fine-tuning on a smaller dataset converges faster and generalizes better than training from scratch.

  29. Contrast feature extraction versus fine-tuning when using a pretrained backbone.

    Feature extraction freezes the backbone weights and trains only a new head—fast and good for small/similar datasets. Fine-tuning unfreezes some or all backbone layers and continues training at a low learning rate—better when the target dataset is larger or differs from the pretraining domain.

  30. What is a Feature Pyramid Network (FPN) and why is it used with backbones in detection?

    FPN builds a multi-scale feature pyramid by combining a bottom-up backbone pathway with a top-down pathway and lateral skip connections, producing semantically strong features at every resolution. It improves detection of objects across scales (used in Faster R-CNN, Mask R-CNN, RetinaNet).

Deep Learning Convolutional Neural Networks FAQ

What is in the Deep Learning Convolutional Neural Networks syllabus?

Deep Learning Convolutional Neural Networks is split into 5 chapters: Convolution Fundamentals, Classic CNN Architectures, Object Detection, Image Segmentation and Transfer Learning and Fine-Tuning. Together they contain 20 topics.

How many chapters are in Deep Learning Convolutional Neural Networks?

5 chapters, containing 20 topics. The largest chapter is Classic CNN Architectures, with 5 topics.

Are there flashcards for Deep Learning Convolutional Neural Networks?

Yes — a 50-card Convolutional Neural Networks deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.