Products

Cerebras Split LLM Inference Into Two Stages

Cerebras is separating prefill from decoding so each stage can use dedicated compute and memory resources. The approach may improve long-context performance, but production economics remain unclear without public benchmarks.

Font size

Cerebras recently introduced Disaggregated Inference. Rather than training a new model, the company splits LLM inference into prefill and decode, allowing each stage to run on different infrastructure with its own scheduling strategy.

For teams building AI Agents, the design affects long-context latency, token generation speed, and inference costs.

The original announcement is available in Cerebras Launches Disaggregated Inference.

This Is Not a New Model

Cerebras calls the approach Disaggregated Inference. It targets inference infrastructure rather than foundation models.

The model weights and API contract remain unchanged. What changes is how requests move through the system:

  1. The input prompt first enters the prefill stage.
  2. After the model generates its first token, execution moves to the decode stage.
  3. The two stages can use separate resource pools, machines, or clusters.
  4. Intermediate state passes through the system to the decode stage, which continues generating one token at a time.

The execution path can be simplified as follows:

Client
  │
  ▼
Prefill cluster ──► KV cache / intermediate state ──► Decode cluster
                                                      │
                                                      ▼
                                                Streamed tokens

This diagram is only an illustration of the execution path, not Cerebras's official deployment topology.

The key point is: the model has not changed, but the system boundary has.

Traditionally, the same set of accelerators handles both long-prompt computation and token-by-token generation. Hardware utilization, memory capacity, parallelization strategies, and network topology must accommodate two very different workloads.

Cerebras aims to optimize each stage independently.

Why Prefill and Decode Behave Differently

LLM inference is often treated as a single operation: “input a prompt, output a completion.” At the systems level, it has at least two distinct phases.

Prefill: Process the Entire Prompt First

Prefill processes the input tokens. The model computes attention over the prompt and produces the intermediate state needed for subsequent generation, typically including the KV cache.

It is closer to a large parallel computation. As input length grows, compute demand, memory consumption, and time to the first token all increase.

For an input of 100,000 tokens, prefill must process the entire context. Its primary concerns are:

  • Whether large matrix operations can run efficiently
  • Whether there is enough memory for the KV cache
  • How quickly a long prompt can move into generation
  • Whether multiple requests will compete for the same compute resources

Decode: Advance One Token at a Time

Decode uses the existing KV cache to compute the next token at each step. Its performance depends heavily on:

  • Memory bandwidth
  • Scheduling efficiency for small-batch operations
  • KV cache read speed
  • Continuous scheduling across requests
  • Latency per generated token

Running the two workloads together can create resource conflicts.

A long-prompt request in prefill consumes substantial compute resources. At the same time, a high volume of decode requests needs steady memory bandwidth and low-latency scheduling to stream tokens continuously.

In long-context services, a 100K-token request can extend the time-to-first-token for other requests. A request that is already decoding also cannot be paused without restoring its KV cache state before generation can resume.

With disaggregated deployment, each stage has clearer scheduling objectives:

  • The prefill cluster prioritizes throughput for large-prompt computation.
  • The decode cluster prioritizes token output speed and request concurrency.
  • Each resource type can scale independently.
  • The scheduler can send each stage to hardware that fits its workload.

Separation does not make conflicts disappear automatically. It turns them into system-level problems that are easier to observe and control.

Community Metrics Are Not Production Evidence

The launch appeared on the Hacker News discussion page.

The draft record shows 38 points and 12 comments for the submission. These figures will change over time and cannot establish long-term interest, faster performance, lower cost, or production readiness.

The available blog summary does not provide:

  • A specific performance improvement factor
  • Pricing per million tokens
  • Hardware configurations for prefill and decode
  • Latency distributions under real production traffic
  • Concurrency levels, context lengths, or output lengths
  • Comparisons with existing unified inference stacks

A useful benchmark should report TTFT (Time to First Token), TPOT (Time Per Output Token), tokens/s, request throughput, and P50, P95, and P99 latency across different input and output lengths.

It should also specify the test date, model, batch size, hardware, precision, and caching strategy. Without those details, an average result is of limited value for purchasing or deployment decisions.

Two conclusions can be made with confidence:

  1. Disaggregated inference is a clear product direction for Cerebras.
  2. Cerebras believes it can reduce resource contention between prefill and decode.

The size of the improvement still requires public, reproducible data.

Cost Differences From a Unified Inference Stack

It is unreliable to assume that separating the stages automatically lowers costs.

A unified inference stack uses the same accelerators, network, and scheduling system for both stages. Hardware utilization may not be optimal, but there are fewer operational components, and capacity planning is simpler.

Disaggregated inference adds system boundaries.

Where Costs Could Fall

First, the stages interfere with each other less.

Long-context prefill no longer competes directly with decode for token-generation resources. For services with long prompts and short outputs, this could improve tail latency.

Second, each resource type can scale independently.

If traffic consists mainly of long prompts, the prefill pool can expand. If traffic is dominated by sustained generation and high concurrency, the decode pool can expand instead.

Third, hardware can better match the characteristics of each stage.

Prefill is compute-intensive, while decode depends more on memory bandwidth and low latency. Separation allows teams to select different hardware and parallelization strategies for the two workloads.

Where Costs Could Rise

First, transferring state across stages adds engineering overhead.

The KV cache or related state produced during prefill must be passed to decode nodes. Data volume, link latency, serialization, and failure recovery all contribute to the cost.

Second, failures are no longer confined to a single machine.

A disaggregated system may encounter a partially completed request in which prefill has finished but the decode cluster is unavailable. The system must handle retries, state persistence, and repeated computation.

Third, the scheduler becomes more complex.

It must account for request length, output length, queue pressure, and the capacity of both clusters, while deciding where each stage should queue and how decode slots should be allocated.

Fourth, hardware utilization may not be higher.

Two independent resource pools will each experience peaks and troughs. An idle prefill cluster cannot simply take over decode work, and prefill resources cannot move directly to generation when the decode cluster is busy.

The comparison must therefore consider the total cost per unit of effective throughput, not just chip count:

Cost per useful token
= (compute + memory + network + orchestration + idle capacity) / useful tokens

Looking only at API prices can obscure the idle capacity teams must reserve to meet a particular latency tier.

For most organizations, this also creates a migration barrier.

Teams with an existing unified inference stack are unlikely to split their clusters simply because the architecture makes sense. They will also need model support, runtime support, monitoring changes, and tools for diagnosing failures that span stages.

A practical evaluation can begin with three steps:

  1. Use the same model and traffic distribution to compare the unified and disaggregated stacks.
  2. Measure TTFT, TPOT, P99 latency, and the cost per useful token together.
  3. Include cross-stage transfers, retries, and idle capacity in the cost comparison rather than comparing API prices alone.

What Disaggregation Changes

The significance of disaggregated inference depends less on whether Cerebras was the first to implement it than on the way it reframes LLM optimization. The question shifts from “How can the model become smaller?” to “Where should each request stage run?” Model compression addresses weight and compute costs, while disaggregated inference addresses mismatches among workloads, resources, and scheduling. These are problems at different layers.

This approach is likely to have an early impact on long-context and high-concurrency services. The former place heavy pressure on prefill, while the latter remain constrained by decode latency. Short prompts with low concurrency may not justify cross-cluster transfers, and the engineering cost could outweigh the gains.

Unlike incremental optimizations such as continuous batching, chunked prefill, PagedAttention, or quantization, which improve utilization within existing execution boundaries, disaggregated deployment changes those boundaries. It also brings networking, scheduling, and failure recovery to the foreground.

Public materials still lack performance factors, pricing, and production benchmarks. Cerebras's implementation should not be considered ahead of competing systems until end-to-end results are available under the same model, hardware, and traffic distribution.

Source: https://www.cerebras.ai/blog/cerebras-launches-disaggregated-inference