CNN Architectures
- 39Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What do deep learning frameworks like PyTorch and TensorFlow primarily enable?
What do deep learning frameworks like PyTorch and TensorFlow primarily enable?
39 questions
- 1
What do deep learning frameworks like PyTorch and TensorFlow primarily enable?
- A
Automatically generating training data from raw images
- B
Replacing convolutional layers with fully connected layers
- C
Building large computational graphs and easily computing gradients
- D
Directly visualizing network activations in real time
Correct answer
CBuilding 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.
- A
- 2
What was the first convolutional neural network successfully applied to digit recognition?
- A
GoogLeNet
- B
AlexNet
- C
VGGNet
- D
LeNet
Correct answer
DLeNet
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.
- A
- 3
What input size did the AlexNet architecture use for ImageNet training?
- A
227 x 227 x 1
- B
227 x 227 x 3
- C
256 x 256 x 3
- D
224 x 224 x 3
Correct answer
B227 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.
- A
- 4
What is the output volume of the first convolutional layer in AlexNet (11x11 filters, 96 filters, stride 4) given a 227x227x3 input?
- A
55 x 55 x 48
- B
55 x 55 x 96
- C
55 x 55 x 3
- D
27 x 27 x 96
Correct answer
B55 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.
- A
- 5
How many parameters are in the first convolutional layer of AlexNet (11x11x3 filters, 96 filters)?
- A
Approximately 35,000
- B
Approximately 96,000
- C
Approximately 11,000
- D
Approximately 3,500
Correct answer
AApproximately 35,000
Explanation
Each filter has 11x11x3 = 363 parameters. With 96 filters, total = 96 x 363 = 34,848, approximately 35K.
- A
- 6
Why does the pooling layer in AlexNet (3x3, stride 2) have zero trainable parameters?
- A
The pooling operation is deterministic and does not require gradient computation
- B
The parameters are shared with the preceding convolutional layer
- C
Pooling layers are only used during testing and not during training
- D
Pooling layers only apply a fixed operation like max or average and do not learn weights
Correct answer
DPooling 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.
- A
- 7
What non-linearity did AlexNet introduce that became standard in CNNs?
- A
Sigmoid
- B
Leaky ReLU
- C
ReLU
- D
Tanh
Correct answer
CReLU
Explanation
AlexNet was the first to use ReLU (Rectified Linear Unit) as the activation function, which helped with training speed and addressing vanishing gradients.
- A
- 8
Why was the AlexNet architecture split across two GPUs?
- A
The network was too large to fit on a single GPU's memory (3 GB limit)
- B
To parallelize the forward pass and reduce training time
- C
To enable different learning rates on each GPU
- D
The original design required separate pathways for color channels
Correct answer
AThe 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.
- A
- 9
Which layers in AlexNet had cross-GPU connections (GPUs communicated)?
- A
conv3, FC6, FC7, and FC8
- B
conv1, conv2, conv4, and conv5
- C
All convolutional layers
- D
Only the fully connected layers
Correct answer
Aconv3, 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.
- A
- 10
What is the main difference between ZFNet and AlexNet?
- A
ZFNet used 1x1 convolutions for bottleneck layers
- B
ZFNet replaced all fully connected layers with average pooling
- C
ZFNet improved hyperparameters like stride and filter numbers while keeping the same overall architecture
- D
ZFNet introduced residual connections
Correct answer
CZFNet 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.
- A
- 11
What is the effective receptive field of three stacked 3x3 convolutional layers (stride 1)?
- A
5x5
- B
7x7
- C
9x9
- D
3x3
Correct answer
B7x7
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.
- A
- 12
Compared to a single 7x7 convolutional layer, three stacked 3x3 layers have:
- A
Fewer parameters but the same number of non-linearities
- B
More parameters and fewer non-linearities
- C
Fewer parameters and more non-linearities
- D
The same number of parameters and non-linearities
Correct answer
CFewer 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.
- A
- 13
What is the total number of parameters in VGG16 compared to AlexNet?
- A
138 million vs 5 million
- B
138 million vs 60 million
- C
60 million vs 138 million
- D
5 million vs 138 million
Correct answer
B138 million vs 60 million
Explanation
VGG16 has approximately 138 million parameters, while AlexNet has about 60 million.
- A
- 14
Approximately how much memory (in megabytes) is used for a single forward pass in VGGNet?
- A
10 MB
- B
100 MB
- C
50 MB
- D
200 MB
Correct answer
B100 MB
Explanation
Counting activations, VGGNet uses about 100 MB per image for a forward pass. Backward pass requires additional storage.
- A
- 15
Where does most of the memory in VGGNet get consumed?
- A
In the fully connected layers due to many parameters
- B
In the convolutional layers due to kernel weights
- C
In the early layers due to larger spatial dimensions
- D
In the pooling layers due to storing indices
Correct answer
CIn 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.
- A
- 16
What did the authors of VGGNet find about local response normalization?
- A
It was replaced by batch normalization
- B
It improved accuracy but increased training time
- C
It was essential for training deep networks
- D
It did not help performance, so they did not use it
Correct answer
DIt 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.
- A
- 17
Which layer's features from VGGNet are commonly used as generic feature representations for transfer learning?
- A
The output of the first pooling layer
- B
FC7 (the last fully connected layer before the classification layer)
- C
FC6
- D
The output of the last convolutional layer
Correct answer
BFC7 (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.
- A
- 18
What task did VGGNet win first place in during the 2014 ImageNet challenge?
- A
Localization
- B
Classification
- C
Segmentation
- D
Detection
Correct answer
ALocalization
Explanation
VGGNet won first place in the localization challenge (drawing bounding boxes around objects) and second in classification.
- A
- 19
What is the main building block of GoogLeNet that enables efficient computation?
- A
The dense block
- B
The fire module
- C
The inception module
- D
The residual block
Correct answer
CThe inception module
Explanation
GoogLeNet uses inception modules, which apply multiple filter sizes in parallel and concatenate outputs, designed to be computationally efficient.
- A
- 20
How many parameters does GoogLeNet have compared to AlexNet?
- A
5 million vs 138 million
- B
5 million vs 60 million (12 times fewer)
- C
60 million vs 5 million (12 times more)
- D
138 million vs 5 million
Correct answer
B5 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.
- A
- 21
Why does the naive inception module lead to high computational cost?
- A
The pooling layer doubles the number of feature maps
- B
It uses fully connected layers within the module
- C
Performing all parallel convolutions and pooling without reducing depth increases the number of operations
- D
The 5x5 convolutions are computationally prohibitive
Correct answer
CPerforming 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).
- A
- 22
How did GoogLeNet reduce the computational cost of the inception module?
- A
Removing the 5x5 convolutions entirely
- B
Using depthwise separable convolutions
- C
Adding 1x1 bottleneck convolutions before the 3x3 and 5x5 convs and after pooling
- D
Replacing all convolutions with average pooling
Correct answer
CAdding 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.
- A
- 23
What is the purpose of auxiliary classifiers in GoogLeNet?
- A
To inject additional gradient signal into earlier layers to combat vanishing gradients
- B
To enable multi-task learning on related tasks
- C
To replace the final classifier with an ensemble of classifiers
- D
To reduce the number of parameters by sharing weights
Correct answer
ATo 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.
- A
- 24
What type of layer replaces fully connected layers in GoogLeNet?
- A
Adaptive average pooling
- B
Flattening followed by softmax
- C
Max pooling with large stride
- D
Global average pooling
Correct answer
DGlobal 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.
- A
- 25
What phenomenon did ResNet address by introducing residual connections?
- A
Memory constraints in very deep networks
- B
Overfitting due to too many parameters
- C
Deeper plain networks have higher training error (optimization difficulty)
- D
Slow convergence of SGD
Correct answer
CDeeper 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.
- A
- 26
In a residual block, what does the layer attempt to learn?
- A
The gradient of the loss with respect to x
- B
The residual F(x) = H(x) - x, where H(x) is the desired underlying mapping
- C
The identity mapping directly
- D
The output H(x) = x + F(x) without shortcut
Correct answer
BThe 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.
- A
- 27
Why is it easier to learn the identity mapping with residual blocks?
- A
The skip connection includes a learnable parameter that can be set to one
- B
The block output is F(x) + x; setting all weights to zero makes F(x)=0, yielding identity output
- C
The gradient flows directly through the skip connection without transformation
- D
Batch normalization ensures the output is close to the input
Correct answer
BThe 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.
- A
- 28
What is the typical structure of a residual block in ResNet?
- A
Two 3x3 convolutional layers with a skip connection
- B
A single 5x5 convolutional layer with batch normalization
- C
Three 1x1 convolutional layers in series
- D
One 3x3 convolutional layer followed by a pooling layer
Correct answer
ATwo 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.
- A
- 29
How does ResNet handle changes in spatial dimensions and depth between residual blocks?
- A
It only uses stride 1 and adjusts the number of filters without downsampling
- B
It reduces the input size by average pooling and then pads the skip connection with zeros
- 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
- D
It increases the filter size and reduces the stride to compensate
Correct answer
CIt 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.
- A
- 30
What technique does ResNet use to enable very deep networks (e.g., 152 layers) efficiently?
- A
Bottleneck residual blocks with 1x1 convolutions to reduce and restore depth
- B
Training with smaller images and then fine-tuning on full size
- C
Using only 3x3 convolutions with large stride
- D
Removing all skip connections to save memory
Correct answer
ABottleneck 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.
- A
- 31
What top-5 error rate did ResNet achieve on ImageNet, surpassing human-level performance?
- A
3.57%
- B
6.7%
- C
5.0%
- D
7.3%
Correct answer
A3.57%
Explanation
ResNet achieved a top-5 error of 3.57% on ImageNet, which was better than the reported human performance of approximately 5%.
- A
- 32
Which regularization technique was NOT used in ResNet?
- A
Data augmentation
- B
Batch normalization
- C
Weight decay
- D
Dropout
Correct answer
DDropout
Explanation
ResNet used batch normalization after every convolutional layer, weight decay, and data augmentation, but did not use dropout.
- A
- 33
What is the main idea behind Network in Network (NiN)?
- A
Replacing all convolutional layers with fully connected layers
- B
Introducing inception modules for multi-scale processing
- C
Adding MLP (multilayer perceptron) convolutions to compute more abstract features within each convolutional layer
- D
Using multiple parallel networks and averaging their outputs
Correct answer
CAdding 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.
- A
- 34
What key finding did Wide Residual Networks (WRN) demonstrate?
- A
Batch normalization is the key factor in ResNet's success
- B
Depth is more important than width for performance
- C
Increasing width (number of filters) can outperform deeper networks even with same parameter count
- D
Residual connections are not necessary for very deep networks
Correct answer
CIncreasing 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.
- A
- 35
What does the term 'cardinality' refer to in the ResNeXt architecture?
- A
The number of parallel pathways within a residual block
- B
The factor by which width is increased
- C
The number of layers in the network
- D
The total number of parameters
Correct answer
AThe 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.
- A
- 36
What technique does Stochastic Depth use to improve training of very deep networks?
- A
Adding noise to the input images
- B
Randomly dropping neurons in each layer
- C
Using stochastic gradient descent with random learning rates
- D
Randomly dropping entire layers (skip connections) during training to create shorter networks
Correct answer
DRandomly 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.
- A
- 37
What is FractalNet's claim regarding residual representations?
- A
Residual connections are essential for training deep networks
- B
FractalNet is a variant of ResNet with more branches
- C
Residual representations are not necessary; effective depth transition can be achieved with a fractal architecture
- D
FractalNet uses stochastic depth to improve performance
Correct answer
CResidual 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.
- A
- 38
What is the key feature of the DenseNet architecture?
- A
The network uses only 1x1 convolutions to reduce parameters
- B
The network has no skip connections but uses very wide layers
- C
Each layer receives concatenated feature maps from all preceding layers within a dense block
- D
Each layer is connected only to the next layer via skip connections
Correct answer
CEach 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.
- A
- 39
What is the fire module in SqueezeNet composed of?
- A
A 3x3 convolutional layer followed by a 1x1 convolutional layer
- B
A squeeze layer (1x1 filters) followed by an expand layer (mix of 1x1 and 3x3 filters)
- C
A max pooling layer followed by a 1x1 convolution
- D
A sequence of 1x1, 3x3, and 5x5 convolutions in parallel
Correct answer
BA 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.
- A

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