Neural Networks Overview
- 29Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is a deep neural network?
A neural network with more than one hidden layer.
Or swipe the card
29 cards
What is a deep neural network?
A neural network with more than one hidden layer.
What significant event in 2012 sparked the recent AI boom in image recognition?
AlexNet, a deep convolutional neural network, won the ImageNet challenge with dramatically lower error.
List two key factors that enabled the success of deep CNNs around 2012.
- Better computation (GPUs for parallelization)
- More labeled data (e.g., from Amazon Mechanical Turk).
What is spatial locality in images?
In images, features (e.g., a stop sign) are composed of pixels that are near each other, not spread out.
What is translation invariance?
A feature (e.g., stop sign) should be detected regardless of its position in the image.
Why do fully connected layers fail to exploit spatial locality and translation invariance?
They treat each pixel independently and learn separate weights for each location, so a feature in one part is not recognized in another.
How is a grayscale image represented as input to a neural network?
Each pixel is a value (e.g., 0 to 255), and the image is flattened into a vector of pixel values.
What is a filter (kernel) in convolutional neural networks?
A small matrix of weights (e.g., 3x3) that is slid across the image, computing dot products with local regions.
In 1D convolution, what is the operation for a filter of size 3?
For each contiguous set of 3 pixels, compute dot product with filter weights; then optionally add bias.
What does the filter [−1,1,−1] detect in a 1D binary image?
It detects an isolated 1 (a 1 surrounded by 0s), outputting a positive value after ReLU.
What is padding in convolution?
Adding extra pixels (usually zeros) around the border of the image to allow filters to be applied to edge pixels and/or to preserve spatial size.
What is the purpose of adding a bias term to a convolution?
Same as in linear models: shifts the output, allowing more flexibility.
Compare the number of parameters in a convolutional layer (filter size 3) vs a fully connected layer with 10 inputs and 10 outputs.
Convolutional: 4 (3 weights + 1 bias). Fully connected: 110 (10 inputs * 10 outputs + 10 biases).
Why does weight sharing in convolutions reduce parameters?
The same filter weights are reused across all spatial locations, unlike fully connected where each output has its own weights.
In 2D convolution, how is the filter applied?
The filter is aligned with a 2D patch of the image of the same size; element-wise multiplication then sum (dot product of flattened vectors).
What is the role of an activation function (e.g., ReLU) after convolution?
Introduces non-linearity; ReLU sets negative pre-activations to zero, keeps positive ones.
What does a filter with -1 on border and +1 in center detect?
It detects a pixel that is surrounded by zeros (isolated point), like the dot on an 'i'.
What is max pooling?
A downsampling operation that returns the maximum value within a local region (e.g., 2x2 or 3x3), reducing spatial dimensions.
Does max pooling have learnable parameters?
No, it is a fixed operation with no weights.
What is stride?
The number of pixels the filter or pooling window moves between applications. Stride 1 means slide one pixel; stride 3 means jump three pixels.
How does stride affect output size?
Larger stride reduces spatial dimensions more (downsampling).
Why is pooling often used with a stride equal to pooling window size?
To get non-overlapping regions, summarizing each area independently.
Describe the typical high-level architecture of a CNN for image classification.
Input -> [Conv+ReLU] -> [Pooling] (repeat) -> Flatten -> Fully Connected -> Softmax output.
What is a filter bank?
A collection of multiple filters applied to the same input, each producing a channel (feature map).
How does a CNN build hierarchical features?
Early layers detect edges/points; deeper layers combine these to detect parts (e.g., tire); final layers detect whole objects.
What is the output of a CNN before the fully connected layer?
A flattened vector of the final feature maps (tensor values).
In backpropagation for a CNN, how does the derivative dZ/dW differ from a fully connected layer?
The derivative matrix contains repeated input values because the same filter weights are applied at multiple positions, leading to a 'wave' of X values.
In the forward pass for a 1D convolution with filter size 3 and padding, what is Z2?
Z2=W1X1+W2X2+W3X3 (if padding used: X0 and X6 also appear).
What is the derivative of Z2 with respect to W3?
X3.

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