arXiv:2610.08268cs.DCOct 2026

Manuscript Offprint

arXiv:2610.08268

DySCo: Dynamic Sharding for Collaborative Edge-Cloud LLM Inference with Depth-Synchronized Batching

Jingpo Xu, Paul Joe Maliakel, Ivona Brandic, Shashikant Ilager

Jingpo Xu

University of Amsterdam

Amsterdam, Netherlands

j.xu3@uva.nl

Paul Joe Maliakel

TU Wien

Vienna, Austria

paul.maliakel@tuwien.ac.at

Ivona Brandic

TU Wien

Vienna, Austria

ivona.brandic@tuwien.ac.at

Shashikant Ilager

University of Amsterdam

Amsterdam, Netherlands

s.s.ilager@uva.nl

Abstract—Pervasive intelligent applications are increasingly deployed on mobile and Internet of Things (IoT) edge devices. Consequently, Large Language Models (LLMs) are increasingly used to support these applications. Yet, due to their high resource demands, LLMs are mostly deployed in the cloud. Layer-wise edge-cloud inference lets resource-constrained edge devices contribute computation to LLMs they cannot host in full. However, heterogeneous split points introduce two coupled inefficiencies. First, edge execution and communication create idle gaps between cloud invocations. Second, requests arriving at different model depths cannot be conventionally batched. We present DySCo, a collaborative runtime that keeps KV caches local and introduces dyForward, a model-aware layer-range executor that runs configurable contiguous layer ranges from resident model shards without reloading weights. For multi-edge serving settings, we introduce depth-synchronized batching (DSB), which advances heterogeneous requests to the deepest cut and batches their common suffix. Experiments across heterogeneous devices, two model families, and local and wide-area links show that idle gaps increase the latency of subsequent GPU forward calls even when waiting time is excluded, adding up to 25 ms of additional cloud-side suffix latency per decoding step in our measurements. At an average concurrency of eight, DSB improves throughput by 275% over FIFO, 48% over exact-match batching, and 79% over round-robin interleaving while reducing mean per-session latency. Together, these results show that requests with different edge-cloud splits can reuse resident cloud weights and share batched suffix computation. The artifact repository for this work is publicly available at https://github.com/Large-scale-Sustainable-Computing-LSC/dysco-artifact.

Index Terms—large language model inference, edge-cloud computing, collaborative inference, model sharding, heterogeneous batching

I. INTRODUCTION

Large language models (LLMs) are increasingly used in interactive and personal applications, yet their inference remains difficult to place close to users. Cloud deployment provides sufficient memory, accelerator capacity, and mature serving optimizations, and therefore remains the natural choice for hosting LLMs. However, it requires the entire inference to be performed remotely, leaving the available resources on edge devices outside the inference path. In contrast, fully local deployment relies exclusively on edge resources, whose limited memory, compute, and energy budgets restrict the model sizes they can host, even with model compression and edge-oriented architectures [1], [2]. The resulting gap motivates an intermediate design point in which an edge device contributes its available resources by executing part of the model, while the cloud completes the remaining computation.

Prior systems route requests between smaller and larger models [3], or separate prefill and decode across servers [4], [5]. These approaches generally assign complete requests or execution phases to devices capable of hosting the required model. We instead consider resource-constrained edge devices that cannot host the full model, and partition each inference request between the edge and cloud at a configurable layer boundary. In this layer-wise collaborative setting, the edge executes a model prefix and passes its hidden state to a cloud-resident suffix. This approach can pool memory and computation without changing model weights, enabling distributed model execution. Prior systems have established the feasibility of layer-wise cloud-edge partitioning and distributed LLM shards [6]–[9].

Consider a fleet of edge devices serving the same model. A device with available compute can execute a longer model prefix, while a busy or more resource-constrained device can execute a shorter one. For a new session, the edge selects how many layers to execute from its available prefix shard; the cloud executes the corresponding suffix from a shared model instance. This flexibility avoids moving model weights during inference, but causes requests to reach the cloud at different times and model depths. The cloud must therefore handle both the gaps between ready requests and the loss of conventional batching across different cuts.

Distributed model execution primarily uses tensor and pipeline parallelism, as illustrated in Fig. 1. Tensor parallelism divides individual operators and requires frequent collective communication, making it most suitable for tightly coupled accelerators with high-bandwidth interconnects [10], [11]. Pipeline parallelism assigns consecutive layer ranges to different devices and exchanges the activation at each stage boundary [12]. This communication pattern is better suited to heterogeneous edge–cloud devices, so, in this work, we adopt a pipeline-style split with one prefix and one suffix shard.

(a) Pipeline parallelism

Figure

(b) Tensor parallelism

Fig. 1: Pipeline and tensor parallelism for one decoding step. Pipeline sharding transfers the cut-layer hidden state, whereas tensor parallelism requires collective communication within every layer.

Layer-wise edge–cloud sharding introduces two forms of cloud-side inefficiency. Temporally, edge computation and communication create idle gaps between successive cloud invocations, which can increase the latency of the subsequent forward pass. Structurally, heterogeneous cut layers cause requests to reach the cloud at different model depths, preventing conventional batching even when they share a common suffix. We characterize the former and address the latter with depth-synchronized batching (DSB).

To investigate the idle-gap and cut-diversity effects illustrated in Fig. 2, we build DySCo, a collaborative inference runtime that keeps KV caches with their respective shards, transfers only the cut-layer hidden state and returned token during decoding, and supports different session cuts without reconstructing the model. We evaluate four Qwen and Llama configurations on heterogeneous single-edge devices and a controlled multi-edge testbed. Under Poisson arrivals with 16 warm edge workers and mean concurrency eight, DSB improves throughput by 48% over exact-match batching while reducing mean per-session latency, showing that heterogeneous cuts can still benefit from shared cloud execution.

In summary, this paper makes the following key contributions:

  • We design and implement an edge–cloud inference runtime that keeps KV caches with their respective shards. Its dyForward mechanism selects contiguous layer ranges from loaded shards, allowing different session cuts without reloading weights for each cut.

  • We measure how cut placement affects split-inference latency across heterogeneous edge devices and network settings, and use controlled replay to isolate the additional cloud-side latency caused by inter-token idle gaps. These results show that layer count alone does not determine cloud latency.

  • We introduce depth-synchronized batching (DSB), which advances requests with different cuts to a common model depth and executes their remaining shared suffix as one batch.

(a) Extra latency vs. idle gap

Figure

(b) Throughput vs. cut diversity

Fig. 2: Motivating results from separate single-edge and multi-edge experiments. (a) Controlled idle gaps add cloud suffix latency beyond the injected wait. (b) DSB throughput is less sensitive to cut diversity than exact-match batching.

  • We validate the prototype with four Qwen and Llama model configurations and prompts from two source datasets. Controlled replay shows up to approximately 25 ms of additional decode latency per generated token after injected waiting time is excluded; at a mean concurrency of eight, DSB improves throughput by 48% over exact-match batching while reducing mean per-session latency.

References (31)