Manuscript Offprint

arXiv:2611.07149

FastAFD: When Does Attention-FFN Disaggregation Pay on Rack-Scale NVLink?

Yichao Fu, Yuxuan Zhang, Minshen Zhang, Ruitian Wang, Junda Chen, Hao Zhang

ABSTRACT

Attention–FFN disaggregation (AFD) separates attention from the experts of a mixture-of-experts (MoE) model and has been reported to raise decode throughput over colocated serving. Whether this advantage holds on rack-scale NVLink systems such as GB200 NVL72 remains unclear: prior results were obtained on other hardware, against narrower colocated baselines, or with analytical models, whereas production engines serve large MoE models on these systems with wide expert parallelism (wide EP). We build and carefully tune FastAFD, an AFD inference engine for GB200 NVL72 that overlaps the MoE of one microbatch with the attention of the other, and compare it against the best vLLM wide EP setting (with the EP width tuned per workload). Our experiments show that AFD has a throughput advantage of up to 1.17×1.17\times over wide EP on Qwen3 and 1.16×1.16\times on Qwen3.5, and matches it on MiniMax-M2.5. We derive an analytical model that predicts AFD throughput within 3% using only profiles of colocated vLLM, which tells whether switching to AFD would improve throughput before AFD is deployed. Beyond prediction, we turn the model into a concise insight: AFD's speedup factors into a batch gain (larger batches, since attention GPUs hold no expert weights), an overlap gain (shorter steps, since the MoE runs on the expert GPUs behind attention), and a disaggregation cost (the GPUs given to experts). AFD has the advantage when the two gains outweigh the cost. This view explains which models benefit from AFD, and shows that speculative decoding helps light-expert models most, where the enlarged overlap gain outweighs the larger disaggregation cost and adds a further 8% to AFD's advantage over wide EP. Looking ahead, serving the experts on accelerators that keep their weights in on-chip SRAM, such as the Groq LPX accelerators that NVIDIA pairs with Vera Rubin NVL72, would remove most of the disaggregation cost, raising the ideal speedup to 2.48×2.48\times with speculative decoding. FastAFD is open source at https://github.com/hao-ai-lab/FastAFD.

1 INTRODUCTION

Attention–FFN disaggregation (AFD) has drawn sharply divided conclusions as a design for large-scale mixture-of-experts (MoE) (Shazeer et al., 2017; Lepikhin et al., 2021; Fedus et al., 2022) LLM serving: some works report substantial decode-throughput gains over colocated deployment (Zhu et al., 2025; StepFun et al., 2025), while others argue that it cannot match a well-tuned wide expert-parallel (wide EP) baseline (Qiu et al., 2026).

Which design serves MoE models better on rack-scale NVLink systems remains unclear. On one hand, AFD separates attention from experts: attention GPUs hold the KV caches and they run larger decode batches, while expert GPUs gather tokens from attention GPUs into one batch, therefore the MoE GEMMs run closer to their roofline. MegaScale-Infer reports up to 1.90×1.90\times higher per-GPU decode throughput than colocated serving baselines (Zhu et al., 2025), Step-3 co-designs its model around AFD (StepFun et al., 2025), NPU superpods deploy it at scale (Xiao et al., 2025), NVIDIA builds AFD into its Vera Rubin platform by running MoE experts on Groq LPX accelerators (Aubrey & Ghodsian, 2026), and vLLM ships an experimental AFD plugin (AFD Plugin Contributors, 2026). On the other hand, wide EP (Rajbhandari et al., 2022; DeepSeek-AI et al., 2024) keeps attention and experts on every GPU but shards the experts across a rack-scale NVLink domain such as GB200 NVL72 (NVIDIA, 2026a), which frees much of the same HBM for KV caches; vLLM and SGLang serve large MoE models this way (vLLM Team, 2025; Meta and NVIDIA Team, 2026; SGLang Team, 2025b), and analytical studies of modern hardware lean the same way: a communication-roofline analysis finds AFD promising only for specific hardware-model combinations (Liu et al., 2026a), a design-space exploration on a 128-GPU B200 cluster finds aggregated serving keeps the throughput lead (Wu et al., 2026), and a provisioning model that sweeps all EP widths finds AFD faster in only 7 of 36 settings (Qiu et al., 2026). The measured evidence for AFD, however, comes from older hardware against narrow colocated baselines, and the evi-

∗^{*}Equal contribution 1^{1}University of California, San Diego. Correspondence to: Hao Zhang haozhang@ucsd.edu.

Preprint.

Figure

Figure 1. AFD's speedup over wide EP balances two gains against one cost (Eq. 1). (1) Batch gain: moving expert weights off attention GPUs frees HBM for larger KV caches and decode batches. (2) Overlap gain: two-microbatch ping-pong hides each microbatch's MoE behind the other's attention stage. (3) Disaggregation cost: attention nodes hold KV caches and serve requests; the FFN node does not, so one node in every attention:FFN group produces no tokens.

dence against it is analytical and unvalidated on a rack-scale NVLink system. As a result, there is no measured basis for choosing between the two designs on GB200 NVL72, a platform on which large MoE models are now served (SGLang Team, 2025b; Meta and NVIDIA Team, 2026).

To close this gap, we build FastAFD, an AFD inference engine for GB200 NVL72 whose kernels, microbatching, and coordination are each tuned for the rack (Section 5), and benchmark it against vLLM wide EP with the EP width tuned per workload, on three MoE models. We show empirically that AFD outperforms this baseline by up to 1.17× (Qwen3-235B at 16K context). Based on this empirical study, we further derive an analytical model that predicts AFD throughput using only profiles of the colocated vLLM deployment; its predictions stay within 3% of the measured throughput on average. Beyond prediction, we turn the analytical model into a concise key insight: AFD's speedup over wide EP is the product of two gains and one cost (Figure 1):

Sall=batch gain×overlap gain×disaggregation cost.(1)S_{\mathrm{all}}=\mathrm{batch~gain}\times\mathrm{overlap~gain}\times\mathrm{disaggregation~cost}. \tag{1}

(1) The batch gain comes from attention GPUs that hold no expert weights and thus fit a larger KV cache; (2) the overlap gain comes from taking the MoE off the attention critical path; and (3) the disaggregation cost comes from the expert GPUs, which serve no requests. AFD has the advantage when the two gains outweigh the cost.

This insight also predicts when speculative decoding helps AFD. On MiniMax-M2.5, whose light experts yield a small overlap gain, AFD only ties wide EP. Speculative decoding multiplies the MoE work on this model, which enlarges the overlap gain, while the disaggregation cost remains small and therefore lifts advantage by 8%.

Looking ahead, heterogeneous FFN placement on dedicated SRAM accelerators such as Groq LPX paired with Vera Rubin NVL72 (Aubrey & Ghodsian, 2026) (Section 6) removes the disaggregation cost from the GPU budget, raising AFD's best speedup over wide EP from 1.17× with homogeneous AFD to an ideal 2.48× with heterogeneous placement and speculative decoding.

In summary, this paper mainly makes three contributions:

  • We build and carefully tune FastAFD, the first AFD inference engine for GB200 NVL72, and benchmark it against the best wide EP baselines, which it consistently matches or outperforms with up to a 1.17× throughput advantage (Sections 3 and 5).

  • We derive an analytical model that predicts FastAFD's throughput within 3% mean error. It needs only a profile of vLLM on the target cluster to tell how much switching to AFD would speed up a deployment, without actually deploying AFD (Section 4).

  • We turn the model into a concise insight with two gains (batch and overlap) and one disaggregation cost. The insight guides AFD tuning decisions: which models benefit from AFD, when speculative decoding helps, and how much headroom heterogeneous FFN placement unlocks (Sections 4 and 6).

References (50)