MILO: Efficient Many-shot In-Context Learning with Block-wise Low-rank Compression
On the map: Efficient LLM inference and serving → KV cache optimization also fits: Prompt and context compression
Abstract (arXiv)
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.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 40 of its 46 references that are in the map. First posted on arXiv 24 Sep 2026.
Builds on
40 of 46 references.
Closest ancestors · 9
Same direction, newest first
- 2026AdapShot: Adaptive Many-Shot In-Context Learning with Semantic-Aware KV Cache Reuse5 May
- 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference28 Oct
- 2024MatryoshkaKV: Adaptive KV Compression via Trainable Orthogonal Projection16 Oct
- 2024LoRC: Low-Rank Compression for LLMs KV Cache with a Progressive Compression Strategy4 Oct
- 2024Eigen Attention: Attention in Low-Rank Space for KV Cache Compression10 Aug
- 2024Palu: Compressing KV-Cache with Low-Rank Projection30 Jul
- 2024Effectively Compress KV Heads for LLM11 Jun
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models24 Jun
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time26 May
Other references · 31
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024Qwen2.5 Technical Reportcited by 4,713
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2025s1: Simple test-time scalingcited by 1,311
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2019MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalismscited by 653
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 604
19 more
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 567
- 2019An Evaluation Dataset for Intent Classification and Out-of-Scope Predictioncited by 378
- 2024Many-Shot In-Context Learningcited by 203
- 2022Language model compression with weighted low-rank factorizationcited by 192
- 2019Benchmarking Natural Language Understanding Services for building Conversational Agentscited by 166
- 2023ASVD: Activation-aware Singular Value Decomposition for Compressing Large Language Modelscited by 156
- 2021ReduNet: A White-box Deep Network from the Principle of Maximizing Rate Reductioncited by 84
- 2024In-context Learning with Retrieved Demonstrations for Language Models: A Surveycited by 69
- 2024Many-Shot In-Context Learning in Multimodal Foundation Modelscited by 64
- 2024ALISA: Accelerating Large Language Model Inference via Sparsity-Aware KV Cachingcited by 48
- 2025A Survey of Test-Time Compute: From Intuitive Inference to Deliberate Reasoningcited by 40
- 2024Can Many-Shot In-Context Learning Help LLMs as Evaluators? A Preliminary Empirical Studycited by 15
- 2023Breaking the Bank with ChatGPT: Few-Shot Text Classification for Financecited by 12
- 2025Efficient Many-Shot In-Context Learning with Dynamic Block-Sparse Attentioncited by 12
- 2024Merino: Entropy-driven Design for Generative Language Models on IoT Devicescited by 3
- 2025Towards Compute-Optimal Many-Shot In-Context Learningcited by 3
- 2025Are We Scaling the Right Thing? A System Perspective on Test-Time Scalingcited by 2
- 2025Chain-of-Conceptual-Thought Elicits Daily Conversation in Large Language Modelscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Compressing Many-Shots in In-Context Learning
- 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
- 2025ZSMerge: Zero-Shot KV Cache Compression for Memory-Efficient Long-Context LLMs
- 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
- 2024LoCoCo: Dropping In Convolutions for Long Context Compression
- 2026A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression