Large Language Model (LLM) inference is a moving target. Depending on whether you are processing a prompt (prefill) or generating tokens (decode), and whether your batch size is 1 or 64, the hardware bottlenecks shift dramatically. Traditionally, we’ve handled this with "disaggregated serving"—splitting the work across different hardware pools. But these splits are usually static, like separating Attention from Feed-Forward Networks (FFN).
A new paper from researchers at IBM and TU Dresden argues that these fixed boundaries are holding us back. They introduce HELIX, a software stack that throws away predefined roles and instead dynamically partitions LLM operators across heterogeneous hardware based on the specific workload at hand.
TL;DR
HELIX is a vLLM-based software stack that uses dynamic programming to automatically partition LLM inference tasks across diverse accelerators (like GPUs, PIM, and CIM) at the operator level. By adapting to specific models and batch sizes at runtime, it achieves up to a 3.5× speedup in decoding latency compared to traditional static partitioning methods.
What Problem Does This Paper Address?
LLM inference is inherently heterogeneous. The prefill phase is compute-bound (crunching many tokens at once), while the decode phase is typically memory-bandwidth bound (generating one token at a time). Even within the decode phase, different operators have different needs: Attention is strictly memory-bound, while FFNs can become compute-bound as batch sizes increase.
Existing systems use fixed partitioning strategies, such as Prefill/Decode (P/D) or Attention/FFN (A/F) disaggregation. While effective for standard setups, these "hard-coded" splits fail in three ways:
- Workload Invariance: They don't adapt when a change in batch size shifts an operator from being memory-bound to compute-bound.
- Architectural Rigidity: They struggle with non-transformer models, like hybrid State-Space Models (SSMs), which don't have a clean Attention/FFN split.
- Hardware Integration: Emerging specialized accelerators (like Processing-In-Memory or Compute-In-Memory) are often forced into predefined roles that might not be their optimal use case.
Methods
HELIX moves away from orchestration-level splitting and intervenes at the engine level. It treats heterogeneous placement as a data-plane problem.
1. Profile-Guided Partitioning Search
At engine initialization, HELIX performs a search over the model’s computational graph. It uses Dynamic Programming (DP) to find a placement that minimizes end-to-end latency while respecting memory constraints.
- The "Frontier" State: To handle the complex residual connections (skip connections) common in LLMs, the DP algorithm tracks a "frontier" of active stages to ensure it finds a globally optimal split.
- Efficiency: By using profiled costs for primitives (like GEMMs and Attention), the search is incredibly fast—taking only about 16 milliseconds for a Llama-8B model.
2. The HELIX Software Stack
Built on top of the popular vLLM framework, HELIX intercepts the model's execution graph. It uses piecewise compilation to break the graph into subgraphs, each compiled specifically for its target hardware (e.g., using CUDA Graphs for GPUs or custom backends for specialized accelerators).
Datasets and Models
The authors evaluated HELIX across several architectural families to prove its flexibility:
- Llama 3.1-8B: A standard dense Transformer.
- Mixtral 8x7B: A sparse Mixture-of-Experts (MoE) model.
- Bamba-9B: A hybrid model interleaving Attention with Mamba (SSM) layers.
- Graph Analysis: They also analyzed the computational graphs of larger models like Qwen3-Next-80B and Kimi-Linear-48B.
Key Insights and Ideas
- Bottlenecks are Fluid: An operator isn't "compute-bound" by nature; it's compute-bound given a specific batch size and hardware. HELIX captures this by re-evaluating placement for different serving regimes.
- SSMs Benefit Most: Hybrid models like Bamba are "A/F-split-unfriendly." HELIX automatically discovered that offloading all GEMMs (including those in the SSM mixer) to specialized hardware yielded massive gains that a manual split would miss.
- Hardware Agnosticism: By exposing accelerators as "subgraph executors," HELIX allows researchers to plug in simulators for emerging hardware alongside real GPUs, facilitating early-stage hardware-software co-design.
- Memory Pressure as a Driver: HELIX can find feasible partitions even when a model is too large for a single device by intelligently moving specific layers to secondary hardware, rather than just simple sharding.
Key Results
The quantitative gains are significant when comparing HELIX to standard Attention-FFN (A/F) disaggregation:
- Dense/Sparse Transformers: Up to 3× reduction in multi-query decoding latency.
- Hybrid SSMs (Bamba): Up to 3.5× reduction in latency.
- Three-Way Heterogeneity: In a complex system combining an H100 GPU, 3D Compute-In-Memory (3DCIM), and DRAM-PIM, HELIX found non-obvious partitions that outperformed all pairwise baselines by up to 8.7×.
- Search Speed: The partitioning search is "seamless," completing in milliseconds during the standard model loading phase.
Limitations and Future Work
While HELIX is a major step forward, the authors note several areas for expansion:
- Optimization Objectives: Currently, HELIX focuses solely on minimizing latency. Future versions could optimize for energy efficiency or total cost of ownership (TCO).
- Pipelining: The current execution is sequential across subgraphs. Implementing finer-grained pipelined scheduling (e.g., sub-batching) could further increase resource utilization.
- Online Adaptation: The search currently happens at initialization. Moving toward runtime auto-tuning based on live traffic patterns is a promising next step.
By treating hardware as a flexible pool of executors rather than fixed roles, HELIX provides a blueprint for the next generation of heterogeneous AI serving systems.
Summary updated