Learn AI Math

Value Cache

What is Value Cache?

In one sentence: The value cache is the part of the KV cache that stores the values for all previous tokens.

Once attention decides which earlier tokens matter, it pulls their information from the value cache. Like the key cache, it grows with every token.

What does Value Cache look like?

After attention focuses on the word "dragon," the model reads that word's stored value from the value cache.

Why does Value Cache matter?

It is the other half of the KV cache's memory use.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.