Skip to content

Add compressed latent memory insight and dr report - #39

Merged
emilwareus merged 1 commit into
mainfrom
insight/vector-memory
Sep 5, 2026
Merged

emilwareus merged 1 commit into
mainfrom
insight/vector-memory

Conversation

@emilwareus

Copy link
Copy Markdown
Owner

What

New insight: brain/insights/llm-memory/compressed-memory-lives-in-the-kv-cache.md (~5.7k words) on injecting compressed latent memory into LLMs instead of raw tokens.

Core thesis: "vector memory" is three unrelated programs at three pipeline points. Only KV-cache compression runs today on a stock open-weight checkpoint, because the KV cache is the one latent the model already produces and already attends over.

  • Four families separated by injection point (embedding stream / attention-time KV / cross-segment memory tokens / learned replacement tokens), with a pipeline diagram and maturity ordering
  • Measured numbers: PyramidKV 8.33:1 matching full cache, 143:1 at 0.7% retention, 128-entry NiaH at 100%; StreamingLLM 4M tokens + 22.2x; Attention-Gate 2.69:1 +13.9% RTE; KIVI4 stability; SnapKV throughput; H2O/SnapKV-D for reasoning; HMT +13% over RMT at 0.5-2% params
  • Implementable pseudocode: KV eviction decision loop (4 swappable policies) + RMT segment loop with bottleneck math
  • Training section: what generalizes (KVP zero-shot) vs what doesn't (soft prompts, theorem-shaped no)
  • Corrects the mental model: compression saves cache/decode cost, not prefill; nothing in the evidence persists compressed latents across requests; retrieval survives extreme compression, reasoning pays in tokens (trace elongation)
  • Honest gaps: benchmark fragmentation, narrow model coverage, family 4 (gist/ToMe) unquantified, no production case studies, 3 hypothesized failure modes explicitly unsupported
  • dr report (12 admitted sources, claim-verified) archived at brain/inbox/dr/2026-09-04/llm-latent-memory.md

@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

🚀 Preview deployed: https://addcommitpush-2jilxud52-yield-compiler.vercel.app

@emilwareus
emilwareus merged commit 23b80a7 into main Sep 5, 2026
1 check passed
@emilwareus
emilwareus deleted the insight/vector-memory branch September 5, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant