Multi-SPIN: Multi-Access Speculative Inference for Cooperative Token Generation at the Edge

Haotian Zheng, Zhanwei Wang, Mingyao Cui, Chang Cai, Hongyang Du, Kaibin HuangarXiv 2026

TL;DR

Multi-SPIN introduces a distributed speculative inference framework that splits the LLM generation workload between resource-constrained edge devices (running small drafting models) and an edge server (verifying drafts in parallel batches). By jointly optimizing draft lengths and uplink bandwidth allocation, the framework overcomes device heterogeneity to boost total token throughput by up to 88% compared to standard baselines.

What Problem Does This Paper Address?

Deploying Large Language Models (LLMs) at the network edge (e.g., for 6G applications) enables low-latency, privacy-preserving generative AI services. However, edge servers often struggle with the massive computational and memory demands of hosting large models for multiple concurrent users.

Speculative Inference (SPIN) mitigates this by using a lightweight Small Language Model (SLM) on the local device to quickly generate a "draft" sequence of tokens. The edge server then verifies these tokens in a single parallel forward pass, which is much faster than standard autoregressive generation.

However, scaling SPIN to a multiuser system introduces a major bottleneck: device heterogeneity. Users have vastly different hardware capabilities, wireless channel conditions, and prompt types. This diversity means some users draft slowly or have low token acceptance rates, creating "stragglers" that stall the server's batched verification process. This paper addresses how to jointly optimize draft lengths and wireless bandwidth allocation to maximize the system's total token "goodput" (the number of accepted tokens generated per second across all users).

Fig. 1: Illustration of speculative-inference operations and models.

Methods

The authors propose Multi-SPIN, a framework that coordinates multiuser draft generation and batched server-side verification. They analyze the optimization problem under two regimes:

  1. Homogeneous Draft Lengths: To simplify server-side batching, all devices are assigned a uniform draft length. The authors prove that the optimal bandwidth allocation strategy equalizes the per-token multi-access latency across all devices, effectively compensating weaker devices. The optimal draft length is then derived in closed form using continuous relaxation and the Lambert W function.
  2. Heterogeneous Draft Lengths: To unlock more performance, the authors allow devices to have different draft lengths, using zero-padding at the server to maintain batching compatibility. While this couples the bandwidth and draft length variables into a complex, NP-hard problem, the authors develop an optimal decomposition method. By using multi-access latency as an intermediate variable, they reduce the high-dimensional problem into an efficient two-dimensional grid search over just two scalar variables.
Fig. 2: Overview of the Multi-SPIN framework.

Datasets

The framework was evaluated using pairs of models (TinyLlama-1.1B paired with Llama-2-7B, and Qwen3.5-0.8B paired with Qwen3.5-27B) across four diverse benchmarks to simulate heterogeneous workloads:

  • MBPP+: Sanitized Python coding problems.
  • GSM8K: Grade-school multi-step math word problems.
  • MT-Bench: Multi-turn dialogue questions.
  • SQuAD: Reading comprehension and span-extraction questions from Wikipedia.

Key Insights and Ideas

  • The Content–Latency Tradeoff: Generating longer drafts increases the chances of getting more tokens accepted by the LLM, but it also linearly increases local drafting and transmission latency. This creates a distinct "unimodal" peak for token goodput, meaning there is a single mathematically optimal draft length for any given network state.
  • Compensate vs. Reward: The optimization behavior shifts dramatically between the two regimes. When forced to use uniform draft lengths, the system must compensate slower or poorly connected users with more bandwidth to prevent them from bottlenecking the batch. Conversely, when allowed heterogeneous lengths, the system rewards high-performing users (those with high LLM acceptance rates) with longer drafts and more bandwidth to maximize overall system efficiency.
  • Taming Complexity: By exploiting the mathematical structure of the latency equations, the authors turned an exponentially scaling mixed-integer nonlinear programming (MINLP) problem into a simple 2D search, making real-time edge optimization computationally practical.
Fig. 3: Empirical and theoretical sum token goodput versus draft length for Llama-2 and Qwen3.5 models on the GSM8K dataset.

Key Results

  • Protocol-Level Gains: Multi-SPIN significantly outperforms both point-to-point SPIN (P2P-SPIN) and fully centralized server-side SPIN (Cen-SPIN). For the Llama-2 pair, Multi-SPIN achieves ~145 tokens/s, which is 2.5× faster than Cen-SPIN and 4.6× faster than P2P-SPIN.
  • Algorithmic Gains: Compared to a baseline with fixed draft lengths and uniform bandwidth allocation, the optimized heterogeneous Multi-SPIN scheme improves token goodput by up to 88% in bandwidth-constrained environments.
  • Scalability: As the number of edge devices scales up, the heterogeneous-length approach maintains high efficiency, whereas simpler baselines suffer heavily from straggler effects caused by device heterogeneity.

Limitations and Future Work

  • Fairness: Maximizing total system goodput inherently favors users with better channels or easier prompts. This could lead to resource starvation for disadvantaged users. Future iterations need to incorporate fairness-aware constraints.
  • Adaptive SLM Placement: The current model assumes fixed local SLMs. A promising direction is developing mechanisms to dynamically download and swap out SLMs from a cloud library based on a user's specific task or changing hardware capabilities.
  • Alternative Multi-Access Schemes: The current framework relies on OFDMA. Extending this to non-orthogonal multiple access (NOMA) or space-division multiple access (SDMA) would introduce complex physical-layer interference management challenges.

Summary updated

BibTeX
@misc{zheng2026multi,
  author = {Haotian Zheng and Zhanwei Wang and Mingyao Cui and Chang Cai and Hongyang Du and Kaibin Huang},
  title = {{Multi-SPIN: Multi-Access Speculative Inference for Cooperative Token Generation at the Edge}},
  year = {2026},
  eprint = {2606.04581},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.04581},
}
Figure