AI Infrastructure in 2025: Six Key Directions (Part 1)
This article reviews how AI infrastructure evolved in 2025 as large model inference shifted from simply running to running faster, cheaper, and more reliably. It introduces two foundational concepts—Mixture of Experts (MoE) and the Decoder-Only architecture with its Prefill and Decode stages—then examines the first of six key directions in depth: the ongoing evolution of Prefill-Decode (PD) disaggregation, including its motivation, core design, KV Cache transfer challenges, and future roadmap.
Introduction: Why 2025 Was a Turning Point for AI Infra
Looking back at the technical progress of 2025, AI infrastructure has moved past the “can it run” stage and into the era of “how to run better, cheaper, and more stably.” Large model inference is no longer the job of a single monolithic process. Instead, it has been decomposed into multiple subsystems that can scale and be tuned independently. This article offers a systematic overview of the six most noteworthy directions of the year in an accessible way, with a deep dive into the first direction in this installment: the continued evolution of PD disaggregation.
Before diving in, let’s cover two prerequisite concepts that form the basis for understanding all the optimizations that follow.
Prerequisite 1: Mixture of Experts (MoE)
A Mixture of Experts model consists of two parts: a gating network (Gate) and several expert subnetworks (Experts). The gating network computes the match score between each input token and every expert, then selects the few highest-scoring experts to participate in the actual computation. During training, different experts spontaneously develop preferences for different domains and token distributions. Because each request activates only a small subset of all experts, MoE exhibits a typical sparse activation characteristic: the total parameter count is very large, but the compute for a single forward pass is far smaller than that of a dense model with the same parameter scale.
This characteristic directly dictates the deployment strategy: GPU memory must hold all experts, but compute only needs to cover the activated ones. As a result, the bottleneck in MoE inference is often not compute, but memory capacity and the communication overhead introduced by expert routing.
Prerequisite 2: Decoder-Only Autoregressive Architecture
Today’s mainstream large models generally adopt a Decoder-Only autoregressive structure, whose inference process is clearly divided into two stages:
- Prefill stage: The entire input prompt is computed in parallel at once, producing the Q, K, and V tensors and generating the first output token. This stage is matrix-multiplication-intensive and is a compute-intensive workload.
- Decode stage: The previous output is used as the new input, generating one token at a time in a loop until completion. This stage processes only one token per step and must repeatedly read all weights and the historical KV Cache, making it a memory-access-intensive workload.
There is a thought-provoking detail here: why cache only K and V, and not Q? In autoregressive generation, the Q of a new token is only relevant to the attention computation of the current step and is discarded after use; the K and V of historical tokens are read repeatedly at every subsequent step, so caching them avoids redundant computation. This is a classic engineering trade-off of “trading space for time.”
Direction 1: The Continued Evolution of PD Disaggregation
1. Two Structural Problems Exposed by Mixed Deployment
Initially, Prefill and Decode were scheduled together on the same set of devices. As context lengths grew and concurrency increased, two thorny problems emerged:
Problem 1: Strong interference between stages. Prefill is a bursty, long-sequence computation that can saturate GPU compute; Decode is extremely latency-sensitive and requires stable memory bandwidth at every step. When both share the same GPU, prefilling a long prompt causes queuing, directly driving up the TPOT of users currently decoding and creating a noticeable “stuttering” experience.
Problem 2: Coupling of resource allocation and parallelism strategy. Prefill favors larger tensor parallelism and sequence parallelism to compress time-to-first-token; Decode, when batch size is small, suffers increased communication overhead from excessive parallelism and prefers a throughput-oriented parallel configuration. Under mixed deployment, only one compromise set of parameters can be chosen, so neither side reaches its own optimum.
These two metrics—TTFT (Time To First Token) and TPOT (Time Per Output Token, the average generation time per subsequent token)—are the core measures of inference service quality and precisely what PD disaggregation aims to address.
2. The Basic Approach to PD Disaggregation
The first systematic proposal in the industry was to split the two stages and deploy them onto separate resource pools, which is PD disaggregation. Its benefits come from three points:
- Each stage independently chooses its parallelism strategy and batch assembly method;
- Each stage scales independently: the Prefill pool scales by input length distribution, and the Decode pool scales by online concurrency;
- Mutual preemption is eliminated, and tail latency converges significantly.
The deployment logic can be abstracted schematically as:
Request -> [Prefill Pool] --KV Cache--> [Decode Pool] -> Streaming output| |Compute-intensive, high utilization Memory-intensive, low latency
3. Cross-Pool KV Cache Transfer: The New Bottleneck After Separation
Once split, the KV Cache that originally resided in the same GPU memory must be moved across devices. In engineering practice, this typically relies on high-speed interconnect networks (such as InfiniBand or RoCE-capable networks) or high-bandwidth links between multiple GPUs within a machine. Key design points here include:
- Overlap of transfer and computation: While waiting for the KV to arrive, the Decode side can perform scheduling preparation to avoid bubbles;
- Tiered caching: Keep a first-level cache in host memory or local high-speed storage, avoiding transfer on a hit;
- Block-granularity management: Organize transfers in fixed-size KV blocks to facilitate pipelining and failure retries;
- Affinity scheduling: Place the P and D instances of the same session as close as possible in network distance.
4. Roadmap: From Coarse-Grained Separation to Fine-Grained Decoupling
The subsequent evolution of PD disaggregation roughly follows three lines: first, moving from “whole-machine separation” to “separation across different GPU groups within a single machine” to reduce transfer costs; second, introducing multi-level KV cache pools to make prefix reuse a general capability across requests; third, deep coordination with the scheduler to dynamically adjust the P-to-D ratio based on the real-time input length distribution.
When deployed in the cloud, this kind of architecture typically requires a container platform to handle elastic scaling, high-speed networking and object storage/distributed cache to handle KV overflow, and a monitoring and alerting system to observe the two independent curves of TTFT and TPOT separately, forming a closed-loop optimization.
Summary and What’s Next
The essence of PD disaggregation is to split a forcibly coupled workload into two distinct workloads and govern them separately. Once you understand this, the remaining five directions—expert parallelism and communication optimization for MoE, tiering and reuse of KV Cache, speculative decoding, quantization and low-precision inference, and function-granularity elastic scheduling—will all follow naturally. The next installment will cover each in turn.
