MIT 6.S191 Deep Learning Intro
- 29Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
How does the lecture define 'intelligence'?
The ability to process information to inform future decisions.
Or swipe the card
29 cards
How does the lecture define 'intelligence'?
The ability to process information to inform future decisions.
What is the field of artificial intelligence (AI)?
The field focused on building algorithms that process information to inform future decisions.
What is machine learning (ML)?
A subset of AI that teaches an algorithm to perform a task without being explicitly programmed.
What is deep learning (DL)?
A subset of machine learning that automatically extracts useful information from raw data to make predictions or decisions.
What are the three key reasons why deep learning has become successful recently?
- Pervasive big data; 2. Massively parallelizable algorithms benefiting from modern GPU architectures; 3. Open-source toolboxes like TensorFlow that streamline building and deploying models.
What is a perceptron (single neuron) and how does it compute its output?
A perceptron takes multiple inputs x1 through xm, multiplies each by a corresponding weight w1 through wm, sums them, adds a bias b, and passes the result through a nonlinear activation function g to produce output y. Mathematically: y=g(∑i=1mwixi+b).
What is the purpose of the bias term in a neuron?
The bias allows the activation function to be shifted left or right, providing flexibility regardless of the inputs.
Express the output of a perceptron using vector notation.
y=g(W⋅X+b), where X is the input vector, W is the weight vector, b is the bias, and g is the activation function.
What is a dense (fully connected) layer?
A layer where every input neuron is connected to every output neuron, each with its own weight.
What is a hidden layer in a neural network?
A layer between the input and output layers whose activations are not directly observable; they are learned representations.
How is a sequential model built in TensorFlow?
By stacking layers in order using
tf.keras.Sequential, passing a list of layers. Information flows sequentially through the model.How do you create a deep neural network?
By stacking multiple hidden layers (dense layers) on top of each other, creating a hierarchical model.
What is the sigmoid activation function and what is its typical use case?
The sigmoid function takes any real number and outputs a value between 0 and 1. It is commonly used for binary classification to output probabilities.
Why are nonlinear activation functions necessary in neural networks?
Real-world data is inherently nonlinear. Without nonlinearities, stacking linear layers would still produce a linear transformation, limiting the network's capacity to approximate complex functions.
How does a sigmoid activation function affect the output of a perceptron for a given input?
It squashes the weighted sum plus bias (z) into a probability between 0 and 1. If z < 0, output < 0.5; if z > 0, output > 0.5; if z = 0, output = 0.5.
What is the loss function used for in training a neural network?
It quantifies the error between the network's prediction and the true target, providing a measure of how wrong the network is.
Define cross-entropy loss for binary classification.
Cross-entropy loss measures the difference between two probability distributions: the predicted probability y^ and the true label y. It is given by L=−[ylog(y^)+(1−y)log(1−y^)].
What is mean squared error (MSE) loss and when is it used?
MSE loss is the average squared difference between predicted and true values: L=n1∑i=1n(yi−y^i)2. It is used for regression problems where the output is continuous.
Describe the gradient descent algorithm for updating weights.
Initialize weights randomly. Compute the gradient of the loss with respect to all weights. Update weights in the opposite direction of the gradient: Wnew=Wold−η∇J(W), where η is the learning rate.
What is the role of the learning rate η in gradient descent?
It determines the step size taken in the direction opposite to the gradient. A small learning rate leads to slow convergence and risk of getting stuck in local minima; a large learning rate can cause overshooting and divergence.
Explain backpropagation in the context of neural networks.
Backpropagation computes the gradient of the loss with respect to each weight using the chain rule, propagating the error signal from the output back to the input layer.
What is automatic differentiation and how does it relate to backpropagation?
Automatic differentiation is a technique implemented in deep learning frameworks (like TensorFlow) that automatically computes gradients, eliminating the need to manually derive and code backpropagation.
What is mini-batch gradient descent and why is it used?
Mini-batch gradient descent computes the gradient over a small subset (batch) of the data, rather than the entire dataset. It balances the efficiency of stochastic gradient descent (one sample) and the accuracy of full batch gradient descent.
What is overfitting in machine learning?
Overfitting occurs when a model learns to memorize the training data, including noise, and fails to generalize to unseen test data.
What is underfitting?
Underfitting occurs when a model is too simple to capture the underlying structure of the data, resulting in poor performance on both training and test sets.
Explain the dropout regularization technique.
During training, randomly set a fraction (e.g., 50%) of hidden neuron activations to zero with a given probability. This prevents the network from building memorization channels and forces it to learn more robust representations.
Describe early stopping as a regularization method.
Monitor validation loss during training. Stop training when the validation loss starts to increase (diverges from training loss), indicating the onset of overfitting. The point of minimum validation loss is the ideal stopping point.
How does the loss landscape of a deep neural network typically look?
The loss landscape is highly complex with many local minima, making optimization challenging. Visualizing it (e.g., by projecting to 2D) shows rugged terrain with many peaks and valleys.
What are adaptive learning rate optimizers? Give examples.
Adaptive learning rate optimizers adjust the learning rate during training based on the loss landscape or gradient history. Examples include SGD (vanilla), Adam, RMSprop, and others.

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