RooflineBench: A Benchmarking Framework for On-Device LLMs via Roofline Analysis
Not on the map. Why?
Abstract (arXiv)
The transition toward localized intelligence through Small Language Models (SLMs) has intensified the need for rigorous performance characterization on resource-constrained edge hardware. However, objectively measuring the theoretical performance ceilings of diverse architectures across heterogeneous platforms remains a formidable challenge. In this work, we propose a systematic framework based on the Roofline model that unifies architectural primitives and hardware constraints through the lens of operational intensity (OI). By defining an inference-potential region, we introduce the Relative Inference Potential as a novel metric to compare efficiency differences between Large Language Models (LLMs) on the same hardware substrate. Extensive empirical analysis across diverse compute tiers reveals that variations in performance and OI are significantly influenced by sequence length. We further identify a critical regression in OI as model depth increases. Additionally, our findings highlight an efficiency trap induced by hardware heterogeneity and demonstrate how structural refinements, such as Multi-head Latent Attention (MLA), can effectively unlock latent inference potential across various hardware substrates. These insights provide actionable directions for hardware-software co-design to align neural structures with physical constraints in on-device intelligence. The released code is available in the Appendix C.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 22 of its 28 references that are in the map. First posted on arXiv 12 Feb 2026.
Builds on
22 of 28 references.
References · 22
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2023LLaVA-Med: Training a Large Language-and-Vision Assistant for Biomedicine in One Daycited by 1,305
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 853
- 2024TinyLlama: An Open-Source Small Language Modelcited by 618
10 more
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 223
- 2025MiniCPM-V 4.5: Cooking Efficient MLLMs via Architecture, Data, and Training Recipecited by 186
- 2023LLM in a flash: Efficient Large Language Model Inference with Limited Memorycited by 177
- 2024A Review on Edge Large Language Models: Design, Execution, and Applicationscited by 100
- 2024Densing Law of LLMscited by 40
- 2025Production-Grade Local LLM Inference on Apple Silicon: A Comparative Study of MLX, MLC-LLM, Ollama, llama.cpp, and PyTorch MPScited by 5
- 2025PLM: Efficient Peripheral Language Models Hardware-Co-Designed for Ubiquitous Computingcited by 4
- 2025Edge Deployment of Small Language Models, a comprehensive comparison of CPU, GPU and NPU backendscited by 4
- 2025GTA: Grouped-head latenT Attentioncited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Gated Subspace Inference for Transformer Accelerationcited by 0
- 2026Think Before You Grid-Search: Floor-First Triage for LLM Servingcited by 0
- 2026Neuromorphic Diffusion Language Models: Addressing Compute and Memory Bottlenecks via Sparsity and Block Denoisingcited by 0
- 2026GGUF-Metadata Prediction of Single-Sequence llama.cpp Throughput Across Three Systemscited by 0
- 2026Beyond LLM Serving: Characterizing Vision-Language-Action Workloads for Embodied AI System Designcited by 0
- 2026Beyond LLM Serving: Characterizing Vision-Language-Action Workloads for Embodied AI System Design4 Oct 2026
- 2026GGUF-Metadata Prediction of Single-Sequence llama.cpp Throughput Across Three Systems14 Sep 2026
- 2026Neuromorphic Diffusion Language Models: Addressing Compute and Memory Bottlenecks via Sparsity and Block Denoising24 Jul 2026
- 2026Think Before You Grid-Search: Floor-First Triage for LLM Serving7 Jul 2026
- 2026Gated Subspace Inference for Transformer Acceleration4 May 2026