This episode examines LowRAM, a test-time method for compressing the KV cache of a frozen pretrained model by storing most of the value cache as a small per-head neural network that predicts each value from its key. Only exact residuals for the worst-predicted tokens are kept, so no token is evicted. Keys get low-rank treatment with shared bases across adjacent layers, and quantisation and eviction are stacked on top. The discussion explains why keys and values need different handling: key errors shift attention logits, while value errors enter only after the attention weights are fixed. It also covers how the idea relates to Slim Attention's exact linear key-to-value map, AQUA-KV's linear adapters, and test-time training. A source-target sweep on Mistral found that current-layer keys predict current-layer values best. The episode also scrutinises the headline result of 26.9x compression at 94.5 percent recovered performance on long contexts, and what that number does and doesn't show. Sources: 1. LowRAM: Low-Rank Keys and Amortised Values for Composable KV Cache Compression at Test-Time — Teresa Delgado, Hugo Hazard, Martin Benfeghoul, Jun Wang, Zafeirios Fountas, 2026 http://arxiv.org/abs/2611.07025 2. KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cache — Zirui Liu, Jiayi Yuan, Hongye Jin, Shaochen Zhong, Zhaozhuo Xu, Vladimir Braverman, Beidi Chen, Xia Hu, 2024 https://scholar.google.com/scholar?q=KIVI%3A+A+Tuning-Free+Asymmetric+2bit+Quantization+for+KV+Cache 3. KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization — Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Michael W. Mahoney, Yakun Sophia Shao, Kurt Keutzer, Amir Gholami, 2024 https://scholar.google.com/scholar?q=KVQuant%3A+Towards+10+Million+Context+Length+LLM+Inference+with+KV+Cache+Quantization 4. Learning to (Learn at Test Time): RNNs with Expressive Hidden States — Yu Sun, Xinhao Li, Karan Dalal, Jiarui Xu, Arjun Vikram, Genghan Zhang, Yann Dubois, Xinlei Chen, Xiaolong Wang, Sanmi Koyejo, Tatsunori Hashimoto, Carlos Guestrin, 2024 https://scholar.google.com/scholar?q=Learning+to+%28Learn+at+Test+Time%29%3A+RNNs+with+Expressive+Hidden+States 5. Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks (MAML) — Chelsea Finn, Pieter Abbeel, Sergey Levine, 2017 https://scholar.google.com/scholar?q=Model-Agnostic+Meta-Learning+for+Fast+Adaptation+of+Deep+Networks+%28MAML%29 6. Palu: Compressing KV-Cache with Low-Rank Projection — Chi-Chih Chang, Wei-Cheng Lin, Chien-Yu Lin, Chong-Yan Chen, Yu-Fang Hu, Pei-Shuo Wang, Ning-Chi Huang, Luis Ceze, Mohamed S. Abdelfattah, Kai-Chiang Wu, 2024 https://scholar.google.com/scholar?q=Palu%3A+Compressing+KV-Cache+with+Low-Rank+Projection 7. Eigen Attention: Attention in Low-Rank Space for KV Cache Compression — Utkarsh Saxena, Gobinda Saha, Sakshi Choudhary, Kaushik Roy, 2024 https://scholar.google.com/scholar?q=Eigen+Attention%3A+Attention+in+Low-Rank+Space+for+KV+Cache+Compression 8. DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model — DeepSeek-AI (Aixin Liu et al.), 2024 https://scholar.google.com/scholar?q=DeepSeek-V2%3A+A+Strong%2C+Economical%2C+and+Efficient+Mixture-of-Experts+Language+Model 9. Reducing Transformer Key-Value Cache Size with Cross-Layer Attention — William Brandon, Mayank Mishra, Aniruddha Nrusimha, Rameswar Panda, Jonathan Ragan-Kelley, 2024 https://scholar.google.com/scholar?q=Reducing+Transformer+Key-Value+Cache+Size+with+Cross-Layer+Attention 10. Slim Attention: Cut Your Context Memory in Half Without Loss -- K-Cache Is All You Need for MHA — Nils Graef, Andrew Wasielewski, 2025 https://scholar.google.com/scholar?q=Slim+Attention%3A+Cut+Your+Context+Memory+in+Half+Without+Loss+--+K-Cache+Is+All+You+Need+for+MHA 11. Cache Me If You Must: Adaptive Key-Value Quantization for Large Language Models (AQUA-KV) — Alina Shutova, Vladimir Malinovskii, Vage Egiazarian, Denis Kuznedelev, Denis Mazur, Surkov Nikita, Ivan Ermakov, Dan Alistarh, 2025 https://scholar.google.com/scholar?q=Cache+Me+If+You+Must%3A+Adaptive+Key-Value+Quantization+for+Large+Language+Models+%28AQUA-KV%29 12. xKV: Cross-layer KV-cache compression via aligned singular vector extraction — Chi-Chih Chang, Wei-Cheng Lin, Chien-Yu Lin, Hung-Yueh Chiang, Yash Akhauri, Xilai Dai, Huiqiang Jiang, Yucheng Li, Luis Ceze, Kai-Chiang Wu, Mohamed S. Abdelfattah, 2026 https://scholar.google.com/scholar?q=xKV%3A+Cross-layer+KV-cache+compression+via+aligned+singular+vector+extraction 13. ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference — Hanshi Sun, Li-Wen Chang, Wenlei Bao, Size Zheng, Ningxin Zheng, Xin Liu, Harry Dong, Yuejie Chi, Beidi Chen, 2025 https://scholar.google.com/scholar?q=ShadowKV%3A+KV+Cache+in+Shadows+for+High-Throughput+Long-Context+LLM+Inference 14. DeltaKV: Residual-based KV cache compression via long-range similarity — Jitai Hao, Qiang Huang, Yaowei Wang, Min Zhang, Jun Yu, 2026 https://scholar.google.com/scholar?q=DeltaKV%3A+Residual-based+KV+cache+compression+via+long-range+similarity 15. Linear predictability of attention heads in large language models — Khalid Shaikh et al., 2026 https://scholar.google.com/scholar?q=Linear+predictability+of+attention+heads+in+large+language+models 16. Test-time training / Learning to (Learn at Test Time): RNNs with Expressive Hidden States — Yu Sun et al., 2020 / 2025 https://scholar.google.com/scholar?q=Test-time+training+%2F+Learning+to+%28Learn+at+Test+Time%29%3A+RNNs+with+Expressive+Hidden+States 17. On First-Order Meta-Learning Algorithms (Reptile / FOMAML) — Alex Nichol, Joshua Achiam, John Schulman, 2018 https://scholar.google.com/scholar?q=On+First-Order+Meta-Learning+Algorithms+%28Reptile+%2F+FOMAML%29 18. Titans: Learning to Memorize at Test Time — Ali Behrouz, Peilin Zhong, Vahab Mirrokni, 2025 https://scholar.google.com/scholar?q=Titans%3A+Learning+to+Memorize+at+Test+Time 19. Cartridges: Lightweight and general-purpose long context representations via self-study — Sabri Eyuboglu et al., 2025 https://scholar.google.com/scholar?q=Cartridges%3A+Lightweight+and+general-purpose+long+context+representations+via+self-study 20. KVzip: Query-agnostic KV cache compression with context reconstruction — Jang-Hyun Kim et al., 2025 https://scholar.google.com/scholar?q=KVzip%3A+Query-agnostic+KV+cache+compression+with+context+reconstruction Interactive Visualization: LowRAM: Predicting Values from Keys for KV Cache Compression

Podden och tillhörande omslagsbild på den här sidan tillhör mcgrof. Innehållet i podden är skapat av mcgrof och inte av, eller tillsammans med, Poddtoppen.