mlsanityData to 14 Oct 2026

Requests of a Feather Must Flock Together: Batch Size vs. Prefix Homogeneity in LLM Inference

arXiv 2605.06046 ↗First posted 7 May 2026cs.LGcited by 0

On the map: Efficient LLM inference and serving → KV cache optimization

Abstract (arXiv)

Auto-regressive token generation in large language models is memory-bound because it requires "attending to" key and value tensors (KV cache) of all previous tokens. Prior work aims to improve the efficiency of this decode process by batching multiple requests together, and maximizing batch size subject to GPU memory constraints. The key observation of our work is that with prefix-sharing workloads, smaller, prefix-homogeneous batches - where all requests share a common prefix - can achieve higher decode throughput than larger, heterogeneous batches, due to better spatial and temporal locality during KV cache accesses. However, prefix-aware schedulers in state-of-the-art inference engines maximize prefix reuse within a batch only to reduce KV cache memory footprint, but do not stop batch formation at smaller homogeneous batches that could have performed better. Further, we show that shared prefix detection in existing schedulers relies on radix-tree traversals, incurring substantial CPU overhead that is often comparable to GPU execution time. This paper presents Feather, a prefix-aware scheduler that uses reinforcement learning (RL) to learn the optimal tradeoff between batch size and prefix homogeneity. We also introduce Chunked Hash Tree (CHT), a lightweight data structure that enables fast prefix detection and efficient request selection for the RL scheduler, avoiding expensive tree traversals. We integrate Feather into vLLM and SGLang, and our evaluation shows that Feather achieves 2-10X higher end-to-end throughput as compared to existing schedulers, while doing no worse than the status quo when the workload does not have enough prefix sharing. Feather achieves these gains by reducing the total number of KV cache accesses, surpassing the performance of prefix-aware attention kernels that have the same goal.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 23 of its 39 references that are in the map. First posted on arXiv 7 May 2026.

Builds on

23 of 39 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025PAT: Accelerating LLM Decoding via Prefix-Aware Attention with Resource Efficient Multi-Tile Kernel27 Nov
  2. 2025Jenga: Effective Memory Management for Serving LLM with Heterogeneity24 Mar
  3. 2024DeFT: Decoding with Flash Tree-attention for Efficient Tree-structured LLM Inference30 Mar
  4. 2024ChunkAttention: Efficient Self-Attention with Prefix-Aware KV Cache and Two-Phase Partition23 Feb
  5. 2023Efficient Memory Management for Large Language Model Serving with PagedAttention12 Sep

Other references · 18

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  4. 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
  5. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
  6. 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 526
  7. 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 414
  8. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 379
  9. 2021True Few-Shot Learning with Language Modelscited by 344
  10. 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 233
  11. 2024LoongServe: Efficiently Serving Long-Context Large Language Models with Elastic Sequence Parallelismcited by 112
  12. 2024vAttention: Dynamic Memory Management for Serving LLMs without PagedAttentioncited by 98
6 more
  1. 2024A Complete Survey on LLM-based AI Chatbotscited by 71
  2. 2024POD-Attention: Unlocking Full Prefill-Decode Overlap for Faster LLM Inferencecited by 47
  3. 2024BatchLLM: Optimizing Large Batched LLM Inference with Global Prefix Sharing and Throughput-oriented Token Batchingcited by 32
  4. 2025Optimizing LLM Inference Throughput via Memory-aware and SLA-constrained Dynamic Batchingcited by 8
  5. 2025BucketServe: Bucket-Based Dynamic Batching for Smart and Efficient LLM Inference Servingcited by 5
  6. 2017Exploring the Performance Benefit of Hybrid Memory System on HPC Environmentscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AlignedServe: Orchestrating Prefix-aware Batching to Build a High-throughput and Computing-efficient LLM Serving System
  2. 2024ShadowKV: KV Cache in Shadows for High-Throughput Long-Context LLM Inference
  3. 2025Striking the Right Balance between Compute and Copy: Improving LLM Inferencing Under Speculative Decoding
  4. 2023SARATHI: Efficient LLM Inference by Piggybacking Decodes with Chunked Prefills
  5. 2026DualDecoder: Accelerate Long Context LLM Inference by Predictive Prefetch
  6. 2025HAMburger: Accelerating LLM Inference via Token Smashing
  7. 2025Optimal Scheduling Algorithms for LLM Inference: Theory and Practice
  8. 2026Comparative Characterization of KV Cache Management Strategies for LLM Inference