﻿# DuetServe: adaptive SM sharing and the meaning of token throughput

How DuetServe conditionally separates prefill and decode on GPU SMs, with attention-aware prediction, look-ahead dispatch and precise throughput/latency scopes.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/duetserve-adaptive-sm-sharing-token-interval-metrics/
Language: en

DuetServe investigates how prefill and decode can share GPU resources without allowing a large prompt-processing batch to delay ongoing token generation unnecessarily. Its key decision is adaptive: ordinary aggregated execution remains the default, while spatial partitioning is activated when predicted token intervals threaten the configured latency objective.

## Separate the scheduling objective from a device label

The [official publication record](https://proceedings.mlr.press/v306/gao26m.html) describes an attention-aware latency model and adaptive partitioning. The [full paper](https://raw.githubusercontent.com/mlresearch/v306/main/assets/gao26m/gao26m.pdf) explains why prefill and decode can benefit from different compute allocations. Their relative demand changes with batch composition, context length and the GPU's measured compute and memory behavior.

The mechanism therefore does not assign a permanent universal percentage of a GPU to each phase. It profiles the platform and predicts the current batch. A split that works for one workload can waste resources or miss the intended latency target under another.

## Follow the conditional partition decision

When the predicted mixed-batch latency is acceptable, the scheduler can continue aggregated execution. When the prediction threatens the decode time-between-tokens objective, it separates prefill and decode batches onto non-overlapping SM allocations.

The optimizer chooses allocations while considering throughput and the decode latency bound. It can schedule several decode steps alongside a prefill batch. This is a scheduling and performance mechanism; it should not be described as a demonstrated security boundary between unrelated tenants. Shared-device resource behavior and prediction error still require measurement.

## Keep the execution engine in the explanation

Partitioning alone is not the complete method. The implementation uses separate CUDA streams, graph replay for decode and look-ahead preparation for multiple decode steps. Preparing metadata and cache slots in advance reduces repeated CPU–GPU interruptions in the described execution path.

The dependency structure still has to remain correct. Advance reservation consumes resources, completed requests need appropriate handling and the actual kernel implementation affects overlap. A statement about reduced dispatch interruptions is narrower than a guarantee that every synchronization or every source of waiting disappears.

## Read throughput and latency as different measurements

The paper's optimization counts tokens processed by both prefill and decode. That differs from measuring only generated output tokens or completed user requests. An improvement in total token throughput cannot automatically be reused as the same multiplier for output speed, API capacity or revenue.

The main evaluation reports several workloads with different prompt and response distributions and simulated request arrival timing. It compares particular runtime versions and configurations. Mean time-to-first-token and mean token intervals also differ from a per-request tail-latency guarantee. The measured workload and metric definition need to stay attached to any reported gain.

## Preserve the comparison's deployment scope

Device-level prefill/decode separation has additional allocation choices in a larger GPU pool. The paper discusses that limitation and includes a bounded larger-node comparison. It does not establish that every multi-node deployment behaves like its primary testbed or that spatial partitioning dominates every possible disaggregated configuration.

We reviewed the scheduler, execution design, experimental setup and discussion without running the serving system. The [reproducible-stack guide](/journal/software-stack-reproducibility/) covers version records, and the [document-split guide](/journal/document-level-data-split-leakage/) covers a separate benchmark-data control. DuetServe is useful as a concrete example of adapting resource isolation to predicted latency pressure, with throughput, token timing and deployment scale evaluated separately.

## Sources

- [Official DuetServe publication record](https://proceedings.mlr.press/v306/gao26m.html).
- [Published DuetServe full paper](https://raw.githubusercontent.com/mlresearch/v306/main/assets/gao26m/gao26m.pdf).
