MIT 6.S191 Deep Learning Intro
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
How does the course define 'intelligence'?
How does the course define 'intelligence'?
30 questions
- 1
How does the course define 'intelligence'?
- A
The ability to perform calculations faster than humans
- B
The ability to process information to inform future decisions
- C
The ability to store and retrieve large amounts of data
- D
The ability to simulate human consciousness
Correct answer
BThe ability to process information to inform future decisions
Explanation
The lecture defines intelligence as 'the ability to process information to inform future decisions'.
- A
- 2
What is the key distinction of machine learning within artificial intelligence?
- A
It teaches an algorithm to perform a task without being explicitly programmed
- B
It automatically extracts useful features from raw data
- C
It focuses on building algorithms that can process information
- D
It uses only symbolic reasoning instead of numerical methods
Correct answer
AIt teaches an algorithm to perform a task without being explicitly programmed
Explanation
Machine learning is a subset of AI that focuses on teaching algorithms to perform tasks without explicit programming.
- A
- 3
What is the defining characteristic of deep learning compared to machine learning?
- A
It requires hand-engineered features
- B
It uses only linear activation functions
- C
It automatically extracts useful information from raw data
- D
It can only be used for classification tasks
Correct answer
CIt automatically extracts useful information from raw data
Explanation
Deep learning takes machine learning a step further by automatically extracting useful information from raw data, learning features directly.
- A
- 4
Which of the following is NOT a reason deep learning has become popular recently?
- A
The ability to massively parallelize computations on GPUs
- B
The invention of backpropagation in the past decade
- C
The availability of large amounts of data
- D
The development of open-source toolboxes like TensorFlow
Correct answer
BThe invention of backpropagation in the past decade
Explanation
Backpropagation was developed decades ago; the recent popularity is due to data, parallelism, and open-source tools, not the invention of backpropagation.
- A
- 5
In deep learning, how are features typically learned from raw data?
- A
By using only the raw pixel values without any transformation
- B
By hand-engineering a set of rules for feature detection
- C
By applying a single linear transformation to the input
- D
By developing a hierarchical representation from lines and edges to high-level structures
Correct answer
DBy developing a hierarchical representation from lines and edges to high-level structures
Explanation
Deep learning learns a hierarchical representation, first detecting lines and edges, then corners and eyes, then higher-level features like jaw lines.
- A
- 6
What are the three main components of a perceptron's forward propagation?
- A
Taking the gradient, updating weights, applying dropout
- B
Dot product of inputs and weights, adding a bias, applying a nonlinear activation
- C
Convolving inputs, pooling, flattening
- D
Summing inputs, multiplying by weights, subtracting a bias
Correct answer
BDot product of inputs and weights, adding a bias, applying a nonlinear activation
Explanation
A perceptron takes the dot product of inputs and weights, adds a bias, and applies a nonlinear activation function to produce the output.
- A
- 7
What is the purpose of the bias term in a neuron?
- A
To increase the number of parameters for better memorization
- B
To ensure the output is always between 0 and 1
- C
To scale the inputs before the dot product
- D
To shift the activation function left or right regardless of the inputs
Correct answer
DTo shift the activation function left or right regardless of the inputs
Explanation
The bias allows shifting the activation function left or right, independent of the inputs.
- A
- 8
What is the range of the sigmoid activation function?
- A
Between 0 and 1
- B
Between 0 and infinity
- C
Between -infinity and infinity
- D
Between -1 and 1
Correct answer
ABetween 0 and 1
Explanation
The sigmoid function outputs a scalar between 0 and 1, making it useful for representing probabilities.
- A
- 9
Why are nonlinear activation functions crucial in neural networks?
- A
They ensure the output is always binary
- B
They reduce the number of parameters needed
- C
They make the network easier to train using linear algebra
- D
They allow the network to approximate arbitrarily complex functions
Correct answer
DThey allow the network to approximate arbitrarily complex functions
Explanation
Nonlinearities enable neural networks to approximate complex functions, whereas linear activations can only produce linear decision boundaries.
- A
- 10
In the simple example of a 2-input neuron with weights 3 and -2, what happens to an input point (-1, 2)?
- A
It lies exactly on the decision boundary, giving an output of 0.5
- B
It produces a negative Z before activation, leading to a low output
- C
The output is undefined due to the negative input
- D
It produces a positive Z before activation, leading to a high output
Correct answer
BIt produces a negative Z before activation, leading to a low output
Explanation
The dot product is 3(−1)+(−2)(2)=−6, which is negative. After sigmoid, the output is low (below 0.5).
- A
- 11
What is a dense layer in a neural network?
- A
A layer that only connects adjacent neurons
- B
A layer that applies a convolution operation
- C
A layer where all inputs are connected to all outputs with distinct weights
- D
A layer that randomly drops connections during training
Correct answer
CA layer where all inputs are connected to all outputs with distinct weights
Explanation
A dense (fully connected) layer has each input connected to every output with its own weight.
- A
- 12
Why are hidden layers called 'hidden'?
- A
They use activation functions that are not disclosed
- B
They are not observable from the input or output during training
- C
They have no weights associated with them
- D
They are only used during testing, not training
Correct answer
BThey are not observable from the input or output during training
Explanation
Hidden layer states are not directly enforced by the data; they are learned representations and not directly observable.
- A
- 13
What does the TensorFlow Sequential model represent?
- A
A model that only works with sequential data
- B
A model composed of a sequence of layers
- C
A model that automatically tunes hyperparameters
- D
A model that processes data in any order
Correct answer
BA model composed of a sequence of layers
Explanation
A Sequential model is a wrapper that composes neural networks as a sequence of layers, allowing information to propagate sequentially.
- A
- 14
In a single hidden layer neural network, what do W1 and W2 represent?
- A
The bias vectors for the first and second layers
- B
The number of neurons in the hidden and output layers
- C
The learning rates for each layer
- D
The weight matrices for the input-to-hidden and hidden-to-output transformations
Correct answer
DThe weight matrices for the input-to-hidden and hidden-to-output transformations
Explanation
W1 is the weight matrix between input and hidden layer; W2 is between hidden and output layer.
- A
- 15
To create a deep neural network, what must be done?
- A
Increase the learning rate
- B
Stack more layers on top of each other
- C
Increase the number of neurons in the hidden layer
- D
Use only convolutional layers
Correct answer
BStack more layers on top of each other
Explanation
Deep neural networks are created by stacking additional layers sequentially.
- A
- 16
What is the purpose of a loss function in training a neural network?
- A
To initialize the weights randomly
- B
To quantify the error between the network's prediction and the true value
- C
To measure the speed of training
- D
To update the weights directly
Correct answer
BTo quantify the error between the network's prediction and the true value
Explanation
The loss function computes the discrepancy between prediction and actual value, enabling gradient-based updates.
- A
- 17
Which loss function is commonly used for binary classification problems?
- A
Hinge loss
- B
Softmax cross-entropy
- C
Mean squared error
- D
L1 loss
Correct answer
BSoftmax cross-entropy
Explanation
The lecture uses softmax cross-entropy loss for binary classification (e.g., pass/fail).
- A
- 18
When would you use mean squared error as a loss function?
- A
When predicting a class label (classification)
- B
When training with dropout regularization
- C
When predicting a continuous value (regression)
- D
When using a sigmoid activation in the output layer
Correct answer
CWhen predicting a continuous value (regression)
Explanation
Mean squared error is used for regression problems, e.g., predicting a grade (continuous value).
- A
- 19
What does the gradient of the loss with respect to a weight tell us?
- A
The exact new value for that weight
- B
The number of iterations needed for convergence
- C
The direction of steepest ascent in the loss landscape
- D
The optimal learning rate
Correct answer
CThe direction of steepest ascent in the loss landscape
Explanation
The gradient indicates the direction of maximum increase in loss; we move opposite to minimize loss.
- A
- 20
What happens if the learning rate is set too high during gradient descent?
- A
The model will converge to the global minimum faster
- B
The gradient computation becomes slower
- C
The weights become negative
- D
The model may overshoot and diverge
Correct answer
DThe model may overshoot and diverge
Explanation
A high learning rate causes large steps that can overshoot the minimum and cause divergence.
- A
- 21
What is the main advantage of adaptive learning rate methods like Adam over standard SGD?
- A
They eliminate the need for backpropagation
- B
They guarantee convergence to the global minimum
- C
They automatically adjust the learning rate during training
- D
They require less data to train
Correct answer
CThey automatically adjust the learning rate during training
Explanation
Adaptive learning rates change based on the optimization progress, addressing the challenge of setting a fixed learning rate.
- A
- 22
How does backpropagation compute gradients in a neural network?
- A
By applying the chain rule repeatedly from output to input
- B
By solving a system of linear equations
- C
By performing a forward pass only
- D
By using Monte Carlo sampling of the loss
Correct answer
ABy applying the chain rule repeatedly from output to input
Explanation
Backpropagation uses the chain rule to propagate error gradients from the output back through the network.
- A
- 23
What is the primary benefit of mini-batch gradient descent over full batch gradient descent?
- A
It always finds the global minimum
- B
It is computationally cheaper and still gives good gradient estimates
- C
It does not require a learning rate
- D
It trains the network without any data
Correct answer
BIt is computationally cheaper and still gives good gradient estimates
Explanation
Mini-batch uses a subset of data (e.g., 10–100 samples) to approximate the gradient, balancing computational cost and accuracy.
- A
- 24
Mini-batching allows a trade-off between which two extremes?
- A
Dropout and early stopping
- B
Stochastic gradient descent (single point) and full batch gradient descent
- C
Underfitting and overfitting
- D
High learning rate and low learning rate
Correct answer
BStochastic gradient descent (single point) and full batch gradient descent
Explanation
Mini-batch is a middle ground between using one point (noisy but fast) and all points (accurate but slow).
- A
- 25
What is overfitting in machine learning?
- A
The model memorizes the training data and does not generalize to new data
- B
The model learns only the noise in the data
- C
The model fails to capture the complexity of the training data
- D
The model has too few parameters to fit the data
Correct answer
AThe model memorizes the training data and does not generalize to new data
Explanation
Overfitting occurs when the model memorizes specifics of the training data, harming generalization to unseen data.
- A
- 26
What does dropout regularization do during training?
- A
It adds a penalty term to the loss for large weights
- B
It reduces the learning rate by half every epoch
- C
It stops training when validation loss increases
- D
It randomly sets some hidden neuron activations to zero with a given probability
Correct answer
DIt randomly sets some hidden neuron activations to zero with a given probability
Explanation
Dropout randomly deactivates a fraction (e.g., 50%) of hidden neurons each iteration to prevent memorization.
- A
- 27
Why does dropout help prevent overfitting?
- A
It forces the network to use multiple independent pathways, building robust representations
- B
It simplifies the decision boundary to a linear form
- C
It increases the learning rate adaptively
- D
It reduces the number of parameters permanently
Correct answer
AIt forces the network to use multiple independent pathways, building robust representations
Explanation
By randomly dropping neurons, dropout prevents co-adaptation and encourages the network to learn more robust features.
- A
- 28
What does early stopping aim to prevent?
- A
Underfitting by training longer
- B
Slow convergence by increasing the batch size
- C
Vanishing gradients by adding more layers
- D
Overfitting by stopping when test loss starts to increase
Correct answer
DOverfitting by stopping when test loss starts to increase
Explanation
Early stopping monitors test loss and stops training when it begins to rise, indicating the onset of overfitting.
- A
- 29
In the early stopping plot, what does the region to the left of the optimal stopping point indicate?
- A
Underfitting
- B
Overfitting
- C
Optimal generalization
- D
The model has converged
Correct answer
AUnderfitting
Explanation
To the left, the model is underfitting: it has not yet reached its capacity and both training and test loss are decreasing.
- A
- 30
What are the three main points summarized at the end of the lecture?
- A
Data, parallelism, and open-source tools
- B
SGD, Adam, and RMSProp
- C
Perceptron, stacking, backpropagation, mini-batching, regularization, and adaptive learning rates
- D
Supervised, unsupervised, and reinforcement learning
Correct answer
CPerceptron, stacking, backpropagation, mini-batching, regularization, and adaptive learning rates
Explanation
The summary covers fundamentals of neural networks (perceptron, stacking), optimization (backpropagation), and practical training (mini-batching, regularization, adaptive learning rates).
- A

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