MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devices
Eunjeong Kim, Yeong Jun Jeon, Myeonggyun Han
Abstract
Speculative decoding accelerates autoregressive large language model (LLM) inference by using a lightweight draft model to speculate multiple tokens, reducing expensive target model decoding steps. Its effectiveness depends heavily on draft selection, motivating adaptive methods that exploit variation across inputs and generation stages. On memory-constrained edge devices, however, these methods often fail to improve end-to-end throughput due to the overhead of switching between draft models. We identify a key limitation in this setting: the mismatch between draft selection and draft availability under tight memory budgets. To address this challenge, we present MemSpec, a prediction-guided, memory-aware runtime for adaptive speculative decoding on edge devices. MemSpec decouples draft selection from execution through proactive resident working-set management. A lightweight predictor estimates draft effectiveness from prompt and generation context, while a memory-aware scheduler reduces reactive model loading overhead. Experiments on a Jetson Orin Nano show that MemSpec improves steady-state generation throughput by 40.7% on average over state-of-the-art bandit-based adaptive methods while closely approaching the oracle upper bound.
Create a lesson
Related papers
Netkit: Specializing Linux Packet Delivery for Container Networks
Daniel Borkmann, Paul Chaignon
Grouper: Scheduling Groups for Multi-Tenant Microsecond-Scale Microservices
Koosha Kazemi, Mohammad Siavashi, Ahmad Siavashi et al.
SeqMoE: Toward Full-Load Performance via Predictive and Graph-Compatible MoE Offloading
Zihan Wang, Yuqi Wang, Lei Gong et al.
AKTS: Sub-Microsecond Kernel Policy Switching for Language-Model Agents
Mohammadali Khodabandehlou, Mahdi Alizadeh
Violet: Enabling Full Virtualization for M-mode RTOS on RISC-V
Taro Kito, Ryosuke Yamamoto, Keisuke Horii et al.
AutoUVM: Automated Prefetching Framework for LLMs under UVM Oversubscription
Mao Lin, Hui Feng, Xianzhong Ding et al.