How current AI systems work: notes for go-to-market readers
These notes set out what I have learned about how current AI systems work. They are written for non-technical readers in go-to-market roles and draw on the technical literature and on my own experience. The aim is to open a discussion, not to settle one.
The map
Three ideas that helped me most.
Idea 1 · 3 minute read
Three kinds of model, and generative AI is only one of them.
A model estimates a quantity, assigns a category or generates new content. Each answers a different question and fails in a different way.
Public discussion tends to treat "AI" and generative AI as one thing. The distinction matters commercially, because the three main kinds of model answer different questions and fail in different ways. I held the same confusion until this year, despite a master's in computer science and six years selling software. A classmate with a research background in language models corrected it in one sentence: a model does one of three jobs.
1 Regression: estimating a quantity
A regression model estimates a quantity from past observations. Sales forecasting is the familiar case: commit, best case and pipeline coverage are inputs to an estimate that sellers already produce by hand.
An exercise from my statistics course at INSEAD illustrates the limits of intuition. In a model predicting body weight, shoe size alone accounted for 59% of the variance, more than height. A model reports the pattern present in the data, which is not always the one the analyst expected.
2 Classification: assigning a category
A classification model assigns each case to one of a fixed set of categories: renew or churn, which team receives a lead.
Headline accuracy is a poor guide to its value. Where few customers leave, a model that predicts no departures is accurate in most cases and useless in practice. The relevant measure is the share of actual leavers it identifies.
3 Generation: classification repeated
A generative language model is trained to predict the next token in a sequence. At each step it produces a probability distribution over its vocabulary, one token is drawn, and the process repeats. Structurally, this is classification applied in a loop (Stanford STATS 60, lecture 27).
Two consequences follow. Output varies between runs, because it is sampled, not retrieved. And fluency is not evidence of accuracy.
The useful question to a vendor is which of the three the product performs.
In practice the three are combined. My own product, Ambidex, uses a generative model for a classification task: it reads a voice note and assigns a level of urgency. The reverse substitution deserves more caution. A numerical forecast produced by a language model should be checked against a model built to estimate numbers.
Idea 2 · 3 minute read
Neural networks: performance, cost and limited explanation.
The architecture behind generative AI predicts well, costs in proportion to its size, and cannot yet account for its own outputs.
0 parameters in this network.
Neural networks underlie generative AI and much of modern prediction, although many business forecasting and scoring models still rely on simpler methods such as decision trees. The commercial properties of a neural network follow directly from how it is built: high predictive performance, high running cost and limited explainability.
1 Prediction against explanation
My statistics course set two models against the same problem. The regression was interpretable: each coefficient stated how much a factor added or removed. The neural network predicted more accurately and offered no such account. Where a decision has to be justified, the less accurate model is often the better choice.
2 Units, parameters and training
A network is made of simple units arranged in layers. Each unit sums its inputs and passes on a number. The connections between units carry weights, the parameters, which determine how strongly one unit influences another.
A deep network can be described as a much more complicated version of linear regression (Stanford STATS 60). No formula yields the best set of weights directly. Training adjusts them incrementally, over a very large number of examples.
3 Cost scales with parameters
Parameters are the connections, not the units. Each unit connects to many others, so parameters far outnumber units. GPT-3, released in 2020, had about 175 billion.
Kaplan et al. (2020) estimate the cost of processing one token at about twice the parameter count in basic operations. A model with five billion parameters therefore performs roughly ten billion per token, and cost rises broadly in proportion to model size and to the volume of text processed.
For most deployments, running the model is the recurring cost.
4 Why explanation remains limited
Individual units often respond to several unrelated concepts, and a single concept is distributed across many units (Elhage et al., 2022; Bereska and Gavves, 2024). There is no rule to extract and hand to a customer.
Interpretability research is advancing, but it remains research. A claim of "explainable AI" in commercial material warrants a specific question about what, exactly, is explained.
Idea 3 · 3 minute read
From language to numbers: tokens and embeddings.
A model processes tokens, not words. The token is both the technical unit and the commercial one.
0 tokens.
A simplified cutter with made-up numbers: real ones are learned from data and split words differently.
The map of meaning: words used in similar ways sit close together.
I met tokens as a bill before I met them as a concept.
In extended working sessions with Claude, my usage rose faster than I could account for. The explanation is mechanical. At each turn the whole conversation is sent to the model again, and usage is measured in tokens. Providers cache repeated context at a reduced price, but usage still grows with the length of the history.
1 Tokenisation: text as a sequence of units
A language model does not process letters or words. Text is divided into tokens drawn from a fixed vocabulary, typically a short word or a fragment of a longer one, and each token is replaced by an integer.
Vocabularies differ between providers, so the same document yields different token counts on different models. Since pricing is per token, this is the unit that appears on the invoice.
2 Embeddings: position as meaning
An integer carries no meaning. Each token is therefore mapped to a vector, a position in a space with many dimensions, in which tokens used in similar contexts lie close together. "Invoice" sits near "bill" and far from "striker".
The same principle is applied to whole passages, using a separate embedding model. Each passage receives a position, which allows retrieval by meaning when wording differs. Most products that answer questions over a company's documents work this way: the passages nearest the question are retrieved and supplied to the language model.
3 Implications for deployment
Instructions in language constrain a probabilistic system only loosely. In an INSEAD workshop, chatbots instructed never to disclose a secret word were induced to do so within minutes.
Context is a cost. Long histories and long documents are converted to tokens at every turn. Reducing what is sent is usually the cheapest efficiency gain available.
More articles soon.
Corrections and alternative explanations are welcome.
Sources: Kaplan et al. (2020), Scaling Laws for Neural Language Models; Elhage et al. (2022), Toy Models of Superposition; Bereska and Gavves (2024), Mechanistic Interpretability for AI Safety: A Review; Stanford STATS 60, lecture 27.