Introduction to Deep Learning
Deep Learning: Foundations, History, and Core Concepts
What Is Deep Learning?
Deep learning is a branch of machine learning that has become capable of modeling increasingly complex phenomena, including:
Natural language and text
Images and videos
Three-dimensional scenes and reconstruction
Biological data such as DNA
Ecosystems and biodiversity
Climate-related systems
Games and strategic decision-making
Code generation and software assistance
Deep learning is especially useful when the relationship between inputs and outputs is too complex to specify manually.
Two ideas form the foundation of deep learning:
Neural networks
Differential programming
Deep learning combines neural network architectures with gradient-based optimization of parameterized programs.
Neural Networks
Neural networks are machine learning architectures built from repeated computational units. A typical neural network consists of:
A linear transformation
A pointwise nonlinear function
Multiple repetitions or layers of this pattern
A linear transformation combines input values using learned weights and biases. The nonlinear function allows the network to represent relationships that cannot be captured by a purely linear model.
A simplified layer can be written as:
where:
x is the input vector
W is a matrix of learned weights
b is a bias vector
z is the pre-activation output
The output of the layer is then transformed by an activation function g:
Differential Programming
Differential programming is a programming paradigm in which parts of a program are parameterized and optimized using derivatives.
Instead of writing a fixed program that directly specifies every operation, the programmer defines:
A computational structure
A set of adjustable parameters
An objective or loss function
Gradient-based optimization then adjusts the parameters to improve the program’s output.
For a parameter vector θ and loss function L(θ), gradient descent updates the parameters according to:
where:
θ is the current parameter vector
η is the learning rate
∇θL(θ) is the gradient of the loss with respect to the parameters
The goal is usually to find a parameter setting that minimizes the loss, although optimization may reach only a local optimum rather than the global optimum.
Theory and Practice
Progress in deep learning depends on both:
Theory, which explains what neural networks can represent, why optimization works, and when models generalize
Practice, which involves implementing, training, evaluating, and visualizing models
Neither dimension is sufficient by itself. Theoretical results may show that a function can be represented, but practical training may still be computationally infeasible. Conversely, an empirically successful architecture may work without a complete theoretical explanation.
A Brief History of Neural Networks
The development of neural networks has involved alternating periods of intense enthusiasm and disappointment. These shifts were caused by changes in theoretical understanding, available algorithms, hardware, and data.
The Perceptron
In 1958, Frank Rosenblatt introduced the perceptron, one of the earliest neural network models.
The perceptron was designed for tasks such as image recognition and categorization. Its basic computation was:
Combine input features, such as pixel values, using weights
Add a bias
Apply a nonlinear threshold
Produce a category prediction
A perceptron can be expressed as:
followed by a threshold function:
The perceptron introduced a basic pattern that remains central to modern deep learning: weighted combinations followed by nonlinear transformations.
Limitations of Single-Layer Perceptrons
In the 1970s, Minsky and Papert provided a detailed mathematical analysis of perceptrons. Their work showed that a single-layer perceptron could solve only problems that were linearly separable.
A linearly separable problem is one in which a single linear decision boundary can separate the categories.
For example, two classes may be separated by a line in two dimensions or by a hyperplane in higher dimensions. However, some problems cannot be separated using one linear boundary.
The classic example is the XOR problem. The positive and negative examples of XOR cannot be divided by a single straight line. This limitation led to reduced enthusiasm for neural networks and contributed to an early period often associated with an “AI winter.”
Backpropagation and Multilayer Networks
In 1986, work associated with the book Parallel Distributed Processing helped popularize backpropagation.
Backpropagation makes it possible to calculate how much each parameter in a multilayer network contributes to the final error. It applies the chain rule of calculus backward through the network.
This enabled the practical training of multilayer perceptrons, which contain multiple layers of neurons rather than only one.
Multilayer networks can represent nonlinear decision boundaries. As a result, they can solve problems such as XOR that a single-layer perceptron cannot solve.
Backpropagation enabled gradients to be propagated through multiple layers, making multilayer neural networks trainable.
Convolutional Neural Networks
In 1998, Yann LeCun and collaborators developed influential convolutional neural network methods.
Convolutional neural networks, or CNNs, exploit the spatial structure of data such as images. Instead of treating every pixel relationship as unrelated, CNNs reuse local filters across an image.
This allows them to detect patterns such as:
Edges
Corners
Textures
Shapes
Object parts
Complete objects
CNNs provided important architectural building blocks, but neural networks still faced serious practical limitations because training them efficiently required suitable algorithms, hardware, and large datasets.
The AI Winter
Around the early 2000s, neural networks were relatively unpopular in machine learning research. Other approaches, such as probabilistic graphical models and Gaussian-process methods, were more prominent.
The problem was not simply that neural networks lacked theoretical potential. Important barriers included:
Insufficient computational power
Inefficient training procedures
Limited programming tools
Lack of very large labeled datasets
Difficulty scaling networks to useful sizes
The field had many of the conceptual building blocks but lacked the resources to use them effectively.
AlexNet and the Modern Deep Learning Era
In 2012, Alex Krizhevsky and collaborators introduced AlexNet, a convolutional neural network that achieved a major breakthrough on the ImageNet image-recognition benchmark.
Several factors contributed to AlexNet’s success:
Effective use of convolutional architecture
Large-scale labeled image data
Efficient GPU programming
Improved optimization and activation functions
A network large enough to learn complex visual features
Graphics processing units, or GPUs, were originally designed for highly parallel calculations in computer graphics and video games. Their ability to perform many matrix operations simultaneously made them highly effective for neural network training.
AlexNet demonstrated that neural networks could outperform competing methods when sufficient data and computational resources were available.
The Importance of Data
Large-scale, curated, labeled datasets were another essential factor in the success of deep learning.
A model can have a powerful architecture and efficient training algorithm, but it still needs sufficient data to learn useful patterns. Large datasets provide broader coverage of the input distribution and make it possible for models to learn relationships rather than merely memorize a small collection of examples.
Self-supervised learning has reduced reliance on manually labeled data in some settings, but data scale and quality remain crucial.
Deep Learning Today
Modern deep learning systems combine several major components.
Automatic Differentiation
Frameworks such as PyTorch and TensorFlow provide automatic differentiation, often called Autograd.
Automatic differentiation allows software to calculate derivatives of complex computational programs. It systematically applies the chain rule through the operations in a model.
This allows a programmer to:
Define a forward computation
Calculate a loss
Automatically compute gradients
Update model parameters
Automatic differentiation is important because manually deriving and implementing gradients for a large model would be extremely difficult and error-prone.
Large Datasets
Modern systems often use datasets containing millions or billions of data points. Examples include large collections of:
Text
Images
Video
Code
Multimodal data
Large datasets help models learn broad patterns and improve their ability to generalize.
Parallel Training
Large models are frequently trained across thousands of GPUs or other accelerators. Parallelism is necessary because modern models may have:
Billions of parameters
Large batches of training examples
Extensive computational graphs
High-dimensional intermediate representations
Large Parameter Counts and Training Costs
Modern neural networks may contain billions of adjustable parameters. Training such models can require substantial financial and computational resources.
However, size alone does not guarantee usefulness. Smaller systems can also be highly effective if they use an appropriate architecture, data representation, or training method. Stable Diffusion was an example of a comparatively efficient model that nevertheless had major practical impact.
Larger models can be powerful, but “bigger is better” is not a universal principle.
Open-Source Development and Modular Reuse
Deep learning has benefited from an open-source ecosystem in which researchers and engineers reuse components created by others.
A trained model’s weights can serve as a module inside a larger system. This is called modular reuse.
For example:
One model may provide visual features
Another may process language
A third may perform decision-making
The components may be combined into a larger application
This approach reduces the need to train every component from scratch.
Increasingly, however, some powerful models are available only through APIs. Users may be able to access a model’s predictions without receiving:
The trained weights
The full architecture
The training data
The complete training procedure
This creates a tension between the historically open research culture of machine learning and the increasing centralization of large-scale model development.
Gradient Descent
Gradient descent is a central optimization method in machine learning.
Objective of Gradient Descent
A model has parameters θ and a loss function L(θ). The goal is to find parameters that produce a low loss:
The loss measures how different the model’s predictions are from the desired outputs.
Gradient-Based Update
The gradient points in the direction of greatest increase in the loss. Therefore, gradient descent moves in the opposite direction:
The process is repeated:
Initialize the parameters, often randomly
Compute model predictions
Calculate the loss
Compute the gradient
Update the parameters
Repeat for many iterations
The learning rate η controls the size of each update.
If the learning rate is too small, training may be extremely slow.
If it is too large, optimization may overshoot good solutions or become unstable.
Stochastic and Mini-Batch Gradient Descent
In practical training, the loss is usually estimated using a subset of the training data called a mini-batch.
This has two advantages:
The model does not need to process the entire dataset before every update.
Mini-batches can be processed efficiently in parallel on GPUs.
The resulting gradient is an estimate of the gradient over the complete dataset. Despite being noisy, this approach is computationally efficient and often works well.
The Basic Neural Network Computation
A neural network commonly maps an input vector to an output vector:
The main building blocks are linear layers and nonlinear activation functions.
Linear Layer
For the jth output unit, the linear computation is:
where:
xi is the ith input component
wji is the weight connecting input i to output j
bj is the bias of output unit j
zj is the pre-activation value
Using vector notation:
For all output units at once:
The complete parameter set θ contains all weights and biases in every layer.
Why Nonlinearity Is Necessary
If multiple linear layers are stacked without nonlinearities, the entire network is still equivalent to one linear transformation.
For example:
can be rearranged into another linear transformation plus a bias. Therefore, stacking linear layers alone does not increase the class of functions the network can represent.
Nonlinear activation functions are what allow deep networks to construct nonlinear mappings.
Depth becomes computationally useful only when nonlinear transformations separate the linear layers.
Activation Functions
An activation function transforms the output of a linear layer. It is usually applied independently to each component:
This is called a pointwise nonlinearity.
Step Function
A basic threshold activation is:
This resembles the original perceptron.
Limitation
The step function is not differentiable at its threshold, and its gradient is zero almost everywhere. Consequently, gradient-based optimization receives little or no information about which direction would improve the model.
If the gradient is zero, a gradient update cannot move the parameters effectively.
Hyperbolic Tangent
The hyperbolic tangent activation, or tanh, maps values to the interval from −1 to 1:
It can also be related to the sigmoid function:
Advantages:
Outputs are bounded
Outputs are centered around zero
The function is smooth and differentiable
A major limitation is gradient saturation. For very large positive or negative values, the derivative becomes close to zero. When this occurs, the network receives little training signal.
Sigmoid
The sigmoid function is:
It maps values into the interval (0,1).
Historically, sigmoid outputs were sometimes interpreted as neuron firing rates or probabilities. However, sigmoid activations have important limitations:
They saturate for large positive or negative inputs.
Their gradients become close to zero in saturated regions.
Their outputs are centered around 0.5, not zero.
This can lead to less favorable optimization conditioning.
Because of these issues, sigmoid is less commonly used as the default hidden-layer activation in modern deep networks.
Rectified Linear Unit
The rectified linear unit, or ReLU, is defined as:
Its derivative is approximately:
Advantages:
It is computationally simple.
It avoids saturation on the positive side.
It often trains faster than tanh.
It supports efficient GPU implementation.
It frequently improves convergence in practice.
In the AlexNet work, ReLU produced substantially faster convergence than tanh.
ReLU Limitations
ReLU is unbounded for positive inputs, so activations can become very large. This can contribute to unstable behavior, including exploding gradients.
For strongly negative inputs, the output is zero and the derivative is also zero. A unit that remains in this region may stop learning. Such a unit is called a dead ReLU.
Many modern activations are modifications of ReLU intended to reduce this problem, but ReLU remains a common default.
Choosing an Activation Function
There is no universally correct activation function for every application.
In practice, choices are often based on:
Empirical performance
Optimization stability
Convergence speed
Architecture conventions
The structure of the data
Prior results on similar tasks
Some specialized problems may benefit from specialized functions. For example, data with an explicitly sinusoidal or Fourier structure may motivate sinusoidal representations or activations.
The choice is usually more closely related to trainability and optimization behavior than to a simple mapping from data type to activation function.
Stacking Layers
A multilayer network repeatedly applies linear transformations and nonlinearities.
For a two-layer network:
where:
x is the input
h is a hidden representation
y is the output
W1 and W2 are weight matrices
b1 and b2 are bias vectors
g is applied pointwise
The complete parameter set is:
For a network with more layers, this pattern continues. Each layer transforms the representation produced by the previous layer.
Hidden Units and Hidden Layers
Intermediate values such as z and h are called hidden representations because they occur inside the network rather than directly at the input or output.
Each layer typically contains many units operating in parallel. A matrix multiplication computes all of these units simultaneously.
Nonlinear Classification with Multiple Layers
A single perceptron can construct only a linear decision boundary. A multilayer network can combine several linear transformations through nonlinearities to produce curved, piecewise-linear, or otherwise complex boundaries.
For example:
The first layer can create several simple ramps or threshold-like features.
The second layer can combine those features.
The resulting function can form a localized peak or region.
A final threshold can classify a nonlinear region.
Thus, even a small two-layer network can represent a nonlinear classifier.
Representational Power and Approximation
A central theoretical question is: What functions can a neural network represent or approximate?
Single-Layer Networks
A single linear layer can represent linear mappings and linear decision surfaces.
With an appropriate threshold activation, a single-layer perceptron can classify linearly separable data.
Universal Approximation
With at least two layers and a suitable nonlinearity, a neural network can theoretically approximate a very broad class of functions.
This idea is associated with the universal approximation theorem. Informally, a sufficiently wide network can approximate any suitably well-behaved function to arbitrary accuracy.
The theorem does not mean that:
A small network can approximate every function
Training will find the required parameters
The approximation will be computationally efficient
The learned function will generalize well
The model will be practical to use
It establishes representational possibility, not practical success.
Why Nonlinearities Matter for Approximation
If every layer is linear, composing multiple layers still produces a linear function. Therefore, universal approximation depends on inserting nontrivial nonlinearities between layers.
Width Versus Depth
A sufficiently wide two-layer network may approximate a complicated function. However, it may require an enormous number of hidden units.
A deeper network can often represent the same function more efficiently by composing simpler transformations.
Wide, Shallow Networks
Use many units in relatively few layers
May require many parameters
Can represent complex functions
May be inefficient for hierarchical structures
Narrow, Deep Networks
Use fewer units per layer
Apply many sequential transformations
Can build complex functions compositionally
May use fewer parameters for certain tasks
Can form increasingly abstract representations
The tradeoff between width and depth is an active area of theoretical and empirical research. There is no universal rule that identifies the optimal balance for every model or task.
Neural Network Architectures
A deep network can be understood as a cascade of repeated computations:
Each layer transforms the current representation into a new one.
Different architectures are designed to match the structure of different types of data.
Convolutional Neural Networks
CNNs are especially useful for spatial data such as images.
They use local connectivity and shared filters to identify patterns while reducing the number of independent parameters.
CNNs commonly build hierarchical representations:
Early layers detect edges and orientations.
Middle layers combine edges into textures and shapes.
Later layers detect object parts and complete objects.
Graph Neural Networks
Graph neural networks, or GNNs, operate on graph-structured data.
Graphs contain:
Nodes or entities
Edges or relationships
Features associated with nodes, edges, or the entire graph
GNNs propagate information across connected nodes, making them suitable for data such as:
Social networks
Molecular structures
Transportation networks
Ecosystems
Relational systems
Recurrent Neural Networks
Recurrent neural networks, or RNNs, process sequences by maintaining a state that carries information from earlier steps.
They are designed for data where order matters, including:
Text
Speech
Time series
Sequential biological measurements
Transformers
Transformers use attention mechanisms to model relationships between elements in a sequence or across modalities.
They are especially important in:
Large language models
Machine translation
Vision systems
Multimodal models
Long-range sequence modeling
Transformers can process relationships between distant elements more directly than traditional recurrent architectures.
Generalization and Overparameterization
A model’s performance on unseen data is called generalization.
Memorization Versus Generalization
A highly flexible neural network has enough parameters to memorize its training examples. In principle, it could act like a lookup table:
If it sees a training input, it returns the stored answer.
For unseen inputs, it may have no meaningful rule.
Yet modern deep networks often generalize surprisingly well even when they contain far more parameters than training examples.
Classical View of Capacity
Classical statistical learning theory often describes the following pattern:
A model with too little capacity underfits.
Increasing capacity improves performance.
Excessive capacity causes overfitting.
Test error rises after the model becomes too complex.
In this view, capacity refers broadly to the complexity or flexibility of the model. In the lecture’s simplified usage, capacity is closely related to the number of trainable parameters, which depends on both width and depth.
Overfitting
Overfitting occurs when a model fits the training data too specifically and fails to capture the general pattern.
A model may have:
Very low training error
High test error
An unnecessarily complicated or irregular function
For example, with only a few data points, a highly flexible function may pass exactly through every point while forming sharp oscillations between them. Such a function may perform poorly on new data.
Overparameterization
A model is overparameterized when it has more parameters than are apparently necessary to fit the training data.
Overparameterization does not automatically imply poor generalization in modern deep learning.
Double Descent
The phenomenon of double descent challenges the traditional assumption that test error must increase permanently after overfitting begins.
As model capacity increases, performance may follow a pattern like:
Error decreases as the model becomes capable enough to fit the task.
Error increases near the interpolation threshold.
Error decreases again as the model becomes heavily overparameterized.
The second decrease is associated with the modern interpolating regime, in which very large models can fit the training data exactly yet still generalize well.
Interpolation
A model interpolates the training data when it can fit the training examples essentially perfectly.
Modern neural networks often operate in this regime. Their ability to generalize suggests that they are not merely memorizing arbitrary answers but are finding relatively simple or structured functions among the many functions capable of fitting the training data.
The Simplicity Hypothesis
Classical intuition suggests that large models should learn highly complicated functions and overfit.
An emerging view is that deep networks often learn functions that are effectively simple or structured, even when the models themselves are large. Optimization may favor particular solutions among all possible solutions that fit the training data.
This may help explain why massively overparameterized models can generalize.
Importance of Data Coverage
Model size alone is not enough. The training data must cover the relevant distribution adequately.
If there are too few examples:
The model may memorize individual observations.
Important regions of the input space may remain unseen.
The network cannot reliably infer relationships between distant examples.
Generalization becomes difficult.
Large datasets help provide coverage of the domain. When data are scarce, additional methods may be needed, including:
Regularization
Data augmentation
Transfer learning
Pretrained representations
Self-supervised learning
Architectural assumptions
Resource Constraints
The theoretically best model may be impractical because of:
Memory requirements
Training time
Hardware limitations
Energy consumption
Financial cost
Therefore, practical model selection must balance:
Accuracy
Generalization
Parameter count
Inference speed
Memory use
Training cost
There is often an optimal point that achieves strong performance without requiring unlimited computational resources.
Classification, Softmax, and Cross-Entropy
Neural networks are often used to classify an input into one of several categories.
Scores and Predictions
The final layer may produce one score for each possible class. These raw outputs are often called logits.
For prediction, the class with the largest score can be selected:
For example, the model might assign scores to classes such as:
Clownfish
Grizzly bear
Chameleon
Iguana
The class with the largest score becomes the predicted class.
Softmax
The softmax function converts logits into normalized positive values:
The outputs sum to 1 and can be interpreted as model confidence scores.
However, these outputs should not automatically be treated as perfectly calibrated or true probabilities. They represent the model’s normalized scores and may not correspond accurately to real-world frequencies.
One-Hot Targets
For a classification problem with K classes, the correct label can be represented as a one-hot vector y:
The correct class has value 1.
Every incorrect class has value 0.
For example, if the second of four classes is correct:
Cross-Entropy Loss
Cross-entropy compares the target distribution with the model’s predicted distribution.
For a single example:
For a one-hot target, this reduces to:
This means:
Assigning high confidence to the correct class produces a small loss.
Assigning low confidence to the correct class produces a large loss.
Predicting the wrong class with high confidence is strongly penalized.
Cross-entropy encourages the model to increase the score assigned to the correct class relative to the others.
Training with Loss
The general training loop is:
Provide an input to the network.
Compute the model’s prediction.
Compare the prediction with the ground-truth label.
Calculate the loss.
Compute gradients through backpropagation.
Update the weights and biases.
Repeat over many examples and iterations.
The model gradually adjusts its parameters so that its outputs better match the desired targets.
Tensors and Parallel Computation
Modern deep learning relies heavily on tensors and parallel hardware.
Tensors
A tensor is a multidimensional array.
Examples include:
A scalar: zero-dimensional tensor
A vector: one-dimensional tensor
A matrix: two-dimensional tensor
A batch of images: higher-dimensional tensor
An image batch might have dimensions corresponding to:
Number of images
Number of color channels
Image height
Image width
Every major object in a neural network can be represented as a tensor, including:
Inputs
Weights
Biases
Activations
Gradients
Loss values
Batching
Suppose a model processes three input vectors. Instead of computing each example separately, the vectors can be stacked into a matrix.
If each input has d features and there are n examples, the batch may be represented as:
A linear layer can process the entire batch at once:
The same weights are applied to every example, while the batch dimension stores the separate results.
Why GPUs Matter
Neural network training involves large numbers of matrix multiplications and elementwise operations. These operations can be performed in parallel.
GPUs are effective because they contain many processing units capable of executing similar calculations simultaneously. This makes it possible to train much larger models and process much larger batches than would be practical with ordinary sequential computation.
Representation Learning
A major goal of deep learning is to learn useful representations of data automatically.
Lookup Tables Versus Learned Representations
A lookup-table approach memorizes associations between specific inputs and outputs.
Deep networks instead attempt to learn reusable intermediate features. These features can support many different downstream tasks.
For example, a model trained on images may learn representations of:
Lines
Edges
Orientations
Corners
Textures
Shapes
Object parts
Complete objects
These representations are more compact and reusable than memorizing every image independently.
Hierarchical Representations
Deep networks often form hierarchical representations.
Early layers capture low-level patterns.
Middle layers combine low-level patterns into structures.
Later layers represent more abstract concepts.
In an image model:
Early layers may detect light-dark transitions or oriented edges.
Middle layers may detect textures and geometric parts.
Later layers may distinguish categories such as fish, mammals, or vehicles.
Layer-Wise Clustering
Representations can be analyzed by clustering examples at different layers.
At early layers, images from different categories may not cluster clearly because the representation mainly reflects simple visual properties such as orientation or contrast.
At later layers, examples may cluster more strongly by semantic category because the network has combined low-level features into meaningful concepts.
Example: Constructing a Letter Classifier
Consider a classifier for the letter T.
A model could learn a specialized T detector directly. Alternatively, it could reuse more basic components:
Learn a representation for a line.
Reuse that representation in different orientations.
Detect the connection between two lines.
Combine those features to recognize the T.
This illustrates the central idea of representation learning: complex concepts can be constructed from reusable lower-level features.
Generative Models
Generative models learn to produce new data resembling examples from a training distribution.
They can generate:
Text
Images
Audio
Video
Three-dimensional structures
Code
Important topics in generative modeling include:
Basic generative objectives
Learned representations
Conditional generation
Conditional Models
A conditional generative model produces an output based on additional information.
Examples include:
Generating an image from a text description
Producing a caption for an image
Generating an image belonging to a specified category
Creating a continuation of a given text prompt
The conditioning information guides the generation process toward a desired region of the output space.
Representation Learning and Generation
Generative systems depend heavily on how data are represented. A useful latent representation can make it easier to:
Capture important structure
Interpolate between examples
Generate coherent outputs
Control generation
Transfer knowledge across tasks
Transfer Learning and Weight Reuse
Training a large model from scratch can require extensive data and computation. Transfer learning addresses this by reusing knowledge learned from another task or dataset.
Reusing Learned Weights
A model trained to classify ordinary images may learn general visual features such as:
Edges
Orientations
Textures
Shapes
Spatial patterns
Those features may also be useful for satellite imagery, medical images, or biological images.
Instead of learning all parameters from scratch, a new model can:
Start with pretrained weights.
Reuse general features.
Replace or modify the final task-specific layers.
Fine-tune some or all of the parameters on the new task.
Benefits
Transfer learning can reduce:
Required training data
Training time
Computational cost
Risk of learning unstable low-level features
It is particularly valuable when the new task has limited labeled data.
Model and Data Transfer
Transfer can occur from:
One model to another
One dataset or domain to another
One task to a related task
The usefulness of transfer depends on how similar the original and new problems are. Low-level features may transfer broadly, while highly task-specific features may transfer poorly.
Scaling and Biological Comparison
Scaling is a major theme in modern deep learning.
Neural networks can be compared loosely with biological nervous systems by considering the number of neurons involved:
A small worm has roughly 302 neurons.
A fruit fly has roughly 15,000 neurons.
A human brain has roughly 100 billion neurons.
An elephant brain has roughly 250 billion neurons.
These comparisons do not imply that artificial parameters and biological neurons are equivalent. They illustrate how dramatically the scale of information-processing systems can vary.
Scaling Questions
Important questions include:
How does performance change as model size increases?
How much data is needed for a larger model?
How does training compute affect results?
What is the optimal balance between width and depth?
When do larger models stop providing useful gains?
How can optimization methods adapt automatically?
How can performance be improved without simply increasing scale?
Environmental and Economic Costs
Large-scale training can require:
Thousands of GPUs
High energy consumption
Significant financial resources
Large data centers
Extensive engineering infrastructure
These costs matter when evaluating the usefulness and sustainability of deep learning. In some applications, a smaller and more efficient model may be preferable to a larger model with only marginally better performance.
Beyond “Bigger Is Better”
Important progress can come from:
Better architectures
More efficient optimization
Improved data selection
Reusable pretrained models
Better representations
More efficient hardware
Smaller specialized systems
Clever experimental design
Deep learning research therefore includes both scaling up and discovering ways to achieve strong results without unlimited resources.
Core Takeaways
Neural networks are compositions of linear transformations and nonlinear activation functions.
Differential programming treats programs as parameterized objects that can be optimized using gradients.
Backpropagation makes it possible to train multilayer networks by computing gradients through the entire computational graph.
Nonlinear activation functions are essential because stacked linear layers without nonlinearities remain equivalent to a single linear transformation.
ReLU is widely used because it is efficient and often improves convergence, although it can produce exploding activations or dead units.
Deep networks can represent complex functions by composing many simpler transformations.
Universal approximation shows that sufficiently large networks can approximate broad classes of functions, but it does not guarantee efficient training or good generalization.
Modern deep learning depends on the combination of algorithms, automatic differentiation, GPUs, large datasets, and scalable architectures.
Overparameterized networks can generalize well despite having enough capacity to memorize their training data, a phenomenon associated with double descent and modern interpolation.
Representation learning allows networks to build complex concepts from reusable low-level features.
Transfer learning reduces the cost of training by reusing weights and representations learned from related tasks.
Scale is powerful but not sufficient: better data, architectures, optimization, and reuse can be as important as increasing model size.

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