Probabilistic Machine Learning
Probabilistic Machine Learning and Artificial Intelligence
1. The Evolution of Artificial Intelligence Research
Artificial intelligence has developed through several major research paradigms. Each era emphasized a different way of representing knowledge, solving problems, and building intelligent systems.
Symbolic and Logic-Based AI
Early artificial intelligence focused on:
Logic: representing knowledge through formal rules.
Search: exploring possible solutions to a problem.
Symbolic reasoning: manipulating explicit symbols and representations.
These systems attempted to encode intelligence directly through rules and structured knowledge rather than learning primarily from examples.
The Rise of Machine Learning
During the 1980s and early 1990s, machine learning became increasingly important within AI. The emphasis shifted from manually programming rules to constructing systems that could learn from data.
One influential approach was connectionism, which used neural networks. Neural networks attracted considerable interest because they appeared to offer:
A computational model related to human and animal cognition.
A connection between symbolic and subsymbolic processing.
A simplified computational analogy to neural processing in the brain.
A possible new paradigm for psychology, neuroscience, and artificial intelligence.
Disillusionment with Neural Networks
During the mid-1990s and early 2000s, enthusiasm for neural networks declined. Several difficulties contributed to this shift:
Neural networks were difficult to train.
Their engineering performance was often not sufficiently strong.
Their complexity made them difficult to understand and control.
Researchers increasingly explored mathematically elegant alternatives, including:
Kernel methods
Support vector machines
Probabilistic models
Graphical models
Bayesian inference
These approaches often provided clearer mathematical foundations and, at the time, more reliable practical performance.
The Deep Learning Revolution
Neural networks returned to prominence in the early 2010s through the deep learning revolution. Deep learning produced major breakthroughs in both AI research and practical applications.
The renewed success of neural networks was supported by:
Much larger data sets.
More powerful computing hardware.
Better training algorithms.
Improved software frameworks.
Greater industrial investment.
Increased public and media attention.
The relationship between neural networks and neuroscience also became prominent again. Deep learning remains a dominant paradigm, although an important research question concerns what may follow the deep learning era.
2. Important Distinctions in Thinking About AI
The terminology surrounding AI can obscure important conceptual differences. Several distinctions are particularly significant.
Artificial Versus Natural Intelligence
The phrase artificial intelligence may be misleading if “artificial” implies that machine intelligence is somehow less real than biological intelligence.
A machine that performs an intelligent task is genuinely performing that task, just as an aeroplane genuinely flies. People do not usually describe aeroplanes as performing “artificial flying”; they simply say that aeroplanes fly. Similarly, the distinction between biological and machine intelligence need not imply that one is genuine and the other is artificial in a fundamental sense.
The important question is what a system can do, not whether its intelligence is labelled artificial or natural.
Autonomy Versus Intelligence
Intelligence and autonomy are different properties.
Intelligence concerns the ability to learn, reason, solve problems, or make effective decisions.
Autonomy concerns the ability of a system to make decisions or act without direct human control.
Many concerns about AI arise not from intelligence itself, but from the combination of:
Autonomous decision-making.
Limited intelligence, reliability, or understanding.
The system’s ability to affect people or the physical world.
An intelligent system may be beneficial because it can make better decisions. However, giving a poorly understood or unreliable system autonomy can create serious risks.
Specialist Systems Versus General Intelligence
AI discussions often emphasize general intelligence, meaning broad competence across many different tasks. However, specialist systems are also extremely valuable.
Specialist AI systems can perform particular tasks with exceptional ability, such as:
Recognizing speech.
Diagnosing patterns in medical images.
Recommending products.
Controlling vehicles.
Analysing scientific data.
General intelligence is often associated with human abilities, but human intelligence is not completely general. Human cognition is flexible in some situations but limited in many others.
Human-Level AI
Humans are not necessarily the ideal model for intelligent machines.
Human abilities have evolved in primates under particular survival pressures. As a result:
Human reasoning is systematically imperfect.
Human memory is limited.
Human calculation is slow and error-prone compared with computers.
Human communication is constrained and ambiguous.
Human intelligence is adapted to a particular biological environment.
The goal should therefore not simply be to reproduce human abilities. A more useful goal is to create systems that are complementary to human intelligence.
Individual Brains Versus Social Intelligence
Many achievements commonly attributed to “human intelligence” are actually products of:
Social cooperation.
Organisations.
Institutions.
Accumulated knowledge.
Technology.
Cultural transmission across generations.
The accomplishments of human societies should not be confused with the capabilities of a single human brain. Reproducing the abilities of one brain would not necessarily reproduce the achievements of an entire society.
The most useful intelligent systems may be those that complement human capabilities rather than imitate a single human mind.
3. Applications and Opportunities of AI
AI and machine learning have produced major advances in both scientific research and practical technology.
Important application areas include:
Games: systems that achieve highly advanced performance.
Speech and language technologies: speech recognition, language understanding, and language generation.
Computer vision: interpreting images and video.
Scientific data analysis: discovering patterns and making predictions from complex data.
Recommender systems: selecting products, media, or information for users.
Online commerce: personalisation, search, and prediction.
Self-driving vehicles: perception, planning, and control.
Finance: forecasting, risk analysis, and automated decision-making.
Climate and weather modelling: analysing complex environmental systems.
Economic systems: prediction and decision support.
AI also offers the possibility of accelerating other areas of science and technology. Machine learning can help researchers analyse data, discover patterns, simulate systems, and identify promising hypotheses more quickly.
4. Deep Learning
Definition of a Neural Network
A neural network is a tuneable nonlinear function with many parameters. Its parameters are usually called weights.
Neural networks are composed of simple computational units organised into a network. Their design is inspired by a highly simplified model of biological neural processing, although they are much simpler than real brains.
A neural network learns by adjusting its weights so that its outputs become more useful or accurate.
Deep Neural Networks
A deep neural network represents a nonlinear mapping through multiple layers of computation. Each layer transforms the representation produced by the previous layer.
The overall mapping from an input X to an output Y can be represented as a composition of functions:
If the model contains many layers, it is described as deep.
Layered computation allows a network to build increasingly complex representations:
Earlier layers may identify simple patterns.
Middle layers may combine these into larger structures.
Later layers may represent task-relevant concepts or predictions.
Training Deep Networks
Deep networks are commonly trained using a version of:
Maximum likelihood
Penalised likelihood
Stochastic gradient descent
Maximum likelihood attempts to select parameters that make the observed data probable. If the model has parameters θ and data D, the parameters may be chosen by maximising:
Penalised likelihood adds a penalty to discourage undesirable solutions, such as excessive complexity.
Stochastic gradient descent updates parameters using approximate gradients calculated from subsets of the training data. It is an optimisation procedure that attempts to reduce prediction error or increase likelihood.
At a basic level, a deep neural network combines:
A flexible nonlinear function.
A statistical principle for training.
An optimisation method for adjusting parameters.
Why Deep Learning Succeeded Recently
Deep learning is based on ideas that had existed for decades. Its modern success resulted from several important developments.
Larger Models
Researchers discovered that very large, flexible models can perform extremely well. This resembles the logic of nonparametric statistics, where highly flexible models can represent complicated relationships.
Large models can capture more patterns, but they also require suitable data, regularisation, and computational resources.
Larger Data Sets
Flexible models require large quantities of information. The web and digital technologies have produced enormous data sets.
When real data are limited, researchers can sometimes generate simulated data using a model or simulator.
Automatic Differentiation
Automatic differentiation allows software to calculate derivatives through complex computational programs. This makes it much easier to train layered models using gradient-based optimisation.
It has accelerated deep learning by:
Reducing the amount of manual mathematical work.
Allowing gradients to be computed through complicated architectures.
Making model training more accessible through software frameworks.
Better Deep Architectures
A major architectural principle is to make each layer behave somewhat like the identity function. If a layer leaves its input relatively unchanged while learning a useful modification, many layers can be stacked without making optimisation impossible.
This principle has been reinvented in several forms, including architectures that allow information and gradients to pass efficiently through deep networks.
Stochastic Optimisation
Stochastic optimisation performs surprisingly well for large neural networks, especially when combined with effective initialisation methods.
Good initialisation gives the optimisation process a useful starting point and can substantially improve training.
Parameter Tying and Symmetry
Parameter tying uses shared parameters to encode regularities or symmetries in data. Instead of learning an independent parameter for every possible location or structure, the model reuses parameters where the same underlying rule should apply.
Examples include:
Convolutional neural networks: reuse filters across spatial locations.
Recurrent neural networks: reuse parameters across positions in a sequence.
Graph neural networks: share computations across graph structures and nodes.
Parameter tying improves efficiency and incorporates useful assumptions about the structure of the data.
Reusable Internal Representations
Deep networks learn internal representations that may be useful beyond the original training task.
A network trained on one task can sometimes be adapted to other tasks through:
Transfer learning.
Fine-tuning.
Few-shot learning.
This allows new tasks to be learned using relatively few additional examples.
5. Limitations of Deep Learning
Despite its achievements, deep learning has important weaknesses.
Data Hunger
Deep learning models are often data hungry. High performance may require millions of labelled or unlabelled examples.
This contrasts with humans, who can often learn a new concept from only a few examples.
Computational Cost
Deep networks can be expensive to:
Train.
Store.
Deploy.
Run repeatedly at scale.
Their computational requirements can limit access and increase energy use.
Vulnerability to Adversarial Examples
Deep networks can be fooled by adversarial examples: inputs that have been changed in small or carefully designed ways but cause the model to make an incorrect prediction.
This indicates that high benchmark performance does not necessarily imply robust understanding.
Difficult Optimisation
Training neural networks involves non-convex optimisation. A non-convex objective may contain:
Many local structures.
Flat regions.
Saddle points.
Numerous possible training choices.
Performance can depend heavily on architecture, initialisation, optimisation settings, and other design decisions.
Lack of Interpretability
Deep networks are often described as black boxes because it can be difficult to explain:
Why a particular prediction was made.
Which internal features were important.
Whether the model relied on appropriate evidence.
How the model would behave in an unfamiliar situation.
This makes the systems difficult to trust in high-stakes settings.
Difficulty Incorporating Prior Knowledge
It is not straightforward to incorporate explicit prior knowledge, symbolic rules, or structured representations into standard deep learning systems.
Poor Uncertainty Representation
Deep neural networks often produce predictions without accurately representing uncertainty. A model may be highly confident even when:
The input differs substantially from the training data.
The data are ambiguous.
The model has insufficient information.
The prediction is likely to be wrong.
Researchers are actively working to address all of these limitations.
6. Probabilistic Modelling
Models as Descriptions of Observable Data
A model describes data that could be observed from a system. This makes it possible to test or falsify the model.
A good model should make reasonable predictions about observations. If its predicted observations differ consistently from reality, the model may be inadequate.
Models occur in many fields, including:
Science.
Engineering.
Statistics.
Machine learning.
Economics.
Biology.
Uncertainty in Models
Whenever a model is used, there may be uncertainty about:
Its parameters.
Its structure.
Its assumptions.
The appropriate hypotheses.
The noise in the data.
Probabilistic modelling uses probability theory to represent these uncertainties explicitly.
In this framework, the observed data are measured quantities. Everything else that remains uncertain is treated as a hypothesis, including:
Model parameters.
Model structures.
Hidden variables.
Assumptions.
Possible explanations of the data.
Probability as a Language for Uncertainty
Probability theory provides a mathematical language for:
Representing uncertainty.
Describing noise.
Updating beliefs.
Learning from observations.
Making predictions.
Comparing alternative models.
Bayesian inference applies probability theory in the reverse direction: instead of predicting data from a model, it infers plausible models or parameters from observed data.
7. Bayes’ Rule and Bayesian Learning
Bayes’ rule describes how knowledge changes after data are observed:
Where:
H is a hypothesis.
D is observed data.
p(H) is the prior, representing knowledge before observing the data.
p(D∣H) is the likelihood, the probability of observing the data if the hypothesis is true.
p(H∣D) is the posterior, representing updated knowledge after observing the data.
p(D) is the normalising constant, also called the evidence or marginal likelihood.
Prior
The prior distribution represents the range of hypotheses considered plausible before observing the current data.
It can incorporate:
Previous knowledge.
Scientific assumptions.
Structural preferences.
Beliefs about likely parameter values.
Preferences for simpler or more realistic models.
Likelihood
The likelihood measures how compatible the observed data are with a hypothesis.
A hypothesis that makes the observed data highly probable has a high likelihood. A hypothesis that predicts the observed data poorly has a low likelihood.
Posterior
The posterior distribution combines the prior and likelihood:
It represents updated uncertainty after taking the data into account.
Bayesian learning converts a prior state of knowledge into a posterior state of knowledge by combining prior beliefs with evidence from observed data.
Bayesian Learning of Model Parameters
Let θ denote the parameters of a model, D the observed data, and M the model class. Bayesian learning computes a posterior distribution such as:
Rather than selecting one parameter value as unquestionably correct, Bayesian inference maintains a distribution over possible values.
Prediction by Averaging Over Uncertainty
Predictions should account for uncertainty about the parameters. For a new quantity X, Bayesian prediction averages over all possible parameter values:
For discrete parameter spaces, integration is replaced by summation.
This means that prediction is naturally an averaging process. Parameter values that are more probable under the posterior contribute more strongly to the final prediction.
Comparing Model Structures
Bayesian inference can also compare different model structures. If M represents a model class, the probability of the model given the data is:
This allows uncertainty to be represented not only over parameters but also over the model itself.
8. Bayesian Occam’s Razor
Overfitting and Underfitting
Suppose a function y=f(x) is fitted to eight data points.
A seventh-order polynomial can exactly fit all eight points. However, this may be overfitting: the model captures accidental details or noise rather than the underlying pattern.
A model that is too simple may fail to capture important structure. This is underfitting.
A useful model should balance:
Flexibility.
Predictive accuracy.
Simplicity.
Resistance to fitting noise.
Automatic Preference for Simplicity
Bayesian inference can implement an automatic preference for models that explain the data without unnecessary complexity. This is known as Bayesian Occam’s razor.
When many possible models are considered, highly complex models spread their prior probability across a large space of possible behaviours. A particular simple data set may therefore be relatively unlikely under such a model.
A simpler model may assign greater probability to the observed data because it concentrates its probability on a narrower and more appropriate range of behaviours.
Bayesian model averaging also avoids relying exclusively on a single selected model. Instead, it can retain uncertainty across several plausible models.
Applications of Bayesian Model Selection
Bayesian Occam’s razor can help determine:
The number of clusters in a data set.
The intrinsic dimensionality of data.
Which inputs are relevant to particular outputs.
The order of a dynamical system.
The number of states in a hidden Markov model.
The structure of a neural network.
The structure of a probabilistic graphical model.
It provides a general framework for learning structure rather than requiring all structural choices to be fixed manually.
9. Marginal Likelihood and Information-Theoretic Interpretation
The marginal likelihood, also called the evidence, is the likelihood averaged over the prior distribution of parameters:
The crucial operation is averaging, not optimising. A model does not receive a high marginal likelihood merely because one carefully chosen parameter setting fits the data. It must assign substantial probability to the data across the parameter values supported by its prior.
The marginal likelihood is also the probability of the data under the model after uncertainty about parameters has been integrated out.
Surprise and Description Length
The information-theoretic surprise of observing data D under model M is:
This quantity measures the number of bits of surprise associated with the data.
Bayesian Occam’s razor favours models under which the observed data are not very surprising. Very complex models can be penalised because a simple data set may be unusual under their broad range of possible behaviours.
Sensitivity to Prior Choice
Because the marginal likelihood integrates over the prior, it naturally depends on the prior. Changing the prior changes the distribution of functions or behaviours represented by the model.
This dependence is not necessarily a flaw. It encourages researchers to choose priors that sensibly represent:
Plausible functions.
Realistic parameter values.
Relevant domain knowledge.
Appropriate structural assumptions.
However, predictive performance may be less sensitive to the prior than the evidence itself, provided the prior covers a sufficiently flexible and suitable space of models.
10. Why Probability Matters for AI
Probabilistic methods are important for both theoretical and practical reasons.
Calibrated Uncertainty
An AI system should produce prediction uncertainties that correspond reasonably to its actual likelihood of being correct. This is called calibration.
A well-calibrated system should know when it does not know. This is especially important in:
Medical decision-making.
Self-driving vehicles.
Safety-critical engineering.
Financial systems.
Scientific inference.
A highly confident but incorrect prediction can be more dangerous than an openly uncertain one.
Complexity Control and Structure Learning
Bayesian methods provide a principled way to control complexity and learn model structure. Bayesian Occam’s razor can discourage unnecessary complexity while retaining enough flexibility to explain the data.
Decision-Making Under Uncertainty
Uncertainty is essential for decisions involving exploration and information gathering, including:
Active learning: choosing which examples to label.
Black-box optimisation: searching for good outcomes when the objective is expensive to evaluate.
Reinforcement learning: balancing exploration of new actions with exploitation of known good actions.
Decision-making under risk: selecting actions while accounting for uncertain consequences.
Rational Decision-Making
Probability theory provides a framework for rationally combining evidence and uncertainty. It can support decisions by representing possible outcomes and evaluating their expected consequences.
Incorporating Prior Knowledge
Probabilistic models allow prior knowledge to be incorporated explicitly and then updated coherently as new data become available.
This is especially useful when:
Data are limited.
Experiments are expensive.
Scientific knowledge already exists.
The system must generalise beyond observed examples.
Learning from Small Data Sets
Unlike many deep learning systems, Bayesian methods can perform well with relatively small data sets when the prior and model structure are informative.
11. Bayesian Deep Learning
A neural network can be treated as a probabilistic model whose parameters θ are uncertain. Instead of learning one fixed set of weights, Bayesian deep learning computes a distribution over plausible weights:
Predictions then average over this distribution.
Neural Networks and Gaussian Processes
A major theoretical connection exists between neural networks and Gaussian processes.
A neural network with one hidden layer and infinitely many hidden units, treated in a Bayesian manner, converges to a Gaussian process under suitable assumptions.
A Gaussian process defines a probability distribution over functions. It can therefore be used to:
Represent uncertainty over possible functions.
Make predictions with error bars.
Perform Bayesian regression.
Model relationships without explicitly selecting a finite set of neural-network weights.
This connection has become relevant again in deep learning. When deep networks have sufficiently wide layers, their behaviour can approach that of Gaussian processes.
In some function-approximation problems, a Gaussian process and a Bayesian wide deep network can produce nearly indistinguishable predictions and uncertainty estimates.
Relationships Among Statistical Models
Several important machine learning models are closely related:
Linear regression provides a fundamental statistical foundation.
Kernel machines extend linear methods through implicit feature mappings.
Support vector machines are important kernel-based methods.
Gaussian processes can be understood as Bayesian kernel machines.
Bayesian neural networks connect neural networks to probabilistic function models.
Deep neural networks provide layered, learned representations.
Many apparently different methods can be transformed into related models through operations such as:
Adding nonlinear features.
Placing probability distributions over parameters.
Increasing the width of hidden layers.
Composing multiple transformations.
Introducing hierarchical structure.
Approximating Bayesian Inference
Exact Bayesian inference in neural networks is generally computationally difficult because it requires integrating over a high-dimensional parameter space.
Approximation methods include:
Laplace approximation: approximating the posterior near a mode.
Variational inference: finding a simpler distribution that approximates the posterior.
Markov chain Monte Carlo: drawing samples from the posterior.
Dropout-based methods: using stochastic dropout behaviour as an approximate uncertainty method.
Other numerical and sampling techniques.
The goal is to improve:
Uncertainty calibration.
Robustness outside the training distribution.
Detection of unfamiliar inputs.
Reliability away from observed data.
A central objective is not merely to fit the training data, but to express increasing uncertainty in regions where the system lacks evidence.
12. Deep Sum-Product Networks
A mixture model represents a complex probability distribution as a combination or superposition of simpler distributions.
Mixture models are highly flexible, but a direct representation may become exponentially large. A sum-product network provides a compact, deep representation of such a potentially enormous mixture model.
Deep sum-product networks combine probabilistic modelling with deep architectural ideas.
Important Properties
Deep sum-product networks can be:
Trained with stochastic gradient descent.
Differentiated automatically.
Accelerated using GPUs.
Used with techniques such as dropout.
Presented to users in a way similar to deep neural networks.
They can function as both:
Generative models: modelling how data could have been generated.
Discriminative models: predicting outputs from inputs.
Advantages
Compared with ordinary deep neural networks, these models may provide:
Comparable predictive performance on some small data sets.
Better-calibrated uncertainties.
Exact likelihood computation.
Efficient marginalisation.
Exact conditioning.
Better handling of missing data.
Outlier detection.
These features make deep sum-product networks promising for applications requiring both strong prediction and mathematically tractable probability calculations.
13. Probabilistic Programming
Models as Programs
Traditional scientific models are often expressed as equations. Probabilistic programming expresses models as computer programs that generate possible data sets.
A probabilistic program may include:
Deterministic calculations.
Random variables.
Simulators.
Hidden parameters.
Complex relationships among variables.
The program describes how data could be generated from a model.
Probabilistic Programming Languages
A probabilistic programming language is a programming language designed to express probabilistic models and simulations.
A universal probabilistic programming language can express any computable probability distribution. This gives it the potential to represent highly complex scientific and engineering models.
Universal Inference Engines
A universal inference engine automatically reasons about hidden variables and parameters in a probabilistic program after data are supplied.
In the forward direction, a simulator generates data:
Inference operates in the reverse direction:
This is an application of Bayes’ rule to computer programs. Instead of manually deriving a separate inference procedure for every model, the inference engine attempts to perform the necessary calculations automatically.
The backward operation is conceptually similar to automatic differentiation, which propagates derivative information backwards through a computer program.
Example: Hidden Markov Models
A probabilistic program can express a Bayesian hidden Markov model in a relatively compact form. The model may include:
Hidden states.
Transition probabilities.
Observed emissions.
Priors over model parameters.
A process describing how observations are generated.
Once the model and observed data are supplied, the inference system can estimate the hidden states and parameters automatically.
Scientific Modelling
Probabilistic programming could significantly change scientific modelling because researchers can:
Describe complex models directly as programs.
Use simulators as generative models.
Infer unknown parameters from observations.
Reuse general-purpose inference algorithms.
Combine domain-specific scientific knowledge with machine learning.
Probabilistic programming is especially promising when combined with deep learning.
14. Mathematical Principles for Building AI
A complete AI system would need capabilities involving:
Perception.
Learning.
Reasoning.
Decision-making.
Many of the required mathematical principles may already exist.
Perception
Deep learning is highly effective for many perception tasks, including vision and speech. Important tools include:
Neural networks.
Optimisation.
Probability.
Large data sets.
Learning
Learning can be supported by:
Bayesian inference.
Optimisation.
The likelihood principle.
Statistical modelling.
Data-driven parameter estimation.
Reasoning
Reasoning draws on:
Logic.
Probability theory.
Graphical models.
Structured representations.
Inference algorithms.
Decision-Making
Decision-making is supported by:
Decision theory.
Control theory.
Bellman’s equation.
Reinforcement learning.
Game theory.
Expected utility and sequential planning.
The Computational Bottleneck
The main missing ingredient may not be a new mathematical principle, but better ways to approximate computations that are currently intractable.
Important research needs include:
Better optimisation algorithms.
More efficient probabilistic inference.
Improved Monte Carlo methods.
More effective variational methods.
Scalable Bayesian computation.
More data.
More computing power.
The central challenge is to turn existing mathematical principles into efficient, reliable systems.
15. Social and Ethical Challenges
AI creates significant opportunities, but its deployment also raises serious societal issues.
Privacy
AI systems are often highly data-driven. The value of data for improving services must be balanced against privacy concerns.
Important questions include:
What data are collected?
Who can access them?
How are they stored?
Can individuals control their data?
What inferences can be drawn about people?
Can apparently anonymous data be reidentified?
Interpretability and Transparency
AI systems can be difficult to interpret and explain, particularly deep neural networks.
However, software systems may sometimes be more transparent than humans because:
Their code can be inspected.
Their decisions can potentially be logged.
Their behaviour can be tested repeatedly.
Their procedures can be audited.
The fact that a system is computational does not automatically make it transparent, but it creates opportunities for systematic examination.
Control and Autonomy
Granting autonomy to a system creates risks because the system can make decisions without immediate human intervention.
The level of autonomy should therefore be constrained and matched to:
The system’s reliability.
The consequences of errors.
The ability to monitor it.
The ability to override it.
The legal and regulatory environment.
Concentration and Distribution of Power
AI may concentrate power among organisations that control:
Large data sets.
Computing resources.
Technical expertise.
Deployment platforms.
Infrastructure.
At the same time, AI can empower individuals by giving them specialised capabilities through accessible tools and devices.
Fairness and Diversity
AI systems should be designed to treat diverse users fairly. Fairness is not merely a technical property; it depends on social values and context.
Bias can enter through:
The data used for training.
Human decisions about labels.
The values of system designers.
Historical inequalities represented in data.
Language and cultural patterns.
Choices about which outcomes to optimise.
Natural human language, for example, contains many social biases. Models trained on such language may reproduce or amplify those biases.
A diverse and representative community of designers, researchers, engineers, and stakeholders can improve the chances that systems account for different experiences and needs.
Technical Approaches to Ethics
Useful technical tools include:
Interpretability methods.
Model cards.
Data cards.
Bias evaluation.
Transparency documentation.
Auditing.
Robustness testing.
Monitoring after deployment.
Model cards and data cards can improve transparency by documenting how models and data were created, evaluated, and intended to be used.
Socio-Technical Responsibility
AI systems do not exist independently of society. Their effects depend on:
Who builds them.
Where they are built.
Which cultures and values influence their design.
Who labels the data.
How they are deployed.
Who is affected by their decisions.
What institutions govern them.
Because AI systems interact with people in partly unpredictable ways and learn from human-generated data, ethical responsibility must involve both technical research and social participation.
AI should be treated as a tool for society and developed in ways that support human flourishing.
16. Causal Reasoning and Counterfactuals
Why Causality Matters
An intelligent system is most useful when it can act or interact with the world. Action is intended to produce effects, so the system needs some understanding of how actions lead to consequences.
A causal model helps answer questions such as:
What will happen if an action is taken?
Which intervention will produce a desired outcome?
Which variables influence an outcome?
How should a system act under changing conditions?
Causal reasoning is important in:
Medicine.
Economics.
Policy.
Scientific research.
Robotics.
Autonomous AI systems.
Prediction alone may not be sufficient. A system may predict that two variables are associated without knowing whether changing one will cause a change in the other.
Causality Through Probabilistic Modelling
One approach is to develop models that predict accurately across many different circumstances, including interventions.
If a model can predict outcomes under a wide range of changes and actions, it may begin to approximate a causal model of the world.
This approach connects causal inference to:
Probabilistic modelling.
Bayesian inference.
Decision theory.
Prediction under interventions.
Counterfactuals
A counterfactual concerns what would have happened under a condition that did not occur.
There is disagreement about whether counterfactual reasoning is essential to causal inference. One position focuses on models that make predictions about possible observations and interventions rather than reasoning about unobservable alternative realities.
From a strict Bayesian perspective, inferences should be grounded in:
Data that have been observed.
Data that could potentially be observed.
Models that predict outcomes under possible circumstances.
This position is cautious about assigning meaning to claims that cannot be measured or connected to possible observations.
17. Autonomy, Laws, and Liability
Autonomous machine intelligence should be understood as a tool, even when it makes decisions independently.
Constrained Autonomy
Autonomy need not be unlimited. A system can be designed with constraints governing:
Its permitted actions.
Its operating environment.
Its safety boundaries.
Its compliance with rules.
Human override mechanisms.
A thermostat provides a simple example. It senses temperature and autonomously adjusts heating or cooling, but its behaviour is constrained by parameters designed by people.
A self-driving vehicle is a much more complex autonomous system. It must:
Perceive its environment.
Plan routes.
Avoid hazards.
Follow traffic laws.
Respond to unusual situations.
Operate within a regulatory framework.
Legal Responsibility
The question of criminal or civil liability for autonomous systems is complex. Possible responsible parties may include:
The system’s designer.
The manufacturer.
The owner or operator.
The organisation deploying it.
The person who configured or supervised it.
Other parties determined by law.
Current legal systems may not fully address increasingly autonomous technologies. Laws and regulations will need to develop alongside machine intelligence and clarify responsibility when autonomous systems cause harm.
18. Learning from Small Data Sets
A major weakness of many deep learning systems is their dependence on very large data sets. Humans can often learn concepts from only a few examples, and intelligent machines should ideally become more data efficient.
Bayesian methods provide a promising approach because they combine:
Prior knowledge.
Structured models.
Evidence from observations.
Automatic model selection.
Complexity control.
For example, Bayesian hidden Markov models can learn the structure of small artificial-language data sets containing only a small number of sequences.
With suitable priors and Bayesian model selection, a system may identify a compact generative model from approximately ten or twenty examples. In some cases, the resulting model may be more compact and systematic than a representation developed by a human.
This occurs because Bayesian model selection can search systematically through a space of possible models and evaluate them using both fit and complexity.
Bayesian inference provides a normative framework for learning structure from small data sets while applying a principled form of Occam’s razor.
19. Resource Allocation: Large Non-Bayesian Models or Smaller Bayesian Models?
Bayesian inference can be computationally intensive, creating a practical choice when compute is limited:
Train a larger model using a less Bayesian method.
Train a smaller model while representing uncertainty more fully.
The best choice depends on both data availability and computational resources.
When Data Are Abundant
With very large data sets, it may often be advantageous to train larger models, possibly using fewer but more capable models.
Large amounts of data can reduce uncertainty about the relevant patterns and parameters.
When Data Are Limited
With smaller data sets, explicitly modelling uncertainty may be more valuable. A smaller Bayesian model may provide:
Better calibration.
More reliable uncertainty estimates.
Better generalisation.
More effective use of prior knowledge.
The Computation–Calibration Trade-Off
Performance can be viewed as a Pareto frontier: as more computation is provided, the system may achieve progressively better uncertainty estimates and calibration.
A promising goal is to obtain the benefits of both approaches:
Train a very large model.
Improve its uncertainty estimates at relatively low cost.
Approximate the behaviour of a more expensive Bayesian treatment.
One strategy is to retrain small parts or subcomponents of a large model so that they capture important uncertainty without requiring full Bayesian inference over the entire network.
20. Overall Perspective
Probabilistic machine learning provides a framework for building AI systems that:
Learn from data.
Represent uncertainty.
Incorporate prior knowledge.
Compare alternative models.
Control complexity.
Make predictions under uncertainty.
Support rational decision-making.
Learn from small data sets.
Reason about possible interventions.
Complement human intelligence.
Deep learning has demonstrated the power of large nonlinear models trained with massive data and computation. Its weaknesses—including data hunger, computational cost, poor calibration, limited interpretability, vulnerability to adversarial examples, and difficulty incorporating symbolic knowledge—motivate the development of probabilistic approaches.
Bayesian deep learning, Gaussian processes, deep sum-product networks, and probabilistic programming represent different ways of combining flexible neural computation with explicit probability theory. Together, these approaches aim to create AI systems that are not only accurate, but also reliable, interpretable, uncertainty-aware, data-efficient, and socially responsible.

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