Introduction to Deep Learning
- 100Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What two components are proposed as the foundation of deep learning?
Neural networks and differential programming.
Or swipe the card
100 cards
What two components are proposed as the foundation of deep learning?
Neural networks and differential programming.
What is a neural network architecture?
A machine learning architecture that uses stacks of linear transformations interleaved with pointwise nonlinearities.
What is differential programming?
A programming paradigm in which parts of a program are parameterized and gradient-based optimization tunes those parameters.
What role does gradient-based optimization play in differential programming?
It adjusts program parameters to optimize the program's objective function.
Why are both theory and practice important for progress in deep learning?
Major breakthroughs have depended on both theoretical understanding and practical abilities such as implementation, optimization, and hardware use.
What types of real-world phenomena can deep learning model?
Complex phenomena such as natural language, images, video, DNA, ecosystems, and climate change.
Why is modeling real-world phenomena difficult?
Real-world phenomena are complex and contain many interacting factors and patterns.
What biological system is offered as an existence proof for modeling complex phenomena?
The human brain.
What is the general computational pattern of a neural network?
It maps an input vector to an output vector through repeated computational layers.
Why do neural networks reuse simple computational units?
Repeated simple computations can be combined into increasingly complex functions and representations.
What did Rosenblatt introduce in 1958?
The perceptron, often considered the first neural network.
How does a perceptron perform image categorization?
It combines input features such as pixels with learned weights, applies a nonlinearity, and produces a category.
What limitations of perceptrons were emphasized by Minsky and Papert?
They mathematically characterized the limited functions that a perceptron could model and questioned its adequacy as a brain model.
What major concept was introduced in Parallel Distributed Processing in 1986?
Backpropagation.
What did backpropagation enable multilayer perceptrons to do?
It enabled them to be reasonably trained by propagating gradients through their layers.
Why can a multilayer network solve the XOR problem while a single-layer network cannot?
Multiple layers with nonlinearities can form multiple decision boundaries and represent nonlinearly separable patterns; a single-layer network cannot.
What did Yann LeCun introduce in 1998?
Convolutional neural networks.
What characterized the AI winter for neural networks?
Low enthusiasm caused partly by difficulties in efficiently training neural networks, inadequate programming approaches, and insufficient hardware.
What was the significance of AlexNet in 2012?
It was a convolutional neural network that substantially outperformed competing methods on ImageNet.
How did GPU programming contribute to AlexNet's success?
GPUs were repurposed from graphics applications to perform the massive parallel multiplications needed to train neural networks efficiently.
Why was ImageNet important to the resurgence of deep learning?
It provided a large-scale, curated, labeled dataset for training and evaluating image-classification models.
What role does large-scale labeled data play in machine learning?
It provides enough coverage of the data distribution for models to learn useful patterns and generalize.
What is
Autograd?An automatic differentiation system used by frameworks such as PyTorch and TensorFlow to compute gradients through programs.
What does automatic differentiation enable in deep learning?
It enables approximate gradients to be computed for complex functions implemented in software.
What are common characteristics of modern large-scale deep learning systems?
Billion-plus data points, training across thousands of GPUs, billion-plus parameter architectures, and training costs of many millions of dollars.
Why is Stable Diffusion an example that larger models are not always better?
It is relatively lightweight yet has had significant practical impact.
What is modular reuse in deep learning?
Using weights or trained components from one model as modules within another, often larger, system.
How has open-source availability changed in modern deep learning?
Although open-source development has driven progress, some systems increasingly provide only an API rather than their weights and architecture.
What environmental problem can large-scale deep learning contribute to?
Significant carbon costs from training large models can contribute to environmental harm, including problems related to biodiversity loss.
What is the objective of gradient descent?
To find model parameters that minimize a cost or loss function over the training data.
What happens during one gradient-descent update?
The model's gradient is calculated, and the parameters are updated using a step size called the learning rate.
What is a learning rate?
A parameter that controls the size of each gradient-descent update.
What is backpropagation?
A method for propagating gradients backward through a multilayer computation so that model parameters can be updated.
What is the purpose of differential programming in a neural-network model?
It structures the model so that gradients can be propagated through its computational components and used for optimization.
What is the basic equation for one component of a linear layer?
For output component zj, the weighted-sum form is zj=∑iwjixi+bj.
What does the bias term in a linear layer represent?
A learned offset added to the weighted sum that does not depend on the input components.
How can a linear-layer output be written in vector notation?
For output unit j, it can be written as zj=xTwj+bj.
What does the parameter set θ contain in a neural network?
All learned weights and all learned bias terms across every layer.
What makes a neural network more than a linear model?
The inclusion of nonlinear activation functions between linear transformations.
What does 'pointwise' mean for a neural-network nonlinearity?
The same scalar nonlinear function is applied independently to each component of a vector.
Why is a hard step function a poor activation for gradient-based learning?
Its gradient is zero almost everywhere and it is not differentiable at its threshold, which prevents useful backpropagation.
What is a perceptron mathematically?
A linear transformation followed by a pointwise threshold-like nonlinearity.
What kind of classification can a single-layer perceptron perform?
Linear classification of linearly separable data.
What is the limitation of a single-layer perceptron's decision surface?
Its decision surface is linear, so it cannot represent nonlinearly separable patterns such as XOR.
What are the main properties of the hyperbolic tangent activation,
tanh?It is bounded between −1 and 1, has outputs centered at 0, and its gradient saturates toward zero for very large positive or negative inputs.
What is the relationship between
tanhand the sigmoid function?The relationship is tanh(z)=2σ(2z)−1.
What are the main properties of the sigmoid activation?
It maps inputs to values between 0 and 1, saturates for large-magnitude inputs, and has outputs centered around 0.5.
Why is the sigmoid often poorly conditioned for hidden layers?
Its outputs are centered around 0.5 rather than 0, and its gradients approach zero for very large or very small inputs.
What is a ReLU?
A rectified linear unit defined by ReLU(z)=max(0,z).
What are the main advantages of ReLU?
It is efficient to implement, often speeds convergence, and has a simple derivative that is approximately a step function.
What are two drawbacks of ReLU?
It is unbounded for positive inputs, which can contribute to exploding gradients, and units can become 'dead' in the negative region.
How are two neural-network layers composed?
The first layer computes h=g(W1x+b1), and the next computes y=g(W2h+b2).
What are hidden units?
Intermediate representations such as z and h that occur inside a neural network rather than directly at its input or output.
How does stacking linear layers without nonlinearities affect model expressiveness?
It does not increase the model beyond a linear transformation because a composition of linear transformations is still linear.
How can a two-layer perceptron perform nonlinear classification?
Its first layer creates nonlinear intermediate features, and the second layer combines them to form a nonlinear decision boundary.
What is the difference between a shallow and a deep network in terms of computation?
A shallow network uses few layers and may require great width, whereas a deep network composes many layers to compute complex functions efficiently.
What is the representational power of a single linear layer?
It can represent linear decision surfaces.
What can a network with at least two layers represent in theory?
With a suitable nonlinearity and sufficient capacity, it can approximate any function.
Why is a nonlinearity necessary for universal approximation by multilayer networks?
Without a nonlinearity, multiple linear layers collapse into one linear transformation and cannot represent arbitrary nonlinear functions.
Why can a sufficiently wide two-layer network be inefficient in practice?
It may need extremely large hidden representations and many parameters to approximate a complex function.
Why can a narrow but deep network be more efficient than a wide shallow network?
Many stacked layers can reuse intermediate computations and approximate the same complex function with fewer parameters.
How do representations typically change across the layers of a deep network?
They become increasingly abstract and complex as information is transformed through successive layers.
What might a shallow network compute efficiently compared with a deep network?
A shallow network might efficiently detect simple features such as edges, while a deep network can efficiently recognize objects or translate languages.
What major neural-network architectures are highlighted for different data structures and tasks?
Convolutional neural networks, graph neural networks, transformers, and recurrent neural networks.
What does model capacity mean in the discussed context?
The number of parameters in the model, determined by factors such as its width and depth.
What is the classical view of the relationship between capacity and error?
Insufficient capacity causes underfitting, while excessive capacity causes overfitting.
What is overfitting?
Learning a model that fits the training data closely but generalizes poorly to new data.
What does it mean for a model to be overparameterized?
The model has more parameters than are apparently necessary relative to the problem or data.
What is double descent?
A modern pattern in which error can decrease again after a model passes the interpolation threshold and becomes heavily overparameterized.
What is the interpolation threshold?
The point at which a model gains enough capacity to fit or interpolate the training data.
What is the simplicity hypothesis in classical theory?
The idea that large models learn complicated functions and therefore overfit the data.
Why is sufficient training data important for generalization in overparameterized models?
The data must adequately cover the underlying distribution so the model can learn relationships between examples rather than merely memorize them.
What is the difference between model capacity and data coverage?
Capacity refers to the number of parameters available in the model, whereas data coverage refers to how much of the relevant input distribution is represented in the training data.
What is the purpose of softmax in classification?
It converts a vector of model scores into normalized values that can be treated as a distribution over classes.
What does the argmax classifier do?
It predicts the class with the largest output score.
What is a one-hot encoding of a class label?
A vector that is 1 at the correct class position and 0 at every other class position.
What does cross-entropy loss measure in classification?
The discrepancy between the model's predicted class distribution and the one-hot ground-truth distribution.
What does cross-entropy loss encourage a classifier to do?
Maximize the predicted probability assigned to the correct training label.
Why is a correct confident prediction associated with low classification loss?
The model assigns a large score or probability-like value to the true class, leaving little discrepancy from the one-hot target.
Why is a confident incorrect prediction associated with high classification loss?
The model assigns a high score to the wrong class and too little to the true class.
Why should softmax outputs not automatically be interpreted as true probabilities?
They are normalized model scores and may not be calibrated to represent true probabilities.
Why are batches useful in neural-network training?
They allow repeated operations and losses for multiple data points to be computed in parallel and aggregated efficiently.
What is a tensor?
A multidimensional array.
How can a batch of examples be represented in a neural network?
Examples can be stacked along a batch dimension, forming a higher-dimensional tensor.
Why are GPUs well suited to neural-network computation?
Neural networks can be expressed largely as parallel matrix multiplications and elementwise operations, which GPUs compute efficiently.
What is the usual sequence for training a neural network on a batch?
Compute predictions, calculate the loss, backpropagate gradients, and update the model parameters; repeat over many batches and iterations.
What is the main representational advantage of deep networks over lookup tables?
Deep networks learn compact mappings built from reusable lower-level components instead of memorizing every input-output pair.
How can a line detector contribute to recognizing the letter T?
A model can reuse line representations, combine differently oriented lines, and learn their connection point to form a T representation.
What kinds of features are commonly learned in early convolutional-network layers?
Low-level features such as orientations, edges, and light-dark gradients.
What kinds of features are commonly learned in later neural-network layers?
More complex and abstract concepts, such as object or category-level representations.
Why do early-layer representations often cluster poorly by object category?
They primarily encode low-level visual properties rather than semantic categories.
Why do later-layer representations often cluster better by category?
They combine lower-level features into higher-level semantic concepts that distinguish categories.
What is transfer learning?
Using knowledge or representations learned from one task, dataset, or model to improve learning on another task.
Why can features learned for animal classification help with satellite imagery?
General visual features such as lines, orientations, and structures may be useful in both domains.
Why is weight reuse especially valuable when data or compute are limited?
Previously learned representations can be reused, reducing the resources required to train an entire model from scratch.
What types of generative models are included among the topics of deep learning?
Text-based and image-based generative models, including basic, representation-based, and conditional models.
What is a conditional generative model?
A generative model whose output depends on specified conditioning information.
How many neurons are approximately found in the brain of a small worm, a fruit fly, and a human?
Approximately 302 in the worm, 15,000 in the fruit fly, and 100 billion in humans.
How many neurons are approximately found in an elephant brain?
Approximately 250 billion.
What questions are studied under scaling in deep learning?
How optimization behavior changes with scale, what scaling laws describe performance, and how models can learn to optimize themselves.

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