Neural Networks Overview
- 24Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
In a small neural net, why does the number of ways output performance can influence weight changes not grow exponentially despite an exponential number of paths?
Because the chain rule introduces redundancy: the same partial derivative terms appear in multiple paths, so 'what's computed is computed and need not be recomputed.' This makes the computation linear in network depth.
Or swipe the card
24 cards
In a small neural net, why does the number of ways output performance can influence weight changes not grow exponentially despite an exponential number of paths?
Because the chain rule introduces redundancy: the same partial derivative terms appear in multiple paths, so 'what's computed is computed and need not be recomputed.' This makes the computation linear in network depth.
What fundamental mathematical operation does a single neuron perform when combining weights and inputs?
A dot product: z=∑wixi=w⋅x, which is then passed through a non-linearity (e.g., sigmoid).
What were the error rates of the deep net described in 2012?
Top-5 error: 15% (correct answer in top five choices); top-1 error: 37% (exact top choice).
What is the convolution operation in a convolutional neural net?
Sliding a neuron (kernel) over the input image, producing an output at each position. The neuron looks only at a small local patch (e.g., 10×10 pixels) at a time.
What is max pooling in a convolutional neural net?
After convolution, look at local neighborhoods of the output and take the maximum value in each neighborhood. This produces a reduced map.
How many kernels (feature maps) are typically used in a convolutional layer?
About 100 kernels. Each kernel is applied to the input to produce a separate output map.
Outline the overall architecture of a deep convolutional net for image classification.
Input image → convolution (with multiple kernels) → pooling → repeat (optional) → fully-connected layers → final output (softmax probabilities over classes).
How did the scale of neural networks change from 'old days' to modern deep nets?
Old: a few hundred parameters, 10 digits, a few hundred samples. Modern: 60 million parameters, 1,000 classes, 1 million samples (1,000 per class).
What is the autocoding (autoencoder) idea in deep learning?
Train a network to output the same as its input, forcing it through a small hidden layer. This compresses the input and learns a generalized representation.
In the autocoding demonstration with shadow heights, what was the input and structure?
Input: 10 neurons representing the height of an animal's shadow (cheetah, zebra, giraffe). Hidden layer: 3 neurons. Output: same as input (compare to desired values equal to input).
What does the hidden layer do in an autoencoder?
It encodes a generalized representation of the input. However, the encoding is often not interpretable (the neurons may not specialize in an obvious way).
How is autocoding used to train deep networks layer by layer?
Train the first hidden layer with autocoding, freeze its weights, then use its output as input to train the next layer similarly. Only at the end is the network trained for classification.
What is the formula for the output of a sigmoid neuron in the final layer?
z=1+e−(w⋅x−T)1 where w is the weight and T is the threshold.
How are the parameters of a final-layer sigmoid neuron adjusted to maximize the probability of observed data?
By gradient ascent on the likelihood: the probability of positive examples is the sigmoid output, and negative examples is 1 minus that output. The total likelihood is maximized by adjusting w and T.
What is the softmax function and why is it used?
Softmax converts output values into probabilities: P(class i)=∑jezjezi (or, in the lecture, ∑sigmoid outputssigmoid outputi) . It allows ranking by probability and selecting top-5.
How are autocoding and softmax combined?
First, train the hidden layer via autocoding (unsupervised). Then freeze those weights, attach a new output layer, and train the output layer using softmax/cross-entropy on labeled data.
What is the dropout technique and why is it used?
On each training iteration, randomly drop out neurons (e.g., coin flip determines whether a neuron is active). This prevents the network from getting stuck in local maxima.
How does the width of a neural network affect training, especially regarding local maxima?
Widening the network turns many local maxima into saddle points, making it easier to escape and find good solutions. Deep nets are actually wide (many neurons per layer) rather than deep (many layers).
In the classroom deep net demonstration (5 layers, classifying animals by shadow height), what was observed during training?
Initially outputs were 0.5 for all classes. After about 160,000 iterations, the error rate suddenly dropped (fell off a cliff) to near zero.
What happened when neurons were removed from the trained deep net and retrained?
If removed after training, the network retrained quickly to find a solution. If removed before any training, the network got stuck in a local maximum and could not learn.
Why can small pixel changes fool a neural net into misclassifying an object (e.g., a school bus)?
The network relies on local texture and patterns rather than global semantics. Small changes that humans don't notice can produce enough local evidence for a different class.
What did Google's image captioning model do well and poorly?
It sometimes produced accurate captions (e.g., 'a group of young people playing a game of Frisbee'), but also made absurd mistakes (e.g., 'a cat lying' when not, or misidentifying objects). The model does not understand meaning.
In the lab demonstration with mutilated images, what was the technique?
Take an image, decompose it into frequency bands, remove a rectangle from one band, and reassemble. See how much can be removed while the net still identifies the original object.
What is the bottom-line conclusion about deep neural nets from the lecture?
They are engineering marvels that perform great tasks, but they do not see like humans do. They lack understanding and can be easily fooled.

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