Kihagyás

Prefill-as-a-Service: Cross-Datacenter KVCache for Next-Gen LLMs

Szerzők: Ruoyu Qin, Weiran He, Yaoyu Wang, Zheming Li, Xinran Xu, Yongwei Wu, Weimin Zheng, Mingxing Zhang
Intézmény: Moonshot AI, Tsinghua Egyetem
Dátum: 2026. április 22.
arXiv: 2604.15039v1
Link: https://arxiv.org/abs/2604.15039v1


Összegzés

A Prefill-Decode (PD) disaggregáció az LLM serving standardja, de a KVCache átviteli sávszélesség korlátozza a telepítést egyetlen adatközpontra. A hibrid attention architektúrák jelentősen csökkentik a KVCache méretét, lehetővé téve a cross-datacenter átvitelt. A PrfaaS (Prefill-as-a-Service) architektúra szelektíven offload-olja a hosszú kontextusú prefilleket külön compute-dense cluster-ekbe, és a KVCache-t commodity Etherneten keresztül továbbítja a helyi decode cluster-eknek.


Probléma

KVCache szűk keresztmetszet

  • Dense attention modellek: KVCache lineárisan nő a szekvencia hosszával
  • MiniMax-M2.5, 32K token: ~60 Gbps példányonként → RDMA szükséges
  • Ez egyetlen adatközpontra korlátozza a PD telepítést

Hibrid attention architektúrák

  • Teljes attention rétegek keverése lineáris komplexitású rétegekkel
  • Példák: Kimi Linear (3:1), MiMo-V2-Flash (5:1), Ring-2.5-1T (7:1)
  • KVCache 4-13× kisebb → cross-datacenter átvitel lehetséges

PrfaaS architektúra

Komponensek

  1. PrfaaS cluster-ek — standalone compute-dense cluster hosszú prefillekhez
  2. Helyi PD cluster-ek — hagyományos PD serving rövid prefillekhez és decode-hoz
  3. Hálózat — intra-cluster RDMA + inter-cluster VPC/dedikált Ethernet
  4. Hibrid prefix cache pool — külön kezelt linear states és full-attention KVCache

Szelektív offloading

  • Hossz-alapú routing küszöb: csak l > t kerül PrfaaS-be
  • Rövid kérések maradnak helyi PD úton
  • Optimális küszöb: t = 19.4K token (~50% kérés offloaded)

Sávszélesség-tudatos ütemezés

  • Egress kihasználtság és sorhossz monitorozás
  • Dinamikus küszöb beállítás torlódáskor
  • Layer-wise prefill pipelining + multi-connection TCP

Eredmények (1T paraméterű hibrid modell)

Metrika PrfaaS-PD Homogén PD Naiv Heterogén
Áteresztőképesség 3.24 req/s 2.11 req/s 2.45 req/s
Relatív 1.54× 1.00× 1.16×
Mean TTFT 2.22 s 4.44 s 1.74 s
P90 TTFT 3.51 s 9.73 s 3.51 s
  • 54% magasabb áteresztőképesség homogén PD-hez képest
  • 32% magasabb naiv heterogén PD-hez képest
  • Cross-datacenter sávszélesség: csak ~13 Gbps (13% a 100 Gbps linkből)

Hardver implikációk

Fázis-specializált hardver

  • NVIDIA Rubin CPX: compute throughput prefill-hez
  • Groq LPU / Taalas HC1: extrém memória sávszélesség decode-hoz
  • Cross-datacenter KVCache = nincs szükség közös RDMA fabric-re
  • Független skálázás prefill és decode kapacitásra

Sávszélesség igények

Modell 32K token 128K token 10K GPU DC
Dense (MiniMax) 3.8 Tbps — nem lehetséges
Hibrid (Ring-2.5-1T) ~170 Gbps <100 Gbps ~1.8 Tbps

Kulcs tanulságok

  1. Modell architektúra + rendszerterv együtt: Hibrid attention csökkenti KVCache-t, de a szelektív offloading + sávszélesség-tudatos ütemezés teszi praktikussá
  2. Nem minden kérés offloaded: Csak hosszú prefillek — rövidek helyben maradnak
  3. Commodity Ethernet elég: 13% kihasználtság realistic workload-oknál
  4. Független skálázás: Prefill és decode külön régiókban/cloud-okban
  5. Következő generációs hardver társ-tervezés: Rubin CPX prefill-hez, LPU decode-hoz

Idézet

„A KVCache-barát modell architektúrák szükségesek, de nem elegendőek a cross-datacenter heterogén servinghez. Ami praktikussá teszi a telepítést, a modell-oldali KVCache-csökkentés és a rendszer-oldali szelektív offloading, valamint sávszélesség-tudatos ütemezés kombinációja.”


Kapcsolódó témák


Forrás

  • Paper: Prefill-as-a-Service: KVCache of Next-Generation Models Could Go Cross-Datacenter
  • Szerzők: Qin et al. (Moonshot AI, Tsinghua)
  • arXiv: 2604.15039v1
  • Dátum: 2026. április 22.
  • Feldolgozva: 2026. április 22.

Kiegészítés a korábbi változatból

Az epizódhoz két summary készült; ez a szakasz a megszűnt példány szó szerinti, egyedül ott szereplő tartalmát őrzi.

Abstract Summary

Prefill-decode (PD) disaggregation has become standard for LLM serving, but deployment is limited by KVCache transfer bandwidth. Conventional dense-attention models generate huge KVCache traffic that keeps prefill and decode tightly coupled within a single high-bandwidth network domain. Recent hybrid-attention architectures reduce KVCache size substantially, making cross-cluster KVCache transport plausible. However, smaller KVCache alone is not sufficient — real workloads are bursty, request lengths are skewed, prefix caches are unevenly distributed, and inter-cluster bandwidth fluctuates.

PrfaaS (Prefill-as-a-Service) presents a cross-datacenter serving architecture that: - Selectively offloads long-context prefill to standalone, compute-dense prefill clusters - Transfers resulting KVCache over commodity Ethernet to local PD clusters for decode - Uses length-based threshold routing, bandwidth-aware scheduling, and cache-aware request placement

Results: With an internal 1T-parameter hybrid model, PrfaaS achieves 54% higher throughput than homogeneous PD and 32% higher than naive heterogeneous baselines, while consuming only modest cross-datacenter bandwidth (~13 Gbps of 100 Gbps link, 13%).


Key Concepts

Prefill-Decode (PD) Disaggregation

  • Prefill: compute-intensive (processes full input prompt)
  • Decode: memory-bandwidth-intensive (generates tokens one at a time)
  • Standard approach: separate these phases to optimize each independently
  • Problem: KVCache transfer between prefill and decode nodes is bandwidth bottleneck

KVCache Transfer Bottleneck

  • Dense attention: KVCache grows linearly with sequence length → huge bandwidth demand
  • 32K tokens on MiniMax-M2.5: ~60 Gbps per instance → requires RDMA-class fabric
  • This confines PD deployments to single datacenter with high-bandwidth interconnect

Hybrid Attention Architectures

  • Interleave small number of full-attention layers with many linear-complexity layers
  • Examples:
  • Kimi Delta Attention (KDA) — 3:1 linear:full ratio
  • Sliding Window Attention (SWA) — 5:1 ratio
  • Ring-2.5-1T — 7:1 ratio with Lightning attention
  • Result: 4-13× reduction in KVCache size vs dense models
  • KV throughput drops from ~60 Gbps to ~3-8 Gbps → commodity Ethernet viable

PrfaaS Architecture

Components: 1. PrfaaS clusters — standalone compute-dense clusters for long-context prefill 2. Local PD clusters — conventional PD serving for decode and short prefills 3. Network — intra-cluster RDMA + inter-cluster VPC/dedicated Ethernet 4. Hybrid prefix cache pool — separate KVCache groups for linear states and full-attention KVCache

Selective Offloading: - Length-based routing threshold t: only requests with l > t go to PrfaaS - Short requests stay on local PD path - With log-normal distribution (μ=9.90, σ=1.00, mean ~27K tokens), optimal t = 19.4K - ~50% of requests routed to PrfaaS

Bandwidth-Aware Scheduling: - Monitors egress utilization and queue depth - Adjusts routing threshold dynamically when congestion approaches - Layer-wise prefill pipelining to overlap generation with transmission - Multi-connection TCP to fully utilize available bandwidth


Throughput Model

System throughput limited by slowest stage:

Λmax = min(Θprfaas/p, Θpd-p/(1-p), Θpd-d)

Where: - Θprfaas = min(Nprfaas/Tprefill(llong), Bout/Skv(llong)) - Θpd-p = Np/Tprefill(lshort) - Θpd-d = Nd·BSmax/(Tdecode·Lout) - p = fraction routed to PrfaaS

Optimization variables: 1. Routing threshold t (determines p, llong, lshort) 2. PD-cluster prefill-to-decode ratio Np/Nd

Optimal configuration (1T hybrid model, 32 H200 PrfaaS + 64 H20 PD): - t = 19.4K tokens - Np = 3, Nd = 5 (within PD cluster) - Mean TTFT: 2.22s (vs 4.44s homogeneous) - P90 TTFT: 3.51s (vs 9.73s homogeneous) - Throughput: 3.24 req/s (vs 2.11 homogeneous = +54%)


Hardware Implications

Phase-Specialized Hardware

  • NVIDIA Rubin CPX: compute throughput for prefill
  • Groq LPU / Taalas HC1: extreme memory bandwidth for decode
  • Cross-datacenter KVCache removes need for these to share same RDMA fabric
  • Allows independent scaling of prefill and decode capacity

Bandwidth Requirements

  • Ring-2.5-1T (1T params, 7:1 hybrid ratio):
  • 32K tokens: ~170 Gbps cross-datacenter
  • 128K tokens: below 100 Gbps
  • 10,000 GPU datacenter: ~1.8 Tbps aggregate — within modern DC fabric capacity
  • Compare: dense models require 3.8 Tbps (MiniMax-M2.5) or 2.1 Tbps (Qwen3)

  • Mooncake (Moonshot AI): KVCache-centric disaggregated architecture — cited as foundation
  • Splitwise/DistServe: PD disaggregation from cost/power and goodput perspectives
  • Helix/Hetis/LLM-PQ: heterogeneous GPU/network optimization
  • CacheGen/CacheBlend/FusionRAG: KVCache compression and reuse
  • KIVI/KVQuant/H2O: KVCache quantization and importance-based eviction

Key Insights

  1. Model architecture + system design together: Hybrid attention reduces KVCache enough, but selective offloading + bandwidth-aware scheduling makes cross-datacenter practical
  2. Not all requests should be offloaded: Short requests stay local — only long prefills benefit from compute-dense hardware
  3. Commodity Ethernet sufficient: 13% of 100 Gbps link for realistic workloads — no RDMA required
  4. Independent scaling: Prefill and decode can scale separately across regions/clouds
  5. Next-gen hardware co-design: Rubin CPX for prefill, LPU for decode — each in optimal location

Idézetek

  • „KVCache-efficient model architectures are necessary but not sufficient for cross-datacenter heterogeneous serving. What makes the deployment practical is the combination of model-side KVCache reduction with system-side selective offloading and bandwidth-aware scheduling.”
  • KVCache-efficient model architectures are necessary but not sufficient for cross-datacenter heterogeneous serving. What makes the deployment practical is the combination of model-side KVCache reduction with system-side selective offloading and bandwidth-aware scheduling.
Vissza a tetejére