Introduction to Deep Learning
- 76Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What two components are presented as the essential ingredients of deep learning?
76 questions
- 1
What two components are presented as the essential ingredients of deep learning?
Model answer
The two components are neural networks and differential programming.
Explanation
Neural networks provide the computational architecture, while differential programming provides a way to optimize parameterized programs with gradients.
- 2
What is a neural network architecture?
Model answer
A neural network is a machine learning architecture that uses stacks of linear transformations interleaved with pointwise nonlinearities.
Explanation
Repeated linear transformations and nonlinear functions form the basic computational structure of deep networks.
- 3
Define differential programming.
Model answer
Differential programming is a programming paradigm in which parts of a program are parameterized and gradient-based optimization tunes those parameters to optimize the program.
Explanation
The parameters can be adjusted using gradients to find at least a local optimum.
- 4
Why are both theory and practice considered important for progress in deep learning?
Model answer
Breakthroughs have resulted from combining theoretical understanding with practical implementation and experimentation.
Explanation
Future progress requires both knowledge of deep learning principles and the ability to build and use systems effectively.
- 5
What kinds of real-world phenomena can deep learning help model?
Model answer
It can model complex phenomena such as natural language, images, videos, DNA, ecosystems, and climate change.
Explanation
These phenomena involve complicated patterns and relationships that are difficult to describe with simple models.
- 6
Why is modeling real-world phenomena difficult?
Model answer
It is difficult because real-world phenomena are complex and contain many interacting patterns and variables.
Explanation
The complexity of the phenomena makes it challenging to specify their behavior using simple rules.
- 7
How does deep learning relate to the idea of modeling complex phenomena in the brain?
Model answer
The human brain provides an existence proof that a neural system can model complex phenomena effectively.
Explanation
Humans routinely understand and reason about complex real-world information using their brains.
- 8
What is gradient descent used for?
Model answer
Gradient descent is used to minimize a cost or loss function by repeatedly updating model parameters in the direction indicated by the gradient.
Explanation
The process searches for parameter values that produce low loss on the training data.
- 9
What does the optimal parameter set in gradient descent represent?
Model answer
It is the parameter set that minimizes the chosen cost function, at least locally.
Explanation
Gradient-based optimization may find a local minimum rather than the global minimum.
- 10
What role does the learning rate play in gradient descent?
Model answer
The learning rate controls the size of each parameter update made using the gradient.
Explanation
It determines how far the optimization moves during each iteration.
- 11
What is the basic computation performed by a linear layer?
Model answer
A linear layer forms weighted combinations of input components and adds a bias term.
Explanation
For an output component, the weights multiply the inputs, and the bias shifts the result.
- 12
What does the bias term contribute to a linear layer?
Model answer
The bias is a learned parameter that is added independently of the input components.
Explanation
Unlike the weights, the bias does not multiply an input value.
- 13
What does the parameter set of a neural network contain?
Model answer
The parameter set contains all weights and all bias terms from every layer.
Explanation
These parameters are the values adjusted during training.
- 14
What is a pointwise nonlinearity?
Model answer
A pointwise nonlinearity applies the same nonlinear function separately to each component of a layer's output.
Explanation
Each output coordinate is transformed independently rather than jointly with the others.
- 15
Why are nonlinearities necessary in neural networks?
Model answer
They allow stacked layers to represent nonlinear functions; without them, multiple linear layers collapse into a single linear transformation.
Explanation
Nonlinearities are what give deep networks expressive power beyond linear combinations.
- 16
Why is a single linear layer capable of linear classification?
Model answer
A linear layer produces a plane or hyperplane, and applying a threshold to it creates a linear decision boundary.
Explanation
The resulting classifier can separate data only when the classes are linearly separable.
- 17
What limitation does a single-layer perceptron have?
Model answer
A single-layer perceptron cannot represent classification problems that require nonlinear decision boundaries, such as XOR.
Explanation
Its decision surface is necessarily linear.
- 18
How does stacking nonlinear layers enable nonlinear classification?
Model answer
Each layer transforms the representation, and later layers combine these transformed features to create nonlinear decision regions.
Explanation
The composition of linear transformations and nonlinearities can produce shapes such as triangular or pyramidal response regions.
- 19
What are hidden units in a multilayer neural network?
Model answer
Hidden units are intermediate representations that occur between the input and output of the network.
Explanation
They are produced by internal layers and are not directly observed as the model's input or final output.
- 20
Why can neural networks be efficiently implemented using matrix operations?
Model answer
Many repeated weighted sums can be grouped into matrix multiplications, and nonlinearities can then be applied element by element.
Explanation
This structure allows hardware such as GPUs to perform many calculations in parallel.
- 21
What problem results from using a step function as a neural-network nonlinearity?
Model answer
A step function is not differentiable and has zero gradient over broad regions, which prevents effective gradient-based learning.
Explanation
If the gradient is zero, gradient descent cannot determine a useful direction for updating the parameters.
- 22
What are the main properties of the hyperbolic tangent, or tanh, activation?
Model answer
Tanh is bounded between −1 and 1, produces outputs centered at zero, and has gradients that saturate toward zero for very large positive or negative inputs.
Explanation
Its bounded, zero-centered output is useful, but saturation can reduce the training signal.
- 23
Why can tanh provide little training signal for inputs far from zero?
Model answer
Its gradient approaches zero for very large positive or negative inputs.
Explanation
This gradient saturation makes parameter updates small in those regions.
- 24
How is tanh related to the sigmoid function?
Model answer
They are related by tanh(z)=2sigmoid(2z)−1.
Explanation
The transformation rescales and recenters the sigmoid output from the interval [0,1] to [−1,1].
- 25
What is the sigmoid activation function?
Model answer
The sigmoid function is sigmoid(z)=1+e−z1.
Explanation
It maps real-valued inputs to outputs between 0 and 1.
- 26
What are two important properties of the sigmoid activation?
Model answer
Sigmoid outputs lie between 0 and 1, and its gradients approach zero for very large positive or negative inputs.
Explanation
The bounded output motivated an interpretation as a neuron's firing rate, but gradient saturation can hinder learning.
- 27
Why can sigmoid outputs lead to poor conditioning?
Model answer
Sigmoid outputs are centered around 0.5 rather than 0, making them slightly biased and less well-conditioned for optimization.
Explanation
The nonzero-centered activations can make gradient-based optimization less convenient.
- 28
Define the rectified linear unit, or ReLU.
Model answer
ReLU is defined as ReLU(z)=max(0,z).
Explanation
It outputs zero for negative inputs and grows linearly for positive inputs.
- 29
What are the advantages of ReLU compared with tanh?
Model answer
ReLU is efficient to implement, can speed convergence, and avoids gradient saturation on its positive side.
Explanation
The source describes ReLU as producing approximately a sixfold convergence speed-up over tanh in the cited work.
- 30
What is a major drawback of ReLU for positive inputs?
Model answer
ReLU is unbounded on the positive side, so activations and gradients can become very large and potentially cause exploding gradients.
Explanation
Unlike tanh, ReLU does not constrain positive outputs to a fixed range.
- 31
What is a dead ReLU unit?
Model answer
A dead ReLU unit is strongly in the negative-input region, where its output and gradient are zero.
Explanation
Because it receives no gradient, that component can no longer learn effectively.
- 32
Why is ReLU widely used despite its drawbacks?
Model answer
Its simple implementation, positive-side gradient behavior, and tendency to speed convergence make it a common default activation.
Explanation
Many current models use ReLU or slight variations of it.
- 33
How are activation functions generally selected in practice?
Model answer
They are often selected based on empirical success and trainability rather than a universal theoretical rule.
Explanation
Although special data structures may motivate alternatives such as sinusoidal activations, no general prescription applies to every task.
- 34
What can a single-layer network represent in terms of decision surfaces?
Model answer
A single-layer network can represent any linear decision surface.
Explanation
Its output is based on a linear combination followed by a threshold or nonlinearity.
- 35
What does the universal approximation idea claim about a network with at least two layers?
Model answer
With a suitable nontrivial nonlinearity and sufficient capacity, a network with at least two layers can approximate any function in theory.
Explanation
The claim concerns representational possibility and does not imply that the approximation will be efficient or easy to train.
- 36
Why is a nontrivial nonlinearity required for universal approximation by a multilayer network?
Model answer
Without a nonlinearity, composing linear layers still produces only a linear transformation.
Explanation
Nonlinear activation functions are necessary to construct nonlinear functions.
- 37
Compare a very wide shallow network with a narrow deep network for approximating complex functions.
Model answer
A sufficiently wide two-layer network can approximate complex functions, but a narrow network with many layers may achieve a similar approximation using far fewer parameters.
Explanation
Depth can provide a more efficient composition of computations than extreme width.
- 38
How does depth affect the representations learned by a neural network?
Model answer
Deeper layers generally form increasingly abstract representations and can perform more complex calculations.
Explanation
Later layers combine simpler computations from earlier layers into higher-level concepts.
- 39
What is model capacity in the context of deep learning?
Model answer
Model capacity is the number of parameters in the model, determined by factors such as its width and depth.
Explanation
More weights and biases generally provide more possible functions for the model to represent.
- 40
What does classical theory predict about a model with too little or too much capacity?
Model answer
A model with too little capacity underfits, while a model with too much capacity is expected to overfit.
Explanation
Classical theory describes a capacity-versus-error curve in which excessive capacity can worsen generalization.
- 41
What is the double-descent phenomenon?
Model answer
Double descent describes a regime in which performance can improve again after a model becomes sufficiently overparameterized to interpolate the training data.
Explanation
This behavior differs from the classical expectation that increasing capacity beyond the interpolation point necessarily worsens generalization.
- 42
Why is sufficient training data important for generalization and interpolation?
Model answer
The data must adequately cover the relevant distribution so the model can learn relationships between examples rather than merely memorize isolated points.
Explanation
With too few examples, a model can easily overfit and cannot reliably infer how to behave between observed data points.
- 43
Contrast overfitting with overparameterization.
Model answer
Overfitting is poor generalization caused by fitting the training data too specifically, whereas overparameterization refers to having more model parameters than the classical regime considers necessary.
Explanation
Modern deep-learning results show that overparameterized models can sometimes generalize well instead of simply overfitting.
- 44
What does the simplicity hypothesis suggest about functions learned by deep networks?
Model answer
It suggests that deep networks often learn relatively simple functions that generalize, despite having enough parameters to represent highly complicated functions.
Explanation
This emerging view contrasts with the classical expectation that large models primarily learn complicated, overfit functions.
- 45
What is automatic differentiation, or Autograd, used for in deep learning?
Model answer
Autograd systems such as those in PyTorch and TensorFlow automatically implement differentiation, including the chain rule, to compute gradients through programs.
Explanation
They allow gradients to be calculated for complex functions while taking advantage of available hardware.
- 46
Why are large-scale datasets important to modern deep learning?
Model answer
Large, curated, labeled datasets provide enough coverage for models to learn useful patterns and generalize beyond individual examples.
Explanation
The source identifies large-scale data as one of the key factors that made modern machine learning effective.
- 47
What computational resources characterize many modern deep-learning systems?
Model answer
They may use parallel training on thousands of GPUs, architectures with billions of parameters, and training costs of many millions of dollars.
Explanation
Modern systems rely on substantial hardware, model scale, and financial resources.
- 48
Why were GPUs important in the development of modern neural networks?
Model answer
GPUs can perform massive numbers of parallel multiplications, making them well suited to the matrix operations used to train neural networks.
Explanation
Hardware originally developed for graphics and video games was repurposed for neural-network training.
- 49
Why does increasing model size not always produce the best research result?
Model answer
Larger models require more data, computation, memory, and energy, while smaller models can still be highly effective and impactful.
Explanation
The source uses Stable Diffusion as an example of a relatively lightweight but influential system.
- 50
What is modular reuse in open-source deep learning?
Model answer
Modular reuse is the practice of using pretrained weights or components from one model as modules within a larger system.
Explanation
Reusing pretrained components can accelerate progress and reduce the need to train every component from scratch.
- 51
How has openness changed for some modern AI systems?
Model answer
Some systems provide access through an API without releasing their weights or full architecture, making them less open than traditional open-source models.
Explanation
The source contrasts this trend with the earlier open-source emphasis on sharing reusable model components.
- 52
What was the perceptron introduced by Rosenblatt in 1958 designed to do?
Model answer
It was designed to recognize or categorize images by combining pixel representations, applying a nonlinearity, and producing a category.
Explanation
The perceptron established a basic pattern still used in many neural-network systems.
- 53
What limitations of perceptrons were emphasized by Minsky and Papert?
Model answer
They mathematically characterized limitations on what a perceptron could model and questioned whether it could serve as a serious model of the brain.
Explanation
Their critical analysis contributed to reduced enthusiasm for neural networks during the 1970s.
- 54
What breakthrough did backpropagation provide?
Model answer
Backpropagation made it practical to propagate gradients through multiple layers and train multilayer perceptrons.
Explanation
It enabled networks with stacked perceptrons to be fitted more effectively than single-layer models.
- 55
Why was backpropagation important for solving XOR?
Model answer
Backpropagation enabled multilayer networks to learn multiple and nonlinear decision boundaries, which a single-layer perceptron cannot represent for XOR.
Explanation
XOR is not linearly separable, so it requires the expressive power of multiple nonlinear layers.
- 56
What characterized the AI winter around the early 2000s?
Model answer
Neural networks received little enthusiasm because researchers lacked efficient training methods, suitable programming approaches, and adequate hardware.
Explanation
The field had theoretical building blocks but could not yet use them effectively at scale.
- 57
What was significant about AlexNet in 2012?
Model answer
AlexNet was a convolutional neural network that used GPUs effectively and outperformed competing methods on ImageNet.
Explanation
Its success demonstrated the practical power of combining neural-network methods, large data, and GPU computation.
- 58
What three factors helped trigger the modern deep-learning breakthrough?
Model answer
The breakthrough depended on theoretical ideas, programming methods that enabled efficient training, and large-scale data.
Explanation
None of these factors alone was sufficient to produce the modern level of performance.
- 59
Why was ImageNet important to the development of deep learning?
Model answer
ImageNet provided a very large-scale labeled image dataset on which neural networks could be trained and evaluated.
Explanation
Its scale and curation supplied the data coverage needed for major improvements in image classification.
- 60
What is the role of softmax in a classification network?
Model answer
Softmax converts the final output scores into a normalized vector that can be interpreted as relative class scores or a probability-like distribution.
Explanation
The largest score identifies the predicted class, although the resulting values are not guaranteed to be true probabilities.
- 61
What does cross-entropy loss measure in classification?
Model answer
Cross-entropy loss measures the discrepancy between the model's output distribution and the one-hot ground-truth distribution.
Explanation
It penalizes assigning low score or probability to the correct class.
- 62
Why is cross-entropy loss large when the model assigns little probability-like score to the correct class?
Model answer
The loss is designed to strongly penalize predictions that place low weight on the true class.
Explanation
This encourages the network to maximize the output assigned to the correct training label.
- 63
What is a one-hot encoding of a class label?
Model answer
It is a vector containing 1 at the position of the correct class and 0 at every other position.
Explanation
It represents the ground-truth class distribution used by many classification losses.
- 64
Describe the basic training loop for a neural network.
Model answer
The model processes training examples, produces predictions, computes a loss, uses gradients to update its parameters, and repeats this process many times.
Explanation
Repeated updates adjust the weights and biases so predictions increasingly match the training labels.
- 65
What is a tensor?
Model answer
A tensor is a multidimensional array used to represent data, parameters, and intermediate neural-network computations.
Explanation
Vectors and matrices are examples of tensors, and neural-network layers commonly operate on them.
- 66
Why is batch processing useful in neural-network training?
Model answer
Batch processing groups multiple examples so their repeated computations and losses can be calculated efficiently in parallel.
Explanation
The individual losses are ultimately combined, so parallel computation can accelerate the calculation.
- 67
How do early and late layers of a vision network typically differ in their representations?
Model answer
Early layers learn low-level features such as orientations and light-dark gradients, while later layers combine them into higher-level concepts and categories.
Explanation
This hierarchical structure explains why late-layer representations often cluster more clearly by object category.
- 68
Why might images be poorly clustered by category in early network layers?
Model answer
Early layers primarily represent low-level visual properties rather than semantic object concepts.
Explanation
They may group images by features such as edge orientation instead of by categories such as fish.
- 69
Explain the reusable-feature idea using the example of recognizing the letter T.
Model answer
A network can reuse a feature detector for lines and combine multiple differently oriented line features to recognize the letter T.
Explanation
The example illustrates how lower-level building blocks can support multiple higher-level tasks.
- 70
What is transfer learning?
Model answer
Transfer learning reuses representations or model components learned for one task or dataset to help solve another task.
Explanation
Features such as lines, orientations, and structures may be useful across apparently different domains.
- 71
Why is weight reuse especially valuable when data or compute is limited?
Model answer
Reusing pretrained weights avoids learning all representations from scratch and reduces the data and computation required for a new task.
Explanation
A new model can learn only the task-specific components on top of generally useful representations.
- 72
What major neural-network architectures are identified for study?
Model answer
They include convolutional neural networks, graph neural networks, transformers, and recurrent neural networks.
Explanation
These architectures organize repeated computations in different ways to match different data structures and tasks.
- 73
What kinds of models are included under generative deep learning?
Model answer
Generative deep learning includes text-based and image-based generation, including basic, representational, and conditional models.
Explanation
Generative models produce new outputs and can condition those outputs on additional information.
- 74
How do the numbers of neurons in a worm, fruit fly, human, and elephant compare?
Model answer
The approximate counts are 302 for a worm, 15,000 for a fruit fly, 100 billion for a human, and 250 billion for an elephant.
Explanation
These comparisons illustrate the enormous range of neural-system scales across organisms.
- 75
Why can the energy cost of large-scale deep learning create environmental concerns?
Model answer
Training large models consumes substantial computation and energy, producing significant carbon costs that can worsen problems such as biodiversity loss.
Explanation
Deep learning can help address environmental problems while also contributing to them through resource consumption.
- 76
What does the example of Stable Diffusion demonstrate about model scale?
Model answer
It demonstrates that a relatively lightweight model can still have a major impact, so bigger models are not always better.
Explanation
Effectiveness and influence do not necessarily require the largest architecture or dataset.

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