TL;DR
HexGen-3 is a novel LLM serving framework that achieves massive cost-efficiency gains by "fully disaggregating" the inference pipeline into three specialized worker types: prefill, attention, and FFN. By combining this architecture with a fine-grained, heterogeneous autoscaling system, it improves per-cost throughput by over 50% compared to current state-of-the-art systems.
What Problem Does This Paper Address?
Serving Large Language Models (LLMs) is incredibly expensive, largely because real-world traffic is "heterogeneous." Some requests are short questions; others are massive documents requiring long-context reasoning.
Current serving systems often suffer from resource stranding. In a monolithic setup, if the system is bottlenecked by memory bandwidth during the decoding phase, the massive compute power of the GPU sits idle. While recent "disaggregated" systems separate the prefill phase (compute-bound) from the decoding phase (memory-bound), HexGen-3 argues this doesn't go far enough. Within the decoding phase itself, the Attention operation (which scales with sequence length) and the Feed-Forward Network (FFN) operation (which has a fixed cost per token) have fundamentally different resource needs. Scaling them together is inefficient.
Methods
HexGen-3 introduces a "fully disaggregated" architecture and a two-tier management system:
- Full Disaggregation: The system splits inference into three distinct worker pools: Prefill, Attention, and FFN. This allows the framework to map specific operations to the hardware best suited for them (e.g., using memory-optimized GPUs for Attention).
- Hierarchical Scheduling:
- Global Scheduler: Uses a Markov Decision Process (MDP) and Simulated Annealing to decide how many GPUs of which type should be allocated to each worker pool.
- Local Scheduler: Optimizes the "parallelism sandwich" (Data, Tensor, and Expert parallelism) for each specific group of GPUs to maximize throughput.
- Fine-Grained Autoscaling: Instead of relying on misleading metrics like raw GPU utilization, HexGen-3 monitors "throughput pressure." It features a cost-aware rescheduling mechanism that only triggers a model reload (which causes downtime) if the predicted performance gain is high enough to "pay back" the reconfiguration cost within a certain time window.
Datasets
The authors evaluated HexGen-3 using several real-world production-style traces and reasoning workloads:
- WildGPT: A trace of real-world chatbot interactions.
- OpenThoughts: Data focused on reasoning models.
- OpenR1-Math & NuminaMath: Workloads specifically targeting mathematical reasoning, which often involve long-context chain-of-thought processing.
- Models: Evaluations were performed on Qwen3-30B-A3B and Mixtral-8x22B.
Key Insights and Ideas
- The "Utilization Lie": The paper highlights that hardware utilization is a poor metric for LLM autoscaling. A GPU can show 100% utilization while being stalled by memory bandwidth, making it look "busy" when it's actually being inefficient. HexGen-3 shifts the focus to throughput-based signals.
- Attention vs. FFN Divergence: As request lengths increase, the cost of Attention surges (up to 12x in some mixes), while FFN costs remain relatively stable. By separating them, you can scale the Attention pool independently to handle "long-context" spikes without over-provisioning the FFN pool.
- Heterogeneity as a Feature: The framework is designed for clusters with different GPU types (e.g., H100s mixed with H20s). It strategically places memory-bound Attention tasks on GPUs with high memory bandwidth but lower compute, saving the "premium" compute-heavy GPUs for Prefill and FFN tasks.
- Warm-Start Optimization: To avoid the "cold-start" latency of reconfiguring a cluster, HexGen-3 projects existing parallelism strategies onto new resource allocations, minimizing the need for full model reloads.
Key Results
- Throughput Gains: Under static resource conditions, HexGen-3 improved per-cost throughput by up to 60% (46.5% average).
- Autoscaling Efficiency: In dynamic workloads, it achieved up to 78.3% (55.1% average) improvement over non-autoscaling baselines.
- Latency Trade-offs: The system achieved a massive 84.2% reduction in Time-To-First-Token (TTFT). However, it did see an increase in Time-Between-Tokens (TBT) because the disaggregated architecture allows for much larger batch sizes, which increases efficiency but adds slight delays between individual tokens.
- Scalability: The benefits actually increased as the GPU cluster grew, suggesting the framework is well-suited for large-scale data centers.
Limitations and Future Work
- TBT Increase: While end-to-end latency is generally lower, the increased TBT might be noticeable in highly interactive "streaming" applications where users watch tokens appear one by one.
- Communication Overhead: While the paper uses RDMA and "ping-pong" pipelining to hide communication costs, a very slow network could still become a bottleneck in a fully disaggregated setup.
- Deterministic Assumptions: The simulator used for scheduling assumes deterministic hardware performance and ignores potential "jitter" from thermal throttling or multi-tenant network interference.
Future work could involve extending this fine-grained scaling to even more complex architectures, such as Mixture-of-Experts (MoE) models with highly dynamic routing patterns.
Summary updated