betaFeedback

WorksComputer Science

HyCoInfer: Cloud-Edge Collaborative Inference for Large Language Models on Heterogeneous GPU-FPGA Architectures

Abstract

Large language model (LLM) serving relies predominantly on cloud GPUs, yet autoregressive decoding is memory-bound and often leaves their arithmetic units underutilized. Edge FPGAs offer attractive decoding efficiency, but are ill suited to sustaining a high-concurrency serving workload alone. This paper presents HyCoInfer, a heterogeneous cloud-edge serving system that assigns prefill to cloud GPUs and distributes decoding across cloud GPUs and edge FPGAs. The design addresses three barriers to practical offloading: capacity balancing across heterogeneous accelerators, the large KV cache crossing a constrained wide-area link, and the latency added by heterogeneous execution. HyCoInfer incorporates FPGA decode capacity into GPU prefill/decode role partitioning and places requests according to queue load, prompt length, and network state. It further combines layer-wise pipelined transfer, decoder-side precomputation, and bandwidth-adaptive KV cache compression based on residual vector quantization. We implement HyCoInfer using two NVIDIA V100 GPUs and an AMD Xilinx Alveo U280 and evaluate it over 100-1000 Mbps links. At 500 Mbps, HyCoInfer delivers up to 4.11 times the request goodput of cloud-only vLLM and reduces mean end-to-end latency by up to 61.1%. Across different network conditions and workloads, the system improves overall serving capacity, with the largest gains on communication-intensive tasks, and reduces per-request energy.

Introduction

As demand for interactive LLM services continues to grow, online inference systems face increasing workload pressure. Improving resource utilization, throughput, and latency under limited resource and cost budgets has therefore become a central problem in LLM serving.

Most cloud computing clusters use GPUs as their primary computing units, and existing inference systems accordingly focus on optimizing cloud GPU clusters. Despite their mature software ecosystem and high parallel throughput, GPUs are not utilized uniformly or fully across the two phases of LLM inference. Prompt processing (prefill) computes many input tokens in parallel and can effectively use GPU arithmetic units. Autoregressive decoding, however, generates one token at a time with low arithmetic intensity and repeatedly accesses model weights and a growing key-value (KV) cache. Its execution is therefore commonly constrained by memory bandwidth. Using GPUs for decoding leaves part of their compute capacity underutilized, limiting serving performance and the number of users that the system can support [1, 2].

Prior work has explored LLM inference on alternative hardware. FPGAs are attractive candidates for edge deployment because their customized datapaths and memory systems can improve execution efficiency. Existing FPGA LLM accelerators demonstrate competitive throughput and substantially better energy efficiency for small-batch inference; for example, FlightLLM achieves efficient decode with a TPT of approximately 20 ms on an FPGA [3]. However, the limited capacity of edge FPGAs makes them less capable than high-end GPUs on compute-intensive prefill and unsuitable for sustaining a high-concurrency serving workload alone.

The suitability of FPGAs for decoding motivates a hybrid design in which cloud GPUs process prefill, while cloud GPUs and edge FPGAs jointly undertake decoding. This design both releases cloud resources from part of the decoding workload and uses FPGAs in the phase where their efficiency advantage is most pronounced.

Realizing this design presents three systems challenges. First, the architecture requires coordinated inference across cloud nodes, edge nodes, heterogeneous hardware, and multiple network tiers. Second, serving workloads exhibit diverse request rates, prompt lengths, and available accelerator capacities, requiring efficient scheduling and request routing. Third, the limited bandwidth between cloud and edge can make KV-cache transfer a performance bottleneck and inflate time to first token (TTFT).

To address these challenges, we present HyCoInfer, an adaptive GPU–FPGA collaborative inference system that improves serving capacity and responsiveness by jointly utilizing cloud and edge resources. As Figure 1 shows, HyCoInfer builds on prefill–decode (PD) disaggregation. Using GPU and FPGA performance profiles, it accounts for the additional decode throughput supplied by FPGAs when partitioning GPUs between prefill and decode, thereby balancing the two stages. Requests are dispatched to GPU or FPGA decoders: short prompts favor the FPGA when its queue and network can satisfy the service-level objective (SLO), whereas long prompts preferentially remain in the cloud. For edge-bound requests, residual vector quantization (RVQ) converts KV vectors into compact codebook indices and adapts the number of residual stages to link bandwidth, enabling a progressive quality–latency tradeoff. Prefill-side layer-wise transmission overlaps communication with subsequent computation, while edge-prefix precomputation uses an otherwise idle FPGA compute window under low load.

HyCoInfer architecture

Figure 1. HyCoInfer architecture. Cloud GPUs perform prefill and share decoding with edge FPGAs; only compressed KV caches assigned to edge decoders cross the cloud–edge link.

We implement HyCoInfer on NVIDIA V100 GPUs and an AMD Xilinx Alveo U280 FPGA and evaluate it using four serving workloads, four quality benchmarks, and three link rates. At 500 Mbps on Qasper, HyCoInfer improves request goodput by 310.9% and reduces latency by 56.2% compared with cloud-only vLLM. Compared with unoptimized cloud–edge collaborative inference, it improves request goodput by 45.5% and reduces latency by 14.4%.

This paper makes three contributions. (1) We present HyCoInfer, a cloud–edge collaborative inference system for a hybrid GPU–FPGA architecture. Built on a mature high-performance inference framework, it provides strong performance and scalability. (2) We develop a scheduling strategy that combines FPGA-aware GPU PD balancing with prompt-and load-aware decoder selection, exploiting heterogeneous decode capacity while maintaining inter-stage throughput balance. Dynamic RVQ and layer-wise pipelining reduce cross-tier KV-transfer latency, while edge-prefix precomputation is designed to use idle FPGA capacity under low load. (3) On the three communication-intensive serving workloads at 100 Mbps, HyCoInfer improves request goodput by 66.8–233.9% and reduces latency by 26.9–53.1% over cloud-only deployment, while also delivering better energy efficiency.

Preliminaries

Prefill, Decode, and PD Disaggregation

LLM inference typically consists of two phases: prefill and decode. The prefill phase processes the complete input sequence, computes the hidden states of all input tokens across Transformer layers in parallel, and generates and stores the KV cache required by subsequent inference. This phase exposes substantial matrix-computation parallelism and is primarily compute-bound. The decode phase generates output tokens autoregressively. Each iteration reads the model weights and the accumulated KV cache to produce one new token. Because a decode iteration exposes limited computational parallelism, it is usually memory-intensive and more strongly constrained by memory bandwidth.

The distinct performance characteristics of prefill and decode lead to different resource requirements. When both workloads share an accelerator under continuous request arrivals, a long prefill can block active decode requests, while the sustained memory traffic of decoding can interfere with prefill. Such interference causes latency variance and degrades resource utilization.

Prefill–decode (PD) disaggregation deploys the two phases on separate workers and independently schedules and scales them according to their computational characteristics [1, 2]. Once a prefill worker finishes processing the input, it transfers the request’s KV cache to a decode worker, which continues generating output. This architecture reduces interference and permits hardware to be provisioned separately for compute-intensive prefill and memory-intensive decode. However, PD disaggregation also introduces KV-cache migration into the request critical path, especially when inter-worker bandwidth is constrained.

Heterogeneous Hardware for LLM Inference

GPUs integrate many parallel compute units and mature high-performance operator libraries, providing high throughput for large matrix multiplications and batched workloads. They are therefore well suited to compute-intensive prefill. Increasing batch size or processing many input tokens concurrently allows a GPU to utilize its arithmetic resources effectively. In contrast, autoregressive decode produces only one token per iteration, exposes limited parallelism, and repeatedly accesses model weights and the KV cache, making it difficult to exploit the GPU’s peak compute capability.

FPGAs allow model operators to be mapped onto customized datapaths, on-chip buffers, and pipelines, and permit memory accesses to be optimized for low-precision computation. For small-batch, low-parallelism, and memory-intensive decode, an FPGA can reduce scheduling and data-movement overheads found in general-purpose accelerators and improve energy efficiency. FlightLLM reports that, when running Llama 2 7B on an AMD Xilinx Alveo U280, its TPOT is approximately 21.50 ms and reaches the A100 level [3]. Resource constraints, however, make its TTFT nearly 30× that of the A100. This asymmetry further motivates using the FPGA for decode rather than standalone prefill.

KV Cache

During autoregressive Transformer inference, every layer caches the key and value tensors of preceding tokens. When a new token is generated, attention directly reads these cached tensors and avoids recomputing the intermediate states of all previous tokens. For a given model, each request’s KV-cache size grows approximately linearly with its sequence length. As context windows and request concurrency increase, the aggregate memory footprint grows rapidly and limits the number of requests that can be served simultaneously [4].

The KV cache is not only a local storage concern but also a communication burden in a PD-disaggregated system. Before decoding begins, the prefill worker must transfer the generated cache to the selected decode worker, and the transferred volume grows with input length. High-speed datacenter interconnects may hide part of this overhead; over a low-bandwidth or variable cloud–edge link, KV-cache transfer can instead dominate TTFT and offset the decoding benefit of heterogeneous hardware.

Existing work reduces KV-cache overhead through quantization, sparsification, and cache eviction. Quantization represents keys and values at lower numerical precision [4, 5]. Sparsification or token-selection techniques retain only states that are more important to subsequent attention, while eviction policies remove less valuable historical states according to attention scores, recency, or a capacity budget [6, 7]. These approaches reduce storage or transferred bytes, but generally trade compression ratio against processing overhead and model quality.

Method

System Model and Objective

System Architecture

1) System Architecture: HyCoInfer serves online LLM requests using a cloud GPU cluster and an edge FPGA cluster under prefill–decode (PD) disaggregation. It comprises GPU prefill workers PP, GPU decode workers DD, FPGA decode workers FF, and a global scheduler. A prefill worker computes the complete prompt and produces the per-layer KV cache. A GPU decoder receives a lossless cache over a high-speed cloud link, whereas an FPGA decoder receives a compressed cache over a bandwidth-constrained wide-area link. The scheduler tracks worker roles, capacities, in-flight requests, and per-link state, and selects the prefill worker, decode worker, and KV-transfer parameters.

We denote a deployment by xPxP-yDyD-zFzF, where xx, yy, and zz are the numbers of GPU prefill, GPU decode, and FPGA decode instances. Each request is prefilled exactly once and its KV cache is sent only to the selected decoder rather than broadcast. The GPU path uses lossless passthrough, while the FPGA path applies residual vector quantization (RVQ). Target-specific codecs avoid imposing RVQ overhead or accuracy loss on cloud GPU requests. HyCoInfer is built on vLLM V1. Every prefill producer connects to all GPU and FPGA endpoints, while request-level parameters select one destination and codec without changing the data-plane protocol when xx, yy, or zz changes.

Request and Performance Model

2) Request and Performance Model: A request rr is represented by prompt length nrn_r, maximum output length oro_r, and arrival time ara_r. Its TTFT is decomposed as

TrTTFT=Trq,P+max⁡(TrP−KV,Tredge)+Trq,D+TrD,1,(1)T_r^{\mathrm{TTFT}} = T_r^{q,P} + \max(T_r^{\mathrm{P-KV}}, T_r^{\mathrm{edge}}) + T_r^{q,D} + T_r^{D,1}, \tag*{(1)}

where Trq,PT_r^{q,P} and Trq,DT_r^{q,D} are prefill and decode queueing delays, TrPT_r^P is GPU prefill time, TrKVT_r^{\mathrm{KV}} is the duration of KV encoding, transfer, reconstruction, and insertion, and TrD,1T_r^{D,1} is the time to produce the first token. TrP−KVT_r^{\mathrm{P-KV}} denotes the joint critical path from the start of prefill until the target-side KV cache is ready, with

max⁡(TrP,TrKV)≤TrP−KV≤TrP+TrKV.(2)\max(T_r^P, T_r^{\mathrm{KV}}) \le T_r^{\mathrm{P-KV}} \le T_r^P + T_r^{\mathrm{KV}}. \tag*{(2)}

If KV migration starts only after the complete prefill, this term equals the serial upper bound. Layer-wise transfer instead overlaps the KV path with subsequent prefill layers and moves it toward the lower bound, while still retaining pipeline startup and tail costs. This overlap represents an additional optimization opportunity.

TredgeT_r^{\mathrm{edge}} is the edge-prefix precomputation time introduced by HyCoInfer. The FPGA generates part of the prefix KV locally in parallel with the cloud prefill and suffix-KV path, so it contributes through a maximum with TrP−KVT_r^{\mathrm{P-KV}} rather than a sum. Section III-C2 presents this mechanism; when edge precomputation is disabled, Tredge=0T_r^{\mathrm{edge}} = 0.

For worker jj, the scheduler maintains in-flight count qjq_j, concurrency capacity cjc_j, and normalized load ρj=qj/cj\rho_j = q_j/c_j. GPU capacity follows vLLM’s maximum number of concurrent sequences; FPGA capacity follows the hardware pipeline. Each FPGA endpoint has an independent bandwidth BjB_j, rather than sharing a single abstract edge-bandwidth budget.

Under this model, HyCoInfer addresses a joint scheduling- and execution-level task. At the scheduling level, it first incorporates FPGA decode capacity into GPU PD partitioning to balance prefill and aggregate decode throughput (§ 3-B1), and then routes each request to a GPU or FPGA decoder based on request characteristics, worker load, and capacity (§ 3-B2). At the execution level, its optimizations center on the KV cache: decoder-side prefix precomputation and bandwidth-adaptive compression reduce cross-domain traffic volume (§ 3-C2 and III-D), while prefill-side layer-wise pipelining hides KV-transfer time (§ 3-C1).

Scheduling-Level Optimizations

FPGA-Aware GPU PD Balancing

1) FPGA-Aware GPU PD Balancing: Conventional PD partitioning considers only GPU performance in prefill and decode. To accommodate FPGAs, HyCoInfer treats GPUs as a homogeneous pool and explicitly accounts for FPGA decode capacity when assigning them to the two stages. Let the profiled throughputs of one GPU prefill, GPU decode, and FPGA decode instance be rPr_P, rDr_D, and rFr_F. A deployment has NN GPUs and zz FPGAs, with xx GPUs assigned to prefill and y=N−xy = N - x to decode. End-to-end throughput is bounded by the slower of prefill and aggregate decode. Avoiding persistent idleness or backlog therefore requires

xrP≃yrD+zrF,x+y=N.(3)x r_P \simeq y r_D + z r_F,\qquad x + y = N. \tag*{(3)}

Solving gives

x∗=NrD+zrFrP+rD,y∗=NrP−zrFrP+rD,(4)x^* = \frac{N r_D + z r_F}{r_P + r_D},\qquad y^* = \frac{N r_P - z r_F}{r_P + r_D}, \tag*{(4)}

after rounding and clipping to feasible instance counts. As zrFz r_F grows, fewer GPU decoders are required and more GPUs can be assigned to prefill.

A deployment can first profile the target model under representative sequence lengths and batching configurations and then use Eq. (4) to choose its xPx_P-yDy_D-zFz_F partition. A long-running service may also observe realized prefill and aggregate decode throughput over a coarse timescale and recalibrate the profiles or partition when necessary.

  1. Heterogeneity-Aware Request Dispatch: Because edge KV traffic grows nearly linearly with prompt length, HyCoInfer jointly considers prompt size, normalized load, capacity, and recent SLO feedback. Before tokenization, online serving uses message character count as a low-cost estimate n^r\hat{n}_r. Given an administrative threshold n0n_0 or observed mean nˉ\bar{n}, the effective threshold is θ=αn0\theta= \alpha n_0 or θ=αnˉ\theta= \alpha\bar{n}. After a request completes, α←min⁡(1,α+0.1)\alpha\leftarrow\min(1,\alpha+0.1) when both SLOs hold and α←max⁡(0,α−0.2)\alpha\leftarrow\max(0,\alpha-0.2) otherwise. The asymmetric update quickly reduces long edge placements after a violation.

The scheduler first finds the least-loaded GPU and FPGA endpoints dg∗d_g^* and df∗d_f^*. With no history, it conservatively chooses a GPU. If n^r≥θ\hat{n}_r \ge\theta, it prefers the GPU unless its in-flight count exceeds the FPGA by tolerance δ\delta and the FPGA has free capacity. If n^r<θ\hat{n}_r < \theta, it chooses the FPGA only when qdf∗<cdf∗q_{d_f^*} < c_{d_f^*} and FPGA load does not exceed GPU pressure; otherwise it falls back to the GPU. Explicit capacity checks prevent requests from accumulating behind a low-concurrency FPGA. Prefix precomputation is disabled for policies that create an FPGA queue, because KV can arrive while a request waits.

The decision is carried in request-level kv_transfer_params, including the target endpoint, a unique transfer ID, and prefix split. The prefill connector sends only to that endpoint and selects passthrough over an unrestricted cloud link for GPUs or RVQ over an independently rate-limited link for FPGAs. The transfer ID and prompt hash jointly match messages to requests under concurrency, duplicate prompts, and reordering.

Execution-Level Optimizations

  1. Prefill-Side Pipelined Transfer: A naive PD path serializes TP+Tenc+TD2H+TnetT^P + T^{enc} + T^{D2H} + T^{net}, where D2H denotes a device-to-host copy. As Figure 2 shows, since layer ll no longer modifies its KV after attention, HyCoInfer uses the vLLM save_kv_layer() callback to form a four-stage pipeline: extraction, RVQ encoding, D2H/bit packing, and transmission. After the main CUDA stream finishes layer ll, the connector uses the PagedAttention slot mapping to extract request tokens

Layer-wise pipelining overlaps prefill, compression, transfer, reconstruction, and decode

Figure 2. Layer-wise pipelining overlaps each KV layer’s RVQ compression, device copy, and cloud–edge transfer with subsequent prefill layers.

and split keys and values. A dedicated encode stream waits for a production event, normalizes by standard deviation, and launches RVQ, while the main stream proceeds to layer l+1l+1.

Background workers wait for encode events, copy only packed indices and scale factors into pinned CPU buffers, serialize them, and hand them to the transport layer. All GPU kernels are submitted by the vLLM worker’s main thread; background threads handle only event waiting, D2H, serialization, and networking. Futures track outstanding layers. At prefill completion, wait_for_save() waits for all sends, emits a done message with the layer count, and creates a cache-ready marker, preventing a decoder from consuming a partial cache.

The connector groups heterogeneous destinations by codec and performs work only for the selected target. Lossless cloud endpoints complete synchronously, whereas edge sends may proceed asynchronously so that a slow wide-area link does not block the GPU path. Consequently, each layer’s encoding, host processing, and transfer overlap with subsequent prefill computation. As Figure 2 illustrates, the critical path is governed by the slower pipeline stage, apart from startup and tail costs.

  1. Decode-Side Precomputation: HyCoInfer uses two complementary mechanisms. First, a receive thread starts before decode forward. Each arriving layer is deserialized, reconstructed, and written to the corresponding KV-cache region in memory. Per-layer events let the model call wait_for_layer_load(l) before layer ll, overlapping later-layer reception and reconstruction with earlier computation. Messages arriving before local scheduling are retained under a prompt-hash and endpoint/transfer-ID key. An event fires only after every request in the current batch has written that layer’s KV state; timeouts, unknown layers, and incomplete layer counts are detected explicitly.

Second, edge-prefix precomputation (Figure 3) targets intermittent edge arrivals, where the FPGA may frequently be idle. Under conventional PD disaggregation, when a request reaches an idle edge node, the FPGA must still wait for the cloud to generate and transfer its KV cache before decoding can begin. HyCoInfer uses this waiting window to compute a prompt prefix, overlapping otherwise idle FPGA work with cloud KV generation and transfer while reducing wide-area traffic. This design is inspired by Jin et al.’s concurrent KV computation For a request assigned to an idle FPGA, the GPU still prefills the complete prompt but transmits KV only for suffix [s,nr)[s,n_r), while the FPGA computes the first ss tokens locally. The two paths start concurrently, and generation begins after both finish, so readiness is determined by the slower path. Here 0≤s<nr0 \le s < n_r; GPU decoders always use s=0s=0 and receive full lossless KV, whereas FPGA decoding receives only suffix KV beginning at token ss.

Opportunistic decoder-side precomputation under low edge load

Figure 3. Opportunistic decoder-side precomputation under low edge load. The FPGA computes a prompt prefix locally while receiving cloud-generated suffix and loading [8]; HyCoInfer applies a similar compute–transfer principle across the cloud–edge boundary by overlapping local prefix computation with suffix-KV transfer.

Edge-prefix precomputation is an opportunistic mechanism for low-load operation. When the edge is idle, it uses the otherwise unoccupied compute window before KV arrival to generate prefix KV locally, trading local computation for fewer cross-domain bytes. Even for an idle FPGA, HyCoInfer enables this path only when the sequence is sufficiently long and bandwidth sufficiently low for the saved KV-transfer time to exceed the additional path overhead. Under sustained load, FPGA compute should instead prioritize requests already in decoding; HyCoInfer then sets s=0s=0 and falls back to conventional PD-disaggregated execution.

Bandwidth-Adaptive KV-Cache Compression

Residual Vector Quantization

Figure 4 illustrates cloud-side RVQ encoding and edge-side KV reconstruction. For a key or value vector x∈Rd\mathbf{x} \in\mathbb{R}^{d} at layer ll, HyCoInfer first computes σ=std⁡(x)\sigma=\operatorname{std}(\mathbf{x}) and normalizes xˉ=x/max⁡(σ,ϵ)\bar{\mathbf{x}}=\mathbf{x}/\max(\sigma,\epsilon). It partitions the result into G=d/d^G=d/\hat{d} subvectors. At RVQ stage kk, each subvector z\mathbf{z} selects a layer-specific codeword:

RVQ-based KV-cache encoding at the cloud prefill worker and reconstruction at the edge decoder

Figure 4. RVQ-based KV-cache encoding at the cloud prefill worker and reconstruction at the edge decoder. Different residual depths provide low- and high-fidelity representations.

ik=arg⁡min⁡i∈[1,C]∥rk−1−cl,k,i∥22,i_k=\underset{i\in[1,C]}{\arg\min}\left\lVert\mathbf{r}_{k-1}-\mathbf{c}_{l,k,i}\right\rVert_2^2,
rk=rk−1−cl,k,ik,r0=z,z^K=σ∑k=1Kcl,k,ik.(5)\mathbf{r}_k=\mathbf{r}_{k-1}-\mathbf{c}_{l,k,i_k},\quad\mathbf{r}_0=\mathbf{z}, \qquad \hat{\mathbf{z}}_K=\sigma\sum_{k=1}^{K}\mathbf{c}_{l,k,i_k}. \tag*{(5)}

The first KK stages of one Kmax⁡K_{\max}-stage codebook therefore form a progressive representation: increasing KK reduces residual error but linearly increases index traffic.

HyCoInfer uses C=1024C=1024, d^=32\hat{d}=32, and Kmax⁡=16K_{\max}=16, so each index occupies 10 bits. A Triton kernel packs four indices into five bytes on the GPU and transfers only packed indices and FP32 scale factors to the CPU. Ignoring small headers, one layer’s key/value payload is

S(n,K)≈2n(G⋅10K/8+4).(6)S(n,K)\approx2n(G\cdot10K/8+4). \tag*{(6)}

Each key or value vector carries GG groups of indices and one 4-byte FP32 scale factor. This GPU-first path also avoids copying full FP16/BF16 KV tensors over PCIe.

Although VQLLM and related work have explored vector quantization for KV-cache compression [9], they use it at a different system boundary from HyCoInfer. These approaches primarily target the KV memory footprint and retain the compressed representation throughout autoregressive generation, where frequent codec invocations introduce additional inference overhead. In contrast, HyCoInfer encodes and decodes each prompt cache once, only at the KV-migration boundary introduced by PD disaggregation, without changing ordinary KV accesses during subsequent decoding. Over a bandwidth-constrained cloud–edge link, this one-time codec cost is small relative to the transfer time saved by compression.

More importantly, RVQ’s residual stages form a nested representation: the runtime can truncate one codebook stack after its first KK stages, incrementally adjusting traffic and reconstruction quality without changing the coding format or retraining the quantizer. Common KV-cache quantizers such as KIVI and KVQuant are designed around a precision selected in advance and do not natively treat compression depth as a control variable that follows link conditions. HyCoInfer therefore adopts RVQ not to claim uniformly higher static accuracy than every quantizer, but to obtain bandwidth adaptivity while retaining comparable model quality.

CacheGen also targets KV-cache network transfer, but relies on CUDA-based arithmetic coding for encoding and decoding [10]. Our measurements find its decoding very slow after migration to the edge platform, making it unsuitable for the cloud–edge KV path. RVQ reconstruction instead consists of regular codebook lookups and accumulation and provides substantially faster edge-side decoding.

Bandwidth-Based Depth Selection

Given bandwidth BB, candidate depths K\mathcal{K}, and quality floor Qmin⁡Q_{\min}, the ideal choice is

K∗(B,n)=max⁡{K∈K∣Q(K)≥Qmin⁡, Tenc(K)+S(n,K)/B+Tdec(K)≤Tbudget}.(7)K^{*}(B,n)=\max\left\{K\in\mathcal{K}\mid Q(K)\ge Q_{\min},\ T_{\mathrm{enc}}(K)+S(n,K)/B+T_{\mathrm{dec}}(K)\le T_{\mathrm{budget}}\right\}. \tag*{(7)}

HyCoInfer builds a discrete operating table from offline quality tests and codec benchmarks and selects an entry according to the current link tier. Compressed messages carry shape, depth, scales, and indices; each FPGA endpoint has an independent serial send queue and bandwidth budget.

Compression depth and prefix split are jointly optimized. Under the quality constraint, HyCoInfer selects (K,s)(K,s) by balancing codec overhead, suffix-KV transfer time, and edge-prefix computation time, so that RVQ depth and prefix splitting share the same latency objective.

Implementation

The cloud implementation builds on vLLM’s prefill–decode deployment and KV Connector. Requests assigned to GPU decoders reuse the existing intra-cloud KV-transfer path and high-speed interconnect, carrying lossless KV without an additional compression protocol. HyCoInfer extends only the edge-bound path: the connector invokes the RVQ kernel, issues asynchronous GPU-to-CPU copies, and hands compressed layers to the cloud–edge transport. A coordinator maintains performance profiles, organizes workers according to the FPGA-aware PD partition, and routes requests.

DatasetInput (tokens)Output (tokens)Rate (qps)Conc.TTFT SLO (ms)
IMDB100–2001–518200
CNN/DailyMail∼800∼500.542,000
Qasper5K–16K10–1000.1410,000
GovReport<9K<5000.05420,000

Table 2. Serving Workloads and Stress-Test Settings

The edge service receives compressed layers, reconstructs their KV vectors from resident codebooks, and invokes the FlightLLM kernel deployed on the FPGA through OpenCL. The default two-GPU configuration uses two NVIDIA Tesla V100-PCIe GPUs with 32 GB memory and one AMD Xilinx Alveo U280: one V100 acts as the prefill worker and the other as the cloud decoder. We shape cloud–edge bandwidth to 100, 500, or 1000 Mbps. Table 1 summarizes the main setup.

ComponentConfiguration
Cloud accelerators2–4× Tesla V100-PCIe-32GB
Edge acceleratorAMD Xilinx Alveo U280
Cloud runtimevLLM with extended KV Connector
Edge runtimeFlightLLM
Link rates100, 500, 1000 Mbps

Table 1. System Configuration

Using performance data from the edge platform and network links, HyCoInfer dynamically adjusts request dispatch and transmitted KV precision during online serving to increase the likelihood of meeting SLOs. When it detects an extreme condition, such as a sudden bandwidth drop or an unresponsive FPGA, the service degrades gracefully and reschedules failed requests to a GPU for retry, preserving basic service stability.

The cloud–edge data path depends on neither NCCL, a specialized interconnect, nor an accelerator-specific memory layout. The sender packages RVQ indices, scale factors, and the necessary layer and tensor metadata into self-describing layer-wise messages. The receiver reconstructs KV from this representation and writes it into its own KV-cache memory.

Evaluation

Experimental Setup

All experiments use Llama-3.1-8B-Instruct [11]; FlightLLM uses the quantized model required by its kernel. The RVQ model is derived from a residual-quantized variational autoencoder (RQ-VAE) implementation [12], with optimized encode/decode kernels and runtime-selectable depth. Because HyCoInfer uses vLLM for GPU-side inference, we avoid conflating framework differences with system gains by selecting two primary baselines built on the same runtime: cloud-only vLLM using its example connector for disaggregated execution, and an unoptimized collaborative deployment combining native vLLM with FlightLLM. We additionally evaluate model-parallel Hugging Face Transformers [13] as a performance reference, wrapping it with a request queue and simple concurrent online service. All methods use the same GPUs and consistent optimization settings; collaborative methods additionally use the U280.

IMDB [14], CNN/DailyMail [15], Qasper [16], and GovReport [17] span short-text sentiment classification, medium summarization, long-document question answering, and long-form summarization. Table II summarizes their sequence lengths, request rates, concurrency, and TTFT SLOs; all use a 100-ms TPOT SLO. Request goodput is the number of completed requests satisfying both SLOs divided by measurement duration, with each request counted once regardless of token count. Other metrics are mean end-to-end latency, TTFT, per-request energy, and downstream accuracy. Transformers runs out of memory on GovReport and is omitted there.

End-to-End Serving Performance

Figure 5 plots request goodput against mean latency; points toward the upper-left are better. HyCoInfer shows particularly strong gains on communication-intensive workloads. At 500 Mbps, it achieves 2.18×, 4.11×, and 2.07× the request goodput of cloud-only vLLM on CNN/DailyMail, Qasper, and GovReport, respectively, while reducing mean latency by 61.1%, 56.2%, and 32.0%. Offloading relieves the GPU decode queue, allowing the cloud to accept new prefill requests sooner, while efficient FPGA decoding increases aggregate serving capacity.

SLO-compliant request goodput versus mean end-to-end latency for all workloads and cloud–edge bandwidths

Figure 5. SLO-compliant request goodput (requests/s) versus mean end-to-end latency for all workloads and cloud–edge bandwidths. Upper-left is better.

The advantage over naive collaboration is especially clear under constrained bandwidth. At 100 Mbps, HyCoInfer achieves 3.45× the request goodput and 67.7% lower latency on Qasper, and 2.52× the request goodput and 59.2% lower latency on GovReport, relative to the unoptimized cloud–edge deployment. Naive offloading transfers the original KV cache and allows migration to dominate TTFT; HyCoInfer jointly controls this cost through compression, pipelining, and request dispatch.

From 500 to 1000 Mbps, HyCoInfer changes little while naive collaboration remains bandwidth-sensitive, indicating that compression and pipelining hide most transfer overhead. Selective offloading on Qasper and GovReport also frees GPU KV capacity and decode slots, sustaining gains without a high-bandwidth cloud–edge interconnect.

Multi-GPU Scalability

Figure 6 compares HyCoInfer with alternative cloud-only vLLM partitions and Transformers on CNN/DailyMail and Qasper as the cloud GPU pool expands. Across both workloads and resource scales, HyCoInfer maintains a favorable request-

Figure 6. Request goodput versus mean latency when scaling the cloud pool to three and four GPUs on CNN/DailyMail and Qasper. Upper-left is better.

goodput/latency tradeoff. This result shows that FPGA-aware PD balancing scales with the heterogeneous resource pool by matching aggregate prefill and decode capacity, rather than relying on one fixed resource configuration.

Bandwidth Sensitivity

Figure 7 shows TTFT versus RVQ depth for all four workloads at 100 and 1000 Mbps. At 100 Mbps, TTFT strongly depends on depth: reducing RVQ from 16 to eight stages lowers TTFT by 23.7–49.0% across the workloads. GovReport, Qasper, and CNN/DailyMail improve by 49.0%, 38.7%, and 32.2%, respectively, demonstrating that bandwidth-adaptive depth directly shortens the request critical path under a constrained link.

Figure 7. TTFT versus RVQ depth under 100 and 1000 Mbps; lower is better.

Figure 8. Downstream quality (higher is better) of HyCoInfer at five RVQ depths, fixed-precision quantizers, eviction/pruning methods, and uncompressed FullKV.

At 1000 Mbps, the TTFT difference between eight and 16 stages shrinks to 2.2–10.4%. Once transfer shortens, layer-wise pipelining hides more of it behind prefill, allowing HyCoInfer to use a deeper representation for better reconstruction quality without a substantial TTFT penalty. This result demonstrates the feasibility of deeper compression configurations at higher bandwidth and suggests that the evaluated link rates leave flexible headroom for the increased KV-transfer pressure of larger models.

RVQ Model Quality

Fig. 8 compares HyCoInfer with two classes of KV-cache compression baselines on ARC-Challenge, HellaSwag, MMLU, and WinoGrande [18, 19, 20, 21]. The quantization baselines are 4-bit KIVI [4], 3/4-bit KVQuant [5], and 4-bit GEAR [22]; the eviction or pruning baselines are H2_2O [6],

SnapKV [7], PyramidKV [23], and StreamingLLM [24]. FullKV provides the uncompressed reference. The 8, 10, 12, 14, and 16 RVQ stages of HyCoInfer correspond to approximately 2.5, 3.125, 3.75, 4.375, and 5 index bits per KV element, excluding per-vector scale metadata.

RVQ depth correlates with task score, yet HyCoInfer retains high quality even at eight stages; when bandwidth permits, deeper representations move further toward FullKV. At similar equivalent precision, HyCoInfer provides overall task quality comparable to or slightly better than conventional quantizers, while eviction and pruning show more visible degradation on several tasks. These results show that RVQ supplies multiple useful compression operating points with limited quality loss. The key distinction is that a single codebook stack supports runtime truncation to different residual depths, allowing HyCoInfer to adapt traffic to bandwidth; fixed-precision methods such as KIVI and KVQuant do not natively provide this capability.

Ablation Study

Figs. 9–11 separately evaluate the three implemented optimizations across the four serving workloads.

  1. Layer-Wise Pipelining: Figure 9 shows that layer-wise pipelining lowers TTFT in every setting, by up to 27.2%. At 100 Mbps, Qasper and GovReport improve by 22.0% and 19.1%, showing that later-layer computation hides earlier KV copy and transfer; CNN/DailyMail also improves by 27.2% at 500 Mbps.

Figure 9. TTFT ablation of layer-wise KV-cache pipelining across serving datasets and link rates; lower is better.

  1. Prompt-Aware Request Dispatch: In Figure 10, dispatch improves CNN/DailyMail goodput by 18.0–28.2% and lowers latency by 13.8–30.7% across link rates; at 100 Mbps, it also improves IMDB goodput by 34.8% and lowers latency by 24.0%. It retains communication-expensive requests on GPUs while using idle FPGA capacity for suitable requests.

Figure 10. Ablation of prompt-aware dispatch using SLO-compliant request goodput (requests/s) and mean latency; higher goodput and lower latency are better.

  1. RVQ Compression: In Figure 11, RVQ reduces TTFT by 60.2–90.9% at 100 Mbps (90.9% on Qasper and 82.4% on GovReport), 30.7–65.8% at 500 Mbps, and 20.7–48.9% at 1000 Mbps, mitigating the low-bandwidth bottleneck while remaining useful as capacity rises.

Figure 11. TTFT ablation of RVQ-based KV-cache compression across serving datasets and link rates; lower is better.

4) Edge-Prefix Precomputation: In Figure 12, each point averages six paired CNN/DailyMail runs. Across 0.1–1.0 QPS, precomputation reduces mean TTFT by 5.1–6.0%, showing that idle edge compute can shorten KV readiness; under sustained load, HyCoInfer falls back to conventional PD disaggregation (§ 3-C2).

Figure 12. TTFT with edge-prefix precomputation enabled or disabled across request rates; lower is better.

Energy Efficiency

Combining sampled accelerator power with completed-request rate, Figure 13 shows that collaborative execution lowers estimated CNN/DailyMail energy per request over cloud-only serving. FPGA decode thus improves accelerator efficiency while releasing cloud capacity.

Figure 13. Estimated cloud and edge accelerator energy per request; lower is better.

Efficient LLM Serving

vLLM [25] and SGLang [26] improve GPU serving through batching, memory management, and scheduling, while GPTQ [27] and AWQ [28] reduce model-weight traffic. These techniques are orthogonal to HyCoInfer: quantized models can run in either decoder pool, while our system decides where a request executes and how its KV state crosses the network.

Prefill–Decode Disaggregation

DistServe [1] and Splitwise [2] separate the two phases in GPU clusters to isolate interference and provision them independently; Mooncake, MemServe, and LMCache further study KV scheduling, reuse, and transfer within a cluster [29, 30, 31]. HyCoInfer addresses a different regime: an FPGA decoder behind a constrained, variable edge link, where the first cross-domain migration of a new KV cache requires progressive compression and selective offloading.

FPGA Inference

FlightLLM demonstrates efficient LLM inference with customized FPGA dataflow and quantization [3]; recent work also explores GPU–FPGA execution and scalable dataflows [32, 33]. HyCoInfer focuses on online integration: cloud GPUs perform prefill, FPGAs join the decoder pool, and routing jointly accounts for edge execution time, independent queues, and cross-domain transfer rather than assuming every offload is beneficial.

KV-Cache Compression

KV compression methods fall into several categories: H₂O and SnapKV selectively retain tokens [6, 7], while KVI, KVQuant, GEAR, and ZipCache reduce numerical width [4, 5, 22, 34]. These methods generally use a fixed representation or quality policy. CacheGen supports dynamic compression through arithmetic coding [10], but its edge decoding was too slow in our measurements. In contrast, HyCoInfer uses fast progressive RVQ, whose nested depth adapts to bandwidth without receiver changes, retraining, or token eviction.

Conclusion

HyCoInfer jointly optimizes scheduling and KV migration across GPUs and FPGAs. On V100-U280 at 500 Mbps, it delivers up to 4.11× the request goodput and 61.1% lower mean latency than cloud-only vLLM while reducing energy per request.

References

  1. [1]Y. Zhong et al., “DistServe: Disaggregating prefill and decoding for goodput-optimized large language model serving,” in OSDI, 2024, pp. 193–210.arxiv.org/abs/2401.09670
  2. [2]P. Patel et al., “Splitwise: Efficient generative LLM inference using phase splitting,” in ISCA, 2024, pp. 118–132.
  3. [3]S. Zeng et al., “FlightLLM: Efficient large language model inference with a complete mapping flow on FPGAs,” in FPGA, 2024.arxiv.org/abs/2401.03868
  4. [4]Z. Liu et al., “KIVI: A tuning-free asymmetric 2bit quantization for KV cache,” in ICML, vol. 235, 2024, pp. 32 332–32 344.DOI
  5. [5]C. Hooper et al., “KVQuant: Towards 10 million context length LLM inference with KV cache quantization,” in NeurIPS, vol. 37, 2024.arxiv.org/abs/2401.18079
  6. [6]Z. Zhang et al., “H2O: Heavy-hitter oracle for efficient generative inference of large language models,” in Advances in Neural Information Processing Systems, vol. 36, 2023.arxiv.org/abs/2306.14048
  7. [7]Y. Li et al., “SnapKV: LLM knows what you are looking for before generation,” in NeurIPS, vol. 37, 2024.arxiv.org/abs/2404.14469
  8. [8]S. Jin, X. Liu, Q. Zhang, and Z. Mao, “Compute or load KV cache? why not both?” in Proceedings of the 42nd International Conference on Machine Learning, ser. Proceedings of Machine Learning Research, vol. 267, 2025, pp. 28 031–28 043.arxiv.org/abs/2410.03065
  9. [9]A. Kumar, “Residual vector quantization for KV cache compression in large language model,” in Proceedings of the 4th NeurIPS Efficient Natural Language and Speech Processing Workshop, ser. Proceedings of Machine Learning Research, vol. 262, 2024, pp. 485–490. [Online]. Available: https://proceedings.mlr.press/v262/kumar24a.htmlarxiv.org/abs/2410.15704
  10. [10]Y. Liu et al., “CacheGen: KV cache compression and streaming for fast large language model serving,” in SIGCOMM, 2024, pp. 38–56.arxiv.org/abs/2310.07240
  11. [11]A. Grafforari et al., “The Llama 3 herd of models,” 2024.
  12. [12]D. Lee, C. Kim, S. Kim, M. Cho, and W.-S. Han, “Autoregressive image generation using residual quantization,” in CVPR, 2022, pp. 11 523–11 532.arxiv.org/abs/2203.01941
  13. [13]T. Wolf et al., “Transformers: State-of-the-art natural language processing,” in EMNLP System Demonstrations, 2020, pp. 38–45.DOI
  14. [14]A. L. Maas, R. E. Daly, P. T. Pham, D. Huang, A. Y. Ng, and C. Potts, “Learning word vectors for sentiment analysis,” in Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies. Portland, Oregon, USA: Association for Computational Linguistics, 2011, pp. 142–150. [Online]. Available: https://aclanthology.org/P11-1015/
  15. [15]K. M. Hermann et al., “Teaching machines to read and comprehend,” in NeurIPS, vol. 28, 2015.arxiv.org/abs/1506.03340
  16. [16]P. Dasigi et al., “A dataset of information-seeking questions and answers anchored in research papers,” in NAACL, 2021, pp. 4599–4610.
  17. [17]L. Huang et al., “Efficient attentions for long document summarization,” in NAACL, 2021, pp. 1419–1436.arxiv.org/abs/2104.02112
  18. [18]P. Clark et al., “Think you have solved question answering? try ARC, the AI2 reasoning challenge,” 2018.arxiv.org/abs/1803.05457
  19. [19]R. Zellers et al., “HellaSwag: Can a machine really finish your sentence?” in ACL, 2019, pp. 4791–4800.arxiv.org/abs/1905.07830
  20. [20]D. Hendrycks et al., “Measuring massive multitask language understanding,” in ICLR, 2021.
  21. [21]K. Sakaguchi et al., “WinoGrande: An adversarial winograd schema challenge at scale,” in AAAI, vol. 34, no. 5, 2020, pp. 8732–8740.arxiv.org/abs/1907.10641
  22. [22]H. Kang et al., “GEAR: An efficient error reduction framework for KV cache compression in LLM inference,” in NeurIPS ENLSP Workshop, vol. 262, 2024, pp. 305–321.
  23. [23]Z. Cai et al., “PyramidKV: Dynamic KV cache compression based on pyramidal information funneling,” 2024.arxiv.org/abs/2406.02069
  24. [24]G. Xiao, Y. Tian, B. Chen, S. Han, and M. Lewis, “Efficient streaming language models with attention sinks,” in ICLR, 2024.arxiv.org/abs/2309.17453
  25. [25]W. Kwon et al., “Efficient memory management for large language model serving with PagedAttention,” in SOSP, 2023, pp. 611–626.arxiv.org/abs/2309.06180
  26. [26]L. Zheng et al., “SGLang: Efficient execution of structured language model programs,” in NeurIPS, vol. 37, 2024.arxiv.org/abs/2312.07104
  27. [27]E. Frantar et al., “GPTQ: Accurate post-training quantization for generative pre-trained transformers,” in ICLR, 2023.arxiv.org/abs/2210.17323
  28. [28]J. Lin et al., “AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration,” in MLSys, 2024.DOI
  29. [29]R. Qin et al., “Mooncake: Trading more storage for less computation—a KVCache-centric architecture for serving LLM chatbot,” in FAST, 2025, pp. 155–170.
  30. [30]C. Hu et al., “MemServe: Context caching for disaggregated LLM serving with elastic memory pool,” 2024.arxiv.org/abs/2406.17565
  31. [31]J. Cheng et al., “LMCache: An efficient KV cache layer for enterprise-scale LLM inference,” 2025.arxiv.org/abs/2510.09665
  32. [32]F. Yang, X. Yang, H. Wang, Z. Wang, Z. Zhu, S. Zeng, and Y. Wang, “GLITCHES: GPU-FPGA LLM inference through a collaborative heterogeneous system,” in HPEC, 2024, pp. 1–7.DOI
  33. [33]J. Zheng and G. Chen, “LoopLynx: A scalable dataflow architecture for efficient LLM inference,” in DATE, 2025, pp. 1–7.arxiv.org/abs/2504.09561
  34. [34]Y. He et al., “ZipCache: Accurate and efficient KV cache quantization with salient token identification,” in NeurIPS, vol. 37, 2024.arxiv.org/abs/2405.14256

Paper details

vlnc:W_9a6amzs4
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 14

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents