Skip to content
Learn · AI Lessons · Free lesson

How AI Models Actually Work: A Non-Technical Guide

You have already cleared up one of the biggest confusions in AI: that it is not one thing, but a family of related technologies, each with its own methods and limits. Now comes the question most people do not know they can ask: how does any of this actually work? Not in a hand-wavy sense of 'it learns from data', but in a real sense. What is the model doing when it learns? What happens inside the system when you type a message and press send? Why does it sometimes produce confident, fluent nonsense, and why can it not remember your conversation from yesterday? These are not trick questions. They have clear, non-mathematical answers, and understanding them changes how you use AI tools, how you evaluate claims about them, and how you think about their limits. Here is the central insight this lesson builds towards: modern AI models are not databases that look things up, not rule-following systems executing step-by-step instructions, and not reasoning engines in any philosophical sense. They are pattern-extraction machines, trained to recognise statistical regularities in enormous quantities of data and to use those patterns to generate plausible-seeming outputs. That might sound deflationary, but it is the opposite. The fact that this approach produces systems that can write code, translate languages, analyse images, and hold coherent conversations is genuinely remarkable. This lesson covers the full chain: from the basic logic of machine learning, through the structure of neural networks, to the architectural innovation that made modern large language models possible, and finally to what actually happens when you use one. By the end, you will have a mental model that holds up under scrutiny.

Start this lesson freeFree forever. No card required.
Beginner 45-60 minutes AI Essentials Certificate upon completion

Create your free account

Unlock the full lesson, the quiz, and your verifiable completion.

Continue with Google
or
Continue with email

By continuing you agree to the Institute of AI terms of use and privacy policy.

Learners across the UK study with the Institute of AI
Open to everyone From the UK's professional body for AI 100% free, no card required
What you'll learn

By the end of this lesson, you will be able to:

  • Explain in plain English how a machine learns from examples instead of from rules written by hand.
  • Describe what a neural network does as it stacks layers, and what deep learning adds to that.
  • Say why the transformer and its attention mechanism changed what these systems could do.
  • Trace what actually happens between you sending a message and an answer coming back.
  • Account for the limits that follow from the design, including frozen knowledge and hallucination.

There are no prerequisites for this lesson

It is explained in plain English and assumes no technical background. Anyone can start it today.

Join Others Learning AI

Free to start. Free to finish. Free to prove.

Start this lesson free
Inside this lesson

6 sections, about 45-60 minutes.

Section one is open to everyone. Create a free account to work through the rest and take the quiz.

01

How Machines Learn: From Rules to Patterns

Free preview

Traditional software is explicit. A programmer writes down the rules: if the email contains the words 'free money' and the sender is not in your contacts, mark it as spam. The rules are human-authored, transparent, and brittle. Spam filters written this way worked reasonably well until spammers started deliberately misspelling words, and adding more rules became an arms race with no clear end. Machine learning takes the opposite approach. Instead of writing rules, you collect thousands of examples of spam and not-spam, show them to the system, and let it figure out the distinguishing patterns. This inversion, inferring the rules from examples rather than writing them, is the foundational idea, and it explains almost everything else about how modern AI behaves. It works because the world has structure: spam emails share patterns, images of cats share patterns, sentences in French share patterns. If reality were truly random, there would be nothing to learn. When we say a model learns, we mean something specific and mechanical. A model is, at its core, a mathematical function with a very large number of adjustable numerical values inside it, called weights or parameters. At the start of training the weights are set randomly and the model produces terrible outputs. Training is the process of improving those weights through iteration. The model receives an input, such as an email, and makes a prediction, such as 'not spam'. The prediction is compared against the correct answer, and the difference is quantified by a loss function, a mathematical measure of how wrong the model was. A higher loss means a worse prediction, and the entire goal of training is to reduce the loss, averaged across millions of examples. The loss function is the compass: it tells the model, in a single number, how far it is from the desired outcome. Common loss functions include mean squared error, the average of squared differences between predicted and actual values, often used for numerical predictions, and cross-entropy loss, which measures how well the model's predicted probability distribution matches the correct answer and is the standard choice when the model is choosing between categories, including the next-token prediction task that language models are trained on. Knowing that the loss is high does not immediately tell you which weights to change, or in which direction. This is where gradient descent comes in. Imagine standing on a hilly landscape in thick fog, able to see only a few metres in any direction, with your goal being the lowest valley. You cannot see the whole map, but you can feel the slope beneath your feet, so you step downhill, pause, feel the slope again, and step again, slowly making your way down. Gradient descent works the same way. The gradient is the direction in which the loss increases most steeply, and the algorithm moves the weights in the opposite direction, the one that reduces the loss, repeating across millions of examples and nudging the weights in small increments each time. In practice it uses a variant called stochastic gradient descent, processing small random batches of examples rather than the whole dataset at once, which introduces some noise but allows training to proceed at a practical speed. There is a trap any learning system can fall into: overfitting. Imagine a student who, rather than understanding the subject, memorises every question from last year's exam paper. They score perfectly on a re-run of that exam but fail entirely on a new set of questions, having learned the specific examples rather than the underlying patterns. The opposite problem is underfitting, where the model is too simple to capture the relevant patterns at all and performs badly on everything. To detect overfitting, practitioners split their data: the training set is what the model learns from, while the test set is held back entirely and used only afterwards to measure how well the model generalises. A third portion, the validation set, is often used during training itself to catch problems early. This is why data matters so much, and why you should treat spectacular benchmark scores with caution: if a model has been tuned on data too similar to the benchmark, the score tells you less than it appears to.

02

Inside a Neural Network

Unlock free
03

The Transformer: Why Modern AI Works the Way It Does

Unlock free
04

From Raw Model to Helpful Assistant: Pre-training, Fine-tuning, and Alignment

Unlock free
05

What Happens When You Send a Message

Unlock free
06

The Limits That Follow From How AI Works

Unlock free
How it works

Walk away with proof, not just knowledge.

Step 1

Study the lesson

Work through every section at your own pace, from start to finish.

Step 2

Pass the quiz

A short set of questions on what you have just covered.

Step 3

Get your certification

Every completion has a certificate that you can share publicly for anyone to verify.

Your record of completion

Finish the lesson. Keep the proof.

The Institute of AI
Record of completion
How AI Models Actually Work: A Non-Technical Guide
Completed by
Your name
Quiz score
90%
theinstituteofai.co.uk/verify/lesson/…

Pass the quiz and the Institute of AI issues you a record of completion with your score. Every completion has its own public verification page, so the link you put on your CV or LinkedIn profile can be checked by anyone, at any time.

  • Verifiable by anyone, with no account needed
  • One link for your CV, email signature, or LinkedIn profile
  • Issued by the UK's professional body for AI
— Common questions —

Frequently asked questions.

Is this lesson really free?+
Yes. Every AI lesson from the Institute of AI is free to take and free to complete, including the quiz and your record of completion. There is no trial, no card, and no catch.
Do I need a technical background?+
No. Everything is explained in plain English for any level. If a term matters, the lesson covers it before using it.
How long does this lesson take?+
Around 45-60 minutes to work through, plus the quiz at the end. You can leave and come back at any point.
What do I get when I finish?+
A record of completion with your score, held on your profile. Each completion has a public verification page, so you can share a link on your CV or LinkedIn profile that anyone can check.
What is the Institute of AI?+
The Institute of AI is the UK’s professional body for artificial intelligence. It sets the standard of AI practice, works to that standard itself, and puts it within reach of everyone else. Its work runs across four areas: Accreditation, Practice, Platforms, and AI for All.

Join learners across the UK and start "How AI Models Actually Work: A Non-Technical Guide" today.

Free lessons, a quiz to test what you have learned, and a completion you can verify publicly. All from the UK's professional body for artificial intelligence.

The Institute of AI

Free to learn.
Yours to prove.

Every AI lesson is free to start, free to finish, and ends in a completion you can verify publicly.