Deep Learning Foundations
Understanding Deep Learning: Core Ideas, Open Questions, and Societal Implications
1. Deep Learning as the Study of Underlying Ideas
Deep learning can be approached in several ways:
Practical approach: focuses on coding, implementation, and established recipes.
Theoretical approach: focuses on mathematical proofs and formal guarantees.
Conceptual approach: focuses on the ideas that explain why deep learning systems work and how to apply them in unfamiliar situations.
A conceptual understanding is particularly valuable when there is no existing recipe for a new problem. It allows practitioners to reason about:
Which architecture is appropriate.
How a model represents its input space.
Why a model may train successfully.
Why it may generalize to unseen examples.
How data augmentation and architectural choices encode prior knowledge.
What limitations and ethical risks accompany the technology.
A broad treatment of deep learning includes:
Deep neural networks and the training–testing pipeline.
Convolutional networks.
Residual networks.
Graph neural networks.
Transformers.
Generative models, including:
Normalizing flows.
Variational autoencoders.
Generative adversarial networks.
Diffusion models.
Reinforcement learning.
Theories of optimization, generalization, and model behavior.
Ethical issues involving bias, explainability, fairness, responsibility, and social impact.
The central theme is that deep learning is extremely effective, but its success is not yet matched by a complete scientific explanation.
Deep learning can be viewed as the study of how to model functions and probability distributions in very high-dimensional spaces.
2. Why Deep Learning Is Surprising
The success of deep learning is surprising for two separate reasons:
Deep networks can be trained efficiently.
Deep networks generalize well despite their enormous flexibility.
Both properties are difficult to explain using older statistical intuitions.
2.1 Efficient training is unexpected
Deep networks usually contain:
Millions, billions, or even more parameters.
Highly nonconvex loss functions.
Many possible directions in which the parameters can move.
Complicated interactions among layers and parameters.
Despite this, standard optimization methods such as stochastic gradient descent often find solutions with very low training error.
It is remarkable that training usually does not become permanently trapped in:
Poor local minima.
Regions near problematic saddle points.
Numerically unstable parts of the parameter space.
The training process appears able to locate useful solutions efficiently, even though the optimization problem is extremely high-dimensional.
2.2 Generalization is unexpected
A model generalizes when it performs well on new examples rather than merely memorizing its training set.
Deep networks are difficult to reconcile with traditional expectations because they:
Represent very complicated functions.
Often have more parameters than training examples.
Can fit arbitrary or random labels.
Have enormous freedom to behave in many different ways between observed data points.
Often generalize better as the number of parameters increases.
A model with enough capacity could theoretically behave sensibly on the training examples and arbitrarily between them. Yet trained deep networks often produce useful predictions on unseen data.
A priori, deep learning should not obviously work: the models are highly flexible, the data occupy a tiny fraction of the possible input space, and increasing model complexity often improves rather than harms generalization.
3. Overparameterization
A model is overparameterized when it has more trainable parameters than independent training examples, or when its capacity greatly exceeds what is apparently needed to fit the training set.
3.1 Examples
AlexNet had approximately 60 million parameters and was trained on roughly 1 million labeled images.
However, the images were augmented with thousands of transformations, complicating the comparison between the number of parameters and the effective amount of data.
GPT-3 had approximately 175 billion parameters and was trained on roughly 300 billion tokens.
These examples do not provide completely clear-cut evidence of overparameterization because data augmentation and repeated or correlated observations affect the effective sample size.
3.2 Why overparameterization may help
Overparameterization may make optimization easier rather than harder. One useful analogy is:
In an ordinary haystack, searching for one needle is difficult.
In a “haystack of needles,” many acceptable solutions are available.
In a highly overparameterized model, the loss landscape may contain a large, connected family of solutions that fit the training data well. This can give optimization many routes toward a good solution.
During training, the parameters may move through a relatively low-dimensional region toward a connected set of global or near-global minima. Local minima do not appear to obstruct optimization as much as older theories might suggest.
3.3 Overparameterization and generalization
Traditional complexity measures often predict that adding parameters should make generalization worse. Deep learning frequently violates this expectation.
A possible explanation is that additional capacity allows the network to represent smoother or more structured interpolating functions. The model can fit every training point while still selecting a relatively simple solution according to an implicit bias induced by:
The architecture.
Parameter initialization.
The optimization algorithm.
The learning rate.
The activation function.
Data augmentation.
Explicit and implicit regularization.
However, no complete explanation is currently available.
4. The Geometry of Neural Networks
Neural networks using rectified linear activations can be understood geometrically.
4.1 Piecewise-affine functions
For activations such as:
ReLU.
Leaky ReLU.
Parametric ReLU.
the network computes a piecewise-affine function. The input space is divided into regions, and within each region the network acts as one affine transformation.
An affine function has the form:
where A is a matrix and b is a bias vector.
In two dimensions:
The input space is divided into convex polygons.
Each polygon has its own affine function.
Neighboring regions join together to form a continuous surface.
In higher dimensions, these regions become convex polytopes.
4.2 Activation patterns define regions
Each ReLU unit is either:
Active: its input is positive and it contributes a linear response.
Inactive: its input is negative and its output is zero.
A particular pattern of active and inactive units determines one region of the input space. Changing the input can change the activation pattern, moving the input into another region with a different affine transformation.
The network therefore creates a large collection of local transformations whose boundaries are determined by learned hyperplanes.
4.3 Extremely large numbers of regions
The number of possible regions increases rapidly with:
Input dimension.
Number of units.
Number of layers.
Arrangement of the learned hyperplanes.
Even a network with a relatively modest number of parameters can create vastly more regions than there are training examples. In some estimates, the number of regions can exceed the number of atoms in the universe.
This creates a major conceptual problem: only a tiny fraction of these regions are ever visited by training or testing examples, yet the model still tends to behave sensibly on new data.
4.4 Why piecewise-linear networks appear smooth
A ReLU network is not globally smooth. It has many linear pieces and sharp changes at region boundaries.
However, with a very large number of densely arranged regions:
The local pieces can approximate smooth-looking functions.
A one-dimensional slice through the function may appear smooth.
Many small affine changes can combine into a visually continuous surface.
The smooth behavior observed between data points is therefore an emergent consequence of many local affine pieces, rather than evidence that the underlying activation functions are smooth.
4.5 The storage-bucket interpretation
The regions created by a network can be viewed as a collection of “buckets”:
Each input is routed according to its activation pattern.
Inputs with similar activation patterns occupy related regions.
Training moves the hyperplanes that define the boundaries of these regions.
The final function assigns outputs within each region.
This interpretation is useful, but it should not be taken to mean that each region corresponds neatly to a human-interpretable concept. A region may have a highly complicated shape in the full input space.
5. Curse of Dimensionality and the Manifold Hypothesis
5.1 The curse of dimensionality
The curse of dimensionality describes the rapid growth of the volume of a space as its dimension increases.
In a high-dimensional input space:
The number of possible inputs becomes enormous.
Data points become sparse.
A training set covers only a tiny fraction of the possible space.
Local neighborhoods become less informative.
Statistical estimates become unreliable without strong assumptions.
For an image of size 224×224 with three color channels, the input contains approximately:
dimensions.
The number of possible pixel configurations is roughly:
depending on how pixel values are represented. Almost all such configurations resemble noise rather than natural images.
5.2 The problem for image classification
Suppose a model must classify images into 1,000 classes using about 1 million training images.
Without prior structure, this is an extremely difficult problem:
The input space is enormously larger than the data set.
There may be only about 1,000 examples per class.
A simple probability distribution such as a Gaussian for each class would be inadequate.
Most possible images are never observed.
The task is feasible because natural images occupy a much smaller and more structured subset of the full pixel space.
5.3 The manifold hypothesis
The manifold hypothesis proposes that real-world data lie near a lower-dimensional subspace, or manifold, embedded within a much higher-dimensional ambient space.
For example, a face recorded under fixed lighting and from a fixed viewpoint may vary primarily through:
Facial muscle movements.
Small changes in head position.
Limited changes in expression.
Although the image may contain hundreds of thousands of pixel dimensions, the meaningful variations may be controlled by far fewer factors.
Natural images also exhibit regularities such as:
Limited types of materials.
Structured lighting.
Repeated shapes and textures.
Spatial correlations between neighboring pixels.
Object continuity and physical plausibility.
5.4 Compression as evidence of lower-dimensional structure
The size of a data manifold is related to how compressible the data are.
If a large variety of natural images can be represented using a relatively compact generative model, this suggests that natural images do not occupy the full space of arbitrary pixel arrays.
Diffusion models provide an illustrative example:
Their parameter files are large but manageable.
They can generate a wide variety of realistic images.
They do not explicitly store every possible image.
Their ability to generate many images suggests that a substantial portion of the natural-image manifold can be represented compactly.
The manifold hypothesis does not eliminate the difficulty of learning. It shifts the question to identifying the structure of the manifold and understanding how the network discovers it.
6. Inductive Priors and Data Augmentation
An inductive prior is an assumption that guides a model toward certain solutions when the data alone are insufficient to determine the correct one.
Every learning system has inductive biases, including:
The architecture.
The activation functions.
The initialization.
The optimization process.
The training data.
Data augmentation.
Regularization.
6.1 Architectural priors
A fully connected multilayer perceptron treats every input dimension in a largely general way. A convolutional network adds prior knowledge about images, including:
Local spatial structure.
Repeated patterns.
Translation-related regularities.
Shared parameters across locations.
A convolutional architecture searches through a restricted subset of all possible functions. This restriction can improve generalization because it excludes many implausible solutions.
6.2 Invariance and equivariance
A model may be designed to be:
Invariant: the output remains unchanged under a transformation.
Equivariant: the output changes in a predictable way when the input changes.
For example:
An object-recognition model may be invariant to small translations.
A segmentation model may be equivariant to translations, meaning that translating the input translates the output segmentation.
These properties can be built directly into the architecture or encouraged through data augmentation.
6.3 Data augmentation
Data augmentation creates additional training examples by applying transformations such as:
Translation.
Rotation.
Scaling.
Color changes.
Cropping.
Flipping.
Augmentation tells the model that transformed examples should be treated as related. It can be interpreted as adding prior knowledge through data rather than through the model architecture.
However, augmented examples are not fully independent observations. They are transformations of existing data, so they increase the amount of training information without increasing it as much as genuinely new examples would.
6.4 The bias–variance balance
There is a continuum between:
A model with almost no prior knowledge, such as a general multilayer perceptron.
A model with strong domain-specific assumptions.
A model that receives extensive augmented data.
Too little prior structure may require excessive data. Too much prior structure may prevent the model from representing important patterns.
The goal is to find a useful balance between:
Bias: assumptions that restrict the model.
Variance: flexibility to fit different possible data relationships.
7. Universal Function Approximation and the Role of Depth
7.1 Universal approximation
The universal approximation theorem states, with important technical qualifications, that a sufficiently wide shallow neural network can approximate a broad class of functions to arbitrary precision.
Conceptually, a shallow network can be viewed as:
A collection of basis functions.
A system that adjusts the placement and weighting of those basis functions.
A mechanism for constructing a desired input–output relationship.
This theorem establishes representational possibility, not practical usefulness.
7.2 Why the theorem is not a complete explanation
The theorem does not explain:
How many units are required.
How to find the appropriate parameters.
Why the learned function generalizes.
Why deep networks are often more efficient.
Why useful models commonly require many layers.
Why optimization succeeds in practice.
A very wide shallow network may approximate a function by placing many basis functions directly across the input space. This can behave more like memorization than generalization.
7.3 Depth as progressive transformation
Deep networks often use many layers because each layer transforms the representation produced by the previous layer.
Depth can be understood in several complementary ways:
Progressive folding: layers fold and replicate parts of the input space.
Basis-function composition: early layers construct simple basis functions, while later layers combine them into more complex ones.
Clipping and recombination: activation functions create additional joints or boundaries that later layers recombine.
Hierarchical representation: later computations operate on increasingly transformed versions of earlier features.
In one dimension, this may appear as adding more bends to a function. In higher dimensions, it corresponds to creating and recombining increasingly complex regions.
7.4 Information constraints across layers
A later layer cannot recover information that an earlier layer has completely discarded.
Thus, early layers influence the kinds of structures that later layers can construct. The network’s computation forms a directed acyclic graph, so information flows forward through a constrained sequence of transformations.
This does not necessarily mean that early layers contain simple, fixed concepts. Their effects may be distributed across many units and may be difficult to interpret independently.
8. Why Deep Networks Generalize
No single explanation currently accounts for deep-network generalization. Several factors appear to contribute.
8.1 Smooth interpolation
Deep networks often fit the training data while interpolating relatively smoothly between examples. Smooth interpolation is useful when nearby points in the input space tend to have related outputs.
The difficulty is explaining why the training process selects a useful interpolation rather than one of the many arbitrary functions that also fit the training data.
8.2 Implicit bias
Even without explicit regularization, training procedures favor some solutions over others. This preference is called implicit bias or implicit regularization.
Potential sources include:
Small initial weights.
The architecture.
Gradient-based optimization.
Finite learning rates.
Stochastic mini-batches.
The number of layers.
Activation functions.
Data augmentation.
The model may therefore have far more representational capacity than it actually uses in the final solution.
8.3 Flatness and connected minima
Generalization has also been associated with the geometry of the loss landscape.
A solution may generalize better if it lies in:
A broad, relatively flat region.
A connected family of good solutions.
A region where many nearby parameter settings produce similar outputs.
The exact meaning of “flatness” can depend on parameterization, so it is not by itself a complete theory. Nevertheless, the geometry of the solution region appears relevant.
8.4 More parameters can improve generalization
The relationship between model size and generalization can exhibit double descent:
As model complexity initially increases, generalization may worsen.
Near the interpolation threshold, performance may become poor.
As the model becomes even more overparameterized, generalization may improve again.
This behavior contradicts the simple expectation that larger models must generalize worse.
8.5 Data regularity
Generalization also depends on the data. If the data contain meaningful regularities, a model can interpolate between examples in useful ways.
If the labels are random, interpolation still occurs, but the resulting function has no meaningful predictive value. Thus, the ability to fit the training data does not itself demonstrate learning of useful structure.
9. Memorization and Random Labels
Deep networks are flexible enough to memorize arbitrary training sets.
Experiments have shown that a network can often fit:
Correctly labeled data.
Randomly shuffled labels.
Inputs whose pixels have been randomly permuted.
Other artificially corrupted data sets.
9.1 What random-label experiments demonstrate
These experiments show that deep networks have enormous fitting capacity. They can adapt their parameters to memorize relationships that contain no useful statistical pattern.
However:
Random-label data may take longer to fit.
The network must contort its function more severely.
Interpolation between random examples is meaningless.
The model does not generalize because the labels contain no predictive structure.
The difference in training time should not be interpreted as a reliable measure of problem difficulty. Convergence time depends on many factors, including initialization and optimization settings.
9.2 Training error versus generalization
A model can have:
Low training error and poor test performance.
Low training error and strong test performance.
The distinction depends on what function the model learns between the training points and whether the data contain regularities that support generalization.
10. Initialization and Optimization
10.1 Why initialization matters
Neural-network weights are initialized to carefully chosen scales.
If weights are too large:
Activations can grow rapidly across layers.
Gradients can become extremely large.
Numerical overflow may occur.
Training can become unstable.
This is called exploding gradients.
If weights are too small:
Activations may shrink toward zero.
Gradients may become extremely small.
Learning may effectively stop.
This is called vanishing gradients.
These issues affect both the forward pass and the backward pass. The activations themselves may become too large or too small, not merely the gradients.
10.2 The Goldilocks zone
There is often a range of parameter magnitudes that is neither too large nor too small.
This “Goldilocks zone” can produce:
Stable forward activations.
Useful gradient magnitudes.
A loss landscape with manageable curvature.
Faster convergence.
Better generalization.
Very small parameters tend to produce nearly flat functions. Very large parameters may produce sharp, rapidly changing functions. If the data are relatively smooth, excessively sharp functions may fit the training points but behave poorly between them.
10.3 Stochastic gradient descent
Stochastic gradient descent updates parameters using a subset of the training data at each step.
It is useful because:
It is computationally cheaper than evaluating the entire data set at every step.
It works efficiently with very large data sets.
The stochasticity can act as a form of regularization.
Finite update steps can bias the optimization toward particular solutions.
A common but oversimplified explanation is that stochasticity allows the optimizer to jump out of local minima. Large networks can often be trained with large batches or even full-batch methods, suggesting that escaping local minima is not the primary explanation.
10.4 Implicit regularization from finite steps
If optimization used infinitesimally small steps, it would resemble continuous gradient flow. Real training uses finite steps.
The combination of:
Finite step sizes.
Mini-batch noise.
Network structure.
can be mathematically interpreted as adding an implicit regularization effect to the loss. This changes the trajectory through parameter space and influences which solution is reached.
11. Grokking
Grokking describes a training pattern in which a model:
Fits the training data relatively early.
Performs poorly on the test data for a long period.
Suddenly begins to generalize much better.
This creates the appearance of a phase transition from memorization to generalization.
11.1 Possible explanation
One interpretation is that the model initially finds a complicated solution that memorizes the training examples. Over continued training:
The parameters continue moving through a family of good-fitting solutions.
The model gradually becomes smoother.
The memorizing solution is replaced by a more structured solution.
Test performance improves abruptly once the useful structure emerges.
The magnitude of the weights may gradually decline. When the weights enter a favorable range, generalization can improve rapidly.
11.2 Dependence on the data
Grokking may be especially visible on artificial data sets with little natural smoothness. If the data do not naturally suggest a simple interpolating function, the model may first learn a highly variable solution and later discover a more regular one.
For natural data, useful regularities may lead the model toward a smoother solution earlier in training.
12. Batch Normalization and Training “Tricks”
12.1 Batch normalization
Batch normalization normalizes activations using statistics computed from a mini-batch.
It has had several proposed or observed roles:
Stabilizing activation and gradient magnitudes.
Helping networks train after residual connections reintroduce instability.
Introducing a regularization effect through batch-dependent noise.
Allowing information from one example to affect the normalization of another example.
12.2 Changing explanations over time
Batch normalization was initially associated with addressing covariate shift, the idea that the distribution of activations changes as earlier layers are updated.
Later studies questioned whether this original explanation fully accounted for its benefits. Batch normalization became useful for other reasons, including stabilization and regularization.
This illustrates a broader pattern in deep learning:
A method is introduced for one theoretical reason.
Experiments reveal that the explanation is incomplete.
The method is retained because it has other practical benefits.
The community gradually develops new interpretations.
12.3 Batch normalization and transformers
Batch normalization can allow information from later or separate examples to influence the normalization statistics of a batch.
This is problematic in settings such as masked language modeling, where a token should not access information from future tokens. Transformers therefore commonly use layer normalization, which normalizes within an individual example rather than across a batch in the same way.
12.4 The danger of unexamined engineering additions
Deep-learning systems often accumulate:
Activation-function variants.
Initialization schemes.
Normalization methods.
Data-processing choices.
Training schedules.
Architectural modifications.
Ablation studies sometimes show that many proposed changes have little effect. State-of-the-art research can encourage researchers to add many components without determining which one actually produced the improvement.
13. Empirical Progress and the Limits of Current Theory
Deep learning research has advanced primarily through empirical demonstrations. The field has produced impressive systems, but its theoretical understanding remains incomplete.
13.1 Major unanswered questions
Researchers do not yet have a prescriptive theory that reliably predicts:
When a deep network will train successfully.
When it will fail to optimize.
When it will generalize.
How many parameters are actually necessary.
Which parameter values will generalize best.
What the true limits of deep learning are.
Whether substantially more efficient models are possible.
Why depth and large parameter counts are both so useful.
13.2 Existing theoretical tools
Several theoretical frameworks provide partial insights:
Neural-network Gaussian processes.
Infinite-width analyses.
Neural tangent-kernel-style approaches.
Spline and piecewise-linear analyses.
Studies of loss-landscape geometry.
Analyses of implicit regularization.
Scaling-law research.
These frameworks can sometimes predict aspects of trainability or generalization, but often rely on assumptions such as:
Infinite network width.
Simplified architectures.
Idealized data.
Parameter regimes unlike practical systems.
A theory based on infinite width may still be informative if finite networks approach the relevant behavior before literally becoming infinite. However, theories requiring very specific width-to-data ratios may depend on assumptions that do not hold in practical models.
13.3 Engineering versus science
A high benchmark score is an engineering achievement, but it is not automatically a scientific explanation.
A scientifically meaningful comparison requires:
Controlled experiments.
Comparable compute and data.
Clear ablation studies.
Separation of architectural effects from scaling effects.
Replication.
Analysis of failure cases.
For example, claims that one architecture is better than another may be unreliable if one method received:
More pretraining data.
More compute.
Better optimization.
More extensive tuning.
A larger model.
Recent evidence has suggested that convolutional networks may remain competitive with vision transformers when trained under comparable large-scale conditions. This illustrates why benchmark rankings alone do not establish general scientific conclusions.
14. Small Synthetic Data Sets as Scientific Testbeds
Large-scale benchmarks are useful for measuring performance but are often expensive and difficult to analyze systematically.
A small synthetic data set can make it possible to study deep-learning phenomena in detail.
14.1 One-dimensional digit-like data
A useful example is a procedurally generated data set based on one-dimensional patterns resembling handwritten digits:
Different digits are represented by different numbers or arrangements of bulges.
Noise can be varied systematically.
Arbitrary amounts of training data can be generated.
The data are low-dimensional and fast to process.
Convolutional structure can still be studied when the data have an appropriate spatial dimension.
14.2 Phenomena that can be studied
Even in a small data set, researchers can observe:
Adversarial examples.
Lottery-ticket behavior.
Double descent.
Training instability.
Generalization failure.
Effects of noise.
Effects of model width and depth.
Sensitivity to initialization.
14.3 Why small systems matter
A small, controllable data set allows researchers to vary many factors systematically:
Number of layers.
Number of parameters.
Noise level.
Data-set size.
Initialization scale.
Learning rate.
Batch size.
Activation function.
This makes it possible to search for tight relationships between data properties, optimization, and generalization. Such work could produce a more genuinely scientific theory than repeatedly optimizing performance on massive benchmarks.
15. Large Language Models and the Limits of the Neural Metaphor
15.1 Why “neuron” can be misleading
The term neural network is historically connected to neuroscience, but modern deep networks are not known to operate like biological brains.
There is no strong evidence that artificial networks share key features of human cognition, such as:
Human-like short-term memory systems.
Dreaming as a mechanism for memory consolidation.
Specialized brain modules with the same organization.
Human-like agency.
Human-like moral status.
Human-like theories of mind.
Artificial networks also exhibit properties for which there is no corresponding evidence in human brains, including:
Double descent.
Adversarial examples.
Lottery-ticket phenomena.
Piecewise-linear computation at the same functional level.
Using biological language can cause people to infer that an artificial system:
Thinks like a human.
Has thoughts or feelings.
Possesses a self.
Has independent goals.
Understands the world in a human-like way.
These inferences are not justified merely because the system is called a neural network.
15.2 A reductionist view of a language model
A large language model can be described as a very large parameterized equation.
Given an input sequence, it:
Performs additions and multiplications involving its parameters.
Applies nonlinear operations.
Produces numerical outputs.
Converts those outputs into probabilities over possible next tokens.
Selects or samples a continuation.
Under this view, the model’s behavior is a consequence of its learned parameters and input context, not evidence of a deeper human-like mental process.
15.3 Why transformers seem more mind-like
Transformers have a context window that functions somewhat like a limited working memory:
The model uses preceding tokens to predict the next token.
The context influences subsequent predictions.
The model can maintain information across a sequence.
The context can support temporary reasoning-like behavior.
This resemblance should not be confused with human cognition. A standard transformer generally does not:
Permanently update its knowledge during a conversation.
Reflect on and revise its own previous context in a durable way.
Build a stable, internally consistent world model.
Form new long-term memories from each interaction.
Test hypotheses against the physical world.
A possible future direction would be systems that can:
Summarize and reorganize previous context.
Generate competing hypotheses.
Compare those hypotheses.
Maintain scratch memory.
Build more internally consistent models.
15.4 Statistical knowledge versus coherent cognition
A language model is trained on many conflicting statements. It may contain statistical associations supporting multiple incompatible claims.
For example, it may have learned evidence that the Earth is round as well as text expressing flat-Earth beliefs. The model’s output reflects the statistical distribution and context rather than a single coherent worldview.
Humans also hold conflicting beliefs, but human cognition typically attempts to construct an actionable model of the world. Humans must use their beliefs to guide physical action, so contradictions can create practical problems.
A language model can reproduce conflicting statements without resolving them because it is primarily predicting text.
15.5 The importance of interaction
Human cognition involves:
Acting in an environment.
Receiving consequences.
Testing hypotheses.
Updating beliefs.
Maintaining goals.
Managing limited attention and memory.
Building models that support future action.
A purely feedforward language model has limited ability to perform these activities. It can produce sophisticated text, but its output does not by itself demonstrate agency, self-reflection, or independent understanding.
16. Intelligence, Capability, and Agency
16.1 Intelligence as a difficult concept
“Intelligence” can refer to several different ideas:
Observable behavior.
Problem-solving capability.
Internal structure.
Generalization.
Planning.
Adaptation.
Understanding.
Agency.
The ability to form and test new models.
Because intelligence is multidimensional, different observers may emphasize different aspects. A system may outperform humans on some tasks while lacking abilities that humans consider central to intelligence.
16.2 Capability-based descriptions
A more concrete approach is to describe what a system can and cannot do:
Can it translate text?
Can it solve a particular mathematical problem?
Can it generate code?
Can it plan over multiple steps?
Can it update its knowledge?
Can it operate reliably in the physical world?
Can it detect and correct its own errors?
This avoids treating intelligence as a single measurable substance.
16.3 Agency
Agency generally involves more than producing outputs. It may include:
Pursuing goals.
Acting in an environment.
Responding to consequences.
Planning over time.
Managing limited computational resources.
Maintaining a model of the environment.
Adapting behavior based on experience.
A system that executes code or performs actions when prompted does not necessarily possess agency. Its behavior may still be entirely determined by externally designed objectives, prompts, and reward functions.
16.4 Reinforcement learning and agents
Reinforcement learning introduces an agent that:
Observes an environment.
Takes actions.
Receives rewards or penalties.
Updates its policy.
Explores possible strategies.
This creates a closer connection to action and environmental interaction than ordinary text prediction. However, the system’s objectives are still designed by humans or specified through an external reward structure.
The existence of an optimization process does not automatically establish human-like free will or moral agency.
17. Universal Computation and the Connectionist–Symbolic Debate
Universal approximation suggests that neural networks can represent a very broad range of functions, given sufficient capacity.
However, representational ability is not the same as:
Efficient computation.
Reliable learning.
Systematic reasoning.
Generalization from limited examples.
Internally consistent knowledge.
The ability to discover useful algorithms.
A shallow or infinitely wide network may represent a function but require impractical resources to do so. This is analogous to saying that an infinitely large storage device can store any file: it establishes possibility, not efficiency.
The connectionist–symbolic debate concerns whether intelligent behavior requires:
Distributed numerical representations learned from data.
Explicit symbolic structures and rules.
Some combination of both.
Neural networks demonstrate that many capabilities can be learned without explicitly programmed symbolic rules. However, it remains open whether certain tasks require more structured forms of computation or whether sufficiently large neural systems can learn them efficiently.
18. Ethical Responsibilities of Deep Learning
Deep learning is a powerful technology with potential benefits in:
Health care.
Design.
Entertainment.
Transportation.
Education.
Commerce.
Scientific research.
Public services.
Its influence may be comparable in scale to technologies such as:
Electricity.
The internal combustion engine.
The transistor.
The internet.
Because of this power, the potential harms are also substantial.
18.1 Common ethical issues
Important concerns include:
Bias and discrimination.
Fairness.
Explainability.
Misinformation.
Privacy.
Surveillance.
Labor displacement.
Environmental costs.
Concentration of power.
Misuse of automated systems.
Loss of human skills and autonomy.
Accountability for harmful outcomes.
18.2 “AI for social good” is not self-defining
The label AI for social good is a value judgment, not a neutral technical description.
Two systems may both be advertised as socially beneficial while serving conflicting interests. For example:
One system may aim to improve police accountability and reduce incarceration.
Another may use predictive policing to increase security.
Both may be presented as beneficial, but one community’s benefit may be another community’s harm.
Therefore, claims of social benefit require explicit principles concerning:
Who benefits.
Who bears the risks.
Whose values are being prioritized.
Whether affected communities have meaningful participation.
What mechanisms exist for appeal and correction.
18.3 Accountability
Researchers and engineers may be tempted to regard their work as value-free mathematics. In practice, technical decisions are value-laden.
Values enter through:
The choice of problem.
The definition of success.
The selected data.
The fairness criteria.
The decision to optimize accuracy over other goals.
The choice of deployment context.
The reporting of benefits and harms.
The decision to release or withhold a system.
Researchers should consider:
Who will use the technology.
Which communities it will affect.
Whether misuse is foreseeable.
Whether safeguards are effective.
Whether an organization is genuinely committed to risk reduction.
Whether ethical policies are substantive or merely reputation management.
18.4 Ethical AI as collective action
No individual researcher can control every consequence of a complex technology. Nevertheless, this does not eliminate individual responsibility.
Individuals can:
Choose which organizations to work for.
Choose which problems to study.
Raise concerns about harmful projects.
Demand better evaluations.
Report limitations honestly.
Support safety mechanisms.
Participate in collective professional standards.
Ethical AI is therefore a collective-action problem:
Individual influence may be limited.
Coordinated action can change research priorities and deployment practices.
Institutions, governments, companies, and professional communities all have responsibilities.
19. Social Effects of Automation
19.1 Labor displacement
Automation may allow one worker to perform tasks previously done by many workers.
For example:
A medical-imaging system may allow one radiologist to handle more cases.
Automated email completion may make communication slightly faster.
Generative systems may reduce the number of people required for design, writing, management, human resources, or customer support.
This does not necessarily mean that an entire profession disappears immediately. More often, the number of workers required to perform the same amount of work decreases.
19.2 The speed of technological change
New jobs may eventually appear, but social institutions may not adapt quickly enough.
Possible consequences include:
Rapid unemployment.
Reduced bargaining power.
Loss of professional status.
Disruption to education and training pathways.
Increased inequality.
Social unrest.
Concentration of economic gains among technology owners.
People may invest years in becoming doctors, lawyers, designers, or other professionals. If automation rapidly reduces demand for those roles, the resulting loss is not only financial but also connected to identity, status, and purpose.
19.3 Work, purpose, and social identity
Work often provides:
Income.
Social recognition.
A daily structure.
A sense of competence.
A sense of contribution.
Relationships and community.
Personal identity.
Removing work without replacing these functions may create purposelessness and isolation. People differ greatly, however: some may welcome freedom from employment, while others may struggle without structured responsibilities.
The challenge is not simply deciding whether a job is technically automatable. It is determining how society can preserve:
Human agency.
Purpose.
Social participation.
Fair access to resources.
Opportunities for meaningful contribution.
19.4 Deskilling and enfeeblement
Automation can reduce people’s opportunities to practice skills.
Examples include:
Drivers who rely almost entirely on automated systems.
Workers who follow algorithmic instructions without understanding the broader task.
Professionals who depend on automated recommendations and lose independent judgment.
A dangerous situation can arise when automation fails and a human must suddenly take control without sufficient recent experience. One aviation disaster has been associated with this kind of problem: pilots were required to respond to an unusual emergency after extensive reliance on autopilot, leaving them less prepared for ambiguous manual control.
The broader risk is enfeeblement: people gradually surrender decision-making and skill until they are less capable of acting independently.
20. Near-Term and Long-Term Risks
AI risks exist at multiple timescales.
20.1 Near-term risks
These include:
Algorithmic bias.
Unfair decisions.
Misinformation.
Lack of explainability.
Surveillance.
Privacy violations.
Employment disruption.
Loss of skills.
Unsafe deployment.
Diffusion of responsibility.
These risks are concrete and already observable.
20.2 Long-term risks
Long-term discussions often involve:
Artificial general intelligence.
Systems with broader capabilities.
Loss of human control.
Autonomous decision-making.
Changes to social and political institutions.
Potentially transformative or catastrophic outcomes.
Claims about distant risks often rely on large assumptions about future systems. Arguments become weak when they simultaneously:
Warn against anthropomorphizing AI.
Attribute human-like goals, fears, desires, or self-preservation to future systems without justification.
Uncertainty about long-term outcomes does not mean that long-term risks should be ignored. It means that different kinds of risks should be investigated rather than allowing one category to exclude all others.
20.3 Responsibility and deployment
One way to reduce harm is to assign clearer legal and organizational responsibility to developers and deployers.
If a company can release a system that causes foreseeable harm while disclaiming responsibility through terms of service, incentives may favor rapid deployment over safety.
Potential safeguards include:
Liability for foreseeable misuse.
Independent evaluation.
Pre-deployment testing.
Reporting requirements.
Restrictions on high-risk applications.
Mechanisms to pause or withdraw unsafe systems.
Public oversight.
Clear accountability across the development chain.
21. Central Takeaways
Deep networks are highly flexible, yet they often train efficiently and generalize well. This remains one of the central mysteries of modern machine learning.
Deep networks using ReLU-like activations implement piecewise-affine functions over enormous collections of convex polytopes.
Overparameterization can make optimization easier and may improve generalization, contrary to classical expectations.
Data augmentation and architectural design provide inductive priors that guide learning toward useful functions.
The manifold hypothesis suggests that natural data occupy a structured, lower-dimensional subset of the full input space.
Universal approximation proves broad representational ability but does not explain efficient learning, depth, or generalization.
Initialization, learning rates, stochasticity, normalization, and architecture all influence which solutions are found.
Grokking illustrates that a model can memorize first and generalize later.
Existing theories explain only parts of practical deep learning and often rely on idealized assumptions.
Small, controllable synthetic data sets may be better laboratories for understanding deep-learning mechanisms than massive benchmarks.
Large language models are powerful statistical systems, but their behavior should not automatically be interpreted as human-like thought, understanding, or agency.
AI systems should be evaluated through concrete capabilities, limitations, and deployment conditions rather than vague claims about intelligence.
Ethical responsibility extends beyond individual algorithms to data collection, organizational incentives, labor markets, social institutions, and governance.
The benefits and harms of AI are distributed unevenly, so claims of social good require explicit attention to affected communities and competing values.
Deep learning must be studied not only as an engineering technology but also as a scientific, social, and ethical phenomenon.

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