ConfigSpec: Profiling-Based Configuration Selection for Distributed Edge--Cloud Speculative LLM Serving
Organizations: Virginia Tech, Blacksburg, Virginia, USA · Queen’s University Belfast, Belfast, Northern Ireland, UK
Abstract
Speculative decoding enables collaborative Large Language Model (LLM) inference across cloud and edge by separating lightweight token drafting from heavyweight verification. While prior systems show performance and cost benefits, practical deployment requires navigating a large configuration space spanning draft model variants, quantisation levels, speculative lengths, and heterogeneous edge devices. This paper presents ConfigSpec, a configurationselection framework for distributed speculative LLM serving. ConfigSpec profiles edge devices and draft-target alignment, and models drafting throughput, acceptance rate, and power to evaluate goodput, verification cost efficiency, and energy efficiency across the joint configuration space. Our analysis across three edge platforms and two LLM families reveals structurally conflicting optima. Firstly, goodput is maximised by the smallest, fastest draft model at device-dependent speculative lengths (K*=2-10). Secondly, both cost and energy efficiency converge to K=2 due to a dominant bonus-token effect-with cost favouring the largest drafter for its high acceptance rate and energy favouring the smallest for its low power draw. These conflicts confirm that no single fixed configuration can simultaneously optimise all objectives, underscoring the need for profiling-based configuration selection in disaggregated edge-cloud LLM inference.
Figures & tables
| Target: Llama-3.1-70B | Target: Qwen3-32B | ||
|---|---|---|---|
| Draft Model | Draft Model | ||
| Llama-3.2-1B | 0.462 | Qwen3-0.6B | 0.378 |
| Llama-3.2-1B-Instruct | 0.546 | Qwen3-1.7B | 0.466 |
| Llama-3.2-3B-Instruct | 0.572 | Qwen3-4B | 0.487 |
| Llama-3.1-8B | 0.622 | Qwen3-8B | 0.522 |
| Target | Device | Objective | Configuration | ||||
| Llama-3.1-70B | RPi 4B | Max Goodput | Llama-3.2-1B-Inst Q4 | 2 | 2.44 | 1334K | — |
| Min Cost/tok | Llama-3.1-8B-Inst Q4 | 2 | 0.77 | 1401K | — | ||
| Min Energy | no power data | ||||||
| RPi 5 | Max Goodput | Llama-3.2-1B-Inst Q4 | 6 | 4.50 | 763K | 0.84 | |
| Min Cost/tok | Llama-3.1-8B-Inst Q4 | 2 | 1.55 | 1401K | 3.75 | ||
| Min Energy | Llama-3.2-1B-Inst Q4 | 2 | 3.76 | 1334K | 0.48 | ||
LLM Inference Efficiency
Large language model inference efficiency reduces the time, memory, energy, and cost of generating useful outputs.
See all 351 papers