超长序列(1M+ Tokens)在 P/D 分离架构下的挑战

定性研究报告 · 2026-07-15 · 聚焦架构分析与前沿判断
调研范围:2024–2026 学术论文 + SGLang / vLLM / Mooncake / CXL 社区 + 工业界试点

核心判断:这是一个尚未被充分研究的新问题

结论先行:"1M+ tokens × PD disaggregation"在 2026 年中仍是一个新浮现、未被系统化解的交叉问题域。

深层洞察:传统 PD 分离的理论基础——"prefill 是 compute-bound、decode 是 memory-bound"这个二分法——在 1M+ 上下文下崩溃。当输入序列长达 1M tokens 时:
(1) Prefill 同时成为 memory-bounded(KVCache 在 prefill 阶段就开始膨胀);
(2) Decode 在读取 KV 时面临长序列二次注意力的带宽-容量双杀;
(3) KV 在 P→D 之间的传输本身成为系统首个 GB 级瓶颈。

关键研究列表(arXiv 论文纪要)

A. 直接研究"long context + PD disaggregation"交集的工作

arXiv ID标题核心贡献 + 与 PD + 长 context 的关联
2604.15039 PrfaaS: Prefill-as-a-Service
Ruoyu Qin et al., Moonshot AI, 2026-04
直接指出:在 Long-context 场景下,传统 dense attention 模型的 KV Cache 量使 prefill 与 decode 被迫紧耦合在同一高带宽域内。PrfaaS 通过 hybrid attention 压缩 KV 后,将 prefill offload 到独立集群,经以太网传给本地 decode。关键洞察:长 context PD 跨 DC 部署的瓶颈不在 KV 大小本身,而在 selector 调度 + 带宽感知 + cache 感知 placement 的协同。
2607.01831 Lynx: Progressive Speculative Quantization for KV Transfer
Wenchen Han et al., SIGCOMM'26 submission, 2026-07
直接切中 PD 长上下文最大瓶颈——KV cache 在 P→D 网络传输的 TTFT。Lynx 挑战"KV cache 是一个不可分割的整体"假设,将 KV 拆为 Anchor(MSB)+Residual(LSB) 双流:先收 Anchor 就开始 speculative decode,Residual 并发传、最后验证。在 disaggregated inference 下,TTFT 接近 4bit 量化水平,精度等同 BF16。
2606.19746 SAC: Disaggregated KV Cache System for Sparse Attention LLMs with CXL
Ruiyang Ma, Teng Ma et al., 2026-06
揭示传统 RDMA-based disaggregated KV pool 对 sparse attention 根本浪费——长 context 下只有 top-k KV entries 有效,但 RDMA 要把整块 prefix KV 取回。SAC 用 CXL 细粒度 load/store 只在需要时取 top-k 条目。对 PD 长 context 架构有范式启示:CXL 让 decode 端按需读取成为可能。
2607.01617 3DLS: 3D Logic-Stacked Architecture for Disaggregated LLM Serving
Jaehun Lee et al., IEEE CAL 2026, 2026-07
首次从芯片层面揭示 PD 长上下文的核心冲突:P→D KV transfer 与 decode TP collectives 共享 die-to-die 互连,混合流量抢占 decode critical path。3DLS 用 3D 堆叠将 KV 转移走垂直互连,decode TP fabric 独立。提示:长 context PD 的瓶颈不仅在系统层,已在封装互连层显现。
2604.08075 Dual-Pool Token-Budget Routing for Cost-Efficient LLM Serving
Xunzhuo Liu, Huamin Chen et al., 2026-04
显式指出传统 PD production fleet 为最坏上下文配置资源导致 4-8x 吞吐浪费、OOM、preemption 频发。提出按 token budget 路由到 short-context pool / long-context pool,与 PD disaggregation 无缝组合。洞察:长 context 请求的容量规划本质是让 fleet 承受 80-95% short + 5-15% long 的 mix 调度。

B. 长上下文推理系统基础设施层

arXiv ID标题核心贡献 + 与 PD 交集的关联
2511.00321 Scalable PNM for 1M-Token LLM Inference (CXL)
Dowon Kim, Jungwook Choi et al., 2025-11
针对 1M token 推理设计 CXL-PNM 系统:将 token page selection offload 到 CXL 内存内的 PNM 加速器,消除 KV recall 成本。PNM-KV 和 PnG-KV 在 405B 1M token 下取得 21.9x 吞吐提升。对 PD 架构的启示:如果 P 端能把 KV 压缩/筛选后才传 D,传输和内存瓶颈同时缓解。
2407.00079 Mooncake: A KVCache-centric Disaggregated Architecture
Ruoyu Qin et al., Moonshot AI, 2024-06 (v4 2025-09)
Kimi 生产平台,首个提出 overload early rejection 政策。长 context 下 Mooncake 的 Conductor 必须预测 future KV block usage + 未来 generation length 来决定拒绝/接受。chunked pipeline parallelism (CPP) + layer-wise prefill 是针对长 context TTFT 的专门机制。基准文献:Mooncake 是 PD 长 context 研究绕不开的参考点。
2512.03324 Cache What Lasts: Token Retention for Memory-Bounded KV Cache
Ngoc Bui et al., 2025-12
针对 long-horizon LLM 推理的 KV cache 容量有界场景,提出 token retention 策略。与 PD 的关联:当 decode 端 HBM 无法容纳 1M token 全量 KV 时,该工作给出 eviction policy 的原则性框架。
2601.22001 Heterogeneous Computing: Key to AI Agent Inference
Aaron Zhao (Imperial), Junyi Liu (MSR), 2026-01
明确定义 Capacity Footprint (CF) 指标——每个请求在 DRAM 中需要的 bytes 数——指出 AI agent 推理已撞上 memory capacity wall,PD disaggregation 的部署必须按 OI/CF 二维配置异构加速器。

工业界公开讨论与产品实践

① SGLang 社区视角

关键信息源:Pipeline Parallelism for Long Context 文档(直接打开) + PR #8846(Support PD disaggregation with Prefill PP,2025-10 合并)

PPT 文档明确指出:

"KV cache techniques effectively mitigate redundant computation, but they cannot circumvent the prohibitive TTFT inherent in ultra-long sequences with extremely large initial Input Token Length (ITL)."

核心链条:

观察:SGLang 从未在文档中声称 PD disaggregation 是长 context 的天然解法;相反,社区对 1M context 的讨论几乎全部在 PP 范式下进行。PD 分离在 1M 场景下为何需要 PP 帮忙?这本身就说明 PD 架构面对长 context 时的原生瓶颈。

② vLLM 社区视角

关键信息源:GitHub Issue #11286 [Performance]: decoding speed on long context(2024-12 开)

Issue 实测数据揭示了长 context decode 的断崖式下降(单 A800 80G, bs=90):

Prompt length0-100100-200500-1k1k-2k2k-4k4k-8k8k+
Decoded tokens/s53645500281524841627782273

vLLM 维护者 noooop 的官方解释(直接译文):

"Most of the time, the GPU meets bandwidth bottleneck rather than computing bottleneck. As the prompt length increases, the size of the kv cache that needs to be read even exceeds the size of the model. This is why inference speed decreases. Inference latency increases linearly to the context size, primarily due to the time needed to access cached tokens."

对 PD 架构的启示:

vLLM Semantic Router(arxiv:2604.dualpool 同源工作):xunzhuo 系列的 Token-Budget Routing 指明 fleet 中 80-95% 是短请求,为最坏长 context 配置 fleet 会导致 4-8x 吞吐浪费。

③ Mooncake / Kimi 视角

关键信息源:Mooncake HTML 全文 + PrfaaS (arxiv:2604.15039) + SGLang #8846

Mooncake 生产视角下长 context PD 的独有挑战:

Kimi/Mooncake 的核心观察:长 context PD 的真正瓶颈不在单次请求内部,而在请求分布偏斜 + overload 交互。当 fleet 面对 5-15% 的 1M+ 请求 + 85% <1K 请求混合时,传统 PD 的静态配置必然崩溃。

④ AWS / Meta / NVIDIA 视角

六大核心挑战的定性剖析

挑战 1:D 端 HBM 的容量压力 vs 共置推理的差异

PD 分离相对于共置推理的独特挑战:

共置(chunked PD 同机)PD 分离(跨机)
KV 生存空间 P 和 D 共享同一 GPU 的 HBM,prefill 结束后 KV 本地可见 KV 必须跨网络传输到另一台 GPU;传输后的 KV 占 D 端 HBM,且 D 端 无法释放 直到请求结束
连续 batching 操作简单,KV local 自取 必须对抵达的 KV 预分配 decode 缓冲(prefetch-aware admission)
容量浪费 KV pool 被所有请求共享 每台 D 节点按最大上下文预留 KV pool——长 context 导致 pool 5-10x 膨胀
Overload 表现 OOM 后拒绝即可 P→D 传输中才 OOM → +network 浪费 + decode slot 占用

判定:PD 分离下长 context 的 HBM 容量压力不仅是绝对量的放大,更是调度时序问题——KV 在传输中不可被 decode 使用,但已在目标节点被预留。

挑战 2:KV 随序列长度线性膨胀在 PD 二元下的失配

传统 PD 理论基础——prefill 是 compute-bound,decode 是 memory-bound——在长 context 下在两个阶段同时失效:

核心洞察:长 context 下 prefill 和 decode 都从 compute/memory 二维平面的不同象限向"高 compute + 高 memory"象限坍缩,PD 分离本应带来的"各取所长"优势被压缩。

挑战 3:P→D KV 传输——GB 级阻塞

以 Llama-3-70B(80层, 128 head dim=128, GQA 8 组)为例估算:每个 token 的 KV ≈ 80 × 8 × 128 × 2 × 2 bytes ≈ 320KB。

PD 分离特有现象:KV 不仅要跨网络传输,还要按 batch + layer 顺序组织以便 decode attention 直接读取。这进一步增加了 decode 端的 buffer 管理复杂度。

挑战 4:prefix cache 效率随 context 长度升高而退化

挑战 5:fleet 级长尾调度崩溃

Dual-Pool Token-Budget Routing (arxiv:2604.08075) 直接指出:

挑战 6:early rejection 的副作用

Mooncake (arxiv:2407.00079) 观察到一个反直觉现象:

"A straightforward implementation of such an early reject policy surprisingly leads to fluctuations in the overloads."

原因:长 context 请求在 prefill 完成后才知是否能在 decode slot 中被接受。prefill 是 expensive compute,如果被 reject,已消耗的计算被浪费、网络带宽被占用、decode 端的期望 batch 被破坏。

前沿解决路径与范式判断

路径 1:CXL 原生 disaggregated KV 系统(SAC 范式)

SAC (arxiv:2606.19746) + PNM-1M (arxiv:2511.00321) 代表一条路径:让 KV 留在远端,只在 decode attention 需要时 cache-line 粒度读取。对 PD 的影响:

限制:CXL 生态成熟度、dense attention 无解。

路径 2:KV 压缩+流式量化(Lynx 范式)

Lynx (arxiv:2607.01831) + Token-Budget Routing (arxiv:2604.08075) 代表系统层压缩路径:

限制:仅解了 P→D 传输瓶颈,D 端 HBM 容量瓶颈仍存。

路径 3:3D 芯片隔离(3DLS 范式)

3DLS (arxiv:2607.01617) 代表硬件层路径:将 P→D KV 转移走垂直互连,decode TP 留在 lateral fabric,避免混合流量竞争。

限制:尚未流片,2-3 年内不可生产。

路径 4:hybrid attention 架构(PrfaaS 范式)

Moonshot 的 PrfaaS (arxiv:2604.15039) 承认:dense attention 下的 PD 长 context 是无解的——必须依赖 hybrid attention(如 Jamba、DeepSeek-V3.2 的 sparse attention)压缩 KV 才可能。

范式判断:工业界正在从"PD 系统层面解决 long context"向"模型架构 + 系统协同"视角迁移。

路径 5:overload-aware 全局调度(Mooncake → PrfaaS 连贯路径)

Mooncake 的 Conductor + early rejection + 预测未来 generation length,演进到 PrfaaS 的跨 DC KV 选择性 offload——这是唯一一条被商业产品验证的路径。

内在限制:overload 预测依赖 workload pattern,面对 bursty long context 流量(agentic 系统)预测准确率下降。

SGLang + vLLM 的工程层配套现状

所有访问的 URL 与状态

#URL状态内容
1arxiv.org/search?q=long+context+prefill+decode+disaggregation+challenge200返回 1 结果(Mooncake 2407.00079)
2arxiv.org/search?q=KV+cache+memory+pressure+ultra+long+context+LLM200 (no results)空
3arxiv.org/search?q=1M+token+context+LLM+serving+inference+2025200返回 1 结果(CXL-1M 2511.00321)
4google.com/search?q=SGLang+long+context+1M+PD+disaggregation200LMSYS PDF + GitHub issues 摘要(越南语界面,内容可提取)
5google.com/search?q=vLLM+long+context+decode+worker+HBM+capacity200Spheron/Flynn HBM sizing + vLLM 文档 + TDS 文章
6google.com/search?q="prefill+decode+disaggregation"+"long+context"200LMSYS 博客目录(提取到 SGLang 长上下文 PP 信息)
7google.com/search?q=Mooncake+Kimi+long+context+1M+challenge+memory200SGLang 文档首页 (重定向)
8arxiv.org/search?q=long+context+KV+cache+disaggregated+serving200返回 7 结果(含 Lynx, 3DLS, SAC, PrfaaS, Dual-Pool)
9arxiv.org/search?q=KV+cache+offloading+disaggregated+CXL+2025+2026200 (no results)空
10arxiv.org/search?q=Infini-Attention+disaggregated+serving+long+context200 (no results)空
11arxiv.org/search?q=Linear+attention+PD+disaggregation+Jamba+Mamba200 (no results)空
12arxiv.org/abs/2407.00079200Mooncake abstract
13arxiv.org/abs/2511.00321200CXL-1M token abstract
14arxiv.org/abs/2604.15039200PrfaaS abstract
15arxiv.org/abs/2607.01831200Lynx abstract
16arxiv.org/abs/2606.19746200SAC abstract
17arxiv.org/abs/2607.016172003DLS abstract
18arxiv.org/abs/2604.08075200Dual-Pool Routing abstract
19arxiv.org/abs/2601.22001200Heterogeneous Computing (Aaron Zhao)
20arxiv.org/html/2407.00079200Mooncake HTML 全文(提取 overload early rejection、CPP 细节)
21docs.sglang.ai/advanced_features/pipeline_parallelism200SGLang PP for Long Context 文档(核心材料)
22docs.sglang.ai/advanced_features/pd_disaggregation200SGLang PD 文档
23github.com/sgl-project/sglang/issues/8846200PR: Support PD disaggregation with Prefill PP
24github.com/vllm-project/vllm/issues/11286200vLLM 长上下文 decode 性能断崖实测
25arxiv.org/search?q=Mooncake+overloaded+early+rejection200返回 1 结果(Mooncake)
26arxiv.org/search?q=attention+sink+KV+cache+token+eviction200返回 1 结果(Cache What Lasts 2512.03324)
27arxiv.org/html/2601.22001200Heterogeneous Computing HTML
28arxiv.org/search?q=ultra+long+context+KV+cache+compression200 (no results)空
29google.com/search?q=KV+cache+offloading+disaggregated+serving+CXL+2025+2026(avoided)跳过以避免重复
30arxiv.org/search?q=LAPS+prefill+length+aware+PD200 (no results)Google snippet 查到但 arxiv 搜索未命中
时间预算:完成时间约 8 分钟(含 30+ 网页导航 + 10 个 arxiv abstract 提取 + HTML 报告生成)。