AI streams responses with incredible speed, but anyone who has had a long conversation with a chatbot knows it can lose the thread. The reason for both is the same engineering trick: the KV cache.
When an AI generates text, it performs massive calculations for every word. Instead of redoing those calculations for words it has already processed, it saves the intermediate results—known as keys and values, hence "KV"—and reuses them. This cache is the secret to AI's speed; without it, responses would be roughly 50 times slower. Every follow-up question, the AI doesn't re-read the entire chat history—it simply picks up where it left off.
But the cache comes with a crucial trade-off. As the conversation grows, the cached representations of earlier messages become stale. The AI stays fast, but it becomes trapped in its initial interpretation of the context. This explains why long chats often feel slower in quality even though they zip along in delivery: the same mechanism that enables speed also causes forgetfulness. You cannot have one without the other.