The Model Remembers Nothing
Ten messages into a chat, Leila mentions her name again, and the assistant says "Yes, Leila, as you said earlier...". Clearly it remembered. But open a new chat, and it has no idea who she is. Where did the memory go, and where was it in the first place?
Leila So the model does have a memory. It remembered my name from ten messages back.
Omid Something remembered it, for sure. Let me ask you something first. How many people do you think are talking to the same model right now?
Leila Millions, probably.
Omid And it's the same model for all of them: the same billions of numbers. If your name were stored inside it, what would that mean for everyone else?
Leila That it would know my name when they talk to it too. Which would be strange. And a bit worrying.
Omid Right. The numbers inside the model don't change when you chat with it. They were fixed at the end of training. So where could your name be?
Leila In the app, then. The app keeps the conversation.
Omid Yes, and that's the whole trick. Every time you send a message, the app sends the model the whole conversation so far: your first message, its first reply, your second message, and so on, with your newest message at the end. The model reads all of it, writes one reply, and forgets everything.
Leila Every time? Even when the chat is long?
Omid Every time. The model never "continues" a chat. It reads a fresh piece of text, which happens to contain the whole chat, and writes what comes next.
Leila So the chat remembers, and the model doesn't. That's why a new chat starts blank: the app just doesn't send the old one.
Omid Exactly.
One request at a time
Each time the app asks the model for a reply, it sends a request: one package of text with everything the model needs. In a chat, most of that is the conversation history, every message so far. The model reads the request, writes its reply, and keeps nothing at all. The next request has to bring everything again.
A program that keeps nothing from one request to the next is called stateless. Language models are stateless. That sounds like a weakness, but it's a sensible design:
- One model can serve millions of people at once, because no conversation is stored inside it. Any request can go to any copy of the model, on any computer.
- Nothing of yours stays in the model. What you said lives in the app's saved conversation, which you can see and usually delete.
- The app is in charge of what the model sees. It can shorten the history, leave parts out, or add things. Later lessons are mostly about how agents use that freedom.
When a chat app has a "memory" feature that knows your job or your city weeks later, it works the same way: the app saves short notes about you and quietly puts them into each new request. The model still remembers nothing. You'll see how agents do this in Memory Is a File.
What this means for you
Because the whole history goes into every request, three things follow.
A new chat really is blank. Whatever you explained in yesterday's chat isn't there today unless you, or the app, bring it back.
A long chat is a long request. Your fiftieth message carries the forty-nine before it. You'll see in the next lessons that this has a price, and a limit.
Mistakes in the history keep working against you. Suppose the assistant misunderstood you early on and wrote three replies about the wrong report. You correct it. But those three wrong replies are still in the history, and they go into every later request. The model reads them every time, and they keep pulling it back towards the wrong idea.
Leila That explains something. Last week I spent twenty minutes telling an assistant "no, not that" and it kept slipping back.
Omid Every "not that" was sitting next to all the "that"s. What would have worked better?
Leila Starting a new chat, I suppose. But then I lose everything I'd explained.
Omid You lose the mess, and you keep what you learned. Write a short summary of what you actually want, with what you now know, and start fresh with that.
Try it
In a chat assistant, tell it "My favourite colour is teal." Ask a couple of other questions, then ask "What's my favourite colour?" It knows. Now open a new chat and ask the same question. Unless your app has a memory feature turned on, it won't know. Same model, different history.
Using it well
- When a chat goes wrong, start again with a clean summary. Old wrong turns stay in the history and keep steering the model; a fresh start with three clear sentences usually beats ten corrections.
- Repeat what matters in a new chat. The model knows only what's in the request, so paste in the key facts, documents or decisions again.
- Edit instead of piling on, where your app allows it. Many chat apps let you edit an earlier message and regenerate from there, which removes the wrong turn from the history instead of adding a correction on top.
Words to know
- request - one package of text sent to the model to get one reply; it has to contain everything the model needs
- conversation history - all the messages of a chat so far, which the app sends again with every request
- stateless - keeping nothing from one request to the next; language models are stateless
Big idea
The model remembers nothing between requests. A chat seems to remember because the app sends the whole conversation every time, so what the model "knows" is exactly what is in the request.