TL;DR
RadixFlow optimizes LLM serving for "hybrid" models (like Qwen3.5 or Mamba) that combine attention with recurrent layers. It eliminates "execution bubbles"—idle GPU slots—caused by same-round dependencies between requests that share a prefix but are waiting for recurrent state to be computed. By decoupling prefix matching from state readiness, RadixFlow reduces mean latency by up to 24% and worker rounds by up to 44%.
What Problem Does This Paper Address?
In modern LLM serving, "prefix caching" is a standard trick: if multiple users ask questions about the same long document, the system caches the Key-Value (KV) states of that document to avoid recomputing them. This works perfectly for standard Transformers.
However, a new generation of hybrid LLMs (e.g., Qwen3.5, Nemotron) uses recurrent or convolutional layers alongside attention. For these models, resuming a cached prefix requires not just KV pages, but also a specific recurrent state at the boundary where the shared prefix ends and the unique query begins.
The conflict arises when a "producer" request (computing the state) and a "consumer" request (needing that state) arrive in the same batch. Current schedulers (like vLLM) are "prefix-stop": they scan the waiting queue, hit the blocked consumer, and stop scanning entirely. This creates "head-of-line blocking," leaving the GPU with "execution bubbles"—empty slots that could have been filled by other independent requests further down the queue.
Methods
The authors introduce RadixFlow, a batch-construction policy designed to maximize GPU utilization by separating prefix matching from state readiness.
- State-Ready Traversal: This is the core innovation. Instead of stopping the queue scan when a request is blocked by a same-round dependency, RadixFlow moves that "consumer" to a local wait queue and keeps scanning for other independent work that is ready to run.
- Flexible Admission: To group more work together, RadixFlow uses a brief (5ms) admission timer. It collects arriving requests and releases them earlier if the worker is already busy or if the batch is full, balancing waiting time against batch density.
- Algorithm Integration: The system uses a "state-ready" check to distinguish between a request that is truly unallocatable (due to memory limits) and one that is just waiting for a producer in the current round.
Datasets
The authors evaluated RadixFlow using workloads derived from two major reading comprehension benchmarks:
- QuALITY: Long-document question answering.
- RACE-M: Middle-school level reading comprehension.
These were configured to simulate heavy prefix sharing (e.g., four different questions/branches sharing one long article) to stress-test the scheduler's ability to handle producer-consumer dependencies.
Key Insights and Ideas
- A Cache Hit $\neq$ A Runnable Branch: In hybrid models, matching a prefix in the cache is only half the battle. You must also ensure the recurrent state is "published" and ready to read.
- Avoidable Bubbles: The paper formalizes the "execution bubble" as legally fillable idle capacity. If a scheduler leaves a row empty while a "READY" request exists later in the queue, that's a wasted opportunity.
- Decoupling Dependencies from Memory Pressure: By treating a blocked consumer as a local wait rather than a global scan barrier, the scheduler can distinguish between "waiting for data" and "out of memory."
- The Cost of Density: Denser batches process more work but can take longer to execute. The authors found that while RadixFlow significantly reduces the number of rounds, the remaining rounds are "heavier," which is a trade-off that must be managed.
Key Results
RadixFlow was tested across five hybrid models (Qwen3.5 0.8B to 27B, and Nemotron-9B) and one full-attention control (Qwen3-8B).
- Latency Gains: Mean client latency dropped by 3% to 24% across the hybrid models.
- Efficiency: The number of worker rounds required to process the same workload fell by 11% to 44%.
- Batch Density: As shown in Figure 3, RadixFlow consistently produces denser batches (more rows/round) and selects requests earlier than the baseline.
- Full-Attention Control: On the standard Transformer (Qwen3-8B), RadixFlow provided almost no gain from traversal (as expected, since there are no recurrent state dependencies), proving the technique specifically targets the hybrid model bottleneck.
Limitations and Future Work
- Prefill Focus: The evaluation focused heavily on the prefill phase (generating the first token). While this is the most compute-intensive part of long-context serving, the impact on long decoding sequences was not the primary focus.
- Fixed Budgets: The experiments used frozen row and token budgets. Dynamic budget adjustment might further improve performance but adds complexity.
- State Capture: The paper does not address the "checkpointing" problem—deciding exactly where to save recurrent states to maximize future reuse. It relies on the native backend's existing state management.
- Future Direction: Integrating RadixFlow with asynchronous scheduling (where CPU control and GPU execution overlap more aggressively) is a promising next step.
Summary updated