Hacker News new | ask | show | jobs
by wangii 64 days ago
is kvcache a prematural optimization?
3 comments

Not having it would be like a text editor that loads your entire document from disk and re-saves it every time you press a key. On a floppy drive.
It's pretty much required to make it work with large contexts, so probably not
Do you even understand what you're suggesting? Do you understand how the data flow would look like without a kv cache?
Java spent decades making pointer-rich identity semantics cheaper, before increasingly recognizing that many things programmers call “objects” are actually values.

We may spend a decade making persistent token-level KV state cheaper, before recognizing that much of what we call “context” should actually be transient, compressed, reconstructed, or represented in an entirely different state space.

KV cache risks turning an optimization of today's representation of history into tomorrow's semantics of memory.