Artificial Intelligence · AI Foundations
What is AI?
In AI because you need the vocabulary that separates search, learning, and deep nets before any model code.
Artificial intelligence, machine learning and deep learning are used almost interchangeably in industry, and they should not be: each names a different claim about how a system gets its behaviour, with a different cost profile and a different failure story. This opening lesson pins the vocabulary down — the nesting of the three terms, the four classical definitions of intelligence, the rational-agent stance modern engineering actually uses, and the honest way to read capability claims, including for today's foundation models.
- Artificial Intelligence
- Medium level
- 6 concepts
1Three nested ideas
Artificial intelligence is the engineering goal of systems that act usefully when the correct behaviour is not written down anywhere: planning a route through traffic, ranking a feed, reading a handwritten form. The term names an ambition about behaviour, and says nothing about how the behaviour is produced.
Machine learning is one family of methods inside that ambition. Instead of a programmer writing the behaviour as explicit rules, the behaviour is fitted: a parametrised function is adjusted until its outputs agree with examples. The defining property is that performance improves with data rather than with more authored rules.
Deep learning is in turn one family of methods inside machine learning: the fitted function is a neural network with many layers, whose intermediate representations are themselves learned. It dominates when the input is a large raw signal — images, audio, text — precisely because hand-designing features for such signals is what it removes.
The three terms therefore nest rather than compete. A chess engine that searches a game tree is AI without ML; a decision tree fitted to loan records is ML without deep learning; a transformer language model is all three at once.
The nesting matters operationally because each ring has a different cost profile: rules need an author who knows the policy, learning needs representative data and an evaluation, and deep learning additionally needs scale — in data, compute and engineering — before it beats the simpler rings.
Figure. Three nested sets, not three rivals: every deep-learning system is machine learning, every machine-learning system is AI - but each outer ring holds members the inner one does not (hand-written rule systems are AI without ML; decision trees are ML without deep nets).
| Idea | Typical artefact |
|---|---|
| AI | Search, planning, knowledge, learning systems |
| ML | Models fitted from labelled or unlabelled data |
| Deep learning | Neural nets with many layers on large signals |
A team says their product 'uses AI, not machine learning'. What is the most accurate reading of that claim?
- It is a contradiction, because every AI system is by definition fitted from data
- They must mean deep learning, since that is the only AI that is not machine learning
- The two words name the same thing, so the sentence carries no technical content
- They probably run rules or search: AI is the outer goal, and learning from data is one family of methods inside it
The three ideas nest. A route planner or a rule engine is AI without being ML, and deep learning sits inside ML rather than outside it.
2Four definitions of intelligence
Before the field settled on an engineering stance, 'is it intelligent?' had four working definitions, and they still organise the textbook debates. A system can be judged on whether it thinks or merely acts, and against a human standard or a rational one — two axes, four quadrants.
Acting humanly is the Turing test position (1950): if interrogators cannot reliably distinguish the machine's conversation from a person's, the machine passes. It is a landmark and a poor engineering target — aeronautics did not advance by building machines that imitate pigeons convincingly.
Thinking humanly is the cognitive-modelling programme: build systems whose internal steps match measured human reasoning, errors included. Valuable to psychology; rarely what a production system wants, since human error is a feature to model there and a defect to ship here.
Thinking rationally is the logic tradition: encode knowledge as formal statements and derive conclusions that are provably entailed. It gives guarantees, and it struggles with noisy, unformalised input — which is most input.
Acting rationally — do whatever maximises expected success given the available evidence — is the definition modern AI engineering actually uses, because it is the one you can specify a measure for, optimise against, and audit. The rest of this course sits in that quadrant.
Figure. Two axes give four definitions: match human thought, derive provably correct conclusions, pass for a person, or act to maximise expected success. Modern AI engineering lives in the acting-rationally quadrant because it is the one with a specifiable, measurable target.
| Quadrant | Question it asks | Who uses it |
|---|---|---|
| Acting humanly | Can it pass for a person in conversation? | The Turing test tradition; chatbot benchmarks |
| Thinking humanly | Do its internal steps match human cognition? | Cognitive science |
| Thinking rationally | Are its conclusions provably entailed? | Logic and knowledge representation |
| Acting rationally | Does it maximise an explicit performance measure? | Modern AI engineering — and this course |
In Russell and Norvig four-quadrant definition of AI, what are the two fundamental dimensions?
- Supervised versus Unsupervised, and Linear versus Non-linear
- Thinking versus Acting, and Human fidelity versus Rationality
- Hardware acceleration versus Cloud scalability
- Deterministic search versus Continuous optimization
AI definitions span two axes: thought processes vs behavior, and human-like performance vs ideal rationality.
3Rationality and the performance measure
The acting-rationally quadrant has a precise core: an agent is rational if it selects actions that maximise the expected value of its performance measure, given the percept sequence so far and whatever knowledge it carries. Every word in that sentence is load-bearing.
Expected, because the environment is uncertain and rationality is judged before the dice land: a poker agent that plays the odds correctly and loses the hand was still rational. Rationality is not omniscience, and a correct decision is not the same thing as a good outcome.
Performance measure, because someone must say what success is — as a function of the environment's state, not of the agent's beliefs about it. An agent graded on its own confidence will learn confidence.
The measure is where practical systems fail first. A vacuum agent scored on dirt sucked per hour is rational to dump dirt and re-suck it; a recommender scored on clicks is rational to serve outrage. The optimiser did exactly what was asked — the specification was wrong. In production this failure family is called reward hacking or specification gaming, and it is a defect of the measure, not a bug in the optimiser.
So the engineering habit this course will keep returning to: write the measure down, ask what a perfect optimiser of it would do in the worst case, and only then optimise. The later lessons on evaluation and governance are this sentence expanded.
Figure. Success is a state of the environment — dirt actually gone, fraud actually stopped — never the agent's own report of it. An agent graded on its own confidence will learn confidence. The number moves only when the world changes state.
Designing the measure
- Score the worldDefine success as a state of the environment — dirt actually gone, fraud actually stopped — never as the agent's own report of it.
- Stress-test itAssume the optimiser is smarter than you and adversarial: what maximises this number while betraying its intent?
- Then optimiseFix the measure first. An optimiser pointed at a bad measure gets you the bad thing, efficiently.
What is the defining characteristic of a rational agent in artificial intelligence?
- It is omniscient and always knows future outcomes with 100% certainty
- It mimics human emotional responses and cognitive flaws in every choice
- It explores all state space branches using exhaustive depth-first search
- It selects actions that maximize its expected performance measure given available percepts
A rational agent acts to achieve the best expected outcome based on its performance measure and percept sequence; it is rational, not omniscient.
4Narrow AI versus the general story
Narrow AI names a system built, trained and scored for one task, on one metric, in one operating context. The spam filter, the chess engine, the fraud model — each is a statement about a single distribution of inputs.
Skill measured on one distribution does not travel. The 99%-accurate spam filter knows nothing about support tickets; more subtly, it degrades on its own task when the inputs drift — new campaigns, a different language mix, adversaries adapting. Distribution shift, not lack of cleverness, is the standard failure mode of deployed narrow systems.
The mechanism deserves a precise statement: a fitted model encodes regularities of its training distribution, and every guarantee attached to it is conditional on future inputs resembling that distribution. Change the distribution and the guarantee is void — silently, because the model still emits confident outputs.
Artificial general intelligence — competence with human breadth across tasks the system was never specifically engineered for — remains a research ambition with no agreed measurement. A claim about it is not an engineering claim until it comes with an evaluation you could run.
The working discipline: for any system described as 'AI-powered', ask which task, which metric, which operating context, and what evidence exists off-distribution. Those four questions separate an engineering artefact from a press release.
Picture three sealed boxes, each wired to exactly one input stream and one scoreboard. Lift a box onto a different stream and the scoreboard does not drop — it disconnects: the number it showed was a fact about the old stream, not about the box.
| System | Its guarantee covers | It says nothing about |
|---|---|---|
| Spam filter | One mail stream, as measured | Ticket triage; the same stream after a campaign shift |
| Chess engine | Legal chess positions | Go; route planning; anything off the board |
| Card-fraud model | One issuer's transaction stream | Insurance claims; another issuer's customers |
A spam classifier reaches 99% accuracy on your inbox. What does that predict about its skill at sorting support tickets?
- It will carry over, because 99% accuracy measures general language understanding
- Almost nothing: a narrow system is scored on one task in one context, and ticket triage is a different task
- It will drop a little, and you can estimate the drop by scaling the accuracy down
- The question cannot be answered until the system is upgraded to general AI
One task, one metric, one operating context is what narrow means. Accuracy is a statement about the task it was measured on and nothing else.
5The map of methods
AI is a portfolio of method families, and choosing among them is the first design decision of any system. Four families carry most of the field, and each is the rational choice under different knowledge conditions.
Search and planning apply when you can write down the states, the legal moves and the goal: the method computes the action sequence from the specification, and no data is needed. Logic and knowledge representation apply when the domain has hard constraints that must never bend, and what you want is entailment — conclusions guaranteed by the premises.
Probabilistic reasoning applies when evidence is noisy and belief must be graded rather than binary; Bayes' rule is its engine. Learning applies when the mapping you need cannot be written down at all, but examples of it are plentiful.
The families compose rather than compete: a route planner searches over a map that a learned system perceived; a fraud stack learns a score and gates it with logical constraints. Reading a production system means naming which family owns which component.
This course walks the families in that order — uninformed search, cost-aware search, heuristics, logic, uncertainty and Bayes — before the dedicated ML and deep-learning courses take the learning family apart.
Figure. One task, four method families, and the edge labels are the decision: if the moves are writable, search; if the constraints are hard, logic; if the evidence is noisy, probability; if the mapping cannot be written but examples exist, learning. Production systems usually take more than one edge at once.
| Family | Choose it when | Where this course teaches it |
|---|---|---|
| Search / planning | States, moves and goal are writable; the solution is not | Uninformed, cost-aware and informed search |
| Logic / knowledge | Hard constraints; you need entailment, not opinion | Knowledge and logic |
| Probability | Evidence is noisy; belief must be graded | Uncertainty and Bayes |
| Learning | The mapping is unwritable but examples are plentiful | Naive Bayes onward, then the ML course |
6Where foundation models sit
Large language models complicate the narrow-versus-general story without resolving it. A foundation model is a deep network trained once on a broad corpus and then applied, with light adaptation, to many tasks — one artefact now covers translation, code and question answering at once.
In the taxonomy, nothing moved: the artefact is deep learning, therefore machine learning, therefore AI. What changed is the packaging — breadth of task coverage from a single training run, which older narrow systems never had.
Breadth is not generality in the research-ambition sense, and the difference is measurable: capability is established per task, per context, by evaluation, and reliability, latency and cost are properties of the deployment rather than of the weights. A model that clears a benchmark can still be the wrong component for a system whose inputs look nothing like the benchmark.
Production practice therefore treats a foundation model as a component inside an engineered system — wrapped in retrieval, tools, guardrails and an evaluation harness. The surrounding lessons of this course, on agents, hybrid stacks and measurement, are exactly the engineering that decides whether the wrapped model ships.
The claim discipline from the previous concept applies unchanged: 'the model can do X' is an engineering statement only when it names the evaluation, the distribution it ran on, and the score.
On the nested-set map from the Three nested ideas figure, a foundation model is a point in the innermost deep-learning ring. Its breadth changes how many applications draw arrows to that point — not which ring it lives in.
| Claim you will hear | What it means technically | What to ask |
|---|---|---|
| It's general-purpose | Broad task coverage from one training run | Which tasks were evaluated, and at what score? |
| It passes the exam | A score on one benchmark's distribution | Does your input distribution resemble that benchmark's? |
| It's safe | It passed specific adversarial test suites | Which harms were tested, and what monitors run in production? |
Notes
- AI versus ML versus deep learning: three nested claims about where behaviour comes from.
- Acting rationally — maximise an explicit performance measure — is the definition engineering uses.
- Narrow systems are statements about one distribution; capability claims are per task, per context.
Exam traps & shortcuts
- 'Uses AI, not machine learning' is not a contradiction — rule engines and search are AI without ML. Treat the phrase as a claim about method, and ask which one.
- Accuracy is a statement about the distribution it was measured on. Before trusting a number, ask which task, which metric, which context, and what evidence exists off-distribution.
- When a measure can be gamed, a good optimiser will game it. Audit the performance measure before optimising it, not after.
Recap
This lesson in brief:
- Three nested ideas
- AI is the goal, ML the data-fitted family inside it, deep learning the many-layer family inside ML — nested, not rivals.
- Four definitions
- Think or act, human standard or rational standard: engineering lives in acting rationally, the one quadrant with a specifiable measure.
- Rationality
- Maximise the expected performance measure given the percepts. Rationality is judged before the dice land — and the measure is where systems fail first.
- Narrow means conditional
- A fitted system's guarantees are conditional on its training distribution; skill does not travel, and drifts even in place.
- Reading claims
- A capability claim is an engineering statement only when it names the evaluation, the distribution and the score.
Practise What is AI?
Reading is free and needs no account. Practice, mocks and progress live in the app.
- 4 quick checks with worked explanations
- Timed mocks scored with the real marking scheme
- Readiness tracked per topic, kept on your device