Learn
AI & LLM foundations

What is Artificial Intelligence (AI)?

The short answer

Artificial intelligence is the field of building computer systems that perform tasks we normally associate with human intelligence: understanding language, recognising patterns, solving problems and making decisions. In practice almost all of it today is machine learning, where behaviour is learned from examples rather than written as explicit rules.

On this page

A working definition

Artificial intelligence is the label we give to computer systems that perform tasks which, until recently, required a person: reading a contract, recognising a face, translating a sentence, deciding which video to show next. The definition is deliberately about behaviour rather than mechanism. A system qualifies because of what it can do, not because it works the way a brain does. That distinction settles most arguments before they start. A calculator is not AI, even though it beats every human at arithmetic, because nobody ever considered arithmetic the interesting part.

The term is also a moving target. Researchers joke that AI is whatever we have not figured out yet. Chess engines, optical character recognition and speech-to-text all spent years inside the AI tent and later left it, becoming ordinary software once the method was understood. What changed in the last decade is that one family of techniques, deep learning, started beating hand-built systems on problems that had resisted decades of careful engineering: vision, speech, translation and eventually open-ended language. That is why the phrase now usually means machine learning, and increasingly means large language models.

The three layers: AI, machine learning, deep learning

The words nest. Artificial intelligence is the broad field. Machine learning is a subset of it: rather than writing rules that map inputs to outputs, you supply examples and let an algorithm fit the mapping. Deep learning is a subset of machine learning that uses neural networks with many layers. A useful test is to ask what the developer actually writes. In classical AI the developer writes the rules. In machine learning the developer writes the learning procedure and curates the data. In deep learning the developer also designs the network shape, and the network discovers its own internal features.

The practical consequence is where the effort goes. A rules-based system fails when the world is messier than the rulebook, and fixing it means adding more rules, which eventually contradict each other. A learned system fails when its training data does not resemble the real world, and fixing it means collecting better data, relabelling, or changing the objective. That is a different kind of debugging. You cannot read the model's logic the way you read a function, so you characterise behaviour statistically: slice the errors, look for patterns, and test on data the model has never seen.

How machine learning actually learns

Supervised learning is the workhorse. You have pairs of input and correct output: an image and its label, a support ticket and its category, a sentence in English and its translation. The model makes a prediction, a loss function measures how wrong it was, and an optimiser adjusts the parameters in the direction that reduces the loss. Repeat a few million times and the predictions converge on the patterns in your data. Nothing mystical happens in the middle. It is repeated error correction at a scale where the corrections add up to something that behaves like understanding.

The goal is generalisation, not memorisation. A model that scores perfectly on the data it trained on and poorly on new data has overfitted: it learned the noise instead of the signal. Practitioners guard against this by holding data back. You train on one split, tune settings on a validation split, and report final numbers on a test split that was never touched during development. When a benchmark score looks too good, the first question is always whether the test data leaked into training. In commercial systems leakage is common and often accidental, because web-scale corpora contain the benchmarks.

Unsupervised and self-supervised learning cover the cases where labels are expensive or unavailable. Clustering groups similar items without being told what the groups are. Self-supervision manufactures labels from the data itself, which is how language models are trained: hide the next word, ask the model to predict it, repeat billions of times. Reinforcement learning is the fourth paradigm, where an agent takes actions and learns from rewards. It works well in games, robotics and control, and it is now used to tune language models against human or model preferences.

Narrow AI, general AI, and the gap between them

Every AI system you can buy today is narrow. It operates inside a task definition: classify this image, transcribe this audio, answer this question from these documents, draft this reply. Narrow does not mean weak. A system that processes a million invoices a day with fewer errors than a human team is enormously valuable, and its narrowness is a feature, because you can test it, bound it and price it.

General intelligence, the version where a system transfers across any domain and sets its own goals, does not exist in any shipping product. Claims that a model has achieved it usually rest on benchmark performance, and benchmarks measure the tasks somebody chose to measure. Models are also inconsistent in a way people are not. A system can solve a graduate-level physics problem and then fail to count the letters in a word. That pattern points to capable pattern retrieval rather than a general reasoning engine, and it is the main reason evaluation has become a discipline of its own.

Five shifts that produced the current wave

Symbolic AI from the 1950s to the 1980s encoded knowledge as logic and rules. It produced genuinely useful expert systems in medicine and finance, then hit a wall, because covering the long tail of the real world required an unmanageable number of rules and every new rule risked breaking an old one. Statistical machine learning from the 1990s onward replaced hand-written rules with fitted models and delivered spam filters, credit scoring, speech recognition and search ranking that actually worked at scale.

Deep learning from 2012 made neural networks practical by combining large datasets, GPUs and better training tricks. Image classification error rates fell sharply in a single competition cycle, and the field changed direction within a year. The transformer, published in 2017, made sequence modelling parallelisable, which made it trainable at much larger scale. Language models grew from hundreds of millions to hundreds of billions of parameters, and somewhere in that growth they began to follow instructions and handle problems that were never explicitly trained for. Instruction tuning and preference optimisation from 2022 onward turned raw next-token predictors into assistants that answer questions, use tools and refuse some requests.

Where AI is actually used

The useful map is by task shape rather than by industry, because the same four or five patterns recur everywhere.

  • Classification: is this transaction fraudulent, is this email spam, is this scan abnormal, which of forty support categories does this ticket belong to.
  • Ranking and recommendation: given a user and a catalogue, order the items by expected engagement or relevance. This is quietly the largest commercial AI workload in the world.
  • Extraction: pull structured fields out of unstructured documents, such as invoice totals, dates, names and line items, into a database that downstream systems can query.
  • Generation and transformation: draft a reply, summarise a report, translate a document, turn a description into code or an image.
  • Forecasting: predict demand, load, churn or inventory from historical series plus covariates.
  • Perception: transcribe speech, read text from images, detect defects on a production line, segment objects in a camera feed.
  • Retrieval: find the passages or records most likely to answer a question, which is the backbone of most enterprise search and assistant products.

What intelligence means here

When an AI system appears to understand something, what it usually has is a compressed statistical model of the situations it was trained on. A language model trained on most of the public internet has seen an extraordinary number of sentences about invoices, contract clauses and debugging errors. It can produce fluent, often correct responses because the patterns are genuinely there in the data, not because it has a bank account, has signed a contract, or has ever run a program.

That distinction has practical consequences. Models are strong inside the distribution of their training data and unreliable outside it. They interpolate smoothly between things they have seen, which is why they can sound authoritative while being wrong in a way no human expert would be. They also lack persistence: no memory of yesterday, no goals of its own, no model of your intent beyond what is in the prompt and whatever the application chooses to supply. Functional intelligence is real and commercially useful. It is just narrower, and more brittle at the edges, than the vocabulary suggests.

Where large language models fit

A large language model is one kind of deep learning model, trained on very large text corpora to predict the next token. That single objective, at sufficient scale, produces a system that can draft, summarise, translate, answer questions and write code. Chat assistants, coding tools and document processors are applications built on top of that base capability, usually with a system prompt, retrieval over your own data, tool calls and some orchestration logic around the model.

Keeping the layers separate prevents most bad product decisions. The model is a component with a cost per token, a latency profile and a failure distribution. The product is a workflow that decides when to call the model, what context to give it, what to do with the answer and when a human has to check. Most production failures that get blamed on the model are actually failures of the surrounding product: missing context, no validation of the output, or a task the model was never a good fit for.

Common mistakes when reasoning about AI

  • Anthropomorphising: assuming the system wants, knows or intends something. It has no persistent state and no goals beyond the objective it was trained on.
  • Judging from demos: a curated demo shows the best case. Reliability is measured on the thousandth input, not the first.
  • Assuming more data always helps: duplicate, mislabelled or unrepresentative data makes a model worse, and cleaning usually beats collecting.
  • Confusing correlation with cause: a model that predicts well has not necessarily found the mechanism, so it may break the moment the environment shifts.
  • Ignoring the cost of being wrong: the acceptable error rate for a playlist recommendation and for a medical triage suggestion are not the same, and the system design should differ accordingly.
  • Treating a benchmark as a product decision: scores travel badly across domains, languages and document formats.
  • Skipping the baseline: a simple keyword rule or logistic regression is often within a few points of a large model on a narrow task, at a fraction of the cost.
  • Forgetting the human loop: exceptions always exist, so there must be a path for a person to review, correct and override.

How to judge whether an AI system works

Start from the decision the system supports and work backwards to a metric that reflects it. If a model flags fraudulent transactions, what matters is the precision at the review capacity you actually have, not overall accuracy. If it drafts replies, what matters is how often a human sends the draft with minor edits, which is measurable in the product and much more informative than a similarity score against a reference answer.

Then build an evaluation set that resembles production and keep it out of training. Include the ugly cases: the scanned PDF with a coffee stain, the customer who writes in three languages, the ticket that mentions two products. Report results by slice, because an aggregate number hides the segment where the system fails. Finally, instrument the deployed system. Log inputs, outputs, edits and escalations, sample them regularly, and watch for drift when the underlying data changes, since a model's accuracy is a property of the model and the world it runs in, not of the model alone.

Practical guidance if you are building

Begin with a task, not a technology. Write down the input, the output, the decision it feeds and what happens when it is wrong. If nobody can state the correct answer for a sample of twenty real cases, the task is not ready for automation and no model will fix that ambiguity.

Then establish a baseline and a measurement harness before touching a large model. A prompt with ten examples and a hand-labelled test set of two hundred cases will tell you more in a day than a month of model comparison. Only after that should you decide between an API, an open-weight model, fine-tuning or a classical approach. Most teams that skip this step end up optimising a number they cannot interpret.

  • Define the task and the cost of errors before choosing a model.
  • Label a small, honest evaluation set from real production data.
  • Build the simplest baseline first and measure it.
  • Prefer retrieval over fine-tuning when the problem is missing knowledge rather than missing behaviour.
  • Put validation around outputs that feed systems: schema checks, ranges, and a confidence path.
  • Keep a human review queue for the cases the system is least sure about.
  • Log everything needed to reconstruct a failure, then actually read a sample every week.

Key points

  • AI is the broad field; machine learning and deep learning are nested subsets of it.
  • Almost all deployed AI is narrow and task-specific, and that is what makes it testable.
  • Modern systems learn statistical patterns from data rather than following written rules.
  • LLMs are deep learning models trained on next-token prediction, wrapped in product logic.
  • Capability and reliability are different properties, and only the second one ships.
  • Intelligence in AI is functional, not biological, and it degrades outside the training distribution.
Page feedback

Was this helpful?

A quick signal helps improve these notes.

Report a mistake Straight to the lab inbox

Put it to work

See the models, datasets and gateway this lab runs.