1. Home
  2. Explore
  3. Computer Science
  4. MIT 6.S191 Deep Learning Intro

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

MIT 6.S191 Deep Learning Intro

  • 30Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: AI and Deep Learning Basics

How does the course define 'intelligence'?

30 questions

  1. 1

    How does the course define 'intelligence'?

    1. A

      The ability to perform calculations faster than humans

    2. B

      The ability to process information to inform future decisions

    3. C

      The ability to store and retrieve large amounts of data

    4. D

      The ability to simulate human consciousness

    Correct answer
    B

    The ability to process information to inform future decisions

    Explanation

    The lecture defines intelligence as 'the ability to process information to inform future decisions'.

  2. 2

    What is the key distinction of machine learning within artificial intelligence?

    1. A

      It teaches an algorithm to perform a task without being explicitly programmed

    2. B

      It automatically extracts useful features from raw data

    3. C

      It focuses on building algorithms that can process information

    4. D

      It uses only symbolic reasoning instead of numerical methods

    Correct answer
    A

    It 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.

  3. 3

    What is the defining characteristic of deep learning compared to machine learning?

    1. A

      It requires hand-engineered features

    2. B

      It uses only linear activation functions

    3. C

      It automatically extracts useful information from raw data

    4. D

      It can only be used for classification tasks

    Correct answer
    C

    It 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.

  4. 4

    Which of the following is NOT a reason deep learning has become popular recently?

    1. A

      The ability to massively parallelize computations on GPUs

    2. B

      The invention of backpropagation in the past decade

    3. C

      The availability of large amounts of data

    4. D

      The development of open-source toolboxes like TensorFlow

    Correct answer
    B

    The 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.

  5. 5

    In deep learning, how are features typically learned from raw data?

    1. A

      By using only the raw pixel values without any transformation

    2. B

      By hand-engineering a set of rules for feature detection

    3. C

      By applying a single linear transformation to the input

    4. D

      By developing a hierarchical representation from lines and edges to high-level structures

    Correct answer
    D

    By 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.

  6. 6

    What are the three main components of a perceptron's forward propagation?

    1. A

      Taking the gradient, updating weights, applying dropout

    2. B

      Dot product of inputs and weights, adding a bias, applying a nonlinear activation

    3. C

      Convolving inputs, pooling, flattening

    4. D

      Summing inputs, multiplying by weights, subtracting a bias

    Correct answer
    B

    Dot 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.

  7. 7

    What is the purpose of the bias term in a neuron?

    1. A

      To increase the number of parameters for better memorization

    2. B

      To ensure the output is always between 0 and 1

    3. C

      To scale the inputs before the dot product

    4. D

      To shift the activation function left or right regardless of the inputs

    Correct answer
    D

    To 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.

  8. 8

    What is the range of the sigmoid activation function?

    1. A

      Between 0 and 1

    2. B

      Between 0 and infinity

    3. C

      Between -infinity and infinity

    4. D

      Between -1 and 1

    Correct answer
    A

    Between 0 and 1

    Explanation

    The sigmoid function outputs a scalar between 0 and 1, making it useful for representing probabilities.

  9. 9

    Why are nonlinear activation functions crucial in neural networks?

    1. A

      They ensure the output is always binary

    2. B

      They reduce the number of parameters needed

    3. C

      They make the network easier to train using linear algebra

    4. D

      They allow the network to approximate arbitrarily complex functions

    Correct answer
    D

    They 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.

  10. 10

    In the simple example of a 2-input neuron with weights 3 and -2, what happens to an input point (-1, 2)?

    1. A

      It lies exactly on the decision boundary, giving an output of 0.5

    2. B

      It produces a negative Z before activation, leading to a low output

    3. C

      The output is undefined due to the negative input

    4. D

      It produces a positive Z before activation, leading to a high output

    Correct answer
    B

    It produces a negative Z before activation, leading to a low output

    Explanation

    The dot product is 3(−1)+(−2)(2)=−63(-1) + (-2)(2) = -63(−1)+(−2)(2)=−6, which is negative. After sigmoid, the output is low (below 0.5).

  11. 11

    What is a dense layer in a neural network?

    1. A

      A layer that only connects adjacent neurons

    2. B

      A layer that applies a convolution operation

    3. C

      A layer where all inputs are connected to all outputs with distinct weights

    4. D

      A layer that randomly drops connections during training

    Correct answer
    C

    A 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.

  12. 12

    Why are hidden layers called 'hidden'?

    1. A

      They use activation functions that are not disclosed

    2. B

      They are not observable from the input or output during training

    3. C

      They have no weights associated with them

    4. D

      They are only used during testing, not training

    Correct answer
    B

    They 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.

  13. 13

    What does the TensorFlow Sequential model represent?

    1. A

      A model that only works with sequential data

    2. B

      A model composed of a sequence of layers

    3. C

      A model that automatically tunes hyperparameters

    4. D

      A model that processes data in any order

    Correct answer
    B

    A 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.

  14. 14

    In a single hidden layer neural network, what do W1 and W2 represent?

    1. A

      The bias vectors for the first and second layers

    2. B

      The number of neurons in the hidden and output layers

    3. C

      The learning rates for each layer

    4. D

      The weight matrices for the input-to-hidden and hidden-to-output transformations

    Correct answer
    D

    The 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.

  15. 15

    To create a deep neural network, what must be done?

    1. A

      Increase the learning rate

    2. B

      Stack more layers on top of each other

    3. C

      Increase the number of neurons in the hidden layer

    4. D

      Use only convolutional layers

    Correct answer
    B

    Stack more layers on top of each other

    Explanation

    Deep neural networks are created by stacking additional layers sequentially.

  16. 16

    What is the purpose of a loss function in training a neural network?

    1. A

      To initialize the weights randomly

    2. B

      To quantify the error between the network's prediction and the true value

    3. C

      To measure the speed of training

    4. D

      To update the weights directly

    Correct answer
    B

    To 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.

  17. 17

    Which loss function is commonly used for binary classification problems?

    1. A

      Hinge loss

    2. B

      Softmax cross-entropy

    3. C

      Mean squared error

    4. D

      L1 loss

    Correct answer
    B

    Softmax cross-entropy

    Explanation

    The lecture uses softmax cross-entropy loss for binary classification (e.g., pass/fail).

  18. 18

    When would you use mean squared error as a loss function?

    1. A

      When predicting a class label (classification)

    2. B

      When training with dropout regularization

    3. C

      When predicting a continuous value (regression)

    4. D

      When using a sigmoid activation in the output layer

    Correct answer
    C

    When predicting a continuous value (regression)

    Explanation

    Mean squared error is used for regression problems, e.g., predicting a grade (continuous value).

  19. 19

    What does the gradient of the loss with respect to a weight tell us?

    1. A

      The exact new value for that weight

    2. B

      The number of iterations needed for convergence

    3. C

      The direction of steepest ascent in the loss landscape

    4. D

      The optimal learning rate

    Correct answer
    C

    The 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.

  20. 20

    What happens if the learning rate is set too high during gradient descent?

    1. A

      The model will converge to the global minimum faster

    2. B

      The gradient computation becomes slower

    3. C

      The weights become negative

    4. D

      The model may overshoot and diverge

    Correct answer
    D

    The model may overshoot and diverge

    Explanation

    A high learning rate causes large steps that can overshoot the minimum and cause divergence.

  21. 21

    What is the main advantage of adaptive learning rate methods like Adam over standard SGD?

    1. A

      They eliminate the need for backpropagation

    2. B

      They guarantee convergence to the global minimum

    3. C

      They automatically adjust the learning rate during training

    4. D

      They require less data to train

    Correct answer
    C

    They 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.

  22. 22

    How does backpropagation compute gradients in a neural network?

    1. A

      By applying the chain rule repeatedly from output to input

    2. B

      By solving a system of linear equations

    3. C

      By performing a forward pass only

    4. D

      By using Monte Carlo sampling of the loss

    Correct answer
    A

    By 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.

  23. 23

    What is the primary benefit of mini-batch gradient descent over full batch gradient descent?

    1. A

      It always finds the global minimum

    2. B

      It is computationally cheaper and still gives good gradient estimates

    3. C

      It does not require a learning rate

    4. D

      It trains the network without any data

    Correct answer
    B

    It 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.

  24. 24

    Mini-batching allows a trade-off between which two extremes?

    1. A

      Dropout and early stopping

    2. B

      Stochastic gradient descent (single point) and full batch gradient descent

    3. C

      Underfitting and overfitting

    4. D

      High learning rate and low learning rate

    Correct answer
    B

    Stochastic 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).

  25. 25

    What is overfitting in machine learning?

    1. A

      The model memorizes the training data and does not generalize to new data

    2. B

      The model learns only the noise in the data

    3. C

      The model fails to capture the complexity of the training data

    4. D

      The model has too few parameters to fit the data

    Correct answer
    A

    The 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.

  26. 26

    What does dropout regularization do during training?

    1. A

      It adds a penalty term to the loss for large weights

    2. B

      It reduces the learning rate by half every epoch

    3. C

      It stops training when validation loss increases

    4. D

      It randomly sets some hidden neuron activations to zero with a given probability

    Correct answer
    D

    It 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.

  27. 27

    Why does dropout help prevent overfitting?

    1. A

      It forces the network to use multiple independent pathways, building robust representations

    2. B

      It simplifies the decision boundary to a linear form

    3. C

      It increases the learning rate adaptively

    4. D

      It reduces the number of parameters permanently

    Correct answer
    A

    It 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.

  28. 28

    What does early stopping aim to prevent?

    1. A

      Underfitting by training longer

    2. B

      Slow convergence by increasing the batch size

    3. C

      Vanishing gradients by adding more layers

    4. D

      Overfitting by stopping when test loss starts to increase

    Correct answer
    D

    Overfitting 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.

  29. 29

    In the early stopping plot, what does the region to the left of the optimal stopping point indicate?

    1. A

      Underfitting

    2. B

      Overfitting

    3. C

      Optimal generalization

    4. D

      The model has converged

    Correct answer
    A

    Underfitting

    Explanation

    To the left, the model is underfitting: it has not yet reached its capacity and both training and test loss are decreasing.

  30. 30

    What are the three main points summarized at the end of the lecture?

    1. A

      Data, parallelism, and open-source tools

    2. B

      SGD, Adam, and RMSProp

    3. C

      Perceptron, stacking, backpropagation, mini-batching, regularization, and adaptive learning rates

    4. D

      Supervised, unsupervised, and reinforcement learning

    Correct answer
    C

    Perceptron, 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).

Question 1 of 30
Question 1 of 30

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent