PipeSD: An Efficient Cloud-Edge Collaborative Pipeline Inference Framework with Speculative Decoding
Abstract
Lay Summary
Large language models (LLMs) are often slow because they generate text one word at a time. A recent technique called speculative decoding tries to speed this up by letting a smaller, faster AI model predict several words in advance, while a larger and more accurate model checks these predictions all at once. Recent cloud-edge systems apply this idea by running the smaller model on edge devices such as laptops or phones, while using powerful cloud servers for verification. However, existing methods still waste time because text generation, communication, and verification are handled sequentially, and verification decisions are often inefficient. We propose PipeSD, a system that improves the efficiency of clou-edge collaborative inference. PipeSD improves communication efficiency by overlapping text generation and transmission, reducing unnecessary waiting and lowering inference latency. It also more intelligently decides when generated text should be verified to avoid unnecessary verification and delays. By reducing delays and improving efficiency, PipeSD could help make powerful AI systems more practical for real-world use on personal and edge devices.