SPADE: Speculative Decoding for Precise and Low Cost Distributed Edge Cloud Inference

Divya Jyoti Bajpai, Kishan Kumar Upadhyay, Manjesh Kumar HanawalarXiv 2026

TL;DR

SPADE is a distributed inference framework that intelligently splits Large Language Model (LLM) workloads between edge devices and the cloud using speculative decoding. By offloading sequential token generation to a lightweight local model and using the cloud purely for parallel verification, SPADE slashes cloud compute calls by over 76% with zero loss in target model accuracy.

What Problem Does This Paper Address?

Deploying state-of-the-art LLMs presents a classic engineering dilemma: running massive models entirely in the cloud delivers top-tier accuracy but incurs high latency and expensive per-token computational costs due to the autoregressive (token-by-token) nature of generation. Conversely, compressing and running smaller models directly on edge devices (like smartphones) reduces cloud dependency but severely degrades the quality of the output.

Existing distributed inference methods try to bridge this gap via layer-splitting or early-exit classifiers, but they typically require task-specific heuristics or extensive model retraining, and they often sacrifice accuracy. The authors of SPADE tackle a fundamental question: How can we leverage edge resources to minimize expensive cloud utilization without compromising the accuracy of full-scale models?

Methods

The authors introduce SPADE (Speculative Decoding for Distributed Inference), a plug-and-play framework that adapts speculative decoding to an edge-cloud architecture. The system operates without any model retraining through a two-stage pipeline:

  1. Drafting Stage (Edge): A compact, lightweight draft model ($M_q$) deployed on the edge device autoregressively generates a block of $d$ candidate tokens. Because the model is small, this local generation is fast and low-latency.
  2. Verification Stage (Cloud): The edge device transmits the block of $d$ candidate tokens to a powerful verifier model ($M_p$) hosted in the cloud. The cloud model evaluates all candidate tokens simultaneously in a single parallel forward pass.

Tokens that match the verifier's distribution are accepted. If a token is rejected, SPADE samples a replacement token from an adjusted distribution to correct the draft model's bias, discards the remaining downstream draft tokens, and updates the context. This mathematical correction ensures that the final output is statistically identical to running the large cloud model alone.

The SPADE edge-cloud pipeline architecture

Datasets

The framework was evaluated across a diverse set of Natural Language Processing (NLP) tasks using two primary datasets:

  • SpecBench: A comprehensive benchmark specifically designed for speculative decoding, spanning six distinct subtasks: multi-turn conversation, summarization, translation, retrieval-augmented generation, question answering, and mathematical reasoning.
  • CNN/DailyMail: A standard dataset used to evaluate text summarization performance.

Key Insights and Ideas

  • Asymmetric Mapping: Speculative decoding perfectly maps to edge-cloud asymmetry. Autoregressive generation is memory-bound and slow, making it ideal for a small model on the edge. Verification is compute-bound and highly parallelizable, making it ideal for powerful cloud GPUs.
  • The Power of Alignment: The efficiency of SPADE depends heavily on how well the edge model's outputs align with the cloud model's expectations. When alignment is strong, more tokens are accepted per cloud pass, driving down costs.
  • Tuning the "Proposal Window" ($d$): The number of draft tokens ($d$) generated by the edge before calling the cloud is a critical hyperparameter. If $d$ is too small, the system suffers from high network synchronization overhead. If $d$ is too large, the draft model wastes compute on tokens that will likely be rejected.
Impact of draft token length (d) on average target model calls

Key Results

The authors validated SPADE using LLaMA-3.2-1B as the edge draft model and LLaMA-3.1-8B as the cloud verifier model.

  • Drastic Cloud Cost Reduction: On the CNN/DailyMail dataset, SPADE reduced the number of target cloud model calls by 76%. On SpecBench, cloud calls dropped by 77.4%.
  • Substantial Speedups: Cloud runtime plummeted to 0.23×–0.24× of the baseline, translating to roughly a 4x reduction in cloud resource utilization time.
  • Zero Accuracy Loss: Because of the exact verification math, SPADE achieved virtually identical performance scores to the full cloud model across all metrics (including BLEU, ROUGE, and CIDEr scores), successfully bridging the gap between edge efficiency and cloud fidelity.

Limitations and Future Work

While SPADE provides an elegant solution to cloud cost reduction, the authors note some practical boundaries:

  • Model Alignment Dependency: If the edge model and cloud model are poorly aligned, the token acceptance rate drops significantly, which increases cloud calls and degrades the system's efficiency gains.
  • Network Latency: The framework assumes a stable connection to transmit token blocks. In highly volatile network environments, the communication overhead of sending draft tokens back and forth could bottleneck the latency advantages.
  • Future Directions: Promising future work includes dynamically adjusting the draft length $d$ based on real-time network bandwidth and token acceptance rates.

Summary updated

BibTeX
@misc{bajpai2026spade,
  author = {Divya Jyoti Bajpai and Kishan Kumar Upadhyay and Manjesh Kumar Hanawal},
  title = {{SPADE: Speculative Decoding for Precise and Low Cost Distributed Edge Cloud Inference}},
  year = {2026},
  eprint = {2608.13076},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.13076},
}
Figure