lm-Meter: Unveiling Runtime Inference Latency for On-Device Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly integrated into everyday applications, but their prevalent cloud-based deployment raises growing concerns around data privacy and long-term sustainability. Running LLMs locally on mobile and edge devices (on-device LLMs) offers the promise of enhanced privacy, reliability, and reduced communication costs. However, realizing this vision remains challenging due to substantial memory and compute demands, as well as limited visibility into performance-efficiency trade-offs on resource-constrained hardware. We propose lm-Meter, the first lightweight, online latency profiler tailored for on-device LLM inference. lm-Meter captures fine-grained, real-time latency at both phase (e.g., embedding, prefill, decode, softmax, sampling) and kernel levels without auxiliary devices. We implement lm-Meter on commercial mobile platforms and demonstrate its high profiling accuracy with minimal system overhead, e.g., only 2.58% throughput reduction in prefill and 0.99% in decode under the most constrained Powersave governor. Leveraging lm-Meter, we conduct comprehensive empirical studies revealing phase- and kernel-level bottlenecks in on-device LLM inference, quantifying accuracy-efficiency trade-offs, and identifying systematic optimization opportunities. lm-Meter provides unprecedented visibility into the runtime behavior of LLMs on constrained platforms, laying the foundation for informed optimization and accelerating the democratization of on-device LLM systems. Code and tutorials are available at https://github.com/amai-gsu/LM-Meter.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 38 of its 60 references that are in the map. First posted on arXiv 7 Oct 2025.
Builds on
38 of 60 references.
References · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
26 more
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023Qwen Technical Reportcited by 3,344
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,868
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2022Fast Inference from Transformers via Speculative Decodingcited by 1,653
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,121
- 2023Accelerating Large Language Model Decoding with Speculative Samplingcited by 1,006
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 800
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 526
- 2025SmolLM2: When Smol Goes Big -- Data-Centric Training of a Small Language Modelcited by 335
- 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 223
- 2024MELTing point: Mobile Evaluation of Language Transformerscited by 36
- 2024A Survey: Collaborative Hardware and Software Design in the Era of Large Language Modelscited by 23
- 2023Unveiling Energy Efficiency in Deep Learning: Measurement, Prediction, and Scoring across Edge Devicescited by 17
- 2022The Future of Consumer Edge-AI Computingcited by 12
- 2024Understanding Large Language Models in Your Pockets: Performance Study on COTS Mobile Devicescited by 10
- 2022LEAF + AIO: Edge-Assisted Energy-Aware Object Detection for Mobile Augmented Realitycited by 9
- 2024Communication Compression for Tensor Parallel LLM Inferencecited by 7
- 2024CarbonCP: Carbon-Aware DNN Partitioning with Conformal Prediction for Sustainable Edge Intelligencecited by 6
- 2023EPAM: A Predictive Energy Model for Mobile AIcited by 4
- 2023DeepEn2023: Energy Datasets for Edge Artificial Intelligencecited by 4
- 2025GreenAuto: An Automated Platform for Sustainable AI Model Design on Edge Devicescited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Parameter-Free Encoders Remain Viable for RDB Foundation Modelscited by 2
- 2026Transferable Latency Prediction for Fast LLM Screening on Heterogeneous Edge Devicescited by 0
- 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?cited by 0
- 2026HybridInfer: Thermal-Aware Reinforcement-Learning Tier Routing for On-Device, Edge, and Cloud LLM Inferencecited by 0
- 2026ixi-sLM: On-Device sLM for AI Call Agent Servicecited by 0
- 2026ixi-sLM: On-Device sLM for AI Call Agent Service14 Oct 2026
- 2026How Do Prompt Variations Affect Energy Consumption in On-Device LLMs?1 Sep 2026
- 2026HybridInfer: Thermal-Aware Reinforcement-Learning Tier Routing for On-Device, Edge, and Cloud LLM Inference14 Jul 2026
- 2026Parameter-Free Encoders Remain Viable for RDB Foundation Models6 Jul 2026
- 2026Transferable Latency Prediction for Fast LLM Screening on Heterogeneous Edge Devices11 May 2026