1. Home
  2. Explore
  3. Computer Science
  4. Introduction to Deep Learning

Study methods

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

Introduction to Deep Learning

Deep Learning: Foundations, History, and Core Ideas

Deep learning is a modern approach to machine learning that uses flexible mathematical models to learn patterns from data. It has become important because it can model complicated real-world phenomena such as language, images, video, DNA, ecosystems, and climate-related processes.

The central idea is not simply that a computer stores examples and looks them up later. Instead, a deep learning system attempts to discover reusable rules and representations that connect inputs to outputs. For example, an image model may learn to recognize edges first, combine those edges into shapes, and then combine the shapes into objects.

What Makes Deep Learning “Deep”?

Two ideas are especially important:

  1. Neural networks, which provide the model architecture.
  2. Differential programming, which provides a way to optimize the model’s parameters.

Neural networks

A neural network is a machine learning architecture built from repeated computational units. Each unit usually performs:

  1. A linear transformation.
  2. A pointwise nonlinear transformation.

These operations are arranged in layers. A simple layer receives a vector of inputs and produces a vector of outputs.

A single output component of a linear layer can be written as

zj=∑iwjixi+bj,z_j = \sum_i w_{ji}x_i + b_j,zj​=i∑​wji​xi​+bj​,

where:

  • xix_ixi​ is an input component,
  • wjiw_{ji}wji​ is the weight connecting input iii to output jjj,
  • bjb_jbj​ is a bias,
  • zjz_jzj​ is the resulting output component.

In vector notation, the same computation is

zj=x⊤wj+bj.z_j = x^\top w_j + b_j.zj​=x⊤wj​+bj​.

When all output units are considered together, the layer becomes

z=Wx+b.\mathbf{z} = W\mathbf{x} + \mathbf{b}.z=Wx+b.

The weights and biases are the model’s parameters. Collectively, they are often represented as

θ={W1,W2,…,b1,b2,…}.\theta = \{W_1, W_2, \ldots, \mathbf{b}_1, \mathbf{b}_2, \ldots\}.θ={W1​,W2​,…,b1​,b2​,…}.

A model consisting only of linear transformations would still be linear, even if several linear layers were stacked together. Nonlinearities are therefore essential.

After computing z\mathbf{z}z, a neural network applies an activation function:

h=g(z).\mathbf{h} = g(\mathbf{z}).h=g(z).

The function ggg is usually applied separately to each component. This is why it is called a pointwise nonlinearity.

Differential programming

Differential programming is a programming paradigm in which parts of a program are parameterized and then adjusted using gradients. Instead of manually specifying every rule, a model contains adjustable parameters, and an optimization procedure changes those parameters to reduce an objective function.

The general process is:

  1. The model receives data.
  2. The model produces a prediction.
  3. A loss function measures the prediction’s error.
  4. Gradients indicate how the parameters should change.
  5. An optimizer updates the parameters.
  6. The process is repeated.

Deep learning combines neural network architectures with this gradient-based programming perspective. The architecture determines what computations can be performed, while differentiation and optimization determine how the model learns useful parameter values.

Deep learning combines layered neural networks with gradient-based optimization of parameterized computations.

Why Nonlinearity Matters

Consider a model that computes

z=x⊤w+bz = \mathbf{x}^\top \mathbf{w} + bz=x⊤w+b

and then applies an activation function to produce

y=g(z).y = g(z).y=g(z).

If ggg is a threshold function such as

g(z)={1,z>0,0,otherwise,g(z) = \begin{cases} 1, & z > 0,\\ 0, & \text{otherwise}, \end{cases}g(z)={1,0,​z>0,otherwise,​

the model can divide the input space into two regions. In two dimensions, the equation

w1x1+w2x2+b=0w_1x_1 + w_2x_2 + b = 0w1​x1​+w2​x2​+b=0

defines a line. The model assigns one class to one side of the line and another class to the other side.

This allows a single-layer perceptron to perform linear classification. It works when the classes are linearly separable, meaning that one straight boundary can separate them.

However, a threshold function is difficult to train using gradient descent. Away from the threshold, its gradient is zero. If the gradient is zero, the optimizer receives no information about which direction would improve the model. Consequently, backpropagation cannot effectively adjust the parameters.

The XOR problem

The XOR classification problem is a classic example of a task that cannot be solved by a single linear decision boundary. The positive and negative examples are arranged so that no one straight line separates them.

A single-layer perceptron therefore cannot solve XOR. A multilayer network can solve it because different layers can construct multiple boundaries and combine them into a nonlinear decision region.

This illustrates a central principle:

  • One linear layer can create a linear boundary.
  • Multiple layers with nonlinearities can combine boundaries into complex, nonlinear shapes.

Common Activation Functions

Activation functions determine how a neural network transforms the output of a linear layer. Their mathematical properties strongly affect how easily the network can be trained.

Step function

A step function outputs one value on one side of a threshold and another value on the other side. It is useful for understanding how a perceptron performs threshold-based classification, but it is generally unsuitable for gradient-based training because its gradient is zero almost everywhere and undefined at the threshold.

Sigmoid

The sigmoid function is

σ(z)=11+e−z.\sigma(z) = \frac{1}{1 + e^{-z}}.σ(z)=1+e−z1​.

Its output lies between 000 and 111. This makes it useful for interpreting an output as a score resembling a probability, especially in binary classification.

However, the sigmoid saturates for very large positive or negative inputs. In those regions, its gradient approaches zero. This can make learning slow because the model receives a very weak training signal. Its outputs are also centered around 0.50.50.5 rather than 000, which can lead to less favorable optimization behavior.

Hyperbolic tangent

The hyperbolic tangent, or tanh, is

tanh⁡(z).\tanh(z).tanh(z).

It produces values between −1-1−1 and 111. Unlike the sigmoid, its outputs are centered around zero. It also saturates for large positive or negative inputs, so its gradient can still become very small.

The relationship between tanh and sigmoid can be expressed as

tanh⁡(z)=2σ(2z)−1.\tanh(z) = 2\sigma(2z) - 1.tanh(z)=2σ(2z)−1.

Tanh provides a centered activation, but saturation can make it difficult to train deep networks efficiently.

Rectified linear unit

The rectified linear unit, or ReLU, is defined as

ReLU⁡(z)=max⁡(0,z).\operatorname{ReLU}(z) = \max(0,z).ReLU(z)=max(0,z).

Its behavior is simple:

  • If zzz is negative, the output is 000.
  • If zzz is positive, the output is zzz.

Its derivative is approximately

ReLU⁡′(z)={0,z<0,1,z>0.\operatorname{ReLU}'(z) = \begin{cases} 0, & z < 0,\\ 1, & z > 0. \end{cases}ReLU′(z)={0,1,​z<0,z>0.​

ReLU is computationally efficient and often makes optimization faster than saturating activations such as tanh. It is also unbounded on the positive side, which can allow activations and gradients to become very large.

A disadvantage is the dying ReLU problem. If a unit remains in the negative region, its gradient is zero, and the unit may stop learning. Even with this limitation, ReLU remains a common default activation, with many modified versions used in practice.

Activation functions are generally chosen based more on trainability and experimental experience than on a universal rule tied to a particular data type. Specialized applications may use other functions—for example, sinusoidal activations can make sense when the underlying features have sinusoidal structure—but there is no general activation function prescription that is optimal for every problem.

Think About It

Why would stacking two linear layers without an activation function fail to create a genuinely deeper nonlinear model?

From One Layer to Many

A multilayer perceptron applies the linear-plus-nonlinear operation repeatedly. For a two-layer network, the first hidden representation can be written as

h=g(W1x+b1),\mathbf{h} = g(W_1\mathbf{x} + \mathbf{b}_1),h=g(W1​x+b1​),

and the final output as

y=g(W2h+b2).\mathbf{y} = g(W_2\mathbf{h} + \mathbf{b}_2).y=g(W2​h+b2​).

Substituting the first expression into the second gives

y=g(W2g(W1x+b1)+b2).\mathbf{y} = g\left( W_2g(W_1\mathbf{x}+\mathbf{b}_1)+\mathbf{b}_2 \right).y=g(W2​g(W1​x+b1​)+b2​).

The intermediate vector h\mathbf{h}h is called a hidden representation because it is produced inside the network rather than directly observed as an input or final output.

A network’s parameters include every weight matrix and bias vector across all layers:

θ={W1,b1,W2,b2,…}.\theta = \{W_1,\mathbf{b}_1,W_2,\mathbf{b}_2,\ldots\}.θ={W1​,b1​,W2​,b2​,…}.

Each layer transforms the representation produced by the previous layer. Early layers may detect relatively simple features, while later layers combine those features into increasingly abstract structures.

For an image-recognition model, early layers might respond to orientations or light-dark edges. Later layers may combine those edges into curves, textures, parts, and eventually recognizable objects.

Linear and Nonlinear Classification

A single-layer perceptron can classify linearly separable data. Its decision surface is determined by the equation

x⊤w+b=0.\mathbf{x}^\top \mathbf{w} + b = 0.x⊤w+b=0.

Changing w\mathbf{w}w changes the orientation of the boundary, while changing bbb shifts the boundary.

If the boundary is poorly positioned, many examples are misclassified. A loss function assigns larger penalties to incorrect predictions, and gradient-based optimization adjusts the weights and bias. After repeated updates, the boundary may move into a position that correctly separates the classes.

A deeper network can form nonlinear decision regions. One hidden unit may create one ramp-like response, and another hidden unit may create a differently oriented ramp. Combining these responses can produce shapes such as peaks, triangles, or more complicated regions. Applying a final threshold to such a shape yields a nonlinear classifier.

This is the geometric reason depth matters: nonlinear layers transform and reshape the representation, allowing later layers to draw boundaries that would be impossible in the original input space.

Approximation and Representational Power

A model’s representational power describes the functions it can express or approximate.

A single linear layer can represent linear transformations and linear decision surfaces. With at least two layers and a suitable nonlinearity, a neural network can, in theory, approximate a very broad class of functions. This idea is associated with universal approximation results.

The nonlinearity is crucial. If the network contains only linear transformations, then multiple layers collapse into one larger linear transformation. For example,

W2(W1x+b1)+b2W_2(W_1\mathbf{x}+\mathbf{b}_1)+\mathbf{b}_2W2​(W1​x+b1​)+b2​

can still be rewritten as a single affine transformation of x\mathbf{x}x. The network becomes effectively shallow even though it has multiple layers.

Width versus depth

A sufficiently wide two-layer network can approximate complicated functions. However, this may require an enormous number of hidden units and parameters.

A narrower but deeper network can often represent the same type of complex function more efficiently. Repeated layers allow the network to reuse intermediate computations. Instead of learning every complex pattern directly, the network can construct a complicated function from many simpler transformations.

A useful analogy is construction with building blocks:

  • A very wide shallow network has many blocks available at once.
  • A deep network reuses blocks in stages, allowing each stage to build on the previous one.

Depth can therefore provide a more compact representation of complex computations, although the best balance between width and depth depends on the problem and remains an active area of research.

Think About It

Why can a deep, narrow network sometimes use fewer parameters than a shallow, wide network to represent a complex function?

Architectures and Data Structure

A deep network is often viewed as a cascade of repeated computations:

h1=f1(x),h2=f2(h1),…,y=fL(hL−1).\mathbf{h}_1 = f_1(\mathbf{x}), \qquad \mathbf{h}_2 = f_2(\mathbf{h}_1), \qquad \ldots, \qquad \mathbf{y} = f_L(\mathbf{h}_{L-1}).h1​=f1​(x),h2​=f2​(h1​),…,y=fL​(hL−1​).

Different architectures arrange these computations in ways that reflect the structure of the data.

Important architecture families include:

  • Convolutional neural networks, often used for spatial data such as images.
  • Graph neural networks, designed for data represented by nodes and relationships.
  • Recurrent neural networks, designed to process sequential information.
  • Transformers, which use attention-based interactions and are widely used for language and many other data types.

Architectures are not merely arbitrary collections of layers. They encode useful assumptions about how information is organized. A spatial image, a graph of connected entities, and a sequence of words have different structures, so architectures designed for them may reuse information differently.

A shallow model with limited capacity may efficiently compute simple patterns such as edges. A deeper model can combine such patterns into more abstract tasks, such as recognizing an object or translating between languages.

Training with Gradient Descent

Deep learning models are trained by minimizing a loss function. Let the model have parameters θ\thetaθ and loss function L(θ)L(\theta)L(θ). The goal is to find parameters

θ∗=arg⁡min⁡θL(θ).\theta^\ast = \arg\min_{\theta} L(\theta).θ∗=argθmin​L(θ).

Gradient descent begins with an initial parameter value and repeatedly moves the parameters in a direction that reduces the loss:

θt+1=θt−η∇θL(θt),\theta_{t+1} = \theta_t - \eta \nabla_\theta L(\theta_t),θt+1​=θt​−η∇θ​L(θt​),

where:

  • θt\theta_tθt​ is the current parameter vector,
  • η\etaη is the learning rate,
  • ∇θL(θt)\nabla_\theta L(\theta_t)∇θ​L(θt​) is the gradient of the loss with respect to the parameters.

The gradient describes how the loss changes when each parameter changes slightly. The negative gradient points toward decreasing loss.

In practice, the loss is often estimated using a subset, or mini-batch, of the training data. This leads to stochastic or mini-batch gradient descent. Repeated updates gradually modify the model’s weights and biases so that its outputs become more consistent with the desired targets.

Backpropagation

Backpropagation is the efficient method used to calculate how the loss depends on parameters throughout a multilayer network. It applies the chain rule of calculus from the output layer backward through the network.

For a sequence of functions,

y=fL(fL−1(⋯f2(f1(x)))),\mathbf{y} = f_L(f_{L-1}(\cdots f_2(f_1(\mathbf{x})))),y=fL​(fL−1​(⋯f2​(f1​(x)))),

the chain rule decomposes the derivative of the final output with respect to an earlier quantity into a product of derivatives. Backpropagation organizes this calculation so that intermediate results are reused rather than recomputed repeatedly.

Automatic differentiation systems in frameworks such as PyTorch and TensorFlow implement this process in software. They allow a programmer to define a computation and then automatically obtain gradients through that computation. This makes it possible to optimize highly complicated programs containing many parameterized operations.

Classification and Cross-Entropy Loss

A classification model often produces one score for each possible class. For an image, the classes might include clownfish, grizzly bear, chameleon, or iguana.

The predicted class can be selected using the largest score:

y^=arg⁡max⁡ksk,\hat{y} = \arg\max_k s_k,y^​=argkmax​sk​,

where sks_ksk​ is the score for class kkk.

A common method converts the scores into normalized values using the softmax function:

pk=esk∑jesj.p_k = \frac{e^{s_k}}{\sum_j e^{s_j}}.pk​=∑j​esj​esk​​.

The resulting values are nonnegative and sum to 111. They can be interpreted as model scores that resemble a probability distribution, although numerical outputs are not automatically true probabilities merely because they sum to 111.

The correct label is often represented using a one-hot vector. If the correct class is class ccc, then the target vector has value 111 at position ccc and 000 everywhere else.

The cross-entropy loss for a single example is

L=−∑kyklog⁡pk.L = -\sum_k y_k\log p_k.L=−k∑​yk​logpk​.

For a one-hot target, this reduces to

L=−log⁡pc.L = -\log p_c.L=−logpc​.

This has the desired behavior:

  • If the model assigns high score to the correct class, pcp_cpc​ is large and the loss is small.
  • If the model assigns low score to the correct class, pcp_cpc​ is small and the loss is large.

Training therefore encourages the model to increase the score assigned to the correct class across the training examples.

Tensors and Parallel Computation

Deep learning relies heavily on repeated numerical operations, especially matrix multiplication. These operations can be organized into batches and performed in parallel.

A tensor is a multidimensional array. A scalar is a tensor with zero dimensions, a vector is a one-dimensional tensor, and a matrix is a two-dimensional tensor. Larger tensors can store batches of images, sequences, or intermediate representations.

Suppose several input examples are stacked together. Instead of processing each example separately, the inputs can be arranged into a matrix and transformed simultaneously:

H=g(XW⊤+b).H = g(XW^\top + \mathbf{b}).H=g(XW⊤+b).

The exact orientation of the matrices depends on the chosen convention, but the important idea is that one matrix operation can process many examples at once.

Graphics processing units, or GPUs, are especially effective for this kind of work because they perform many arithmetic operations in parallel. The ability to use GPUs efficiently was a major practical factor in the rise of modern deep learning.

A Brief History of Neural Networks

The development of deep learning involved alternating periods of enthusiasm and disappointment. Progress depended not only on theoretical ideas, but also on algorithms, programming methods, hardware, and data.

The perceptron

In 1958, Frank Rosenblatt introduced the perceptron, one of the earliest neural network models. It combined input features, such as image pixels, using weighted sums and then applied a threshold-like nonlinearity to produce a category.

The perceptron introduced a structure that remains fundamental:

weighted input combination⟶nonlinearity⟶prediction.\text{weighted input combination} \longrightarrow \text{nonlinearity} \longrightarrow \text{prediction}.weighted input combination⟶nonlinearity⟶prediction.

Limitations of single-layer models

In the 1970s, mathematical analyses highlighted important limitations of perceptrons. A single-layer perceptron could not represent certain functions, including XOR. These limitations reduced enthusiasm for neural networks, contributing to an era often called an AI winter.

The issue was not that neural networks had no useful ideas. Rather, their available architectures and training methods were too limited for many important problems.

Backpropagation and multilayer networks

In the 1980s, work on parallel distributed processing helped popularize backpropagation as a method for training multilayer perceptrons.

Backpropagation made it practical to propagate error information through multiple layers. This enabled networks to learn combinations of nonlinear boundaries and solve problems such as XOR.

The significance of backpropagation was that it transformed multilayer networks from theoretical constructions into trainable models.

Convolutional neural networks

In the 1990s, convolutional neural networks demonstrated how neural networks could exploit spatial structure in images. Convolutional operations reuse the same filters across different locations, making them efficient for detecting visual patterns.

Despite these advances, neural networks were not yet dominant across machine learning. At the beginning of the 2000s, other methods were often more favored in research communities.

AlexNet and the modern deep learning surge

A major turning point occurred in 2012 with AlexNet, a convolutional neural network that achieved a dramatic improvement on ImageNet, a large labeled image dataset.

Three ingredients were especially important:

  1. Theory: neural network architectures and optimization methods had matured.
  2. Programming and hardware: GPUs could be repurposed for large-scale parallel numerical computation.
  3. Data: ImageNet supplied a large, curated, labeled collection of examples.

The lesson is that no single ingredient explains modern deep learning. Useful theory is not enough without efficient training. Hardware is not enough without suitable models. Algorithms are not enough without data that adequately represent the problem.

Deep Learning at Modern Scale

Modern deep learning systems may involve:

  • Datasets containing billions or more data points.
  • Models with billions or more parameters.
  • Training distributed across thousands of GPUs.
  • Training costs reaching millions of dollars.
  • Large-scale open-source model components and reusable learned weights.

Automatic differentiation is now a standard part of the software ecosystem. Frameworks such as PyTorch and TensorFlow automatically construct and differentiate computational graphs, allowing models to be trained without manually deriving every gradient.

Modular reuse

A major feature of modern deep learning is modular reuse. A model trained for one task can provide components for another system. For example, learned visual features may be reused in an image-classification model, a satellite-imagery model, or a scientific analysis system.

This reuse can occur at several levels:

  • Reusing an entire pretrained model.
  • Reusing intermediate representations.
  • Reusing learned weights and adapting them to a new task.
  • Combining components from multiple pretrained systems.

Although open-source reuse has driven substantial progress, some modern systems provide only an application programming interface rather than releasing their weights and architecture.

Scale is not the same as quality

Larger models and datasets can produce impressive results, but “bigger” is not always necessary. Some relatively lightweight systems have had substantial impact.

Large-scale training also has costs, including energy use, financial expense, and environmental impact. For certain applications, such as biodiversity research, the carbon cost of training models can itself be significant.

This motivates research into methods that achieve useful results without relying solely on ever-larger models and datasets.

Representation Learning

A deep network does not merely learn final predictions. It also learns internal representations of the data.

A representation is a transformed description of an input that makes relevant structure easier to use. The same low-level feature may be useful for many tasks.

For example, a model learning to recognize the letter T could either learn a complete T detector from scratch or reuse simpler detectors:

  1. Detect one line.
  2. Detect another line.
  3. Detect the connection and arrangement between them.

This is the basic motivation for learning reusable features.

In image models, early layers often represent low-level visual properties such as:

  • Edge orientation.
  • Light-dark transitions.
  • Simple textures.
  • Local spatial patterns.

Later layers combine these into:

  • Shapes.
  • Parts of objects.
  • Object categories.
  • Higher-level semantic concepts.

If representations from early layers are visualized, examples may not yet cluster clearly by object category because the network is organizing them by simple visual properties. Representations from later layers tend to separate examples into more meaningful groups, such as different types of animals.

Representation learning is therefore connected to both architecture and generalization. A useful representation can support many downstream tasks rather than solving only one narrow prediction problem.

Generalization and Double Descent

A model generalizes when it performs well on new examples rather than only on the examples used during training.

This is surprising for modern neural networks because they often contain far more parameters than training examples. Such models could theoretically memorize the training set, acting like lookup tables. Yet they often learn patterns that work beyond the training data.

Underfitting and overfitting

Classical learning theory often describes a relationship between model capacity and error:

  • With too little capacity, the model underfits and cannot capture the important structure.
  • With an intermediate amount of capacity, the model may perform well.
  • With too much capacity, the model may overfit by fitting accidental details or noise in the training data.

Capacity refers broadly to how expressive a model is. In neural networks, it is related to the number of parameters, which depends on factors such as width and depth.

Overfitting is a behavior: the model matches training examples too closely and performs worse on unseen examples.

Overparameterization is a property: the model has a very large number of parameters relative to the problem or dataset. An overparameterized model can overfit, but overparameterization does not necessarily guarantee poor generalization.

Double descent

Modern experiments have revealed a pattern called double descent. As model capacity increases, error may initially decrease, then increase near an interpolation threshold, and then decrease again as the model becomes even more overparameterized.

The interpolation threshold is the point at which the model becomes capable of fitting the training data essentially perfectly.

Classical expectations predicted that error should worsen once the model became too complex. The modern pattern suggests that sufficiently large models can sometimes fit the training data and still generalize well.

One proposed interpretation is that deep networks often learn relatively simple functions despite having many parameters. This contrasts with the classical simplicity hypothesis that larger models necessarily learn increasingly complicated functions and overfit.

Data coverage still matters

Model capacity is only one part of the problem. If the dataset is too small or fails to cover important parts of the data distribution, the model cannot reliably learn how to behave in those unseen regions.

A powerful model trained on insufficient data may memorize the available examples without discovering a broadly useful rule. Large, diverse, and representative datasets help the model learn relationships between examples rather than merely storing individual examples.

The practical goal is therefore not always “the largest possible model.” It is to balance:

  • Model capacity.
  • Dataset size and coverage.
  • Optimization quality.
  • Available memory and computation.
  • Desired generalization behavior.

Think About It

How can a model with enough parameters to memorize its training data nevertheless learn a rule that works on new examples?

Generative Models

Generative models learn to produce new data that resembles data from a target distribution. They can generate text, images, and other forms of content.

A generative system may be:

  • Unconditional, producing an output without a specified input condition.
  • Conditional, generating an output based on information such as a prompt, label, image, or other context.

Generative modeling is closely connected to representation learning. A useful internal representation can help a model understand the structure needed to produce coherent new examples. Conversely, a generative objective can encourage the model to learn meaningful structure in its data.

Modern examples include systems for text generation and image generation. The same deep learning foundations remain present: parameterized computations, learned representations, differentiable objectives, and gradient-based optimization.

Transfer Learning and Weight Reuse

Transfer learning uses knowledge learned from one task or dataset to improve performance on another.

For example, an image model trained on animal photographs may learn general visual features such as edges, orientations, and textures. Those features may also help analyze satellite images, even though the final task and visual domain differ.

Transfer learning can reduce the amount of new data and computation required because the new model does not need to learn every feature from scratch.

It can involve:

  • Reusing a pretrained model.
  • Freezing some learned layers.
  • Fine-tuning the parameters on new data.
  • Using learned representations as inputs to a new model.

Transfer can be considered from both a model perspective and a data perspective. The central question is which knowledge is sufficiently general to remain useful when the task or domain changes.

Scaling and Biological Comparison

Scaling refers to how model behavior changes as the amount of data, number of parameters, computation, or hardware increases.

Biological nervous systems illustrate that neural systems can exist at very different scales. A small worm has roughly 302302302 neurons, a fruit fly has roughly 15,00015{,}00015,000, humans have roughly 100100100 billion, and elephants have roughly 250250250 billion.

These comparisons do not imply that artificial neural networks and biological brains operate identically. They do highlight the importance of asking how the size and organization of a system affect its capabilities.

Modern deep learning research studies questions such as:

  • How should model size grow with dataset size?
  • How does additional computation affect performance?
  • When does increasing width help more than increasing depth?
  • Can optimization strategies themselves be learned automatically?
  • Are there predictable scaling laws?
  • How can useful performance be obtained without unlimited resources?

The fact that models can become extremely large makes efficiency increasingly important. Research must consider not only what a model can represent, but also how much data, memory, energy, and computation are needed to train and use it.

Comprehensive Review

Deep learning is built from two complementary ideas: neural networks provide layered computations, and differential programming allows those computations to be optimized through gradients.

A typical neural network layer first computes an affine transformation,

z=Wx+b,\mathbf{z} = W\mathbf{x}+\mathbf{b},z=Wx+b,

and then applies a pointwise nonlinearity,

h=g(z).\mathbf{h}=g(\mathbf{z}).h=g(z).

Linear transformations determine weighted combinations of features, while nonlinearities allow the network to form nonlinear decision boundaries and represent complex functions. A single perceptron can perform linear classification, but multilayer networks can solve nonlinear problems such as XOR.

Backpropagation applies the chain rule efficiently to calculate gradients through many layers. Gradient descent then updates the parameters according to

θt+1=θt−η∇θL(θt).\theta_{t+1} = \theta_t-\eta\nabla_\theta L(\theta_t).θt+1​=θt​−η∇θ​L(θt​).

Classification systems commonly use softmax scores and cross-entropy loss to increase the score assigned to the correct class. Tensors organize examples and representations into multidimensional arrays, allowing GPUs to perform many matrix operations in parallel.

The history of deep learning shows that progress required a combination of theory, trainable algorithms, programming systems, hardware, and large datasets. Modern deep learning extends these foundations to large models, billions of data points, reusable pretrained components, generative systems, transfer learning, and scaling studies.

Finally, deep networks are powerful not only because they contain many parameters, but because they can learn reusable representations. Early layers often capture simple structure, while later layers combine those features into abstract concepts. The central research challenge is to understand when these learned representations generalize, how efficiently they can be trained, and how their capabilities change with scale.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent