Four-day intensive course

AI and Deep Learning

Four teaching days on neural networks: how one unit becomes a layer, how a layer becomes a network that can be trained, what convolution assumes about an image, what attention computes over text, and which controls belong between a model's output and an action that changes a record. The worked examples are small enough to check by hand, and each day has a laboratory notebook with its own dataset.

InstructorDr Fatih Kansoy
LengthFour teaching days
TeachingMonday to Thursday
FormatLectures with worked examples
MathsArithmetic and a little algebra
PrerequisitesNo programming assumed

Course materials

How the four days fit together

From a grid of pixels to an action that changes a record

Day 1 turns pixels into a trained network. Day 2 builds assumptions about images into the architecture instead of leaving them to be learned. Day 3 moves to text, where attention estimates which positions relate to which. Day 4 covers what has to happen before an answer is allowed to become an action.

Drawn for this course. No drawing carries a number; anything exact is set on the slide beside it.

The four days · one continuous line

A pixel grid enters a network and becomes a learned representation, then a cat photograph, feature maps, attention arcs over token cards, a handbook passage, a locked gate, and finally a written record.

The practicals

Day 1 · feedforward networks

Day 2 · convolution and transfer

Day 3 · attention and retrieval

Day 4 · bounded agents

Fashion-MNIST for Day 1, a small ants-and-bees collection for Day 2, a 20-document retrieval corpus for Day 3, and a 16-case agent suite for Day 4. Each day has one solution notebook, one dataset and one reference page. Everything runs offline on a CPU.

The drawings

Each drawing carries one mechanism or contrast and no numbers, so a picture cannot contradict the mathematics beside it. On the illustrations page each one is set out with the equation it belongs to.

All twenty-one drawings, each with its equation and its limits, and the four-day panorama →

Course overview

Day 1 constructs one small network from a single unit, works a complete forward pass, derives the gradient of the loss with respect to the output scores rather than quoting it, and checks the resulting update by recomputing the loss. Day 2 counts what convolution saves against a dense layer on the same image. Day 3 computes attention on a three-token example and separates a fluent answer from a supported one. Day 4 covers the machinery between a proposed action and an executed one.

Each method is taught together with the failure it is known for: a held-out score read as a claim about one population, saliency maps treated as diagnostics rather than explanations, retrieval ranking a stale passage above an irrelevant one, and an agent request that is well formed and still refused.

Fashion-MNISTOxford-IIIT PetBackpropagation by handAttention by handRetrieval and abstentionNo programming assumed

Learning outcomes

By the end of the course you can:

  • reconstruct a small feedforward network from the input tensor to a parameter update, naming every object, its shape, and the operation that produced it;
  • explain why nonlinear hidden layers are necessary, and why a stack of affine layers is never more than one affine layer;
  • read training and held-out curves, and separate a lower training loss from credible evidence of generalisation;
  • explain what convolution assumes about an image, and count the parameters of a small convolutional network from its shapes;
  • describe what attention computes, what next-token training optimises, and why neither has any relation to truth;
  • say what retrieval fixes, what it does not, and when a system should abstain rather than answer;
  • identify the point at which a system changes state rather than belief, and name the controls that belong there.

The four days

DayTopicFocus
MondayFeedforward networks, learning, and evidenceInputs and targets; one unit and one layer; nonlinearity and depth; a full forward pass; backpropagation and the update; generalisation and honest evaluation.
TuesdayConvolutional networks and computer visionWhy a dense layer is the wrong prior for an image; filters, feature maps and pooling; receptive fields; transfer learning; and auditing what a vision model actually used.
WednesdayTransformers, language models, and retrievalTokens and embeddings; attention worked by hand; next-token training and what it optimises; retrieval-augmented generation; citation, staleness and abstention.
ThursdayAgents, authority, and deploymentTools and structured calls; state and memory; permission, approval binding and least privilege; compounding error; evaluation of trajectories; and staged deployment.

Full syllabus, outcomes and reading list →

Oxford · United Kingdom
University of Oxford