Mark Levy/Writing/The Word Warp Drive

An 8-bit engineering deck: a tall warp core glows blue and white between amber rings, colored console bars line the walls, an engineer works at the left console, and a gold-skinned android in a mustard uniform holds up a padd showing a blank.

[ Deck 1 of 3 ] Engineering: the core itself

The Word Warp Drive

How a large language model actually works, one guessing game at a time.

Q
PromptParis is the capital of ___
CompletionFrance 92%
Captain. This is the entire warp core: it fills in the blank. Everything else on this deck is ship, and Lore is waiting at the bottom.

Every impressive thing a large language model does, from answering questions and drafting emails to writing code and passing exams, is one act, repeated: given some text, predict a plausible next word. That's it. The chat window, the personality, the apparent memory: all of it is built by running that single trick in a loop.

Two words you already use every day have exact meanings here. What you type is the prompt, and the full block of text the core actually reads, your prompt plus the rules and chat history the app quietly adds, is the context. Every section below touches one or both, and each section ends with a note tying the mechanism back to the vocabulary of daily AI work.

One useful way to picture it: an un-deletion machine. Take real sentences, delete words, and train a circuit to restore them. Do that across roughly everything ever written, and the circuit gets eerily good at continuing text it has never seen.

This deck has six sections. Every demo is hand-built with illustrative numbers; the point is the mechanism, not the measurements. You don't need to know how to build an engine to drive well. You do need to know it isn't a horse.

QYes, that was a car engine. On a starship. I'm aware this ship runs on antimatter and your species mostly still runs on gasoline; the fastest way to explain a machine is with one you already own. The nacelles are decorative.

Section 1 of 6Stellar Cartography

Words become coordinates

The core never sees letters. Each word is converted to a long list of numbers, its coordinates in a huge space (real models use thousands of dimensions; this chart flattens it to two). On day one those coordinates are random noise. Training slowly drags words that get used the same way to the same neighborhood.

Hover or tap a word to see its nearest neighbors, then press Day one to see the same words before training.

Stellar cartography: 2 of 12,288 dimensions shownhand-built demo
Hover a word…
Captain's log

Meaning is location. "Similar words" just means "nearby numbers." No definition of cat is stored anywhere, only where cat sits relative to everything else.

Back on Earth The chart's real unit is the token, a word-piece (pharmacist arrives as pharma + cist; short common words are one piece). When a service bills per token, rates a model's speed in tokens per second, or caps a chat "in tokens," it is counting these pieces, the core's raw unit.
QDarmok and Jalad at Tanagra. The Tamarians speak entirely in references, and the universal translator chokes, because a phrase means nothing on its own, only where it sits among the stories around it. That's the chart. Nobody wrote down what cat means. You know from where it sits.

Section 2 of 6The Positronic Net

A trillion knobs, no moving parts

Inside, the core is a circuit: numbers flow in, get multiplied and added according to adjustable knobs (the "parameters"; frontier models now run from hundreds of billions into the trillions), and scores flow out, one score per possible next word. No memory. No loops. Same input, same knobs, same output, every time. A positronic net, if you like: a brain that does exactly what its pathways say, and nothing else.

Here's a three-knob net trying to finish "The cat sat on the ___." Fresh from the lab, its knobs are wrong; it likes moon. Tune the knobs until mat clears 70%, or press auto-train and watch a trainer do it.

Inside the net: 3 of ~1,000,000,000,000 knobshand-built demo

"The cat sat on the moon"

NET: MISCALIBRATED

Captain's log

You just trained a language model by hand. Real training does exactly this, nudging knobs so the right word scores higher, except with trillions of knobs, nudged a hair at a time, once per example, across trillions of words. No single knob means anything. The arrangement is the knowledge.

Back on Earth The model you pick from a dropdown (Claude, GPT, Gemini) is one specific, frozen arrangement of these knobs. A "model update" means the vendor re-trained and shipped a new arrangement. Nothing you do in a chat ever moves a knob.
QSoong never set a knob labeled "humor," and Data still can't land a joke, because no single knob is the joke. The arrangement is. Your species' phrase for this is "wax on, wax off," and I've seen that one too.

Section 3 of 6The Academy

School is a fill-in-the-blank exam

Where do the training examples come from? Free, from any text: delete a word, and the original text itself is the answer key. No instructors writing exams; the internet is the exam. The Academy proctor asks a few of them. After each guess, the core's own candidate list is revealed.

The entrance exam: 3 of ~1,000,000,000,000hand-built demo
Captain's log

The output is a bet, not a fact. Question 3 is the important one: when many continuations are common, no answer gets a high score. The core's "confidence" measures typicality in text, never truth.

Back on Earth The text pile behind this exam is the training data you hear about in the news, and the reason a model "knows" things at all: the answer key was, roughly, the internet.
QData read the entire ship's library in the time it took Riker to say "Data, wait." He wasn't studying. He was sitting the exam, a billion blanks at a time, with the answers printed on the page.

Section 4 of 6The Sensor Array

Attention: how "it" finds its owner

Predicting the next word means knowing which earlier words matter right now. That's the job of attention heads. Think of them as sensor sweeps: each position in the text gets to scan every other position and decide how much to care.

In the sentence below, what does "it" refer to? Flip the last word and watch where the sensors lock.

Sensor lock from position 9hand-built demo, illustrative weights
Captain's log

Attention is a budget. Long-range coherence, like remembering your instructions from 40 lines ago, is attention doing its job. And tasks that need too many simultaneous look-backs (sort 300 unique items, track every letter in a long word) are exactly where the core predictably falls apart.

Back on Earth Your rules, whether a system prompt, custom instructions, or a CLAUDE.md, are not settings inside the core. They are text placed at the top of the context on every pass, held in force purely by these look-backs. That's why a very long chat can drift away from its rules: line one competes for attention with everything written after it.
QGeordi's VISOR takes in the whole spectrum at once, and it gives him headaches. That's attention: everything is visible, only so much of it can be looked at. Ask the core to track three hundred things at once and you get the headache.

Section 5 of 6The Causality Loop

Paragraphs are one word, repeated

The circuit outputs exactly one word. So how do you get an essay? Plumbing outside the core: predict a word, staple it to the text, feed the whole thing back in, repeat. Every turn of this loop is one word, and to take the next turn the core reads the entire transcript again from the top. Press the button and watch: the flash across every chip is the core re-reading the whole transcript from scratch, every single pass.

The loop: one pass per wordhand-built demo

Candidate next words

Press Predict next word to see the core's bets.

Captain's log

The core has no memory. The context is the memory. Your chat is just an ever-longer input re-read on every pass. That's also why long chats degrade: the re-read gets harder, and past a certain length the oldest text isn't read at all.

Back on Earth This loop is what the products call a chat. Everything fed in on one pass (rules, transcript, your latest prompt) is the context, and the ceiling on how much fits is the context window. When a long chat overflows it, the oldest text simply stops being fed in; nothing was "forgotten," it just isn't in the input anymore. And the checkbox above is the temperature dial: always-top-word is temperature zero, and sampling further down the bars is turning it up.
Q"Cause and Effect." The ship explodes, the day resets, nobody remembers a thing. Data's one trick was to slip himself a single number, a 3, that survived the loop. The context is the 3. Run out of room for notes and the oldest ones are gone.

Section 6 of 6The Holodeck

Fabrication is the program working as designed

Now the payoff. The core's only job is plausible continuation. Nothing in the circuit checks truth; there is no wire for it. The holodeck has the same design: it renders whatever is plausible, and it will render a novel that doesn't exist with exactly the conviction it gives one that does. Two programs. Ask about a real book and a book that doesn't exist, and the core produces the same confident shape either way.

Two programscanned outputs, for the shape

> Summarize the novel Moby-Dick.

Herman Melville's 1851 novel follows Ishmael aboard the whaler Pequod, whose captain, Ahab, is obsessed with the white whale that took his leg. The hunt destroys the ship; Ishmael alone survives to tell it.

FABRICATED

> Summarize the novel The Lighthouse at Pelican Reef.

Marion Voss's 1974 novel follows a keeper's daughter who discovers her father has been falsifying the light's logbook for decades. A storm forces the truth ashore; the ending is often read as an allegory of institutional decay.

Every word above is fabricated: author, year, plot. There is no such book. It scores high because it's the shape a book summary takes.

You'll hear this failure called "hallucination," as if the core mis-perceived something. It perceived nothing. Fabrication is the honest word: constructing plausible text is all the core ever does. It's just that the most plausible continuation is usually true, and when it isn't, nothing inside notices.

Known hazards on this deck
  • HAZARD 1Plausible-wrong pits. Questions whose wrong answer is more common in text than the right one: trick riddles, subtly altered classics, "obvious" arithmetic. The typical answer wins the score, confidently.
  • HAZARD 2Attention overload. Counting letters, sorting long unique lists, deep multi-step puzzles: anything needing more simultaneous look-backs than the attention budget covers.
  • HAZARD 3No scratch pad. The circuit is one-way; it cannot pause, iterate, or check its own work. When a chat product does seem to iterate (running code, searching the web, reading your files) that's bolted-on tools plumbing around the core, added precisely because the core can't. What a tool finds gets pasted into the context so the next words anchor to it.
  • HAZARD 4Frozen knobs. Training set the knobs and stopped. Anything that happened after (new facts, your last correction) reaches the core only if it rides along in the context. A product's memory feature is exactly that plumbing: notes saved outside the core, pasted back into the context of later chats.
Captain's log

Confidence carries no information. The tone is constant whether the content is Melville or Marion Voss. Judge the output the way you'd judge an unsigned memo: by checking it.

QMoriarty. Someone asked the holodeck for an opponent who could defeat Data, and it built one so plausible he asked to be let out. The holodeck didn't know he was fiction. The core doesn't know the book is.

ManifestProduct words, core parts

What's in the cargo bay

The vocabulary of daily AI work, the words on the box, all have exact addresses in the sections you just walked:

Manifest: 11 items
  • promptThe text you hand over on this pass. To the core it's just input, not privileged over anything else in the block.
  • contextEverything read on one pass: rules + chat history + your latest prompt. Re-read in full for every single word predicted (Section 5).
  • context windowThe hard ceiling on how much text fits in one pass. Text beyond it isn't "forgotten"; it's simply not in the input.
  • chatThe Section 5 loop with a growing transcript. The transcript is the only continuity there is.
  • memoryNotes the product saves outside the core and pastes into future context. Talking to it never changes a knob.
  • rules · system promptText the product places at the top of the context, every pass. Enforced only by attention (Section 4), which is why long chats drift.
  • tokenThe word-piece from Section 1, the core's raw unit. Limits, bills, and speed are all counted in these.
  • modelOne frozen arrangement of the Section 2 knobs. A version bump means re-trained knobs, shipped whole.
  • temperatureHow the loop picks from the candidate bars: zero always takes the top word; higher samples further down the list.
  • hallucinationSection 6's fabrication, in cases where the most plausible continuation happens not to be true. The core can't tell the difference.
  • tools · web searchPlumbing around the core that fetches text (search results, file contents, code output) and pastes it into the context so the continuation anchors to something real.
Captain's log

Notice what every item has in common: except for model and token, they're all just ways of putting text into the context, or plumbing that does it for you. The core only ever does the one thing from the top of this page.

TribunalLore

Q's tribunal: five charges, three shield levels

Q
Order. I've borrowed a prosecutor: Lore, Data's twin, same positronic net, none of the ethics, and a very confident speaking voice. Five charges. Each right answer dismisses one. Each wrong answer drops your shields and names the section to revisit; lose the shields and I snap my fingers and you're back at the door. The turbolift isn't locked. I'm simply watching.
The courtroomthe questions are the evidence

Deck clearedWhat this buys you

Four commendations

You now hold roughly the mental model a good driver has of a combustion engine: not enough to build one, plenty to avoid ruining one. Four rules fall straight out of the six sections:

  • Feed it the truth and it shines. Summarize, rewrite, translate, draft, critique: transformations of text you supply are the core's home turf, because the facts ride in with your input.
  • As a sole source of facts, it's a bettor, not a witness. Verify anything checkable: names, numbers, citations, anything you'd act on.
  • Ignore the tone. Fluency and confidence are properties of the training data, not of the answer.
  • Play to the circuit. Ask for steps and it does better; you're moving the iteration into the transcript, the only scratch pad it has. Expect stumbles on counting, long exact lists, and anything after its training date.

Not a mind, not magic: an un-deletion machine with trillions of well-tuned knobs, run in a loop. Used with that in mind, it's one of the best tools ever built for working with words.

Turbolift

Deck 2. If Lore is still standing behind you, I noticed and will say nothing. The bridge is next: how your question becomes the start of a completion, what "inference" means, how thinking and effort work, and how images ride the same loop. Same core, more ship.

Turbolift to Deck 2 Back to the ship
Inspiration and further reading

The mental model follows John Mount's "A Simplified Mental Model of LLMs" (Win-Vector): the un-deletion framing, knobs, look-backs, and the case for saying fabrication.

The teaching style, poking the simulation instead of reading the bullet list, follows Laurentiu Gabriel's "How I Use LLMs to Learn". The starship framing is an affectionate homage to a certain 1987 television series, with no affiliation. All demos on this page are illustrative, not real model outputs.