WorksComputer Science
CGSpec: Consistency-Guided Speculative Decoding with Overlap-Aware Verification Scheduling for Edge-Cloud Inference
Abstract
Collaborative speculative decoding accelerates large language model inference by enabling edge clients to draft tokens locally and a shared cloud model to verify them. However, draft target disagreement wastes communication and verification resources, while heterogeneous client return times complicate shared verifier scheduling. We propose CGSpec, a consistency guided framework for multi client edge-cloud speculative decoding. CGSpec uses draft target distribution divergence to adapt the speculative budget and introduces a nomination and competition mechanism to construct candidate trees through global growth control and local token selection. An overlap-aware scheduler further estimates remaining verification work and client return times to prioritize requests and improve verifier utilization. We evaluate CGSpec using four model pairs and three datasets under heterogeneous network conditions. Across 24 configurations with 8 and 16 clients, CGSpec achieves the highest mean system and client throughput among the evaluated methods. Compared with current SOTA methods, it improves system throughput by 12.2% and 10.2%, and mean client throughput by 14.0% and 33.0%, respectively.
Introduction
Large language models (LLMs) are increasingly deployed in networked sensing systems, where interactive services require low latency, high quality, and efficient collaboration between edge devices and cloud infrastructure [1]. Emerging latency sensitive applications impose strong requirements on LLM inference systems, which must balance response time, device constraints, and edge-cloud communication overhead. However, autoregressive decoding remains a major bottleneck because tokens must be generated sequentially and each step requires a full forward pass over the current prefix. This bottleneck is especially severe on resource constrained edge devices, which have limited computation, memory bandwidth, and energy budgets.
Speculative decoding (SD) accelerates autoregressive generation by allowing a lightweight draft model to propose multiple candidate tokens, which are then verified in parallel by a stronger target model while preserving the target distribution [2, 3]. Despite its effectiveness in accelerating LLM inference, deploying SD on edge devices remains challenging because the target model typically requires substantial computation and memory resources. To overcome this limitation, collaborative SD leverages the complementary capability of edge devices and cloud infrastructure, where edge devices perform lightweight local drafting, and the cloud verifies candidates with a larger target model [4]. Recent systems have shown that this design can improve throughput by combining low latency edge-side drafting with high capacity cloud verification [5, 6, 7] [4].
Despite this progress, achieving consistent and efficient collaborative SD in heterogeneous network environments remains challenge. The quality of the drafter and the speed of the verifier can no longer be considered in isolation. The candidate drafts generated on the edge are no longer free internal candidates; they consume uplink bandwidth, verifier computation, and part of the shared verification opportunity when submitted to the cloud. Meanwhile, verification requests from different clients arrive irregularly due to heterogeneous network delays, context length, cache footprint, and verification behavior. These factors introduce two key challenges.
First, determining an appropriate speculative budget for each request under varying draft–target agreement. Existing adaptive methods usually regulate speculation using draft uncertainty alone, for example by adjusting lookahead length, pruning low confidence candidates, or dynamically reshaping trees according to draft confidence [8, 9, 10, 11, 12]. However, this design mixes two factors that should be considered separately. The amount of speculation that is worth verifying is determined primarily by the agreement between the draft and target models, and this agreement can vary substantially across tasks and prompts. By contrast, the way a given budget should be organized inside the draft tree is determined by the local uncertainty of the draft model. When these two roles are conflated, the system may expand too aggressively under poor draft–target alignment and waste communication and verification budget, or behave too conservatively under high consistency and fail to exploit cloud parallelism.
Second, coordinating shared verification with heterogeneous client return paths Multiple clients share a target model for candidate verification. Each client alternates between local drafting, communication, and cloud verification. Serving a request from a ready client determines not only the current verification order but also when that client will return with its next batch of candidates. Consequently, prioritizing a client with a longer drafting and communication cycle may delay its next request, potentially leaving the cloud verifier idle after other clients have completed their available work. Although existing systems exploit pipeline overlap, such as SpecEdge’s interleaving of user requests [4], selecting the next client remains challenging when clients have heterogeneous drafting and communication costs. Our scheduling question is how to leverage observed return costs and remaining verification workloads to select among ready clients and prevent idle periods.
These two challenges point to a holistic systems question: in multi-client collaborative SD between edge and cloud, how should the system allocate limited speculative budget within each request and limited verification opportunities across requests so as to maximize end-to-end throughput? This requires joint control over communication efficiency, verification amortization, and queueing under shared verifier contention.
CGSpec, a consistency-guided tree construction with overlap-aware verification scheduling framework for multi-client collaborative SD between edge and cloud. CGSpec is built around a three-stage control design. First, it introduces a consistency-guided state sensing mechanism that estimates draft-target agreement from verification feedback using Jensen Shannon (JS) divergence, and uses this signal to regulate how much speculative budget should be allocated to the current round. Second, under the consistency conditioned budget, it constructs speculative trees through a nomination and competition process that separates global growth control from local token nomination, thereby improving accepted progress per verification round without over expanding the draft tree. Third, under concurrent deployment, it allocates cloud verification opportunities through a cost aware scheduler that jointly accounts for waiting urgency, expected effective gain and serving cost, while using anti-starvation protection only as a lightweight safeguard.
The core contributions of this work are summarized as follows:
We formulate a coupled optimization problem for multi client edge–cloud speculative decoding, characterizing the interactions among local drafting, network communication, and shared-server verification under heterogeneous client conditions.
We design a consistency-guided tree construction mechanism that uses draft–target distribution divergence to adapt speculative budgets, and introduces a nomination and competition strategy to select globally valuable candidates under limited resources.
We introduce an overlap-aware verification scheduling mechanism that estimates remaining workloads and client return times to prioritize verification requests, improving shared-server utilization while protecting client waiting time.
We conduct extensive experiments covering four model pairs, three datasets, heterogeneous 4G/5G networks, and up to 30 clients. Comprehensive ablation studies and latency analyses further validate the effectiveness of each proposed mechanism.
Related Work
Speculative Decoding
SD has expanded into a broad area covering drafter design, online control, tree-structured verification, and distributed serving since its original draft and verify formulation [13]. Existing methods mainly differ in how candidates are produced, how they are organized for verification, and which signals regulate speculation. Most prior work on SD focuses on improving the quality of draft candidates or the control of speculative budget. On the drafting side, Staged SD organizes proposals hierarchically across multiple drafting stages [14] while EAGLE and EAGLE-3 improve the drafting objective through feature level or direct token prediction [9, 15]. AdaSpec strengthens draft–target alignment through selective knowledge distillation [16]. On the budget control side, DISCO dynamically adjusts lookahead length instead of using a static speculative budget [8]. These studies establish SD as a mature exact decoding paradigm, but they are primarily designed for centralized inference, where verifier acceleration dominates the objective and deployment costs are secondary. In collaborative edge-cloud inference, draft-target consistency can vary across tasks, while uplink delay and verifier occupancy become first-order factors in end-to-end performance [5, 7, 17] [4].
Tree-Based SD
Early SD formulations mostly follow a chain based verification pattern: the drafter proposes a linear continuation and the verifier checks the sequence in one step [2, 3]. Chain verification is sensitive to early mismatch because one incorrect token can invalidate much of the remaining draft [2, 14]. This limitation motivated tree based SD, where richer candidate structures expose more parallelism during verification. SpecInfer verifies multiple paths in a token tree [18], while Medusa generates tree structured candidates with multiple decoding heads on the backbone model [19]. Recent methods have shifted from tree based verification to optimized tree construction itself. Sequoia uses dynamic programming and hardware-aware optimization to select tree size and depth [11]. EAGLE-2 builds context-sensitive draft trees using confidence in the draft model [20]. DynaSpec reconstructs tree topology online under changing contexts [10] and Yggdrasil co-designs tree growth with runtime execution for latency optimal decoding [12]. These methods show that verification efficiency depends not only on the number of proposed tokens, but also on how candidate tree is structured before verification.
However, prior tree-based methods remain mainly draft centric. They usually use draft-side confidence to prune low confidence candidates or decide whether expansion should continue [10, 20]. Such signals are useful for local exploration, but they do not directly answer whether the resulting token set is globally worthwhile under an upload and verification budget. In collaborative SD, drafted tokens are not free internal candidates: each extra token consumes uplink bandwidth, cloud verification computation, and part of the shared verification opportunity. Tree construction should therefore be treated not only as local confidence-guided expansion, but also as budgeted selection over globally valuable candidates.
Collaborative SD between edge and cloud
Recent research extends SD from single device acceleration to heterogeneous distributed environments. SLED lets heterogeneous edge devices draft locally while a shared server verifies requests in batches [5]. SpecEdge splits work between edge and server GPUs and combines proactive edge drafting with pipeline-aware scheduling [4]. DSSD reduces uplink communication by splitting verification between device and edge [21], while Jupiter studies collaborative generative inference over decentralized edge resources [22]. These systems position the edge as an active participant in SD rather than a thin client. A growing body of work focuses on optimizing distributed SD execution such as orchestration, overlap, and communication efficiency. DSD coordinates draft-target execution across multiple devices through simulation driven control [7]. FlowSpec and AMUSD improve overlap through pipelined or asynchronous execution [23, 24]. GoodSpeed and WISP study batching and budget design under objectives such as goodput, fairness, or SLOs [17, 25], and QSV plus Conformal Sparsification treat communication cost as a first-class factor in edge-cloud SD [26, 27].
Existing edge-cloud SD systems improve resource utilization through pipelining, asynchronous execution, and batched verification. When multiple clients share a verifier, differences in drafting capability and network conditions lead to different return times between consecutive verification rounds. The verification order therefore affects both current waiting times and the arrival of subsequent verification requests. This creates an additional scheduling challenge: verification decisions must account for both the immediate service cost and the overlap between ongoing verification tasks and subsequent client return cycles.
Problem Formulation
System Model
Consider a collaborative SD system with clients and a cloud verification server. Each client runs a lightweight draft model, while the cloud server hosts the target model for candidate verification. Clients may be deployed on edge GPUs or personal GPU servers, with heterogeneous local computing capacities and network conditions. Each client maintains its generation prefix, constructs a candidate token tree locally, and submits it to the cloud for verification.
For client at decoding round , let denote the current generation prefix. The candidate token distributions of the draft and target models are and , respectively. The candidate tree is controlled by four structural limits, : the maximum number of active paths, maximum tree depth, maximum local branching width per parent, and total node budget. These parameters determine the organization of speculative candidates and the work required for local drafting, uploading, and cloud verification.
Let denote the set of active clients at time , and let denote the set of requests that have arrived at the server and are ready for dispatch. An active client may be drafting, communicating, waiting, or receiving verification. Consequently, an active client is not necessarily ready for service: the scheduler can select only from .
We first consider a server that executes one non preemptive verification request at a time, matching the single-request verification setting of our scheduling design. Local drafting can proceed concurrently across clients, while cloud verification capacity is shared.
Client Drafting and the Decoding Cycle
Let denote the time required by client to construct its candidate tree in round . Drafting includes draft token generation, candidate selection, and tree organization. We express its cost as
where is the number of active prefixes actually evaluated at expansion step , is their context length, and is the corresponding draft token generation time on client . The term includes candidate selection, tree maintenance, and packing overhead. Expansion steps that are not executed contribute zero cost.
This representation allows multiple prefixes to be expanded in a local batch, so drafting time need not scale linearly with the final number of tree nodes. The scheduler uses observed execution times and does not require a fitted analytical form for .
Each client follows a sequential draft, upload, verify then feedback cycle. After receiving verification feedback, the client updates its generation prefix and starts the next drafting round. Drafting and communication at one client can proceed concurrently with the server’s verification of other clients.
For a request with verification rounds, let , , , and denote its upload time, server queueing time, full verification duration, and feedback time in round , respectively. Its completion latency is
Here, includes request initialization and prefill outside the decode rounds. The term measures the full serialized server slot occupied by the request, including server processing beyond the target device forward pass. The stages use disjoint timing boundaries to avoid double counting.
Between consecutive rounds of an unfinished request, the client receives feedback, constructs the next candidate tree, and uploads it. We define the return time from verification completion to the next tree arrival as
While client traverses this return path, the server can verify requests from other clients. Local drafting and communication therefore postpone the next time client becomes ready, but need not cause an equal amount of server idle time. Their effect depends on whether other verification work is available during that interval.
Expanding a candidate tree can increase drafting, upload, and verification costs, while potentially reducing the number of rounds through greater output progress per verification. Dispatch order determines when each client starts its next return cycle and how much of that cycle can overlap verification work from other clients. Tree construction and verification scheduling thus jointly determine end-to-end performance.
Performance Objectives and Online Information
For a finite workload measured from a common start time until completion at , system throughput is
where is the number of tokens actually emitted by client during the measurement phase. The mean client generation rate is
where is the time taken by client to complete its corresponding measured workload.
These metrics capture different aspects of performance. System throughput measures the completion efficiency of the entire workload, whereas the mean client generation rate measures the output rate experienced by individual clients. Improving the mean client rate does not necessarily shorten the overall workload completion time. We therefore evaluate both metrics, together with request latency and waiting time distributions.
Whenever a verification slot becomes available, the scheduler selects the next request from , subject to the execution and memory constraints of the serving backend. Its decision uses only information available at that time, including request processing, actual emitted token counts, completed request lengths, observed service and return times, and statistics of the current candidate trees.
Under these constraints, we study two coupled online decisions. At each client, draft-target consistency guides the allocation of the tree budget, controlling the execution cost and useful output of each round. At the server, verification opportunities are allocated according to ready request states, estimated remaining verification work, and client return times. The objective is to improve the utilization of shared verification capacity and client generation progress under unknown output lengths and heterogeneous computing and network conditions.
Methodology
CGSpec Framework
Figure 1 presents the execution and control flow of CGSpec. Each client constructs a candidate tree with its local draft model and uploads it to the shared cloud verifier. After verification, the client receives the accepted output and target model probability feedback, updates its prefix, and begins the next drafting round. Different clients can draft and communicate while the server verifies another client’s request.
Figure 1. Overview of CGSpec. Private GPU clients use verification feedback to estimate draft-target consistency and control the growth envelope of a nomination and competition draft tree. The cloud verifier maintains a ready queue and online estimates of remaining verification work and client return times. An overlap-aware scheduler selects the next request, and verification feedback updates both the local generation state and subsequent control decisions.
CGSpec coordinates this process through three components. Consistency-guided state sensing compares aligned draft and target distributions using normalized JS divergence and smooths the resulting signal over time (Section IV-B). Nomination and competition tree growth uses this state to set a growth envelope and select candidates within the node budget (Section IV-C). Overlap-aware scheduling combines waiting protection, prefill priority, and decode selection based on remaining verification work and client return times (Section IV-D).
These components act on the same decoding cycle. Tree construction determines local drafting cost, upload volume, verification cost, and output progress per round. Scheduling determines when each client starts its next feedback draft upload cycle and how that cycle overlaps verification work from other clients. Figure 2 illustrates this interaction through a concrete scheduling example.
Figure 2. Overlap-aware scheduling example. (a) Ready clients and remaining serial chains; each verification takes 20 ms. (b) Delaying exposes 40 ms of its return. (c) Serving first overlaps its 120 ms return with verification, reducing completion time from 200 to 160 ms. Return time includes feedback, drafting, and upload. These are illustrative timelines, not measured results.
Consistency-Guided State Sensing
A central question in adaptive SD concerns the allocation of the draft budget to the current round. This issue is especially important in SD between edge and cloud, where drafted tokens are not free: every additional token submitted by the edge incurs extra communication and cloud-side verification overhead. Therefore, instead of using draft model’s uncertainty only as a local token score, we require a global control signal that can determine whether the overall speculative budget of the current round is worthwhile for verification.
To this end, we compare the draft and target next-token distributions on an aligned top support and quantify their discrepancy using JS divergence. Let and denote the normalized top- distributions of the draft and target models under the current prefix . Their mismatch is defined as
Here, JS divergence is used to characterize the current draft–target agreement rather than to determine token acceptance. Compared with draft-only uncertainty, this signal is more directly coupled to effective verification gain; compared with discrete acceptance statistics, it preserves the local probability structure and can distinguish mild disagreement from severe misalignment.
a) Online signal acquisition (top-5, no extra RPC, overlapped with post-processing).: In deployment between edge and cloud, the target distribution is computed on the cloud verifier. CGSpec obtains without any additional verifier forward pass or extra RPC round by piggybacking on the standard verification response. To minimize communication overhead, we do not transmit distributions for all verified positions. Instead, the verifier returns the top-5 token IDs and their conditional probabilities only for the final verified position in the current sequence. At the edge, the draft side matches this with the cached top-5 logits from the corresponding terminal parent node used during tree growth. The client then computes using these aligned top-5 supports. This computation is highly efficient () and overlapped with acceptance checking and KV-cache reordering, ensuring the consistency signal is acquired outside the critical-path waiting time.
b) Top-5 truncated distributions.: Let and denote the draft and target top-5 token-id sets at prefix . We align supports using the union and construct truncated distributions with a small for missing ids:
for , followed by normalization over . Throughout, we use in the main system (consistent with our implementation and analysis); larger is possible but increases the response payload.
To make the consistency signal suitable for stable online control, we first normalize the divergence into a bounded mismatch score
where . A smaller indicates stronger local draft-target agreement, while a larger value indicates a more difficult speculative state. We then map this mismatch to an instantaneous control state
where is the minimum admissible scale. This nonlinear mapping is deliberately risk sensitive: once mismatch becomes moderately large, the control state contracts faster than a linear rule, thereby preventing the system from over expanding speculation in unreliable states.
Because one speculative round may be influenced by transient local fluctuation, we further smooth the state by exponential moving average:
where is the smoothing coefficient. In addition, when a speculative round is fully accepted, we do not immediately restore the control state to its maximum value. Instead, we apply a gradual recovery rule
where is the recovery step. These updates provide a bounded and smoothed state for tree adaptation. The scheduler observes the resulting token gains, acceptance ratios, and execution times rather than using the consistency state directly in its priority rule.
c) Scale variable.: For clarity and reproducibility, we use the smoothed consistency state as a direct scale variable for structural adaptation and denote . This is updated by the mismatch, smoothing, and recovery rules above and controls the growth envelope of the next draft tree.
Nomination and Competition Guided Speculative Tree Growth (NC Tree)
In edge-cloud deployment, speculative tree construction must operate under a limited upload and verification budget. Therefore, the goal is not merely to expand locally plausible tokens, but to retain a globally worthwhile set of candidates for verification in the cloud. To this end, we formulate tree construction as a consistency- and uncertainty-guided nomination and competition process.
The key idea is to separate two roles that prior methods often mix together. Inter-model consistency determines the global growth condition of the tree, namely, how much speculative budget should be allocated to depth, width, active paths, and total retained nodes. Draft-side uncertainty, by contrast, is used only for local token nomination under each parent. The nominated children are then merged into a global candidate pool and compete again under the total tree budget. In this way, token exploration is no longer a simple confidence-based pruning or continuation rule, but a structured nomination and competition process. Consistency determines how the tree is allowed to grow, while uncertainty determines which local tokens are worth proposing within that growth condition.
Formally, let the smoothed consistency state at round be . We use to determine the structural limits of the current tree,
where is the maximum number of active parent paths, is the maximum number of growth iterations, is the maximum local branch width per parent and is the total node budget. These variables define the growth envelope of the current round. A larger corresponds to a more consistent and unfavorable state and, therefore, permits a deeper and narrower tree, which emphasizes longitudinal progress. A smaller indicates a less favorable state and leads to a shallower and wider tree, highlighting horizontal coverage. Thus, consistency does not rank tokens directly; it determines the structural condition in which token growth may proceed.
a) Explicit mapping . To make the method fully reproducible, we provide the explicit control law that maps the scale to the four structural limits. Let , , , and be integer bounds. We realize the behavior of “deep/narrow vs. shallow/wide” by mapping depth/budget in the same direction as and mapping width/active paths in the opposite direction:
Here, denotes rounding to the nearest integer, and clamps its argument to the interval .
Given these structural limits, the speculative tree is grown progressively in a layer-wise manner. Let denote the retained tree after the -th growth step. At each step, the algorithm first identifies all expandable nodes and selects at most active parents according to accumulated path scores:
For each selected parent , the draft model performs one forward prediction and nominates at most local child candidates:
Here, the uncertainty of the draft enters the method. Its role is not to determine the global tree shape, but to rank local continuations under each parent. Hence, the confidence in the draft remains fully utilized, but only for local nomination rather than for global structural control.
Each nominated child is assigned a cumulative path score
and all nominated children are merged into a global candidate pool:
The tree is then globally pruned under the total node budget :
This global competition step is the critical difference from the purely local token expansion. A child is not retained simply because it is locally plausible under its own parent; it must also justify its use of the shared token budget against candidates proposed by other parents. Consequently, a parent may nominate local children, yet all of them can still be removed if they are globally dominated. This global selection allows candidates from different parent nodes to compete for the same node budget, rather than allocating expansion opportunities uniformly across all active parents.
b) Depth discount . The factor applies a fixed penalty to each additional depth level. A node at depth receives a score equal to its log path probability plus . This penalty favors shallower candidates when comparing nodes across depths. Candidates at the same depth receive the same penalty, so their relative order is determined by path probability.
The depth limit determines how many times this growth procedure can be repeated before the tree is submitted for verification. Taken together, define a growth envelope conditioned by consistency, and the layer-wise nomination and competition procedure materializes that envelope into a real speculative token tree. The consistency state directly determines which parent paths can be expanded and how the resulting candidates compete for the available node budget. Compared with confidence-aware methods, we do not use draft uncertainty to determine the global growth condition; compared to optimization-based tree search methods, we do not search for a separate offline optimum tree. Instead, we realize adaptive speculation as an online tree growth process that jointly respects local uncertainty and global budget efficiency.
The resulting tree determines both candidate coverage and the drafting, upload, and verification costs of each round. Its performance is therefore evaluated through actual output progress together with the complete decoding cost.
Overlap-Aware Verification Scheduling
Verification order affects both current waiting time and the time at which each client starts its next draft feedback. Figure 2 illustrates this dependency. If the first verification of is delayed, its long return remains unfinished after and complete their work, exposing 40 ms of server idle time. Serving first allows the other clients’ verification work to cover its entire 120 ms return, reducing completion time for the same workload from 200 to 160 ms. Scheduling therefore considers each client’s remaining serial chain together with the verification work available to overlap it.
Because the final output length is unknown before termination, we estimate the residual output from completed requests. Let be the decode tokens emitted by the current request and be the multiset of request lengths completed before time . With , the regularized mean residual life (MRL) estimate is
for , where is the generation cap and provides a cold start prior. For declared requests that have not started, we use the regularized historical mean . The estimated remaining verification rounds are
where indicates an open request and is the cumulative actual decode output divided by the number of decode rounds. The termination of the request clears the current-request term, and completed sessions have zero remaining work. This estimate uses the observed generation progress without treating the generation cap as the true output length.
The scheduler maintains the mean verification-slot duration of each client and the return time . For a ready client, its estimated remaining serial chain and overlap slack are
where and include all unfinished clients. The total of the remaining verification work provides a reference horizon for covering return intervals. The smaller indicates less room to postpone the client without exposing its return. In the example, has zero slack, while and each have 60 ms. The slack guides online ranking; realized overlap also depends on subsequent readiness and estimation error.
At each free verification slot, the scheduler applies four rules in order. First, it serves the oldest ready request if its wait reaches the protection threshold. Otherwise, it serves the first ready prefill request. If no prefill is ready, it selects the smallest slack ready client satisfying . If none satisfies this condition, it selects
where is the ratio of the accepted token to the draft node, is a reference verification duration, and is a numerical floor. The ties are resolved by a longer waiting time and then a queue order. These rules protect waiting requests, initialize new requests, start critical return paths early, and otherwise favor clients with the less remaining verification work and a higher accepted-path ratio. Scheduling changes the service order of independent requests while preserving their target verification and acceptance rules.
Experimental Setup
Experimental Platform and Network Conditions
a) Experimental Platform: The verification servers use AMD Instinct MI250, and Clients are NVIDIA A40s. The Qwen3-14B and Vicuna-7B target models use one GPU, while Qwen3-32B uses two GPUs with the split KVCache implementation. Each client process maintains its own draft model state, generation context, and candidate tree, and submits candidates to the shared verifier. The main experiments use and concurrent clients. The maximum server verification batch size is set to 1 across collaborative methods.
b) Computation and Communication: The platform combines GPU model execution with controlled network emulation based on SSH. Model forward passes execute on GPUs, while the communication module injects waiting time according to message size, uplink, and downlink bandwidth, propagation delay, and jitter. These delays occur during execution and affect verification request arrivals, server queueing, and the start of subsequent client drafting. The measurement window therefore includes model execution, communication waiting, and their overlap across clients. c) Network Conditions: To emulate realistic edge-cloud deployment conditions, we evaluate under three representative network profiles injected through the simulator: a 4G-like profile with 70 ms Round Trip Time (RTT), 10 ms jitter, and asymmetric 3/10 Mbps uplink/downlink bandwidth; a 5G-like profile with 45 ms RTT, 3 ms jitter, and 30/200 Mbps uplink/downlink bandwidth; and an edge weak 4G profile with 100 ms RTT, 10 ms jitter, and 2/10 Mbps uplink/downlink bandwidth. These settings are based on previous research [28], [29], [30].
The main experiments use a heterogeneous mixture of these profiles. The numbers of clients assigned to the 5G-like, 4G-like, and weak profiles are for and for . Additional latency analysis experiments assign the same 5G-like, 4G-like, or weak profile to all clients to examine how network conditions affect stage costs.
Models and Datasets
a) Models: We evaluate four target-draft model pairs: G1, Qwen3-14B/Qwen3-0.6B; G2, Qwen3-14B/Qwen3-1.7B; G3, Vicuna-7B-v1.3/Vicuna-160M; and G4, Qwen3-32B/Qwen3-1.7B. G1 and G2 vary draft-model capacity under the same target, while G2 and G4 vary target-model scale under the same draft model [31]. G3 introduces an additional model family. These configurations examine system behavior as draft capability and target verification cost change.
b) Datasets: We use three datasets with complementary workload characteristics: C4 [32] for general domain system efficiency evaluation, WikiText-2 [33] for the continuous analysis from long form generation and verifier amortization analysis, and SpecBench [13] for heterogeneous interactive tasks that stress robustness across diverse request patterns. In each set of experiments, all clients divide this data equally among themselves.
Compared Methods and Common Execution Conditions
We compare CGSpec with four baselines:
Target-AR performs autoregressive generation with the target model on the server, providing a non-speculative reference.
EAGLE-3 [15] serves as the single server speculative decoding baseline for all four model groups. Both drafting and verification are executed on the server.
SLED [5] performs client chain drafting and uses server FIFO dispatch. Its verification batch size is set to one in the main experiments.
SpecEdge [4] uses its client tree generation strategy with server FIFO dispatch.
a) Common Conditions: All methods use the same target model, request plan, client count, generation temperature, and output-token cap. SLED, SpecEdge, and CGSpec additionally share the same model pair, network conditions, serving harness, and server verification batch size. Comparisons among these collaborative methods evaluate candidate generation and verification scheduling policies under these common conditions.
b) Baseline Roles: Target-AR and EAGLE-3 provide cloud autoregressive and cloud speculative references. SLED and SpecEdge provide collaborative decoding baselines. We report throughput for all methods and summarize aggregate relative improvements using SpecEdge as the primary collaborative reference.
Workload and Measurement Protocol
a) Request Plans: The main experiments use temperature zero and a maximum decode budget of 128 tokens per request. Each measured run contains a total of 128 requests, randomly assigned to all clients. Each request is assigned to one client. For a given seed and client count, the request set and its assignment are reused across methods. The total measured request count is 128 for both and .
b) Warmup and Measurement Window: Each client first executes one warmup request. After all clients finish warmup, a synchronization barrier starts the common measurement window. The window ends when the last client completes its assigned requests. Warmup requests are excluded from both the measured output and the measurement window. Token counts use actual generated output, including differences caused by early termination.
c) Repeated Runs and Paired Statistics: Each configuration is evaluated with 5 seeds, 42–46. We report the mean and standard deviation of the sample in these runs. Relative improvements are computed by pairing methods within the same model, dataset, client count, and seed. To summarize aggregate improvement, we first calculate result for each configuration within a seed, average these ratios across configurations, and then average across seeds.
d) Workload Coverage: The main experiments cover four pair of models, three datasets and two client counts, yielding 24 configurations. The scheduling scalability experiment uses G1 and SpecBench under mixed networks, varying the client count from 2 to 30. Client counts, request counts, and repetitions are reported with the corresponding experimental results.
Evaluation Metrics
a) System Throughput: System throughput is the total number of actual output tokens between clients divided by the common measurement window. Measures aggregate generation progress supported by the shared verifier.
b) Client Throughput: For each client, we divide its actual output token count by the interval from the start of the common measurement to the completion of all assigned requests. Client throughput is the mean of these per-client rates, capturing individual generation progress under shared verification.
c) Request Latency and Stage Costs: End-to-end request latency measures the interval from request start to delivery of the complete response. The time breakdown distinguishes local drafting, communication, server queuing, and verification. Server queueing spans request arrival to service start, while verification covers the full server service slot. For the stage breakdown plots, we multiply each stage’s mean per-round duration by the number of rounds per request and aggregate the resulting costs across datasets and seeds.
d) Scheduling Wait: The scheduling comparison also reports client RPC wait, measuring the time a client waits for a verification call to return. This metric captures waiting during the verification interaction and is recorded separately from server-side queueing before service begins.
e) Speculative Efficiency: We report the number of accepted draft tokens per verification round and the ratio of accepted draft tokens to submitted draft nodes. These metrics measure the accepted length and candidate utilization, respectively. Actual emitted tokens may additionally include a target token and are used for throughput calculation and remaining-work estimation.
Component Evaluation
a) Consistency Signal and Budget Control: We separately examine the relationship between consistency and accepted length, and the performance effect of using consistency for online control. The signal analysis fixes the candidate budget at 64 nodes per round and disables consistency-driven budget adaptation. It records the relationship between Top- JS divergence and accepted length. The end-to-end ablation compares a fixed tree, confidence-based pruning, acceptance-rate guidance, JS-based budget control alone, and full CGSpec to evaluate how these control strategies affect throughput.
b) Candidate-Tree Construction: In the fixed-budget experiment, probability-driven tree construction and nomination and competition use the same per-round node budget, with consistency-driven budget adaptation disabled. This comparison examines accepted progress under a common candidate budget. The tree-control ablation uses G1 and G3 on SpecBench under mixed networks, with and five seeds. All tree control variants retain the same proposed verification scheduler, focusing the comparison on client-side candidate generation and budget control.
c) Verification Scheduling: We compare FIFO, LAS [34], LWF [35], SRPT [36] and CGSpec to examine priorities based on arrival order, service achieved, waiting time, estimated serving cost and overlap-aware decisions. LAS uses accumulated token progress, LWF uses server queueing time, and SRPT uses the estimated serving cost in our implementation. The comparison uses G1 and SpecBench under mixed networks reports system throughput, mean client throughput, and client RPC wait.
Experimental Results
End-to-End Throughput
Table 1 reports system throughput and client throughput under mixed network conditions for four model pairs, three datasets, and two client counts. CGSpec achieves the highest mean for both metrics in all 24 configurations. Compared to SpecEdge, CGSpec improves system performance by 12.2% at and 10.2% at , while improving mean client performance by 14.0% and 33.0%, respectively. We compute these aggregate gains from the paired throughput ratios within each configuration and then average between the configurations and seeds. The gains vary across model pairs. At , the average improvement in system throughput over SpecEdge is 9.0% for G1, 14.2% for G2, 4.3% for G3, and 13.3% for G4. For example, on G2/C4, CGSpec increases system throughput from 62.3 to 71.0 tokens/s and mean client throughput from 4.04 to 5.69 tokens/s. On G4/SpecBench, the corresponding values increase from 29.1 to 33.3 tokens/s and from 2.30 to 3.33 tokens/s. The higher aggregate client throughput gain at shows that the benefit extends to individual client progress under higher concurrency, even though the system throughput gain is smaller than at .
| Model pair | Dataset | Target-AR Sys ↑ | Target-AR Cli ↑ | EAGLE 3 Sys ↑ | EAGLE 3 Cli ↑ | SLED Sys ↑ | SLED Cli ↑ | SpecEdge Sys ↑ | SpecEdge Cli ↑ | CGSpec Sys ↑ | CGSpec Cli ↑ |
| G1: Qwen3 14B/0.6B | SpecBench | 19.8 ± 0.1 | 2.59 ± 0.01 | 36.8 ± 0.2 | 4.82 ± 0.02 | 35.0 ± 6.7 | 4.71 ± 0.96 | 54.7 ± 1.8 | 7.65 ± 0.06 | 60.7 ± 1.6 | 8.43 ± 0.05 |
| G1: Qwen3 14B/0.6B | C4 | 19.8 ± 0.1 | 2.60 ± 0.01 | 30.1 ± 0.9 | 3.95 ± 0.11 | 35.6 ± 0.8 | 4.70 ± 0.12 | 53.6 ± 1.7 | 7.46 ± 0.14 | 58.5 ± 2.0 | 7.98 ± 0.16 |
| G1: Qwen3 14B/0.6B | WikiText-2 | 19.4 ± 0.2 | 2.54 ± 0.03 | 26.1 ± 0.5 | 3.43 ± 0.06 | 31.6 ± 5.3 | 4.16 ± 0.69 | 50.3 ± 0.9 | 6.99 ± 0.10 | 54.7 ± 1.4 | 7.34 ± 0.15 |
| G2: Qwen3 14B/1.7B | SpecBench | 19.8 ± 0.1 | 2.60 ± 0.01 | 36.8 ± 0.4 | 4.82 ± 0.03 | 43.9 ± 0.9 | 5.87 ± 0.08 | 52.8 ± 11.5 | 7.46 ± 1.22 | 65.5 ± 1.7 | 8.99 ± 0.06 |
| G2: Qwen3 14B/1.7B | C4 | 19.8 ± 0.1 | 2.59 ± 0.01 | 30.2 ± 0.9 | 3.96 ± 0.11 | 39.5 ± 1.1 | 5.23 ± 0.13 | 58.3 ± 1.0 | 8.03 ± 0.12 | 65.5 ± 3.4 | 8.94 ± 0.18 |
| G2: Qwen3 14B/1.7B | WikiText-2 | 19.4 ± 0.2 | 2.54 ± 0.02 | 26.2 ± 0.5 | 3.43 ± 0.08 | 38.6 ± 1.0 | 5.08 ± 0.11 | 55.7 ± 0.8 | 7.59 ± 0.10 | 62.1 ± 1.3 | 8.19 ± 0.12 |
| G3: Vicuna 7B/160M | SpecBench | 35.5 ± 0.2 | 4.64 ± 0.01 | 64.9 ± 0.5 | 8.49 ± 0.07 | 48.7 ± 1.7 | 6.96 ± 0.08 | 59.3 ± 2.3 | 10.57 ± 0.19 | 65.7 ± 3.4 | 10.95 ± 0.17 |
| G3: Vicuna 7B/160M | C4 | 35.9 ± 0.4 | 4.70 ± 0.06 | 62.6 ± 0.5 | 8.21 ± 0.05 | 52.5 ± 0.7 | 7.24 ± 0.19 | 67.2 ± 2.1 | 11.27 ± 0.31 | 73.6 ± 2.9 | 11.46 ± 0.23 |
| G3: Vicuna 7B/160M | WikiText-2 | 33.6 ± 0.9 | 4.40 ± 0.12 | 49.8 ± 1.3 | 6.54 ± 0.20 | 45.0 ± 0.7 | 6.12 ± 0.16 | 55.4 ± 2.9 | 9.13 ± 0.44 | 61.7 ± 3.3 | 9.47 ± 0.30 |
| G4: Qwen3 32B/1.7B | SpecBench | 9.5 ± 0.0 | 1.24 ± 0.00 | 19.1 ± 0.2 | 2.50 ± 0.01 | 21.6 ± 0.2 | 2.80 ± 0.02 | 29.4 ± 0.4 | 3.84 ± 0.02 | 32.6 ± 0.3 | 5.03 ± 0.18 |
| G4: Qwen3 32B/1.7B | C4 | 9.5 ± 0.0 | 1.24 ± 0.01 | 14.3 ± 0.3 | 1.87 ± 0.04 | 18.6 ± 0.2 | 2.41 ± 0.04 | 28.6 ± 1.7 | 3.69 ± 0.22 | 31.4 ± 1.7 | 4.83 ± 0.39 |
| G4: Qwen3 32B/1.7B | WikiText-2 | 9.2 ± 0.1 | 1.21 ± 0.01 | 12.4 ± 0.3 | 1.63 ± 0.04 | 17.8 ± 0.9 | 2.30 ± 0.11 | 27.1 ± 0.1 | 3.50 ± 0.04 | 29.9 ± 0.2 | 4.60 ± 0.08 |
| G1: Qwen3 14B/0.6B | SpecBench | 19.7 ± 0.0 | 1.31 ± 0.02 | 35.5 ± 0.1 | 2.37 ± 0.03 | 38.0 ± 3.7 | 3.06 ± 0.41 | 58.4 ± 0.5 | 4.64 ± 0.03 | 65.2 ± 1.3 | 6.06 ± 0.13 |
| G1: Qwen3 14B/0.6B | C4 | 20.0 ± 0.1 | 1.33 ± 0.01 | 30.0 ± 0.4 | 2.00 ± 0.03 | 35.2 ± 1.2 | 2.32 ± 0.09 | 57.2 ± 1.4 | 3.76 ± 0.07 | 61.8 ± 1.0 | 5.08 ± 0.12 |
| G1: Qwen3 14B/0.6B | WikiText-2 | 19.3 ± 0.2 | 1.28 ± 0.01 | 25.7 ± 0.2 | 1.71 ± 0.02 | 34.1 ± 0.5 | 2.21 ± 0.04 | 52.8 ± 0.2 | 3.46 ± 0.03 | 56.7 ± 0.7 | 4.54 ± 0.10 |
| G2: Qwen3 14B/1.7B | SpecBench | 19.7 ± 0.0 | 1.31 ± 0.01 | 35.7 ± 0.2 | 2.38 ± 0.03 | 45.1 ± 0.6 | 3.69 ± 0.04 | 60.4 ± 1.3 | 4.84 ± 0.08 | 70.7 ± 0.6 | 6.60 ± 0.09 |
| G2: Qwen3 14B/1.7B | C4 | 19.9 ± 0.1 | 1.32 ± 0.00 | 30.0 ± 0.4 | 2.00 ± 0.03 | 39.5 ± 0.6 | 2.60 ± 0.03 | 62.3 ± 1.4 | 4.04 ± 0.08 | 71.0 ± 0.8 | 5.69 ± 0.05 |
| G2: Qwen3 14B/1.7B | WikiText-2 | 19.3 ± 0.1 | 1.29 ± 0.01 | 25.6 ± 0.3 | 1.70 ± 0.02 | 38.6 ± 0.4 | 2.50 ± 0.02 | 57.7 ± 0.7 | 3.75 ± 0.03 | 64.4 ± 0.4 | 5.14 ± 0.11 |
| G3: Vicuna 7B/160M | SpecBench | 35.6 ± 0.2 | 2.36 ± 0.03 | 63.2 ± 1.0 | 4.24 ± 0.08 | 49.7 ± 0.7 | 3.66 ± 0.03 | 73.0 ± 3.0 | 5.42 ± 0.05 | 74.5 ± 2.6 | 6.17 ± 0.16 |
| G3: Vicuna 7B/160M | C4 | 35.9 ± 0.3 | 2.40 ± 0.03 | 63.6 ± 0.7 | 4.24 ± 0.04 | 53.2 ± 1.1 | 3.64 ± 0.04 | 80.2 ± 2.6 | 5.79 ± 0.10 | 87.0 ± 3.6 | 7.18 ± 0.34 |
| G3: Vicuna 7B/160M | WikiText-2 | 32.1 ± 0.8 | 2.13 ± 0.05 | 48.0 ± 1.9 | 3.20 ± 0.14 | 45.7 ± 0.8 | 3.01 ± 0.03 | 66.7 ± 1.2 | 4.70 ± 0.06 | 68.2 ± 1.3 | 5.60 ± 0.22 |
| G4: Qwen3 32B/1.7B | SpecBench | 9.4 ± 0.1 | 0.62 ± 0.01 | 18.7 ± 0.0 | 1.24 ± 0.02 | 21.8 ± 0.1 | 1.78 ± 0.02 | 29.1 ± 1.3 | 2.30 ± 0.08 | 33.3 ± 0.4 | 3.33 ± 0.07 |
| G4: Qwen3 32B/1.7B | C4 | 9.5 ± 0.1 | 0.63 ± 0.01 | 14.2 ± 0.1 | 0.95 ± 0.01 | 18.6 ± 0.1 | 1.20 ± 0.01 | 29.5 ± 0.2 | 1.88 ± 0.01 | 32.7 ± 0.1 | 2.68 ± 0.08 |
| G4: Qwen3 32B/1.7B | WikiText-2 | 9.2 ± 0.1 | 0.61 ± 0.01 | 12.3 ± 0.2 | 0.82 ± 0.01 | 18.5 ± 0.2 | 1.18 ± 0.02 | 26.7 ± 1.3 | 1.71 ± 0.08 | 30.5 ± 0.5 | 2.40 ± 0.13 |
Table 1. TABLE I. SYSTEM AND CLIENT THROUGHPUT UNDER MIXED NETWORK CONDITIONS. VALUES ARE MEAN ± SAMPLE STANDARD DEVIATION OVER FIVE SEEDS, IN TOKENS/S. SYS AND CLI DENOTE SYSTEM THROUGHPUT AND MEAN CLIENT THROUGHPUT, RESPECTIVELY. BOLD VALUES INDICATE THE HIGHEST MEAN WITHIN EACH CONFIGURATION.
Compared to SLED, CGSpec improves system throughput by 58.3% at and 64.6% at . The corresponding gains over EAGLE-3 are 81.2% and 95.7%. EAGLE-3 provides a single speculative decoding in the main experiment, with both drafting and verification performed on the server; the collaborative methods additionally use client drafting resources. These comparisons quantify throughput under the evaluated deployment configurations. Component ablations separately examine the contributions of tree construction and verification scheduling.
Speculative Efficiency Analysis
To further explain where the end-to-end throughput gain comes from, we first analyze the difference in speculative efficiency of our method and baselines. Figure 3 characterizes speculative behavior using two key metrics: token acceptance rate and mean accepted length. These two metrics correspond to the two core objectives of our design. A higher acceptance rate means that drafted tokens are more likely to survive target verification, thereby reducing wasted communication and verification time. A longer accepted length means that each cloud-side verification produces more real decoding progress, thus improving verifier amortization.

Figure 3. Speculative efficiency distribution across datasets for different methods and model pairs. The x-axis is token acceptance rate, and the y-axis shows the mean accepted length per verification step. Points closer to the upper-right corner indicate simultaneously higher acceptance rate and longer accepted length.
As shown in Figure 3, CGSpec consistently occupies a more favorable upper-right region, indicating that it improves both acceptance rate and the accepted length at the same time rather than trading one against the other. Compared with SpecEdge, our method does not simply obtain a higher acceptance rate by conservatively shrinking the speculative budget. Instead, it suppresses ineffective expansion while still preserving enough high value candidates, so both metrics improve simultaneously. Compared with SLED, CGSpec submits more candidate tokens than a purely chain-based draft, and therefore obtains longer effective accepted strides during verification. The SLED chain structure can often maintain relatively high local acceptance, but once an early token is rejected, later tokens in the chain cannot be preserved, so its accepted length is inherently limited. SpecEdge lies at the opposite extreme: it explores more candidates with a larger tree, but when draft-target consistency is insufficient, that larger tree quickly turns into extra communication cost and wasted verification. By contrast, CGSpec first controls the total draft-token budget through consistency-aware sensing, and then controls tree construction through nomination and competition, thereby avoiding both extremes of being overly conservative and overly aggressive.
We further investigate the performance of the task variation by dividing the SpecBench dataset into nine task categories and compare the token acceptance rate and the mean accepted length of CGSpec with the strong baseline SpecEdge in each category shown in Figure 4. CGSpec improves speculative efficiency across most task categories, rather than benefiting only from aggregate performance gains. Another important observation is that CGSpec exhibits much greater variation (Figure 3), driven primarily by differences in the accepted length between tasks (Figure 4). This variation reflects the task behavior of CGSpec. The method expands more aggressively on tasks with higher draft–target consistency, such as Math, Extraction, and Translation, while adopting more conservative speculation on tasks with lower consistency. This confirms that it can dynamically adapt the speculative intensity according to the consistency of draft-target about the task.

Figure 4. Speculative efficiency decomposition across task categories. The left panel shows token acceptance rate for each task category, and the right panel shows the corresponding mean accepted length. The x-axis denotes task categories, and the y-axis denotes the corresponding metric values. Different colors denote different methods.
Latency Breakdown
Figure 5 decomposes cumulative per-request time into drafting, communication, queueing, and verification at . Rows correspond to the four model pairs, while columns represent mixed, all-5G, all-4G, and all-weak networks. For each run, each component is estimated by multiplying its mean per-round duration by the number of rounds per request, and the results are averaged over three datasets and five seeds. Queueing measures server-side waiting before verification begins. The stacked bars describe accumulated stage costs.
Figure 5. Cumulative stage time per request under different networks.
Across the evaluated configurations, CGSpec spends more time on drafting than SpecEdge, but less time on communication, queue, and verification. For example, under the mixed networks with G1, drafting time increases from 4.27 to 6.06 s per request, while communication time decreases from 8.19 to 6.89 s, queue time from 3.90 to 2.48 s, and the verification time from 2.14 to 1.94 s. The additional drafting cost is therefore offset by reductions in the remaining stages. This pattern shows that reducing local drafting time alone is insufficient to minimize the accumulated cost of collaborative generation.
The network conditions determine which components dominate the breakdown. In all-5G, communication occupies a relatively small fraction of the accumulated time, making the differences in server waiting more visible. For G1, CGSpec reduces queue time from 5.14 to 3.38 s relative to the SpecEdge, whereas the communication time decreases from 2.24 to 1.96 s. In all-weak, communication becomes the largest component for G1–G3. For G1, it reaches 13.48 s with SpecEdge and 11.30 s with CGSpec, while queueing contributes 2.28 and 1.56 s, respectively. CGSpec reduces both components, but the substantial communication cost remains in the weaker network.
The model pairs also exhibit different cost profiles. For
G4, queueing remains the largest component across all four network conditions. In mixed networks, CGSpec reduces the queue time from 19.81 to 12.64 s per request, while the drafting time increases from 3.88 to 5.69 s. In contrast, for G3 under mixed networks, communication dominates: CGSpec spends 7.45 s on communication and 1.86 s on queueing. These differences show why the same optimization can have different effects across model and network configurations.
The SLED further illustrates the tradeoff between inexpensive drafting and downstream costs. For G1 under mixed networks, SLED requires only 2.81 s of drafting time per request, compared to 6.06 s for CGSpec. However, its accumulated queueing and verification times are 12.60 and 3.29 s, compared to 2.48 and 1.94 s for CGSpec. The breakdown thus identifies lower waiting and verification costs as important counterparts to CGSpec’s additional drafting work. Because these comparisons vary both drafting and scheduling policies, the subsequent ablation study isolates their individual contributions.
Effectiveness of Consistency-Guided Control
We evaluate whether divergence provides an informative signal for accepted length under a fixed speculative budget.
This experiment examines the relationship independently of online consistency-guided budget adaptation.
Under fixed network and model settings, we record the token-level and step-level top-level JS divergence and analyze its relationship with the accepted length. In this experiment, JS is used only as an observation signal and does not participate in online control. The fixed-tree baseline is assigned a constant budget of 64 tokens per round and the token selection is purely driven by probability. Candidate parent nodes are first ranked by cumulative draft log-probability, each parent expands its local top- tokens, and the resulting children are globally pruned by cumulative log-probability under a fixed budget constraint. CGSpec is evaluated under the same token budget without invoking consistency-based control, while still using the nomination and competition procedure to construct the speculative tree.
Figure 6(a) shows a negative spearman correlation between Top- JS divergence and accepted length for both tree construction methods. The correlation strengthens as increases from 1 to approximately 5 and changes little thereafter, supporting Top-5 as a compact choice for consistency sensing. Figure 6(b)–(Figure 6c) further show that accepted length generally decreases as normalized Top-5 JS divergence increases under both model settings. Accepted length decreases as draft–target divergence increases in both model settings.

Figure 6. Consistency-guided control analysis. (a) Spearman correlation between Top- JS divergence and accepted length. (b)–(c) Accepted length versus normalized Top-5 JS divergence under two model settings. Points denote binned means, solid lines denote smoothed trends, shaded bands denote 95% confidence intervals.
Figure 7 examines this relationship within reasoning, roleplay, and writing tasks for the two model pairs. Using the original thresholds, we partition observations into low - JS (), medium - JS (), and high - JS () states. Mean accepted length follows the ordering low - JS > medium - JS > high - JS in all six panels. This supports the use of JS divergence to distinguish states with different expected accepted progress. The ablation study then evaluates the performance contribution of using this signal for online control.

Figure 7. Accepted length distribution under JS-based state partitioning across different task categories. Each panel corresponds to one task type, and the y-axis reports accepted tokens per verification step. Colors denote three consistency states defined by JS thresholds: low-JS (JS ≤ 0.3), medium-JS (0.3 < JS ≤ 0.7), and high-JS (JS > 0.7). White dots indicate the mean, center lines indicate the median, boxes show the interquartile range, whiskers represent the non-outlier range, and points outside the whiskers denote a small number of outliers.
Ablation Study
We compare five draft tree control policies under the same server verification scheduler. The experiments use SpecBench under mixed networks with , covering G1 (Qwen3-14B / Qwen3-0.6B) and G3 (Vicuna-7B / Vicuna-160M) in seeds 42-46. All variants share the same base tree configuration: candidate parents, depth , local branch width , and node budget . Adaptive policies adjust their growth parameters from this configuration. Table II reports the mean and standard deviation between seeds for system performance and mean client performance. The Full CGSpec results are taken from the corresponding configurations in the main experiment.
| Variant | G1: Qwen3-14B/0.6B | G3: Vicuna-7B/160M | ||
| System | Client | System | Client | |
| Fixed tree, no JS | 43.58 ± 1.14 | 6.11 ± 0.13 | 55.00 ± 1.92 | 8.90 ± 0.26 |
| Confidence pruning | 47.60 ± 0.79 | 7.03 ± 0.12 | 53.52 ± 2.00 | 8.40 ± 0.48 |
| Acceptance-rate guidance | 53.05 ± 0.96 | 7.29 ± 0.16 | 61.14 ± 2.74 | 10.20 ± 0.24 |
| JS budget only | 52.08 ± 1.09 | 7.32 ± 0.27 | 66.53 ± 2.31 | 9.98 ± 0.43 |
| CGSpec (full) | 60.65 ± 1.64 | 8.43 ± 0.05 | 65.71 ± 3.43 | 10.95 ± 0.17 |
Table II. TREE CONSTRUCTION ABLATION ON SPECBENCH UNDER MIXED NETWORKS WITH . VALUES ARE MEAN ± SAMPLE STANDARD DEVIATION OVER FIVE SEEDS, IN TOKENS/S. ALL VARIANTS RETAIN THE PROPOSED VERIFICATION SCHEDULER. FULL CGSPEC RESULTS ARE TAKEN FROM THE CORRESPONDING MAIN EXPERIMENTS. BOLD INDICATES THE HIGHEST MEAN IN EACH COLUMN.
a) Static Trees and Alternative Feedback Policies.: Fixed tree, no JS disables consistency feedback and topology reshaping. Limits expansion by the remaining node budget, keeping tree size relatively stable. Confidence prune retains JS feedback and computes confidence from the normalized entropy of the draft model’s Top-10 distribution. When confidence falls below 0.6, it stops further depth expansion. The acceptance rate guide uses verification acceptance as feedback and adjusts the candidate branching threshold through a controller, replacing the JS control strategy. These variants examine how fixed size control, draft confidence guidance, and verification acceptance feedback affect tree construction and end-to-end performance.
In G1, the fixed tree achieves a system throughput of 43.58 tokens/s. Confidence pruning and acceptance rate guidance achieve 47.60 and 53.05 tokens/s, respectively, while full CGSpec reaches 60.65 tokens/s. The corresponding mean client throughput is 6.11, 7.03, 7.29, and 8.43 tokens/s. In G3, confidence pruning achieves 53.52 tokens/s of system throughput, below the fixed tree’s 55.00 tokens/s. Acceptance-rate guidance and full CGSpec achieve 61.14 and 65.71 tokens/s, respectively. Full CGSpec achieves the best client throughput for both model pairs. For system throughput, it outperforms all alternatives in G1, while the JS budget only achieves a slightly higher value in G3.
b) Global Budget Scaling and Adaptive Tree Shape.: JS budget only and full CGSpec use the same lightweight prefill configuration. Their main difference lies in decoding: The JS budget only proportionally scales the candidate-parent count, local branch width, and node budget according to the consistency state while using the default beam search procedure. Full CGSpec further coordinates budget, depth, and width, favoring deeper and narrower exploration when consistency is high and shallower and wider exploration when disagreement increases. This comparison examines whether adaptive depth and width allocation improves end-to-end performance beyond global tree size adjustment.
In G1, full CGSpec increases system throughput from 52.08 to 60.65 tokens/s and mean client throughput from 7.32 to 8.43 tokens/s relative to JS budget only. For this model pair, consistency-driven tree size scaling alone falls short of the full method’s performance. Further coordinating depth and width improves both aggregate throughput and client progress.
G3 exhibits a different tradeoff. The JS budget only achieves a mean system throughput of 66.53 tokens/s, compared with 65.71 tokens/s for full CGSpec. Their mean client throughput is 9.98 and 10.95 tokens/s, respectively. The full policy therefore achieves higher client throughput, while global scaling alone has a slightly higher mean system throughput.
Verification Scheduling Analysis
We compare CGSpec with FIFO, LAS, LWF, and SRPT to examine how different priority rules affect client progress, aggregate throughput, and waiting time. FIFO provides an arrival order reference. LAS prioritizes clients with less accumulated token progress, representing service based fairness. LWF prioritizes clients with longer server side waiting time, representing waiting time protection. SRPT prioritizes requests according to estimated serving cost in our implementation, representing cost-aware prioritization. Together, these policies cover arrival order, attained service, waiting time, and estimated cost. CGSpec combines estimated remaining work and acceptance information with deadline and waiting time protection.
Figure 8 reports results on G1 and SpecBench under mixed networks, with same requests in main test for clients.
Figure 8. Comparison of five scheduling policies on G1/SpecBench under mixed networks. Left: mean client throughput. Middle: system throughput. Right: mean client RPC wait.
The three panels report mean client throughput, system throughput, and client RPC wait.
As concurrency increases, client throughput decreases and RPC waiting increases for all five policies, while aggregate throughput exhibits different saturation behavior. At , CGSpec achieves 2.81 tokens/s of client throughput, compared with 2.53 for FIFO, 2.37 for LAS, and 2.52 for LWF. Its system throughput reaches 74.75 tokens/s, compared with 74.61, 64.00, and 73.72 tokens/s, respectively. Compared to the plotted FIFO reference, CGSpec provides 11.1% higher client throughput while maintaining similar system throughput. The mean client RPC wait decreases from 1596.1 to 1435.6 ms, a 10.1% reduction.
SRPT exhibits a different tradeoff. At , it achieves the highest client throughput, 2.99 tokens/s, and the lowest RPC wait, 1345.9 ms, while its system throughput reaches 57.54 tokens/s. CGSpec achieves 74.75 tokens/s of system throughput at the same concurrency. This comparison highlights the need to evaluate client progress in conjunction with aggregate verification throughput. LWF remains close to FIFO in all three metrics, while LAS exhibits lower throughput and longer waiting at high concurrency.
At high concurrency, CGSpec combines high aggregate throughput with improved client service relative to FIFO. Its scheduling rule accounts for both the expected benefit of the next verification and the urgency of serving a waiting client. The resulting operating point balances aggregate progress, client throughput, and waiting time as competition for the shared verifier increases.
Discussion
Joint optimization of drafting and verification. The results indicate that efficient edge–cloud speculative decoding depends on the cost of the entire decoding cycle rather than drafting efficiency alone. Although CGSpec incurs additional local drafting time compared with current methods, it reduces communication, queueing, and verification time through consistency-guided tree construction and overlap-aware scheduling. This trade-off highlights the importance of evaluating speculative decoding based on end-to-end generation performance rather than isolated execution stages.
Scheduling objectives under shared verification. The scheduling results reveal a trade-off between aggregate throughput and individual client progress. At high concurrency, SRPT achieves higher mean client throughput and lower RPC waiting time, whereas CGSpec maintains higher system throughput. FIFO also sustains competitive aggregate throughput but provides lower client throughput and longer waiting times than CGSpec. These results suggest that scheduling policies should account for both system efficiency and client service quality. By considering remaining verification work, acceptance information, and client return times, CGSpec provides a different operating point that favors aggregate progress while maintaining reasonable client-level performance.
Deployment considerations. The relative importance of communication and queueing depends on the model pair and network conditions. Communication dominates several configurations under weak networks, whereas server-side waiting remains a major component for the larger target model. Deployment should therefore consider client drafting capacity, link characteristics, and verifier contention together. The current evaluation uses a single verification request per service slot. Extending the scheduler to batched verification requires accounting for batch-dependent service time, memory occupancy, and the interaction between batch formation and client return times. Multiple verifiers introduce an additional placement decision alongside verification ordering.
There are also limitations in the current experimental evaluation. First, network conditions are emulated by injecting controlled delays based on representative 4G- and 5G-like profiles, rather than measured through real cellular connections. This setup enables repeatable comparisons under identical network conditions and helps isolate the effects of different scheduling policies. However, it does not fully capture time-varying wireless bandwidth, packet loss, handover events, and other dynamics of operational mobile networks. Second, our experiments use NVIDIA A40 GPUs as clients and AMD Instinct MI250 GPUs as cloud verification servers. Although this setup allows us to examine heterogeneous client–server execution and shared-verifier contention, it does not characterize the additional constraints of mobile and resource-constrained edge devices, such as limited memory capacity, power consumption, and thermal constraints. Evaluating CGSpec on physical mobile networks and resource-constrained edge platforms is an important direction for future work. In addition, the current evaluation uses a homogeneous GPU configuration across clients, and the impact of heterogeneous client-side computing capabilities remains to be investigated.
Conclusion
We presented CGSpec, a consistency-guided framework for multi-client edge–cloud speculative decoding. CGSpec uses draft–target distribution divergence to regulate speculative tree growth and a nomination and competition strategy to select candidate tokens under a limited budget. Its overlap-aware scheduler accounts for remaining verification work and client return times when allocating shared verification resources.
Experiments across four model pairs, three datasets, and heterogeneous network conditions show that CGSpec achieves the highest mean system and client throughput among the evaluated methods at both 8 and 16 clients. Compared with current SOTA methods, it improves system throughput by 12.2% and 10.2%, and mean client throughput by 14.0% and 33.0%, respectively. Further analyses examine its speculative efficiency, scheduling behavior, scalability, and latency distribution.
These results demonstrate the benefits of coordinating speculative tree construction with verification scheduling in multi-client edge–cloud inference. They also provide insights into managing shared verification resources under heterogeneous network conditions.
References
References
- [1]Y. Huang, J. Xu, B. Pei, L. Yang, M. Zhang, Y. He, G. Chen, X. Chen, Y. Wang, Z. Nie, J. Liu, D. Lin, F. Fang, K. Li, C. Yuan, Y. Qiao, Y. Wang, and L. Wang, “Vinci: A real-time smart assistant based on egocentric vision-language model for portable devices,” Proc. ACM Interact. Mob. Wearable Ubiquitous Technol., vol. 9, no. 3, Sep. 2025.DOI
- [2]Y. Leviathan, M. Kalman, and Y. Matias, “Fast inference from transformers via speculative decoding,” in Proceedings of the 40th International Conference on Machine Learning, vol. 202. PMLR, 2023, pp. 19274–19286.arxiv.org/abs/2211.17192
- [3]C. Chen, S. Borgeaud, G. Irving, J.-B. Lespiau, L. Sifre, and J. Jumper, “Accelerating large language model decoding with speculative sampling,” 2023. [Online]. Available: https://arxiv.org/abs/2302.0138 J. Park, S. Cho, and D. Han, “Specedge: Scalable edge-assisted serving framework for interactive llms,” Advances in Neural Information Processing Systems, vol. 38, pp. 92 668–92 694, 2026.
- [5]X. Li, D. S. D. S. Harikrishnan, S. Ghafouri, H. Vandierendonck, D. John, B. Ji, and D. S. Nikolopoulos, “Sled: A speculative llm decoding framework for efficient edge serving,” in Proceedings of the Tenth ACM/IEEE Symposium on Edge Computing, 2025, pp. 1–8.arxiv.org/abs/2506.09397
- [6]D. Xu, W. Yin, H. Zhang, X. Jin, Y. Zhang, S. Wei, M. Xu, and X. Liu, “Edgellm: Fast on-device llm inference with speculative decoding,” IEEE Transactions on Mobile Computing, vol. 24, no. 4, pp. 3256–3273, 2025.DOI
- [7]F. Yu, L. Li, B. McDanel, and S. Q. Zhang, “DSD: A distributed speculative decoding solution for edge-cloud agile large model serving,” 2025. [Online]. Available: https://arxiv.org/abs/2511.21669
- [8]J. Mamou, O. Pereg, D. Korat, M. Berchansky, N. Timor, M. Wasserblat, and R. Schwartz, “Dynamic speculation lookahead accelerates speculative decoding of large language models,” 2024. [Online]. Available: https://arxiv.org/abs/2405.04304
- [9]Y. Li, F. Wei, C. Zhang, and H. Zhang, “EAGLE: Speculative sampling requires rethinking feature uncertainty,” 2024. [Online]. Available: https://arxiv.org/abs/2401.15077
- [10]Y. Xiong, R. Zhang, Y. Li, and L. Zou, “Dyspec: Faster speculative decoding with dynamic token tree structure,” World Wide Web, vol. 28, no. 3, May 2025.arxiv.org/abs/2410.11744
- [11]Z. Chen, A. May, R. Svirchevski, Y. Huang, M. Ryabinin, Z. Jia, and B. Chen, “Sequoia: Scalable, robust, and hardware-aware speculative decoding,” 2025. [Online]. Available: https://arxiv.org/abs/2402.12374
- [12]Y. Guan, C. Yu, S. Fang, W. Hu, Z. Pan, Z. Wang, Z. Liu, Y. Zhou, Y. Ding, M. Guo et al., “Yggdrasil: Bridging dynamic speculation and static runtime for latency-optimal tree-based llm decoding,” Advances in Neural Information Processing Systems, vol. 38, pp. 86 706–86 726, 2026.
- [13]H. Xia, Z. Yang, Q. Dong, P. Wang, Y. Li, T. Ge, T. Liu, W. Li, and Z. Sui, “Unlocking efficiency in large language model inference: A comprehensive survey of speculative decoding,” in Findings of the Association for Computational Linguistics: ACL 2024, 2024, pp. 7655–7671.arxiv.org/abs/2401.07851
- [14]B. Spector and C. Re, “Accelerating LLM inference with staged speculative decoding,” 2023. [Online]. Available: https://arxiv.org/abs/2308.04623
- [15]Y. Li, F. Wei, C. Zhang, and H. Zhang, “Eagle-3: Scaling up inference acceleration of large language models via training-time test,” Advances in Neural Information Processing Systems, vol. 38, pp. 136 737–136 756, 2026.arxiv.org/abs/2503.01840
- [16]Y. Hu, J. Guo, X. Feng, and T. Zhao, “Adaspec: Selective knowledge distillation for efficient speculative decoders,” Advances in Neural Information Processing Systems, vol. 38, pp. 88 736–88 758, 2026.arxiv.org/abs/2510.19779
- [17]P. Tran, T.-H. Liu, L. T. Le, T.-A. Nguyen, V. Q. La, E. Yu, H. Shu, C. S. Hong, and N. H. Tran, “Goodspeed: Optimizing fair goodput with adaptive speculative decoding in distributed edge inference,” in IEEE INFOCOM 2026-IEEE Conference on Computer Communications. IEEE, 2026, pp. 1–10.arxiv.org/abs/2512.09963
- [18]X. Miao, O. GLiora, Z. Zhang, X. Cheng, Z. Wang, Z. Zhang, R. Y. Y. Wong, A. Zhu, L. Yang, X. Shi, C. Shi, Z. Chen, D. Arfeen, R. Abhyankar, and Z. Jia, “Specinfer: Accelerating generative large language model serving with tree-based speculative inference and verification,” 2024. [Online]. Available: https://arxiv.org/abs/2305.09781
- [19]T. Cai, Y. Li, Z. Geng, H. Peng, J. D. Lee, D. Chen, and T. Dao, “Medusa: Simple LLM inference acceleration framework with multiple decoding heads,” in Proceedings of the 41st International Conference on Machine Learning, vol. 235. PMLR, 2024, pp. 5209–5235.arxiv.org/abs/2401.10774
- [20]Y. Li, F. Wei, C. Zhang, and H. Zhang, “EAGLE-2: Faster inference of language models with dynamic draft trees,” 2024. [Online]. Available: https://arxiv.org/abs/2406.16858
- [21]J. Ning, C. Zheng, and T. Yang, “DSSD: Efficient edge-device LLM deployment and collaborative inference via distributed split speculative decoding,” 2025. [Online]. Available: https://arxiv.org/abs/2507.12000
- [22]S. Ye, B. Ouyang, L. Zeng, T. Qian, X. Chu, J. Tang, and X. Chen, “Jupiter: Fast and resource-efficient collaborative inference of generative llms on edge devices,” in IEEE INFOCOM 2025-IEEE Conference on Computer Communications. IEEE, 2025, pp. 1–10.arxiv.org/abs/2504.08242
- [23]X. Liu, L. Luo, M. Tang, C. Huang, and X. Chen, “Flowspec: Continuous pipelined speculative decoding for efficient distributed LLM inference,” 2025. [Online]. Available: https://arxiv.org/abs/2507.02620
- [24]B. McDanel, “Amusd: Asynchronous multi-device speculative decoding for llm acceleration,” in 2025 IEEE International Symposium on Circuits and Systems (ISCAS). IEEE, 2025, pp. 1–5.arxiv.org/abs/2410.17375
- [25]X. Li, J. Fan, Q. Wang, D. Spatharakis, S. Ghafouri, H. Vandierendonck, D. John, B. Ji, A. R. Butt, and D. Nikolopoulos, “Wisp: Waste-and interference-suppressed distributed speculative llm serving at the edge via dynamic drafting and slo-aware batching,” Proceedings of the ACM on Measurement and Analysis of Computing Systems, vol. 10, no. 2, pp. 1–31, 2026.
- [26]G. Zhang, Y. Cai, G. Yu, P. Popovski, and O. Simeone, “Quantize-sample-and-verify: Llm acceleration via adaptive edge-cloud speculative decoding,” IEEE Communications Letters, vol. 30, pp. 852–856, 2026.arxiv.org/abs/2507.00605
- [27]P. Bhattacharjee, F. Tian, M. Zhong, G. Zhang, O. Simeone, and R. Tandon, “Conformal specification for bandwidth-efficient edge-cloud speculative decoding,” 2025. [Online]. Available: https://arxiv.org/abs/2510.09942
- [28]M. Ghoshal, I. Khan, Z. J. Kong, P. Dinh, J. Meng, Y. C. Hu, and D. Koutsionkolas, “Performance of cellular networks on the wheels,” in Proceedings of the 2023 ACM on Internet Measurement Conference, 2023, pp. 678–695.
- [29]H. Lim, J. Lee, J. Lee, S. D. Sathyanarayana, J. Kim, A. Nguyen, K. T. Kim, Y. Im, Chiang, D. Grunwald et al., “An empirical study of 5g: Effect of edge on transport protocol and application performance,” IEEE Transactions on Mobile Computing, vol. 23, no. 4, pp. 3172–3186, 2023.DOI
- [30]M. Xu, Z. Fu, X. Ma, L. Zhang, Y. Li, F. Qian, S. Wang, K. Li, J. Yang, and X. Liu, “From cloud to edge: a first look at public edge platforms,” in Proceedings of the 21st ACM internet measurement conference, 2021, pp. 37–53.
- [31]A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv et al., “Qwen3 technical report,” arXiv preprint arXiv:2505.05938, 2025.
- [32]C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu, “Exploring the limits of transfer learning with a unified text-to-text transformer,” Journal of Machine Learning Research, vol. 21, no. 140, pp. 1–67, 2020.arxiv.org/abs/1910.10683
- [33]S. Merity, C. Xiong, J. Bradbury, and R. Socher, “Pointer sentinel mixture models,” arXiv preprint arXiv:1609.07843, 2016.arxiv.org/abs/1609.07843
- [34]I. A. Rai, G. Urvoy-Keller, and E. W. Biersack, “Analysis of las scheduling for job size distributions with high variance,” in Proceedings of the 2003 ACM SIGMETRICS international conference on Measurement and modeling of computer systems, 2003, pp. 218–228.
- [35]J. Edmonds and K. Pruhs, “A maiden analysis of longest wait first,” ACM Transactions on Algorithms (TALG), vol. 1, no. 1, pp. 14–32, 2005.
- [36]D. R. Smith, “A new proof of the optimality of the shortest remaining processing time discipline,” Operations Research, vol. 26, no. 1, pp. 197–199, 1978.DOI



