WANSpec: Leveraging Global Compute Capacity for LLM Inference
Noah Martin, Fahad Dogar
TL;DR
WANSpec addresses the problem of uneven global load and tail latency in LLM inference by offloading part of speculative decoding to underutilized WAN-connected compute. It introduces a controller–worker architecture that uses entropy-based predictions to add redundant draft decoding only when needed, preserving latency while reducing the draft-model workload. The authors validate the approach through a measurement study across AWS regions, a flexible simulator, and cloud deployments, showing substantial reductions in draft-token work and robust latency behavior under realistic conditions. This work demonstrates a practical path to exploiting global compute capacity to relieve data-center pressure and reduce costs without sacrificing interactive response times.
Abstract
Data centers capable of running large language models (LLMs) are spread across the globe. Some have high end GPUs for running the most advanced models (100B+ parameters), and others are only suitable for smaller models (1B parameters). The most capable GPUs are under high demand thanks to the rapidly expanding applications of LLMs. Choosing the right location to run an LLM inference workload can have consequences on the latency of requests due to these high demands. In this work, we explore options to shift some aspects of inference to the under-utilized data centers. We first observe the varying delays affecting inference in AWS services from different regions, demonstrating that load is not spread evenly. We then introduce WANSpec, which offloads part of LLM generation to the under-utilized data centers. In doing so, WANSpec can mitigate capacity issues as well as effectively use on-site compute (ie at universities) to augment cloud providers. This is done with speculative decoding, a widely used technique to speed up auto-regressive decoding, by moving the draft model to the under-utilized compute resources. Our experiments in simulation and cloud deployments show that WANSpec can judiciously employ redundancy to avoid increases in latency while still reducing the forward passes of speculative decoding's draft model in high demand data centers by over 50%.
