Collaborative Large Language Model Inference via Resource-Aware Parallel Speculative Decoding

Jungyeon Koh, Hyun Jong YangarXiv 2025 · DOI

Abstract

Deploying Large Language Models (LLMs) on resource-constrained mobile devices remains a significant challenge due to high memory and computational demands. This paper introduces a unified framework that optimizes user-server association and resource allocation to enable Parallel Speculative Decoding (PSD) in Mobile Edge Computing (MEC) environments. By leveraging a multi-agent deep reinforcement learning approach, the proposed system achieves an average latency reduction of 23.7% while maintaining full inference accuracy, making high-performance LLM services accessible on mobile platforms.

Introduction: The Mutual Waiting Problem

The primary hurdle for mobile LLM inference is the "mutual waiting problem" inherent in conventional Speculative Decoding (SD). In standard SD, a mobile device uses a small "draft" model to predict a sequence of tokens, which is then sent to a powerful "target" model on an edge server for verification. This process is strictly sequential: the server remains idle while the mobile device drafts, and the mobile device remains idle while the server verifies.

Comparison of end-to-end timelines between conventional speculative decoding (left) and parallel speculative decoding (right), highlighting the reduction in idle time.

Parallel Speculative Decoding (PSD) aims to eliminate these idle periods by overlapping the drafting and verification phases. However, the efficiency of PSD is highly dependent on network conditions and the synchronization of resources between the mobile client and the edge server.

Proposed Framework: Unified User Association and Resource Allocation (UARA)

To address the complexities of PSD in a multi-user MEC environment, the authors propose the Unified User Association and Resource Allocation (UARA) strategy. This framework manages which mobile devices connect to which edge servers and how bandwidth and compute power are distributed.

The UARA strategy employs two main components:

  1. Two-Phase Matching-based Association (TMA): This algorithm optimizes device-server pairings by first considering channel gain and then iteratively swapping associations to minimize a cost function that includes latency, synchronization, and battery consumption.
  2. Multi-Agent Soft Actor-Critic (MASAC): A Deep Reinforcement Learning (DRL) approach is used to dynamically allocate continuous resources like bandwidth. MASAC is particularly effective in chaotic wireless environments as it maximizes both expected rewards and policy entropy, ensuring robust performance.
Token-level interaction in parallel speculative decoding, where the mobile device and edge server operate concurrently to accelerate inference.

A key innovation of this framework is its battery-aware scheduling. By incorporating the remaining battery life of mobile devices into the optimization objective, the system can shift toward more energy-conservative strategies for low-power devices, preventing premature shutdowns.

Experimental Evaluation

The framework was rigorously tested using the GPT2-XL (1.6B) as the target model and GPT2 (137M) as the draft model. Performance was evaluated across several benchmarks:

  • Tasks: Code generation, text summarization, and chatbot interactions.
  • Datasets: HumanEval and DailyMail were utilized to optimize draft lengths and assess accuracy.
  • Simulation: High-fidelity ray-tracing simulations via Sionna provided realistic wireless environments with dynamic user mobility.

Key Insights and Results

The experimental results demonstrate that the joint UARA approach significantly outperforms traditional heuristic baselines like "Max SINR" or "Max Compute."

  • Latency Reduction: The proposed method achieved up to a 28.0% reduction in end-to-end latency, with an average improvement of 23.7% across various network scales (30 to 180 users).
  • Synchronization Bottleneck: The study found that PSD benefits saturate around 50 Mbps. Beyond this point, the mobile device's local computation becomes the primary bottleneck, emphasizing the need for tight synchronization rather than just increased bandwidth.
  • Scalability and Accuracy: The performance gap between UARA and traditional methods widens as network density increases, proving its suitability for real-world deployments. Crucially, because the target model performs final verification, these speed gains are achieved with zero loss in inference accuracy.

Conclusion and Future Work

This research provides a robust solution for accelerating LLM inference on mobile devices by effectively managing the trade-offs between communication and computation in PSD. Future work will explore dynamic draft length adjustment and the performance of this framework on more modern architectures like Llama-3 or Mistral.

Summary updated

BibTeX
@misc{koh2025collaborative,
  author = {Jungyeon Koh and Hyun Jong Yang},
  title = {{Collaborative Large Language Model Inference via Resource-Aware Parallel Speculative Decoding}},
  year = {2025},
  eprint = {2511.01695},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.01695},
}
Figure