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

  • 39Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Foundations and Early Architectures

What do deep learning frameworks like PyTorch and TensorFlow primarily enable?

39 questions

  1. 1

    What do deep learning frameworks like PyTorch and TensorFlow primarily enable?

    1. A

      Automatically generating training data from raw images

    2. B

      Replacing convolutional layers with fully connected layers

    3. C

      Building large computational graphs and easily computing gradients

    4. D

      Directly visualizing network activations in real time

    Correct answer
    C

    Building large computational graphs and easily computing gradients

    Explanation

    Deep learning frameworks allow constructing complex computational graphs, such as neural networks, and efficiently compute gradients via automatic differentiation for training.

  2. 2

    What was the first convolutional neural network successfully applied to digit recognition?

    1. A

      GoogLeNet

    2. B

      AlexNet

    3. C

      VGGNet

    4. D

      LeNet

    Correct answer
    D

    LeNet

    Explanation

    LeNet was an early CNN that used 5x5 filters, stride 1, and a few conv/pool layers followed by fully connected layers, achieving good results on digit recognition.

  3. 3

    What input size did the AlexNet architecture use for ImageNet training?

    1. A

      227 x 227 x 1

    2. B

      227 x 227 x 3

    3. C

      256 x 256 x 3

    4. D

      224 x 224 x 3

    Correct answer
    B

    227 x 227 x 3

    Explanation

    Although the AlexNet paper states 224x224, the actual dimensions work out to 227x227x3 for the input images when considering the first convolutional layer.

  4. 4

    What is the output volume of the first convolutional layer in AlexNet (11x11 filters, 96 filters, stride 4) given a 227x227x3 input?

    1. A

      55 x 55 x 48

    2. B

      55 x 55 x 96

    3. C

      55 x 55 x 3

    4. D

      27 x 27 x 96

    Correct answer
    B

    55 x 55 x 96

    Explanation

    Using the formula (N - F)/S + 1, where N=227, F=11, S=4, gives (227-11)/4+1=55. With 96 filters, the output volume is 55x55x96.

  5. 5

    How many parameters are in the first convolutional layer of AlexNet (11x11x3 filters, 96 filters)?

    1. A

      Approximately 35,000

    2. B

      Approximately 96,000

    3. C

      Approximately 11,000

    4. D

      Approximately 3,500

    Correct answer
    A

    Approximately 35,000

    Explanation

    Each filter has 11x11x3 = 363 parameters. With 96 filters, total = 96 x 363 = 34,848, approximately 35K.

  6. 6

    Why does the pooling layer in AlexNet (3x3, stride 2) have zero trainable parameters?

    1. A

      The pooling operation is deterministic and does not require gradient computation

    2. B

      The parameters are shared with the preceding convolutional layer

    3. C

      Pooling layers are only used during testing and not during training

    4. D

      Pooling layers only apply a fixed operation like max or average and do not learn weights

    Correct answer
    D

    Pooling layers only apply a fixed operation like max or average and do not learn weights

    Explanation

    Pooling layers perform a pre-defined operation (e.g., max pooling) with no trainable weights; they simply downsample the spatial dimensions.

  7. 7

    What non-linearity did AlexNet introduce that became standard in CNNs?

    1. A

      Sigmoid

    2. B

      Leaky ReLU

    3. C

      ReLU

    4. D

      Tanh

    Correct answer
    C

    ReLU

    Explanation

    AlexNet was the first to use ReLU (Rectified Linear Unit) as the activation function, which helped with training speed and addressing vanishing gradients.

  8. 8

    Why was the AlexNet architecture split across two GPUs?

    1. A

      The network was too large to fit on a single GPU's memory (3 GB limit)

    2. B

      To parallelize the forward pass and reduce training time

    3. C

      To enable different learning rates on each GPU

    4. D

      The original design required separate pathways for color channels

    Correct answer
    A

    The network was too large to fit on a single GPU's memory (3 GB limit)

    Explanation

    AlexNet was trained on GTX580 GPUs with only 3 GB of memory, so the network was split across two GPUs, with half the feature maps on each and cross-connections in specific layers.

  9. 9

    Which layers in AlexNet had cross-GPU connections (GPUs communicated)?

    1. A

      conv3, FC6, FC7, and FC8

    2. B

      conv1, conv2, conv4, and conv5

    3. C

      All convolutional layers

    4. D

      Only the fully connected layers

    Correct answer
    A

    conv3, FC6, FC7, and FC8

    Explanation

    In AlexNet, layers conv3, FC6, FC7, and FC8 have connections across both GPUs, while conv1, conv2, conv4, and conv5 only use feature maps within the same GPU.

  10. 10

    What is the main difference between ZFNet and AlexNet?

    1. A

      ZFNet used 1x1 convolutions for bottleneck layers

    2. B

      ZFNet replaced all fully connected layers with average pooling

    3. C

      ZFNet improved hyperparameters like stride and filter numbers while keeping the same overall architecture

    4. D

      ZFNet introduced residual connections

    Correct answer
    C

    ZFNet improved hyperparameters like stride and filter numbers while keeping the same overall architecture

    Explanation

    ZFNet (2013) essentially tuned the hyperparameters of AlexNet (e.g., stride, number of filters) and achieved a lower error rate, but the architecture remained very similar.

  11. 11

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

    1. A

      5x5

    2. B

      7x7

    3. C

      9x9

    4. D

      3x3

    Correct answer
    B

    7x7

    Explanation

    A 3x3 conv sees 3x3, the next sees 5x5 (due to overlap), and the third sees 7x7. This equals a single 7x7 conv but with fewer parameters and more non-linearities.

  12. 12

    Compared to a single 7x7 convolutional layer, three stacked 3x3 layers have:

    1. A

      Fewer parameters but the same number of non-linearities

    2. B

      More parameters and fewer non-linearities

    3. C

      Fewer parameters and more non-linearities

    4. D

      The same number of parameters and non-linearities

    Correct answer
    C

    Fewer parameters and more non-linearities

    Explanation

    Three 3x3 layers have 3 x (3x3xCxC) = 27C^2 parameters, while one 7x7 has 49C^2. They also have three ReLU non-linearities instead of one.

  13. 13

    What is the total number of parameters in VGG16 compared to AlexNet?

    1. A

      138 million vs 5 million

    2. B

      138 million vs 60 million

    3. C

      60 million vs 138 million

    4. D

      5 million vs 138 million

    Correct answer
    B

    138 million vs 60 million

    Explanation

    VGG16 has approximately 138 million parameters, while AlexNet has about 60 million.

  14. 14

    Approximately how much memory (in megabytes) is used for a single forward pass in VGGNet?

    1. A

      10 MB

    2. B

      100 MB

    3. C

      50 MB

    4. D

      200 MB

    Correct answer
    B

    100 MB

    Explanation

    Counting activations, VGGNet uses about 100 MB per image for a forward pass. Backward pass requires additional storage.

  15. 15

    Where does most of the memory in VGGNet get consumed?

    1. A

      In the fully connected layers due to many parameters

    2. B

      In the convolutional layers due to kernel weights

    3. C

      In the early layers due to larger spatial dimensions

    4. D

      In the pooling layers due to storing indices

    Correct answer
    C

    In the early layers due to larger spatial dimensions

    Explanation

    Early layers have larger spatial maps (e.g., 224x224) and thus more activation memory, while late fully connected layers dominate parameter count but are smaller spatially.

  16. 16

    What did the authors of VGGNet find about local response normalization?

    1. A

      It was replaced by batch normalization

    2. B

      It improved accuracy but increased training time

    3. C

      It was essential for training deep networks

    4. D

      It did not help performance, so they did not use it

    Correct answer
    D

    It did not help performance, so they did not use it

    Explanation

    VGGNet found that local response normalization (used in AlexNet) had little effect, so they omitted it.

  17. 17

    Which layer's features from VGGNet are commonly used as generic feature representations for transfer learning?

    1. A

      The output of the first pooling layer

    2. B

      FC7 (the last fully connected layer before the classification layer)

    3. C

      FC6

    4. D

      The output of the last convolutional layer

    Correct answer
    B

    FC7 (the last fully connected layer before the classification layer)

    Explanation

    VGGNet showed that the 4096-dimensional features from the FC7 layer generalize well to other tasks and are often used as feature extractors.

  18. 18

    What task did VGGNet win first place in during the 2014 ImageNet challenge?

    1. A

      Localization

    2. B

      Classification

    3. C

      Segmentation

    4. D

      Detection

    Correct answer
    A

    Localization

    Explanation

    VGGNet won first place in the localization challenge (drawing bounding boxes around objects) and second in classification.

  19. 19

    What is the main building block of GoogLeNet that enables efficient computation?

    1. A

      The dense block

    2. B

      The fire module

    3. C

      The inception module

    4. D

      The residual block

    Correct answer
    C

    The inception module

    Explanation

    GoogLeNet uses inception modules, which apply multiple filter sizes in parallel and concatenate outputs, designed to be computationally efficient.

  20. 20

    How many parameters does GoogLeNet have compared to AlexNet?

    1. A

      5 million vs 138 million

    2. B

      5 million vs 60 million (12 times fewer)

    3. C

      60 million vs 5 million (12 times more)

    4. D

      138 million vs 5 million

    Correct answer
    B

    5 million vs 60 million (12 times fewer)

    Explanation

    GoogLeNet has only about 5 million parameters, roughly 12 times fewer than AlexNet's 60 million, despite being much deeper.

  21. 21

    Why does the naive inception module lead to high computational cost?

    1. A

      The pooling layer doubles the number of feature maps

    2. B

      It uses fully connected layers within the module

    3. C

      Performing all parallel convolutions and pooling without reducing depth increases the number of operations

    4. D

      The 5x5 convolutions are computationally prohibitive

    Correct answer
    C

    Performing all parallel convolutions and pooling without reducing depth increases the number of operations

    Explanation

    The naive inception module concatenates outputs from all operations, causing the depth to grow quickly and resulting in high computation (e.g., 854M ops in an example).

  22. 22

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

    1. A

      Removing the 5x5 convolutions entirely

    2. B

      Using depthwise separable convolutions

    3. C

      Adding 1x1 bottleneck convolutions before the 3x3 and 5x5 convs and after pooling

    4. D

      Replacing all convolutions with average pooling

    Correct answer
    C

    Adding 1x1 bottleneck convolutions before the 3x3 and 5x5 convs and after pooling

    Explanation

    GoogLeNet inserted 1x1 convolutions to reduce depth before the expensive 3x3 and 5x5 convs, and after pooling, dropping operations from 854M to 358M in the example.

  23. 23

    What is the purpose of auxiliary classifiers in GoogLeNet?

    1. A

      To inject additional gradient signal into earlier layers to combat vanishing gradients

    2. B

      To enable multi-task learning on related tasks

    3. C

      To replace the final classifier with an ensemble of classifiers

    4. D

      To reduce the number of parameters by sharing weights

    Correct answer
    A

    To inject additional gradient signal into earlier layers to combat vanishing gradients

    Explanation

    The auxiliary classifiers provide extra supervision at intermediate layers, helping gradients flow back to early layers in the deep network.

  24. 24

    What type of layer replaces fully connected layers in GoogLeNet?

    1. A

      Adaptive average pooling

    2. B

      Flattening followed by softmax

    3. C

      Max pooling with large stride

    4. D

      Global average pooling

    Correct answer
    D

    Global average pooling

    Explanation

    GoogLeNet uses global average pooling at the end, which averages each feature map spatially, reducing the number of parameters and helping avoid overfitting.

  25. 25

    What phenomenon did ResNet address by introducing residual connections?

    1. A

      Memory constraints in very deep networks

    2. B

      Overfitting due to too many parameters

    3. C

      Deeper plain networks have higher training error (optimization difficulty)

    4. D

      Slow convergence of SGD

    Correct answer
    C

    Deeper plain networks have higher training error (optimization difficulty)

    Explanation

    ResNet observed that adding more layers to a plain network increased training error, not due to overfitting but due to optimization challenges, and residual connections helped alleviate this.

  26. 26

    In a residual block, what does the layer attempt to learn?

    1. A

      The gradient of the loss with respect to x

    2. B

      The residual F(x) = H(x) - x, where H(x) is the desired underlying mapping

    3. C

      The identity mapping directly

    4. D

      The output H(x) = x + F(x) without shortcut

    Correct answer
    B

    The residual F(x) = H(x) - x, where H(x) is the desired underlying mapping

    Explanation

    Instead of learning H(x) directly, the layers in a residual block learn the residual F(x) = H(x) - x, and the block output is F(x) + x via a skip connection.

  27. 27

    Why is it easier to learn the identity mapping with residual blocks?

    1. A

      The skip connection includes a learnable parameter that can be set to one

    2. B

      The block output is F(x) + x; setting all weights to zero makes F(x)=0, yielding identity output

    3. C

      The gradient flows directly through the skip connection without transformation

    4. D

      Batch normalization ensures the output is close to the input

    Correct answer
    B

    The block output is F(x) + x; setting all weights to zero makes F(x)=0, yielding identity output

    Explanation

    If the optimal mapping is identity, the residual block can simply learn to output zero (by zeroing weights) so that output equals input, which is easier than learning an identity mapping from scratch.

  28. 28

    What is the typical structure of a residual block in ResNet?

    1. A

      Two 3x3 convolutional layers with a skip connection

    2. B

      A single 5x5 convolutional layer with batch normalization

    3. C

      Three 1x1 convolutional layers in series

    4. D

      One 3x3 convolutional layer followed by a pooling layer

    Correct answer
    A

    Two 3x3 convolutional layers with a skip connection

    Explanation

    The standard ResNet block consists of two 3x3 convolutional layers, each followed by batch normalization and ReLU, with a skip connection adding the input to the output.

  29. 29

    How does ResNet handle changes in spatial dimensions and depth between residual blocks?

    1. A

      It only uses stride 1 and adjusts the number of filters without downsampling

    2. B

      It reduces the input size by average pooling and then pads the skip connection with zeros

    3. C

      It uses stride 2 in the first convolutional layer of the block and applies a 1x1 convolution on the skip connection to match dimensions

    4. D

      It increases the filter size and reduces the stride to compensate

    Correct answer
    C

    It uses stride 2 in the first convolutional layer of the block and applies a 1x1 convolution on the skip connection to match dimensions

    Explanation

    When doubling the number of filters and reducing spatial size, ResNet uses a stride of 2 in the first convolution and a 1x1 convolution on the skip connection to match dimensions for addition.

  30. 30

    What technique does ResNet use to enable very deep networks (e.g., 152 layers) efficiently?

    1. A

      Bottleneck residual blocks with 1x1 convolutions to reduce and restore depth

    2. B

      Training with smaller images and then fine-tuning on full size

    3. C

      Using only 3x3 convolutions with large stride

    4. D

      Removing all skip connections to save memory

    Correct answer
    A

    Bottleneck residual blocks with 1x1 convolutions to reduce and restore depth

    Explanation

    For networks deeper than 50 layers, ResNet uses bottleneck blocks: a 1x1 conv reduces depth, a 3x3 conv operates on reduced depth, and another 1x1 conv restores depth, reducing computation.

  31. 31

    What top-5 error rate did ResNet achieve on ImageNet, surpassing human-level performance?

    1. A

      3.57%

    2. B

      6.7%

    3. C

      5.0%

    4. D

      7.3%

    Correct answer
    A

    3.57%

    Explanation

    ResNet achieved a top-5 error of 3.57% on ImageNet, which was better than the reported human performance of approximately 5%.

  32. 32

    Which regularization technique was NOT used in ResNet?

    1. A

      Data augmentation

    2. B

      Batch normalization

    3. C

      Weight decay

    4. D

      Dropout

    Correct answer
    D

    Dropout

    Explanation

    ResNet used batch normalization after every convolutional layer, weight decay, and data augmentation, but did not use dropout.

  33. 33

    What is the main idea behind Network in Network (NiN)?

    1. A

      Replacing all convolutional layers with fully connected layers

    2. B

      Introducing inception modules for multi-scale processing

    3. C

      Adding MLP (multilayer perceptron) convolutions to compute more abstract features within each convolutional layer

    4. D

      Using multiple parallel networks and averaging their outputs

    Correct answer
    C

    Adding MLP (multilayer perceptron) convolutions to compute more abstract features within each convolutional layer

    Explanation

    NiN introduced MLP conv layers (using 1x1 convs and non-linearities) to increase representational power within each local patch, which later inspired bottleneck layers.

  34. 34

    What key finding did Wide Residual Networks (WRN) demonstrate?

    1. A

      Batch normalization is the key factor in ResNet's success

    2. B

      Depth is more important than width for performance

    3. C

      Increasing width (number of filters) can outperform deeper networks even with same parameter count

    4. D

      Residual connections are not necessary for very deep networks

    Correct answer
    C

    Increasing width (number of filters) can outperform deeper networks even with same parameter count

    Explanation

    WRN showed that a 50-layer wide ResNet (more filters per layer) can outperform the 152-layer original ResNet, and wider networks are more computationally efficient due to parallelism.

  35. 35

    What does the term 'cardinality' refer to in the ResNeXt architecture?

    1. A

      The number of parallel pathways within a residual block

    2. B

      The factor by which width is increased

    3. C

      The number of layers in the network

    4. D

      The total number of parameters

    Correct answer
    A

    The number of parallel pathways within a residual block

    Explanation

    ResNeXt increases cardinality, meaning it uses multiple parallel transformation pathways (branches) within each residual block, combining the ideas of width and inception-like parallel operations.

  36. 36

    What technique does Stochastic Depth use to improve training of very deep networks?

    1. A

      Adding noise to the input images

    2. B

      Randomly dropping neurons in each layer

    3. C

      Using stochastic gradient descent with random learning rates

    4. D

      Randomly dropping entire layers (skip connections) during training to create shorter networks

    Correct answer
    D

    Randomly dropping entire layers (skip connections) during training to create shorter networks

    Explanation

    Stochastic Depth randomly drops a subset of layers (bypassing them with identity) during training, reducing effective depth and improving gradient flow, similar to dropout but for layers.

  37. 37

    What is FractalNet's claim regarding residual representations?

    1. A

      Residual connections are essential for training deep networks

    2. B

      FractalNet is a variant of ResNet with more branches

    3. C

      Residual representations are not necessary; effective depth transition can be achieved with a fractal architecture

    4. D

      FractalNet uses stochastic depth to improve performance

    Correct answer
    C

    Residual representations are not necessary; effective depth transition can be achieved with a fractal architecture

    Explanation

    FractalNet argues that residual representations are not mandatory and that a fractal architecture with both shallow and deep paths, trained with path dropout, can achieve comparable performance.

  38. 38

    What is the key feature of the DenseNet architecture?

    1. A

      The network uses only 1x1 convolutions to reduce parameters

    2. B

      The network has no skip connections but uses very wide layers

    3. C

      Each layer receives concatenated feature maps from all preceding layers within a dense block

    4. D

      Each layer is connected only to the next layer via skip connections

    Correct answer
    C

    Each layer receives concatenated feature maps from all preceding layers within a dense block

    Explanation

    In DenseNet, within a dense block, each layer is connected to every other layer in a feed-forward manner; the input to a layer is the concatenation of all previous feature maps.

  39. 39

    What is the fire module in SqueezeNet composed of?

    1. A

      A 3x3 convolutional layer followed by a 1x1 convolutional layer

    2. B

      A squeeze layer (1x1 filters) followed by an expand layer (mix of 1x1 and 3x3 filters)

    3. C

      A max pooling layer followed by a 1x1 convolution

    4. D

      A sequence of 1x1, 3x3, and 5x5 convolutions in parallel

    Correct answer
    B

    A squeeze layer (1x1 filters) followed by an expand layer (mix of 1x1 and 3x3 filters)

    Explanation

    SqueezeNet's fire module first squeezes the input with a 1x1 convolution (reducing depth), then expands with a mixture of 1x1 and 3x3 convolutions, achieving efficiency.

Question 1 of 39
Question 1 of 39

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent