Convolutional Neural Networks
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What was the Mark I Perceptron and who developed it?
30 questions
- 1
What was the Mark I Perceptron and who developed it?
Model answer
The Mark I Perceptron was the first implementation of the perceptron algorithm, developed by Frank Rosenblatt in 1957.
Explanation
The Mark I Perceptron used a linear score function with a step activation and an update rule similar to later backpropagation, but without a principled gradient descent method.
- 2
Who developed Adaline and Madaline, and what was their significance?
Model answer
Widrow and Hoff developed Adaline and Madaline in 1960, which were the first multilayer perceptron networks with stacked linear layers, though still trained without backpropagation.
Explanation
Adaline and Madaline inspired later neural network architectures by showing that multiple linear layers could be stacked, but lacked a principled training method until backpropagation.
- 3
When was backpropagation first introduced for training neural networks, and by whom?
Model answer
Backpropagation was first introduced in 1986 by Rumelhart, providing a principled way to train neural networks using the chain rule.
Explanation
Backpropagation allowed gradients to be computed efficiently for multi-layer networks, enabling training of deeper architectures.
- 4
How did Hinton and Salakhutdinov (2006) train deep neural networks effectively?
Model answer
They used a pre-training stage with restricted Boltzmann machines (RBMs) to initialize each hidden layer, followed by fine-tuning with backpropagation.
Explanation
Pre-training with RBMs provided good initial weights, allowing backpropagation to work without careful hand-crafted initialization.
- 5
What landmark result in 2012 sparked the widespread adoption of neural networks?
Model answer
In 2012, Alex Krizhevsky's AlexNet achieved dramatically lower error on ImageNet classification, and Hinton's group also achieved strong results in speech recognition.
Explanation
These results demonstrated the power of deep learning on large-scale tasks, aided by GPUs and large datasets.
- 6
What key observations about the visual cortex did Hubel and Wiesel make in the 1950s?
Model answer
They discovered a topographical mapping (nearby cells represent nearby visual field regions) and a hierarchical organization of neurons responsive to increasingly complex stimuli (e.g., edges, movement).
Explanation
These findings inspired later neural network architectures, such as the neocognitron and convolutional neural networks.
- 7
What were the simple cells and complex cells found by Hubel and Wiesel?
Model answer
Simple cells respond to oriented edges, while complex cells respond to oriented edges with movement, and they form a hierarchy with increasing complexity.
Explanation
Simple cells detect basic features, complex cells pool over simple cells for invariance, similar to convolutional and pooling layers in ConvNets.
- 8
How did the neocognitron (1980) by Fukushima relate to Hubel and Wiesel's findings?
Model answer
The neocognitron used alternating layers of simple cells (with modifiable parameters) and complex cells (performing pooling), mimicking the biological hierarchy.
Explanation
This was the first artificial model to explicitly incorporate the simple-complex cell organization.
- 9
What was Yann LeCun's contribution to convolutional neural networks in 1998?
Model answer
He showed that backpropagation could train ConvNets for document recognition, specifically digit recognition for zip codes.
Explanation
LeCun's work demonstrated the practical application of ConvNets, though scaling to more complex tasks required further advances.
- 10
How does a convolutional layer differ from a fully connected layer in preserving spatial structure?
Model answer
A convolutional layer keeps the input's spatial dimensions (height and width) and uses small filters that slide over the image, rather than stretching all pixels into a vector.
Explanation
Convolutional layers maintain spatial relationships, allowing the network to learn local patterns and translations invariance.
- 11
What is the operation performed by a convolutional filter at each spatial location?
Model answer
The filter is overlaid on a region of the input (same depth), and a dot product is computed between the filter weights and the input values, plus a bias term.
Explanation
Each filter learns to detect a specific pattern; applying it across spatial locations produces an activation map.
- 12
How is the output of a convolutional layer structured?
Model answer
The output is a 3D volume where each filter produces a 2D activation map, stacked along the depth dimension. The spatial size depends on input size, filter size, stride, and padding.
Explanation
Multiple filters allow the layer to detect diverse patterns; the depth equals the number of filters.
- 13
What is the formula to compute the output spatial size after convolution?
Model answer
Output size = (Input size – Filter size + 2 * Padding) / Stride + 1, applied to both height and width.
Explanation
This formula determines how many filter positions fit along each spatial dimension.
- 14
Given an input of size 32x32, filter size 5x5, stride 1, and padding 2, what is the output spatial size?
Model answer
The output spatial size is 32x32, because (32 – 5 + 4)/1 + 1 = 32.
Explanation
Padding of 2 compensates for the filter size, preserving spatial dimensions.
- 15
What is the purpose of zero padding in convolutional layers?
Model answer
Zero padding maintains the spatial size of the output and allows filters to be applied at the edges and corners of the input.
Explanation
Without padding, spatial dimensions shrink after each convolution, losing edge information.
- 16
What are common filter sizes and corresponding padding values to preserve spatial size?
Model answer
Common filter sizes are 3x3 (pad 1), 5x5 (pad 2), and 7x7 (pad 3).
Explanation
These pairs ensure that output spatial dimensions equal input dimensions when stride is 1.
- 17
Calculate the number of parameters in a convolutional layer with input depth 3, 10 filters of size 5x5, including biases.
Model answer
Each filter has 553 + 1 = 76 parameters; 10 filters give 760 parameters total.
Explanation
The filter spans the full input depth, and each filter has one bias.
- 18
What are typical numbers of filters (K) used in convolutional layers?
Model answer
Common numbers are powers of two: 32, 64, 128, 256, 512, etc.
Explanation
Powers of two align with memory alignment and are widely adopted in practice.
- 19
What is a 1x1 convolution and what does it do?
Model answer
A 1x1 convolution uses a filter of size 1x1 spatially, but still spans the full input depth. It outputs a volume with the same spatial size and a depth equal to the number of filters.
Explanation
1x1 convolutions perform a linear combination across depth dimensions at each spatial location, often used for dimensionality reduction or channel mixing.
- 20
What is the receptive field of a neuron in a convolutional layer?
Model answer
The receptive field is the size of the local spatial region in the input that affects the neuron's output (e.g., 5x5 for a 5x5 filter).
Explanation
Each neuron is only connected to a small local area, enabling parameter sharing and translation invariance.
- 21
What is the purpose of a pooling layer?
Model answer
Pooling layers downsample the spatial dimensions (height and width) of the input, making the representation smaller and more manageable, while preserving depth.
Explanation
Pooling reduces the number of parameters and provides local translation invariance.
- 22
Explain how max pooling works with a 2x2 filter and stride 2.
Model answer
A 2x2 filter slides over the input with stride 2, and at each position the maximum value among the four input values is taken as the output.
Explanation
Max pooling selects the strongest activation, signaling whether a feature was detected anywhere in that region.
- 23
What is a common hyperparameter setting for a pooling layer?
Model answer
A common setting is a filter size of 2x2 with stride 2, resulting in no overlap and halving the spatial dimensions.
Explanation
Non-overlapping pooling is typical to simply downsample without redundancy.
- 24
Why is max pooling often preferred over average pooling?
Model answer
Max pooling gives a strong signal for the presence of a feature anywhere in the pooling region, which intuitively aligns with detection tasks.
Explanation
Average pooling blurs activations, while max pooling preserves sharp responses.
- 25
What is the typical architecture of a ConvNet?
Model answer
The typical architecture is a sequence of [Conv -> ReLU] repeated N times, followed by a pooling layer. This block is repeated several times, then one or more fully connected layers end with a softmax.
Explanation
Convolutional layers extract features, ReLU introduces non-linearity, pooling downsamples, and fully connected layers perform high-level reasoning.
- 26
How are fully connected layers used at the end of a ConvNet?
Model answer
The final convolutional/pooling output volume is flattened into a 1D vector, which is fed into one or more fully connected layers that produce class scores.
Explanation
Fully connected layers integrate all learned features for classification.
- 27
What trend in modern ConvNet architectures has been observed regarding filter sizes and depth?
Model answer
There is a trend towards using smaller filters (e.g., 3x3) and deeper architectures, as well as gradually removing pooling and fully connected layers in some designs.
Explanation
Smaller filters allow deeper networks with fewer parameters, and fully convolutional networks can handle arbitrary input sizes.
- 28
Name at least three applications of convolutional neural networks mentioned in the lecture.
Model answer
Object detection, image segmentation, face recognition, video classification, pose recognition, game playing, medical image diagnosis, street sign recognition, and image captioning (any three).
Explanation
ConvNets are used across many domains, from self-driving cars to art generation.
- 29
What demo did Andre Karpathy create for training a ConvNet on CIFAR-10?
Model answer
He created an interactive demo that visualizes filters and activation maps at each layer for a ConvNet trained on CIFAR-10.
Explanation
The demo allows users to see what each filter learns and how activation maps evolve, aiding understanding.
- 30
What is the difference between convolution and correlation in the context of ConvNets?
Model answer
Technically, CNNs use cross-correlation (no flipping of the kernel) rather than convolution, but the term "convolution" is used loosely; the operation is effectively a sliding dot product.
Explanation
The distinction is subtle; learning adjusts weights so that flipping is not needed.

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