Abstract: Documents, codebases and agent histories are read long before their questions arrive and are then queried many times. Their memory may serve any later question. Compressing the KV cache before the questions keeps this memory small but loses the evidence. Storing the full cache keeps the evidence but costs gigabytes per document, and dense
[…]
Content was trimmed to protect the source. Please visit the original article for the full text.
Read the original article:
HeadMem: Turning an LLM’s Retrieval Heads into a Compact Memory for Later Question
