MOSAIC: Multi-Objective Search for Allocating Inference Cache Across LLM Decoder Layers
Sravanth Kodavanti, Manjunath Arveti
Key points
From the paper's conclusion- We present MOSAIC, a multi-objective neural architecture search that learns per-layer KV-cache budgets for any eviction method.
Abstract
The Key-Value (KV) cache is the main memory bottleneck of long-context LLM inference. Token eviction methods such as SnapKV, H2O, AdaKV and L2Norm shrink it, but they give every transformer layer the same budget, although layers differ in which tokens they need. We present MOSAIC, a multi-objective neural architecture search that learns per-layer KV-cache budgets for any eviction method. One search maps the trade-off between average budget and task score; its best allocation transfers to every target budget without further search, and an optional budget-constrained search refines it. Across four eviction methods on Llama-3-8B-Instruct and Mistral-7B-Instruct-v0.2, MOSAIC beats uniform allocation in 146 of 154 (task, method, budget) settings, by up to +48 points on RULER and +11.9 on LongBench (LCC). On both models, it reaches the score of uniform allocation with up to 4x less KV cache (75% smaller). Against EvolKV, MOSAIC explores a ~10^40 x larger search space with 4x fewer evaluations and 18% fewer GPU-hours per budget, and scores higher in 5 of 6 settings. The learned allocations consistently favour a small set of middle layers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- KV-Kaizen: Learning Context-Adaptive Cache Compression ChoicesarXiv · 2026
- DropKV: Decoupling Residual-Output Perturbation for Near-Optimal KV-Cache EvictionarXiv · 2026
- Beyond Mean Attention: Diversity-Aware, Layer-Wise Scoring for KV Cache EvictionarXiv · 2026
- Who Should Score the Cache? Mid-Depth Layers Are the Best Judges of KV-Cache EvictionarXiv · 2026
- Random Attention: Rethinking KV Cache Eviction for Efficient ReasoningarXiv · 2026
- RefineKV: Query-Adaptive KV Cache Compression via Attention-Error BoundsarXiv · 2026