Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference

Pol G. Recasens, Ferran Agullo, Yue Zhu, Chen Wang, Eun Kyung Lee +3 more
3/11/2025
cs.DCcs.LG

Official code: FerranAgulloLopez/vLLMBatchingMemoryGap (8 stars, Apache-2.0, last commit 2026-03-05). 1 more implementation below.

Abstract

Large language models have been widely adopted across different tasks, but their auto-regressive generation nature often leads to inefficient resource utilization during inference. While batching is commonly used to increase throughput, performance gains plateau beyond a certain batch size, especially with smaller models, a phenomenon that existing literature typically explains as a shift to the compute-bound regime. In this paper, through an in-depth GPU-level analysis, we reveal that large-batch inference remains memory-bound, with most GPU compute capabilities underutilized due to DRAM bandwidth saturation as the primary bottleneck. To address this, we propose a Batching Configuration Advisor (BCA) that optimizes memory allocation, reducing GPU memory requirements with minimal impact on throughput. The freed memory and underutilized GPU compute capabilities can then be leveraged by concurrent workloads. Specifically, we use model replication to improve serving throughput and GPU utilization. Our findings challenge conventional assumptions about LLM inference, offering new insights and practical strategies for improving resource utilization, particularly for smaller language models. The code is publicly available at https://github.com/FerranAgulloLopez/vLLMBatchingMemoryGap.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Fork of vLLM for developing the paper "Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference"

82C, C++Jun 11, 20257 months agoApache-2.0

An implementation of the paper "Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference"

10TeX, ShellOct 25, 202510 months ago

Similar Papers

Cite this paper

@article{recasens2025mind,
  title  = {Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inference},
  author = {Pol G. Recasens and Ferran Agullo and Yue Zhu and Chen Wang and Eun Kyung Lee and Olivier Tardieu and Jordi Torres and Josep Ll. Berral},
  year   = {2025},
  eprint = {2503.08311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.08311v2}
}

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/2503.08311.svg)](https://codeofpaper.com/paper/2503.08311)

Discussion