# MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression

- **ID:** 1067
- **Kind:** paper
- **URL:** https://arxiv.org/abs/2609.29913
- **Authors:** Youpeng Zhao, Tian Tan, Liqian Peng, Jun Wang, Alec Go
- **Venue:** arXiv / Google; University of Central Florida
- **Publisher:** arXiv / Google; University of Central Florida
- **Published:** 2026
- **Source:** arxiv
- **Language:** en
- **Access:** free
- **License:** © 2026 Google (Technical Report); arXiv perpetual non-exclusive license 1.0 for abs posting
- **License family:** Other (auto-classified)
- **Tags:** milo, kv-cache, many-shot-icl, block-wise-low-rank, svd, entropy-rank-allocation, qwen2.5, l4, google, ucf, teksedge, palu, asvd, flexgen, triton
- **Topics:** many-shot ICL; KV cache compression; block-wise low-rank; inference efficiency
- **Added:** 2026-09-26
- **Verified:** 2026-09-26
- **Research status:** done
- **Needs deep evaluation:** no
- **Page:** https://papers.projxon.ai/entries/1067

## Summary

Google + UCF technical report (Zhao/Tan/Peng/Wang/Go; arXiv 2609.29913v1) introduces MILO for many-shot in-context learning KV-cache memory. Observations: pre-RoPE keys are more low-rank than values; more shots add redundancy; rank needs vary across example blocks. MILO partitions the many-shot KV into multi-example blocks, applies separate K/V SVD, and greedily allocates a global rank budget by spectral-entropy marginal gains. At inference BM25 retrieves selected compressed blocks, fused Triton kernels reconstruct them (CUDA streams + graphs), then sparse attention runs. On Qwen2.5-3B/7B (Banking77, Clinic150, TREC, NLU, MathQA, SVAMP; 512-shot; 50% rank budget) on an NVIDIA L4: up to ~50% KV memory reduction and up to 1.8× throughput vs prior low-rank baselines; avg accuracy 0.647/0.725 vs Full 0.677/0.753 and ahead of Palu/ASVD. Orthogonal stack with INT8/KIVI. No public code found at catalog time.

## Attributes

- **Purpose:** Compress many-shot demonstration KV caches via block-wise low-rank SVD plus entropy-based dynamic rank allocation to cut memory and raise throughput
- **Scale:** Qwen2.5-3B and 7B FP16; 6 ICL tasks; 512-shot under 50% rank budget; single NVIDIA L4-24GB; baselines Full Cache / ASVD / Palu; ablations on compression ratio, block size (~32 sweet spot), rank allocation, Triton/CUDA-graph kernels; MILO+INT8/KIVI table
- **Domain:** many-shot ICL; KV cache compression; block-wise low-rank; inference efficiency
- **Used for:** Many-shot ICL serving memory; local/long-context KV footprint reduction; complementary to KV quantization and sparse attention
- **Time period:** arXiv 2609.29913v1 published 2026-09-24T14:52:24Z; PDF dated 2026-09-25; X https://x.com/TeksEdge/status/2103696064276824395 at 2026-09-26T04:00:01Z; cataloged 2026-09-26
- **Author type:** industry/academia (Google; University of Central Florida)

## From the source (fetched 2026-10-03)

- **Published:** Sep 24, 2026 (arXiv)
- **arXiv categories:** cs.CL (arXiv)
- **Author comment:** Technical Report (arXiv)
- **Citations:** 0 (Semantic Scholar)
- **References:** 46 (Semantic Scholar)

## Abstract

Many-shot in-context learning (ICL) enables large language models (LLMs) to adapt to complex tasks by conditioning on thousands of demonstration examples, but this paradigm shifts the inference efficiency bottleneck to the key-value (KV) cache memory. Due to the linear scaling behavior of the KV cache, storing these intermediate tensors has become a paramount challenge for both online serving and on-device deployment. To address this issue, we propose a novel compression framework, termed MILO, that exploits the low-rank redundancy inherent in many-shot contexts. Specifically, MILO features a block-wise low-rank compression strategy that compresses the KV cache at the block granularity, where each block contains multiple many-shot examples. Furthermore, to handle the heterogeneous context density across different blocks, MILO dynamically allocates rank budgets based on the information entropy, preserving the fidelity of critical blocks while aggressively compressing redundant ones. Experimental results on Qwen2.5 models demonstrate that our method achieves up to 50% reduction in KV cache memory and 1.8x throughput improvement, with negligible performance degradation on classification and reasoning benchmarks, significantly outperforming prior baselines.

## Research notes

- Hudson user-fed 2026-09-26. X https://x.com/TeksEdge/status/2103696064276824395 (@TeksEdge / David Hendrickson); photo ALT https://arxiv.org/pdf/2609.29913 → abs 2609.29913. Dedup clean for MILO / status id / arXiv id (prior TeksEdge rows e.g. 661 are unrelated). Related but distinct: id 1485 techNmak KV-cache *idea* explainer (GQA/MQA/quant/sliding-window) — not a duplicate. Thread conversation_id:2103696064276824395 via curator-bot: 11 replies, no alternate primary paper. Authors Google+UCF; © 2026 Google; no public code/repo found (GitHub search empty). Dump: /workspace/curator/research/milo-kv-teksedge-2103696064276824395-20260926/

## Cites, within this collection

- [s1: Simple test-time scaling](https://papers.projxon.ai/entries/3) (paper 2025, #3)

## Similar entries

- [Scaling KV Cache Compression to Frontier Models (X thread by @RampLabs)](https://papers.projxon.ai/entries/740) (thread, #740)
- [KV cache as GPU-memory bottleneck in Transformer serving (GQA/MQA, quantization, sliding window)](https://papers.projxon.ai/entries/1066) (idea, #1066)
- [Shard: getting to 10x KV cache compression](https://papers.projxon.ai/entries/621) (other, #621)
- [VBR: Variable Bit-Rate KV Cache for llama.cpp](https://papers.projxon.ai/entries/631) (code, #631)
- [Still: Amortized KV Cache Compaction in a Single Forward Pass](https://papers.projxon.ai/entries/492) (paper, #492)
- [Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attention](https://papers.projxon.ai/entries/564) (paper, #564)
