1. Home
  2. Explore
  3. Computer Science
  4. CNN Architectures

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

CNN Architectures

  • 42Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AlexNet Architecture

What was the first successful instantiation of a convolutional neural network in practice, and what task was it applied to?

42 questions

  1. 1

    What was the first successful instantiation of a convolutional neural network in practice, and what task was it applied to?

    Model answer

    LeNet; it was successfully applied to digit recognition.

    Explanation

    LeNet is an early CNN architecture that used 5×5 filters, stride 1, a few conv and pooling layers, and fully connected layers. It achieved practical success on digit recognition tasks.

  2. 2

    What was the key contribution of AlexNet in 2012?

    Model answer

    It was the first large-scale CNN to significantly outperform all previous non-deep learning models on the ImageNet classification task, starting the wave of CNN research.

    Explanation

    AlexNet achieved a top-5 error rate much lower than traditional methods, demonstrating the power of deep learning for large-scale image classification.

  3. 3

    What is the input size to AlexNet, and what are the spatial dimensions and depth after the first convolutional layer (11×11 filters, 96 filters, stride 4)?

    Model answer

    Input: 227×227×3. Output after first conv: 55×55×96.

    Explanation

    Using the formula (N−F)/S+1(N - F) / S + 1(N−F)/S+1 with N=227N=227N=227, F=11F=11F=11, S=4S=4S=4 gives (227−11)/4+1=55(227-11)/4+1=55(227−11)/4+1=55 spatial size. Depth equals number of filters (96).

  4. 4

    How many parameters are in the first convolutional layer of AlexNet (11×11 filters, 96 filters, input depth 3)?

    Model answer

    96 × 11 × 11 × 3 = 34,848 parameters (≈35K).

    Explanation

    Each filter has 11×11×3 weights, and there are 96 such filters.

  5. 5

    What is the output size after the pooling layer in AlexNet (3×3 pooling, stride 2) following the first conv layer (55×55×96)?

    Model answer

    27×27×96.

    Explanation

    Using the same formula: (55-3)/2+1=27 spatial. Pooling preserves depth, so depth remains 96.

  6. 6

    How many parameters are in the pooling layer?

    Model answer

    Zero. Pooling layers have no learnable parameters.

    Explanation

    Pooling applies a fixed operation (e.g., max) over a window; no weights are learned.

  7. 7

    What nonlinearity did AlexNet first use in CNNs, and what layer type (used by AlexNet but rarely used today) normalized responses across channels?

    Model answer

    ReLU nonlinearity; local response normalization (LRN).

    Explanation

    AlexNet introduced ReLU, which became standard. LRN was found to have little effect and is not commonly used now.

  8. 8

    What training techniques did AlexNet use? List at least four.

    Model answer

    Heavy data augmentation (flipping, jittering, cropping, color normalization), dropout (batch size 128), SGD with momentum, learning rate decay (base 1e-2, reduce by factor 10 on plateau), weight decay, and model ensembling.

    Explanation

    These techniques helped reduce overfitting and improve generalization, common in modern deep learning.

  9. 9

    Why is AlexNet diagram split into two rows/columns?

    Model answer

    Because it was trained on two GTX580 GPUs (each with 3GB memory); the network was split across GPUs, with half the neurons on each and only certain layers communicating between GPUs.

    Explanation

    Older GPUs had limited memory, requiring model parallelism.

  10. 10

    What was the discrepancy in the AlexNet paper regarding input size?

    Model answer

    The paper states 224×224, but the numbers work out with 227×227.

    Explanation

    This is a known detail: the actual input used in the architecture was 227×227 for the dimensions to match.

  11. 11

    What architecture won ImageNet in 2013, and how did it differ from AlexNet?

    Model answer

    ZFNet (Zeller Fergus Net); it improved hyperparameters (stride, number of filters) but kept the same number of layers and general structure.

    Explanation

    ZFNet was an incremental improvement over AlexNet, achieving better error rates.

  12. 12

    What was the key innovation of VGGNet compared to AlexNet?

    Model answer

    Much deeper networks (16–19 layers) and the use of very small 3×3 filters throughout.

    Explanation

    VGG showed that increasing depth with small filters improves performance while keeping the architecture simple.

  13. 13

    What is the effective receptive field of three stacked 3×3 convolutional layers (stride 1)?

    Model answer

    7×7.

    Explanation

    First layer has 3×3 RF, second layer on first layer gives 5×5, third layer gives 7×7 – same as one 7×7 conv.

  14. 14

    Why are three 3×3 conv layers sometimes preferred over one 7×7 conv layer?

    Model answer

    They have fewer parameters (3 × 3×3×C×C = 27C² vs 7×7×C×C = 49C²) and introduce more non-linearity (more activation functions), making the model more discriminative.

    Explanation

    Parameter count is lower, and depth allows more complex decision functions.

  15. 15

    What is the total number of parameters in VGG-16?

    Model answer

    138 million.

    Explanation

    VGG has many parameters, mostly in the fully connected layers (4096 units each). This is larger than AlexNet's 60 million.

  16. 16

    Approximately how much memory (in megabytes) does a forward pass of VGGNet require per image, assuming 4 bytes per number?

    Model answer

    About 100 MB per image.

    Explanation

    Forward pass stores activations; with 4 bytes per activation, the total storage is around 100 MB for VGG.

  17. 17

    Why did VGGNet not use local response normalization (LRN)?

    Model answer

    They found it did not help performance.

    Explanation

    As shown in the paper, LRN had minimal impact, so it was omitted.

  18. 18

    What is FC7 in VGGNet, and why is it notable?

    Model answer

    FC7 is the 4096-dimensional fully connected layer before the final FC8 classification layer; it is often used as a good general-purpose feature representation for transfer learning.

    Explanation

    Activations from FC7 can be extracted and used as features for other tasks, indicating good generalization.

  19. 19

    How many weight layers (conv + FC) does VGG-16 have?

    Model answer

    16; VGG-19 has 19.

    Explanation

    The numbers refer to the total number of weight layers (conv and FC) in the network.

  20. 20

    What was GoogLeNet's main innovation regarding computational efficiency?

    Model answer

    The inception module, which uses parallel convolutions of different sizes (1×1, 3×3, 5×5) and pooling, and no fully connected layers, resulting in only 5 million parameters (12× fewer than AlexNet).

    Explanation

    GoogLeNet achieved high accuracy with much lower parameter count by efficient design.

  21. 21

    Describe the naive inception module. What is the problem with it?

    Model answer

    It applies 1×1, 3×3, and 5×5 convolutions and 3×3 pooling in parallel on the same input, then concatenates outputs depth-wise. The problem is high computational cost; for example, 28×28×256 input leads to 854 million operations.

    Explanation

    The number of filters (128, 192, 96) and pooling (preserving depth) cause the output depth to grow and multiply operations.

  22. 22

    How did GoogLeNet reduce the computational cost of the inception module?

    Model answer

    By adding 1×1 bottleneck convolutions before the 3×3 and 5×5 conv layers and after the pooling layer to reduce depth, dramatically reducing operations (e.g., from 854M to 358M).

    Explanation

    1×1 conv reduces depth (e.g., 256 → 64), making subsequent expensive convolutions cheaper.

  23. 23

    What is the role of a 1×1 convolution?

    Model answer

    It performs a dot product over the depth at each spatial location, preserving spatial dimensions but reducing (or increasing) depth; it can be seen as a linear combination of input feature maps with additional non-linearity.

    Explanation

    1×1 conv is used as a bottleneck to control computational complexity and introduce non-linearity.

  24. 24

    How many layers (with weights) does GoogLeNet have?

    Model answer

    22 layers.

    Explanation

    GoogLeNet has 22 weight layers, significantly deeper than VGG but with fewer parameters.

  25. 25

    What are the auxiliary classification outputs in GoogLeNet, and why are they used?

    Model answer

    They are additional classifiers attached to intermediate layers (with average pooling, 1×1 conv, and FC layers); they inject extra gradient signal during training to help with vanishing gradients and provide regularization.

    Explanation

    Deep networks with many layers can suffer from vanishing gradients; auxiliary classifiers provide additional supervision to earlier layers.

  26. 26

    Compared to AlexNet, how many fewer parameters does GoogLeNet have?

    Model answer

    12 times fewer (5M vs 60M).

    Explanation

    GoogLeNet achieves higher accuracy with far fewer parameters due to efficient inception modules and lack of FC layers.

  27. 27

    What problem did the authors of ResNet identify when training very deep networks?

    Model answer

    Deeper networks (e.g., 56-layer) had higher training error than shallower networks (e.g., 20-layer), indicating an optimization problem, not overfitting.

    Explanation

    The deeper model could not achieve the same training loss, suggesting difficulty in optimization.

  28. 28

    What is the solution proposed by ResNet to address the optimization problem in deep networks?

    Model answer

    Use residual blocks that learn the residual mapping F(x)=H(x)−xF(x) = H(x) - xF(x)=H(x)−x instead of the direct mapping H(x)H(x)H(x), with identity skip connections. The output becomes F(x)+xF(x) + xF(x)+x.

    Explanation

    If identity is optimal, the block can easily learn F(x)=0F(x)=0F(x)=0 by setting weights to zero, making optimization easier.

  29. 29

    What is a residual block?

    Model answer

    A building block consisting of two 3×3 convolutional layers (or bottleneck layers) with a skip connection that adds the input to the output (identity mapping).

    Explanation

    The block computes F(x)+xF(x) + xF(x)+x, where F(x)F(x)F(x) is the residual. This helps gradient flow.

  30. 30

    How does ResNet handle different dimensions between the input and output of a residual block when the number of filters changes?

    Model answer

    They use projection shortcuts (1×1 convolutions) or pad with zeros to match dimensions, and use stride 2 when downsampling spatially.

    Explanation

    Projection shortcuts are used only when dimensions increase (e.g., when doubling filters).

  31. 31

    What is a bottleneck residual block used in deeper ResNets (e.g., ResNet-50)?

    Model answer

    A block with three layers: 1×1 conv to reduce depth, then 3×3 conv, then 1×1 conv to restore depth. This reduces computational cost.

    Explanation

    Similar to GoogLeNet's bottleneck, it makes deep networks more efficient.

  32. 32

    What top-5 error did ResNet achieve on ImageNet, and how does it compare to human performance?

    Model answer

    3.6% top-5 error; this is better than human performance (around 5%).

    Explanation

    ResNet surpassed human-level accuracy on the ImageNet classification task.

  33. 33

    What training techniques did ResNet use?

    Model answer

    Batch normalization after every conv layer, Xavier initialization with a scaling factor, SGD with momentum, learning rate decay on plateau, mini-batch size 256, weight decay, no dropout.

    Explanation

    These are standard modern practices; batch normalization is crucial for training very deep networks.

  34. 34

    How many layers did the deepest ResNet used on ImageNet have?

    Model answer

    152 layers.

    Explanation

    ResNet-152 achieved best performance, but depths up to 1200 were tested on CIFAR.

  35. 35

    What is the concept of Network in Network (NiN)?

    Model answer

    It introduces MLP conv layers (micro-networks) that stack fully connected layers within each convolutional layer, computed using 1×1 convolutions, to learn more abstract features for local patches.

    Explanation

    NiN was a precursor to GoogLeNet and ResNet, inspiring the use of 1×1 conv and bottleneck layers.

  36. 36

    What did Wide Residual Networks argue?

    Model answer

    Residual connections are the important factor, not necessarily extreme depth; wider blocks (more filters per layer) can outperform deeper ResNets with similar parameter count and are more computationally efficient.

    Explanation

    By increasing width (factor K), a 50-layer wide ResNet can outperform a 152-layer original ResNet, and parallelization is easier.

  37. 37

    What is the main idea of ResNeXt?

    Model answer

    It increases the width through parallel pathways within a residual block, called cardinality, with each pathway being a thin transformation. It combines the ideas of inception and ResNet.

    Explanation

    Cardinality is the number of parallel paths, providing a new dimension for network design.

  38. 38

    What is Stochastic Depth, and how does it help training deep networks?

    Model answer

    During training, random subsets of layers are dropped (replaced by skip connections), creating shorter networks for better gradient flow and efficiency. At test time, the full network is used.

    Explanation

    Similar to dropout but for layers; it prevents vanishing gradients and acts as a regularizer.

  39. 39

    What is the key argument in FractalNet?

    Model answer

    Residual representations are not necessary; instead, the key is effective transition from shallow to deep networks. They use a fractal architecture with paths of varying lengths and drop sub-paths during training.

    Explanation

    FractalNet achieves competitive performance without explicit residual connections.

  40. 40

    Describe the architecture of DenseNet.

    Model answer

    In each dense block, every layer is connected to all subsequent layers in a feed-forward manner; each layer receives the concatenation of all preceding layers' feature maps as input.

    Explanation

    This dense connectivity alleviates vanishing gradients, strengthens feature propagation, and encourages feature reuse.

  41. 41

    What is SqueezeNet, and what is its key contribution?

    Model answer

    SqueezeNet is an efficient network using 'fire modules' (squeeze layer of 1×1 filters followed by expand layer with 1×1 and 3×3 filters); it achieves AlexNet-level accuracy with 50× fewer parameters and can be compressed to 0.5 MB.

    Explanation

    It demonstrates that efficient architectures can maintain accuracy with far fewer parameters, important for deployment.

  42. 42

    According to the lecture, which architecture is currently the most recommended for general use?

    Model answer

    ResNet (along with its variants) is the most recent best-performing model and should be tried first when training a new network.

    Explanation

    ResNet has the highest accuracy with reasonable computational cost.

1 of 42
Question 1 of 42

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent