PackInfer: Compute- and I/O-Efficient Attention for Batched LLM Inference

Rui Ning, Wei Zhang, Fan Lai
2/3/2026
cs.DCcs.LG
transformer-attention

No confident code implementation found for this paper.

Abstract

Attention efficiency is critical to large language model (LLM) inference. While prior advances optimize attention execution for individual requests (e.g., FlashAttention), production LLM serving relies on batching requests with highly heterogeneous sequence lengths for high serving throughput.

Show full abstract

This mismatch induces severe computation and I/O imbalance, exacerbates stragglers, and underutilizes GPU resources. We present PackInfer, a kernel-level attention framework that enables compute- and I/O-aware execution for heterogeneous batched inference. PackInfer orchestrates batched requests into load-balanced execution groups, effectively saturating GPU utilization by packing multiple requests into unified kernel launches. By constructing attention kernels directly over packed query-key regions, PackInfer eliminates redundant computation and balances thread-block execution. It then incorporates I/O-aware grouping that co-locates shared-prefix requests and reorganizes KV caches into group-contiguous layouts, reducing memory fragmentation and redundant data movement as generation evolves. Evaluations on real-world workloads show that PackInfer reduces inference latency by 13.0-20.1%, and improves throughput by 20% compared to the state-of-the-art FlashAttention.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ning2026packinfer,
  title  = {PackInfer: Compute- and I/O-Efficient Attention for Batched LLM Inference},
  author = {Rui Ning and Wei Zhang and Fan Lai},
  year   = {2026},
  eprint = {2602.06072},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.06072v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.06072.svg)](https://codeofpaper.com/paper/2602.06072)

Discussion