Local Inference of LLMs on Long Contexts: A Data Systems Perspective
Not on the map. Why?
Abstract (arXiv)
Large language models can solve complex problems across a variety of subjects, such as mathematics and coding. For such complex analytical tasks, models with a long context perform better. Serving models with long context is currently mostly done on powerful systems with multiple GPUs, which are too expensive for most users. An alternative is local inference, or serving a model on a user's own machine, which removes per-token costs and rate limits, besides keeping sensitive data private and giving users full control over the models they run. The common understanding, however, is that local LLMs need compression (e.g., quantization) to run on a single GPU. In this paper, we set out to study the limitations that prevent serving long-context models for single users, besides the capacity issue. Rather than characterizing a single model on one GPU, we analyze how different models behave across several GPU generations. This lets us uncover not just individual bottlenecks but broader trends in where inefficiencies arise. Our analysis confirms that, as expected, self-attention dominates the runtime for long-context inference. More unexpectedly, our evaluation reveals that the current structure of self-attention leaves key GPU resources significantly underutilized, and the newest GPU is often the least well served. Many of these findings are fundamentally data management problems, from paging the KV cache to improving cache utilization and synchronization in the GPU, which is why we bring this study to the Data Systems community. To engage this community, we present our findings as a series of experimental observations and formulate recommendations for future work.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 36 of its 71 references that are in the map. Submitted 20 Oct 2026.
Builds on
36 of 71 references.
References · 36
- 2017Attention Is All You Needcited by 62,125
- 2015Deep Residual Learning for Image Recognitioncited by 53,116
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,787
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2020Scaling Laws for Neural Language Modelscited by 7,118
- 2016Layer Normalizationcited by 6,002
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,767
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,272
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,787
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
24 more
- 2020GLU Variants Improve Transformercited by 2,000
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,467
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,372
- 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 993
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 978
- 2024A Survey on Large Language Models for Code Generationcited by 695
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 610
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 254
- 2026Towards End-to-End Automation of AI Researchcited by 206
- 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 119
- 2022Zeus: Understanding and Optimizing GPU Energy Consumption of DNN Trainingcited by 84
- 2023Compressing LLMs: The Truth is Rarely Pure and Never Simplecited by 73
- 2025Energy Considerations of Large Language Model Inference and Efficiency Optimizationscited by 65
- 2024NEO: Saving GPU Memory Crisis with CPU Offloading for Online LLM Inferencecited by 44
- 2025Mind the Memory Gap: Unveiling GPU Bottlenecks in Large-Batch LLM Inferencecited by 36
- 2019Chainer: A Deep Learning Framework for Accelerating the Research Cyclecited by 23
- 2024Towards Pareto Optimal Throughput in Small Language Model Servingcited by 6
- 2025FlashFormer: Whole-Model Kernels for Efficient Low-Batch Inferencecited by 4
- 2020A Study of the Fundamental Performance Characteristics of GPUs and CPUs for Database Analytics (Extended Version)cited by 3
- 2025Can Tensor Cores Benefit Memory-Bound Kernels? (No!)cited by 3
- 2026Google's Training Supercomputers from TPU v2 to Ironwood: Architectural Stability, Scale, Resilience, Power Efficiency, and Sustainability Across Five Generationscited by 2
- 2025Long-Context Attention Benchmark: From Kernel Efficiency to Distributed Context Parallelismcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024LLM Inference Unveiled: Survey and Roofline Model Insights
- 2025Breaking the Boundaries of Long-Context LLM Inference: Adaptive KV Management on a Single Commodity GPU
- 2024Infinite-LLM: Efficient LLM Service for Long Context with DistAttention and Distributed KVCache
- 2025InfiniteHiP: Extending Language Model Context Up to 3 Million Tokens on a Single GPU
- 2025Taming the Titans: A Survey of Efficient LLM Inference Serving
- 2026Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference
- 2026Asymptotic Optimality of cμ-Rule for LLM Inference Scheduling under Memory Constraint
- 2024Discovering the Gems in Early Layers: Accelerating Long-Context LLMs with 1000x Input Token Reduction