Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow
Paper · 2024 · Yixuan Mei, Yonghao Zhuang, Xupeng Miao et al.
Summary
Serving a large language model becomes difficult when the available computers have different strengths. Some GPUs calculate quickly but offer limited memory; others provide useful capacity at lower performance. Connections between machines also differ, especially when resources occupy separate geographical regions. Helix addresses the resulting coordination problem: which layers should each machine hold, and which machines should process each request? Its central claim is that these decisions must account for computing resources and communication together. A deployment with well-balanced computation can still perform poorly if its requests repeatedly cross an overloaded network connection.
The authors express this problem through a directed graph. A graph edge has a capacity measured in tokens per second, whether it represents processing on a GPU or transmission over a connection. For a particular arrangement of model layers, the maximum flow through this graph describes the throughput permitted by the abstraction. Helix then uses mixed-integer linear programming, or MILP, to search for a placement that increases this flow while respecting layer order, memory-derived placement limits, processing capacity, and communication capacity. Integer decisions determine where computation can occur; continuous flow variables describe how much work can travel through the resulting routes.
At runtime, Helix gives each arriving request its own pipeline through the selected placement. These pipelines can share machines rather than belonging to separate, fixed groups. Routing follows weights obtained from the flow solution, while an estimate of key-value cache usage temporarily excludes machines approaching their memory limit. The system therefore connects an offline placement calculation with an online scheduling policy. It does not solve a new placement problem for every request, and a request keeps its assigned pipeline as generation continues.
The evaluation uses LLaMA-1 30B and LLaMA-2 70B with conversation traces. A working prototype is evaluated within a single region; simulations examine geographically separated resources and a more varied GPU collection. Across the reported settings, the headline throughput improvement reaches 3.3×, while the largest reported reductions in prompt and decode latency are 66% and 24%. These improvements are conditional rather than universal: some comparisons show higher decode latency because Helix makes greater use of slower GPUs. Controlled comparisons separately support the value of its placement strategy and its scheduler. The strongest conclusion is that a coordinated view of computation, communication, and request routing can recover substantial capacity that simpler heterogeneous-serving strategies leave unused.
Interesting ideas
Optimize the complete route. A locally sensible assignment can create a bottleneck farther along a workflow. Helix evaluates the path from input to completion, rather than treating each machine’s throughput as sufficient evidence of a good deployment. The same reasoning applies to document-processing chains, distributed analysis, and services whose output must pass through several dependent stages. A fast stage contributes little when its downstream connections cannot carry its results.
Give unlike resources a shared unit. Computing speed and network bandwidth initially describe different things. Helix translates both into token-processing capacity, making them comparable within one optimization problem. This is useful whenever a workflow crosses resource boundaries: the planner needs a common measure of completed work, while retaining the conversions that connect that measure to physical limits. The conversion must reflect what actually crosses each boundary.
Separate structural planning from runtime assignment. Choosing where operations may run is a different task from choosing where a particular request should go. Helix invests substantial computation in placement, then implements the resulting proportions with a comparatively lightweight scheduler. Other systems can use this division when their infrastructure changes slowly but requests arrive continuously. The structural plan supplies direction without requiring an expensive global search for every arrival.
Allow routes to overlap. Fixed groups make ownership simple, but they can strand capacity when machines have unequal capabilities. Helix lets independently assigned request pipelines intersect. This creates more ways to distribute work without requiring every possible route to be explicitly listed beforehand. The idea transfers to heterogeneous worker pools when shared workers can safely participate in several workflows.
Use heuristics to start an exact search. A heuristic does not have to replace formal optimization. Helix supplies heuristic placements as initial solutions, allowing the solver to begin with an admissible deployment and search for improvements. This arrangement preserves the practical value of simple methods while retaining explicit constraints and objective bounds. It is relevant to planning, allocation, and scheduling problems where a satisfactory answer may be needed before optimality can be established.
Distinguish a strong answer from a completed proof. The placement-quality analysis shows that finding the best deployment and certifying its optimality can require very different amounts of time. An incumbent solution, an upper bound, and the time spent searching answer separate questions. Reporting them separately helps users decide whether additional optimization is worthwhile. The distinction also matters in bounded theorem search, combinatorial inference, and automated configuration.
Evaluate components under shared conditions. Helix compares placement methods while holding the scheduler fixed, then compares schedulers under a common placement. This prevents an end-to-end improvement from being attributed to the wrong component. The same experimental pattern is useful for pipelines containing parsing, retrieval, ranking, filtering, or execution: replace one decision mechanism at a time and observe the final task metric.
Deep dive: Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow
Helix uses max-flow optimization to place large language models and route requests across mixed GPUs, balancing compute, memory, and network limits. · about 41 minutes to read
How Mova uses it
Mova is a small, transparent language system written in Rust. Its native understanding proceeds through dependency trees, frames, and a world representation; its operational layer executes configured capabilities. Helix concerns distributed generative inference, so its serving results do not establish improvements to Mova’s language understanding. The useful connections are proposals about mathematical descriptions, bounded planning, worker coordination, and evaluation. The status marks below describe overlap with documented Mova mechanisms. They do not record a measured application of Helix.
Idea: Optimize a complete processing route. Where: “Necessity of Joint Optimization.” Area: operational planning. Mova: частково є (layers routing and configured native deputy plans). Mova already makes explicit routing decisions, but a capability match does not establish that a whole workflow uses resources well. A proposed extension would assess the complete sequence of parsing, source lookup, review, and execution before allocating workers. The transfer hypothesis is that downstream limitations can explain poor throughput that looks like an upstream worker problem. No Helix-based route optimizer or corresponding Mova measurement is established.
Idea: Express different resource limits in a shared work unit. Where: “Heterogeneous LLM Serving as Max-Flow.” Area: mathematical modeling. Mova: частково є (groupants, tools/approx, and tools/twin). Mova’s mathematical tooling can describe observations and costs, but the digest does not establish a common throughput unit for heterogeneous workflows. A proposal is to define units such as completed source records for a specific task family, with separate measured conversions for parsing, storage, and transmission. Helix supports the usefulness of a common unit in its own setting; choosing a valid unit for Mova remains unverified.
Idea: Keep structural planning separate from request assignment. Where: “Helix overview” and “Scheduler Design: Per-Request Pipelines.” Area: worker coordination. Mova: частково є (deployment-configured capabilities and bounded native deputy planning). Mova could retain a reviewed plan of admissible worker relationships and use a cheaper policy for individual jobs. This would preserve the distinction between deciding which actions exist and choosing an executor for a particular request. The proposed benefit is lower planning overhead without losing configuration identity. The existing configured planner does not establish an offline resource optimizer.
Idea: Permit shared workers across individually assigned routes. Where: “Scheduler Design: Per-Request Pipelines.” Area: scheduling. Mova: нове. Why Mova: overlapping routes could make better use of workers that support several compatible task families. A Helix-inspired proposal would assign each admitted job a route through configured capabilities while allowing different routes to use the same worker. This requires explicit state ownership, budgets, and failure handling; merely having multiple workers is insufficient evidence that this mechanism exists. The novelty mark is provisional because the digest is incomplete, and no throughput benefit is measured.
Idea: Use heuristic plans as solver starting points. Where: “Analyzing and Speeding up MILP” and “Ablation Study on Optimization.” Area: combinatorial optimization. Mova: частково є (world selfplay, bounded proposal generation, and groupant checks). Mova already proposes and evaluates changes, but this does not establish heuristic initialization of a placement MILP. A concrete proposal is to turn an existing valid worker assignment into the starting incumbent for a constrained planner. The expected advantage is earlier access to an executable plan while search continues. Helix’s acceleration results cannot be transferred numerically.
Idea: Report solution quality separately from optimality certification. Where: “Model Placement Quality.” Area: evaluation and mathematical evidence. Mova: частково є (groupants, model checks, and bounded correspondence analysis). Mova distinguishes finite observations from stronger equivalence claims. A planner could extend that discipline by recording its best admissible plan, the best available bound, and its stopping reason as different evidence fields. This would prevent a search timeout from being mistaken for either failure to find a useful plan or proof that the plan is optimal. The corresponding planner record is a proposal.
Idea: Isolate placement and scheduling in controlled experiments. Where: “Model Placement Deep Dive” and “Request Scheduling Deep Dive.” Area: evaluation. Mova: вже є (held-out gates, negative controls, and paired comparisons described in README.md and training documentation). Helix supplies a useful experimental pattern for Mova’s operational layer: compare routing plans under a common executor policy, then compare executor policies under one plan. Existing evaluation principles justify the separation, but they do not establish that this particular worker experiment has been run. Operational throughput and linguistic correctness should both remain visible.
Idea: Split a resource into input and output vertices to express its capacity. Where: “Heterogeneous LLM Serving as Max-Flow,” compute-node construction. Area: graph algorithms. Mova: нове. Why Mova: this construction would let a workflow graph constrain processing capacity using the same edge machinery as communication. A proposed groupant could represent a worker with an incoming vertex, an outgoing vertex, and a measured processing edge between them. This is a mathematical representation, not an extension of language comprehension. Its usefulness would depend on whether the chosen work items behave consistently enough for a capacity abstraction.
Idea: Distinguish transport payloads at different boundaries. Where: “Heterogeneous LLM Serving as Max-Flow,” network construction. Area: data processing. Mova: частково є (pack, dictionary occurrence records, and explicit worker interfaces). Helix distinguishes small token messages from larger activation transfers. Mova could similarly distinguish a source identifier, a compressed evidence packet, and a complete parsed document when estimating transport cost. Existing compact storage does not imply that a scheduler uses payload-aware capacities. The hypothesis is that measuring actual boundary objects would improve resource estimates compared with assigning every connection one undifferentiated cost.
Idea: Make route validity depend on declared semantic progress. Where: “Optimal Model Placement with MILP,” connection-validity constraints. Area: workflow correctness. Mova: частково є (typed groupants and configured capability interfaces). A Mova route should connect stages only when the next capability accepts the previous result with its required provenance and review state. Helix enforces progress through ordered layers; Mova would need a richer relation because its tasks are not generally homogeneous layer sequences. The reusable idea is explicit admissibility, not the assumption that arbitrary linguistic or dictionary operations form a simple pipeline.
Idea: Preserve exactly-once ordered coverage of required stages. Where: “Scheduler Design: Per-Request Pipelines.” Area: operational invariants. Mova: частково є (mova-enrich artifact gates and source-bound worker state). A proposed route checker could require every mandatory operation to appear in an admissible order, while preventing a retry from silently counting as a separate completed obligation. Mova already distinguishes staged artifacts from admitted knowledge and refuses to treat partial failure as a consumed pass. Helix offers an additional graph-level way to express coverage. It does not supply Mova’s domain-specific admission rules.
Idea: Allow partial execution only with explicit interval semantics. Where: “Optimal Model Placement with MILP,” partial inference. Area: incremental processing. Mova: частково є (dictindex published batches, immutable parts, and committed cursors). Helix can send work to a machine holding an overlapping layer range while executing only the unfinished suffix. Mova could apply the broader principle to source batches whose completed and pending portions are explicitly identified. Its existing transactional cursors already embody part of this discipline. A transfer must preserve source versions and committed progress; overlap alone cannot justify skipping processing.
Idea: Keep placement variables discrete when they determine graph structure. Where: “Replacing MILP with LP or Heuristics?” Area: mathematical optimization. Mova: частково є (typed model checks and finite correspondence tooling). Helix explains that rounding a relaxed placement can destroy the connections supporting its flow. For Mova, an analogous caution applies when a numerical preference determines whether a typed operation or evidence transition is legal. A proposed optimizer should revalidate the complete graph after any rounding or repair. Existing type and invariant checks are relevant infrastructure, but no such optimization experiment is documented.
Idea: Prune costly alternatives before bounded search. Where: “Analyzing and Speeding up MILP” and the cluster-pruning ablation. Area: search. Mova: частково є (bounded native plans, limited dictionary proposals, and capped mouse-team processing). Helix shows that removing slow connections can improve the result found within a limited search budget. Mova could test whether excluding demonstrably expensive, redundant routes helps a planner find useful workflows sooner. Such pruning must retain an explanation and an abstention path. A missing alternative is not automatically irrelevant, so effectiveness and lost coverage would require separate measurement.
Idea: Use an optimistic bound as a stopping reference. Where: “Analyzing and Speeding up MILP.” Area: search control. Mova: нове. Why Mova: an explicit bound could distinguish exhausted opportunity from a merely exhausted budget. A proposed worker planner could compare its current solution with a justified optimistic capacity estimate and stop when further improvement is operationally unimportant. The bound must use declared assumptions and compatible units. Helix’s compute-based bound concerns ordered layer execution; it cannot simply be reused for branching language tasks. The digest does not establish an equivalent operational throughput bound.
Idea: Translate a global plan into proportional local choices. Where: “Scheduler Design: Per-Request Pipelines.” Area: deterministic scheduling. Mova: нове. Why Mova: weighted deterministic selection could distribute repeated work without requiring a fresh optimization for each job. Helix uses interleaved weighted round-robin with weights from a flow solution. A Mova proposal would apply that policy only among already admissible workers and retain the weight source in the receipt. It would need testing against worker variability and task-size differences. No existing Mova flow-weighted scheduler is established by the digest.
Idea: Avoid adding batching delay when work is already available. Where: “Scheduler Design: Per-Request Pipelines,” dynamic batching. Area: execution. Mova: нове. Why Mova: compatible parsing or dictionary-index jobs might gain efficiency from batching without an extra intentional wait. A proposed worker would form its next batch from eligible work accumulated during the current batch, while preserving each item’s source and outcome. Helix demonstrates this policy in its serving engine, not in Mova’s readers. Whether Mova benefits depends on actual batch-sensitive costs, so the proposal needs measurement.
Idea: Apply admission control before a memory limit is reached. Where: “KV-Cache Estimation.” Area: resource management. Mova: частково є (tools/jobs memory and time limits, bounded worker budgets). Mova already has limits, but a running-job limit differs from estimating the aggregate future demand of concurrent jobs. A proposed scheduler could temporarily exclude workers whose reserved memory exceeds a declared threshold. Estimates should identify their workload assumptions and record underestimation. Helix uses average output length for its cache estimate; Mova would need task-specific predictors instead of importing that assumption unchanged.
Idea: Measure component capacity under relevant configurations. Where: “Heterogeneous LLM Serving as Max-Flow” and inference-throughput constraints. Area: performance modeling. Mova: частково є (tools/twin measured runs and online calibration). Helix profiles throughput for different amounts of assigned model work instead of assuming one speed per GPU type. Mova could similarly distinguish parsing, compression, dictionary lookup, and retained-graph operations in worker profiles. Existing calibration provides a related mechanism, but it does not establish these particular profiles or their use in a flow planner. A useful profile must match the operation actually scheduled.
Idea: Validate a simulator against an implemented system before extending the setting. Where: “Implementation” and “Single Cluster.” Area: evaluation. Mova: частково є (tools/twin predictions and measured runs; groupant conformance checks). Mova could compare a resource simulator against observed worker runs before using it to study larger deployments. Helix’s sequence is valuable because it separates validation conditions from exploratory conditions. Agreement on one deployment still would not prove agreement on all workloads. Mova should retain the measured domain of conformance rather than treating a simulator as a general execution receipt.
Idea: Evaluate saturated and arrival-driven workloads separately. Where: “Experiment Setup,” trace and arrival-rate descriptions. Area: evaluation. Mova: нове. Why Mova: bulk corpus processing and interactive requests exercise different operational goals. A proposed benchmark would measure sustained completion capacity under a backlog separately from response times under a recorded arrival pattern. The distinction could reveal a scheduler that improves corpus throughput while harming interactive latency. No corresponding Helix-inspired Mova comparison is established, and the novelty mark remains provisional.
Idea: Measure the utilization–latency tradeoff instead of assuming both improve. Where: “Single Cluster” and “High GPU-Heterogeneity Cluster.” Area: evaluation. Mova: частково є (tools/jobs actual resource logs and tools/twin measurements). Helix sometimes gains throughput while increasing decode latency because slower GPUs receive more work. Mova could report job completion rate alongside waiting and service times, distinguishing which worker classes serve the workload. This would make capacity gains easier to interpret. Existing resource logs support observation, but they do not by themselves establish a latency-aware admission policy or a completed tradeoff study.
Idea: Diagnose congestion beyond the immediately visible queue. Where: “Request Scheduling Deep Dive,” distributed-cluster case study. Area: operational diagnosis. Mova: частково є (persistent worker results and explicit nested-call identities). A proposed diagnosis tool could trace an overloaded stage backward through the decisions that sent work towards it. Helix’s case study shows why the responsible choice may occur well before the congested connection. Mova’s receipts provide a basis for such tracing, but the digest does not establish a global congestion analyzer. The proposed benefit is causal localization, not automatic proof of causation.
Idea: Use a shared execution engine when comparing policies. Where: “Experiment Setup,” baseline implementation. Area: experimental design. Mova: вже є (CPU reference behavior, measured approximants, and controlled evaluation principles). Helix implements comparison policies within common infrastructure to reduce confounding from unrelated engine differences. Mova can apply the same discipline when evaluating route selection, source retrieval, or task decomposition. Shared execution does not make every baseline equally mature, so policy-specific adaptations still need documentation. This is an existing methodological alignment, with no claim that Mova has reproduced Helix’s comparisons.
Idea: Treat infrastructure availability as an explicit constraint. Where: “Introduction” and “Opportunities and Challenges.” Area: deployment planning. Mova: частково є (deployment-owned worker configuration and configured service addresses). A proposed planner should optimize over workers actually admitted and available, rather than over a preferred machine inventory that cannot be obtained. Helix motivates its design through uneven GPU availability across regions. Mova’s public core already avoids a permanent deployment identity; a resource planner could preserve that separation by consuming a versioned availability snapshot. No cost or availability improvement in Mova is established.
Idea: Preserve the boundary between scheduling success and task correctness. Where: “Optimization Formulation in Helix” and the artifact description. Area: evidence interpretation. Mova: вже є (docs/hybrid-system.md, source-bound admission, and separate teacher review). Helix optimizes execution capacity; its artifact can exercise architecture with dummy weights. Likewise, a successful Mova worker route establishes neither a correct annotation nor admitted dictionary knowledge. The proposed use is to attach resource-plan evidence to execution receipts while keeping linguistic judgments, reviewed supervision, and durable knowledge under their existing gates. Scheduling efficiency must remain a separate claim.
The problem and its context
Why mixed hardware changes the serving problem
A large generative model requires both storage and repeated computation. Its parameters must fit somewhere, and each request accumulates additional state while producing an answer. When a model cannot fit on a single GPU, several devices must cooperate. In a uniform deployment, it is tempting to divide the work evenly and assume that the stages will run at similar rates.
Helix begins where that simplification breaks down. Cloud infrastructure contains different GPU generations and configurations. Their memory capacities and processing rates do not line up neatly. Available instances also differ by region. A collection of devices that is practical to obtain may therefore be much less uniform than the collection a conventional serving design expects.
The authors connect this issue to GPU scarcity. Acquiring enough instances of one preferred type in one region can be difficult. Combining available resources across device types or geographical locations offers another way to assemble sufficient capacity. The paper also discusses volunteer computing as a related motivation, although Helix’s coordinated cluster setting differs from a decentralized collection of independently contributed devices.
The opportunity is real only if the devices can cooperate efficiently. Adding a GPU does not guarantee that it improves service. It may lack enough memory for a useful stage, force a deeper pipeline, or require too much traffic across a constrained connection. The planning problem therefore concerns the shape of the deployment, not simply the inventory.
The work performed by a request
The paper describes a decoder-only Transformer as a sequence of layers operating on token representations. A request first becomes tokens. The prompt phase processes the input and produces the initial output token. Subsequent decode iterations generate further tokens using the prompt and preceding output.
These phases matter because the work is iterative and its duration is uncertain. The system cannot know the final output length before generation finishes. It must schedule requests whose remaining execution times differ and whose memory demands continue to grow.
The key-value cache, abbreviated KV-cache, stores attention-related state needed by later iterations. A machine holding model parameters must also retain cache state for its active requests. A placement that fills memory with parameters can therefore leave too little room to serve requests efficiently.
The authors situate their work alongside earlier mechanisms for handling these characteristics. Orca changes batch membership at iteration boundaries so completed requests do not retain resources unnecessarily. vLLM manages cache memory in pages. Multi-query and group-query attention reduce the cache required per token. Helix builds on this serving context while focusing on coordination across unequal machines and connections.
Why the choice of parallelism matters
Tensor parallelism divides operations across GPUs. Partial results then have to be combined through collective communication. The paper explains that this creates frequent exchanges within each Transformer layer, making tensor parallelism sensitive to network latency.
Helix consequently assumes tensor parallelism within a machine containing multiple GPUs, where communication is more tightly coupled. Between machines, it uses pipeline parallelism. A pipeline assigns different layer groups to different workers and sends intermediate activations between them.
Pipeline parallelism reduces communication frequency, but it introduces its own balancing problem. A fast stage can wait for a slow one; a poorly arranged batch can leave devices idle. These idle intervals are described as pipeline bubbles. Unequal hardware and unequal links make it harder to partition work so that the whole pipeline stays productive.
There is also a distinction between moving tokens and moving activations. At the coordinator boundary, messages can contain token identifiers. Between pipeline stages, messages carry intermediate representations. These objects have different sizes, so the same physical bandwidth can support very different rates depending on where a connection lies in the execution path.
What earlier systems leave unresolved
The paper characterizes conventional serving systems as primarily designed for uniform clusters. Equal partitions are easier to justify when devices and connections resemble one another. In a mixed cluster, however, an equal partition can impose the weakest device’s limitations on stronger machines.
Petals supplies an important comparison. It targets decentralized participation and makes greedy decisions about which stages machines should serve and which servers requests should use. The authors acknowledge that this fits volunteer computing. Their argument is that a known, coordinated collection of resources permits stronger global optimization than those local decisions provide.
Swarm is another source of ideas, but its original workload is training. It uses stage-level information and current throughput to choose among replicas. Helix’s authors adapt its placement and scheduling principles to create an inference baseline. Their criticism concerns the absence of a sufficiently global view of downstream computation and communication.
The paper also discusses HexGen as concurrent work using fixed pipelines and heuristic placement. It positions Helix’s overlapping request routes and formal placement problem as a more flexible alternative. This is an architectural comparison; the evaluation does not present an end-to-end HexGen result.
Other serving improvements address different dimensions. Splitwise and DistServe separate prompt processing from decoding, while Sarathi balances batches through chunked prefill. The authors regard these directions as compatible with heterogeneity-aware placement. The paper does not demonstrate every proposed combination.
The method, step by step
From a machine inventory to a deployment
Helix separates planning from execution. Planning starts with a cluster description: a coordinator, compute nodes, feasible layer counts, measured processing capacities, and network characteristics. The planner chooses which contiguous layer range each node will hold. It also obtains the flow pattern used to distribute requests.
The coordinator then uses that plan repeatedly. For an arriving request, it constructs a valid path through the available layer ranges. Workers execute their assigned portions and forward the result. When the path reaches the final layer, the coordinator receives the generated token and initiates the next iteration using the request’s established pipeline.
From heterogeneous resources to request execution
The steps in order.
The key conceptual move is to make a deployment comparable before executing a full workload on it. A placement defines possible transitions between workers. Those transitions, together with processing and communication capacities, define a flow network. The planner searches over placements according to the capacity of the resulting network.
Describing placement and scheduling
The paper first introduces a placement function.
Ψ: C → P(M)
Here, Ψ maps a compute node to the portion of the model it stores. C is the collection of compute nodes. M denotes the model, and P(M) denotes possible subsets of its layers. Helix’s placement formulation subsequently restricts a node to a contiguous layer range.
A separate function describes request scheduling.
φ: R → Cᵏ
The symbol φ maps a request to an ordered sequence of compute nodes. R is the request set, C is the compute-node set, and k is the number of nodes in the selected sequence. This sequence must collectively execute all required layers in order.
These functions express different choices. Placement determines what work a node can perform. Scheduling selects a valid route through those possibilities. Neither can be assessed independently of the other when the objective is end-to-end throughput.
The authors contrast their approach with a compute-only placement metric.
minᵢ Σⱼ capacity(j) · 1ᵢ∈Ψ(j)
The index i identifies a pipeline stage or covered model portion, while j identifies a node. The term capacity(j) is that node’s compute capacity. The indicator is active when the relevant stage belongs to the node’s placement. The minimum identifies the least-provisioned stage after capacities are combined.
This metric captures one bottleneck but misses another: the network carrying work between stages. Helix’s motivating example shows why balancing processing rates does not necessarily balance a distributed service.
Why placement and routing must be considered together
The example contains an A100 in one region and an L4 with T4 devices in another. Communication within the latter region is relatively fast, while communication between regions is constrained. Assigning the powerful A100 an isolated stage can look attractive because its processing capacity is high.
Yet that arrangement sends every request’s intermediate state across the slow regional boundary. The A100’s output side becomes congested. The strong GPU cannot turn its nominal capacity into useful completed requests.
A different arrangement allows T4 devices to execute work in parallel with the A100. Some requests can therefore remain on routes that avoid the constrained boundary. The value of a placement depends on how much traffic each route requires, not merely on how evenly arithmetic work is distributed.
This example also explains why a fixed partition followed by device assignment is restrictive. Once the stage boundaries are fixed, the planner has already discarded arrangements that might better match memory, compute, and network structure. Helix searches these choices together.
Constructing the capacity graph
For a chosen placement, each compute node becomes an input vertex and an output vertex. The edge between them represents the node’s processing limit. This is a standard-looking graph operation with an important purpose: it expresses a capacity associated with a machine using the same edge-capacity machinery used for links.
The coordinator becomes a source and a sink. The source supplies work entering the model; the sink receives work that has passed through its final layer. A complete path must therefore correspond to an admissible execution through the model.
Edges from the source can reach only workers holding the first layer. Edges into the sink can originate only from workers holding the final layer. Between workers, a connection is useful only if the receiving worker can continue the layer sequence.
Network capacities convert bandwidth into a rate of relevant work. A coordinator connection is divided by token-message size. A connection between compute nodes is divided by activation size. The paper’s illustrative caption contrasts token messages of 4 Byte with intermediate activations of 16 KB. These are illustrative boundary payloads, not universal sizes for every evaluated architecture.
Processing capacities also come from profiling. The node edge is limited by the applicable processing and network throughput. A multi-GPU machine can be treated as one logical compute node, with tensor parallelism handling its internal cooperation.
Once the graph is built, Helix applies a preflow-push algorithm to calculate maximum source-to-sink flow. In this abstraction, a flow unit denotes a token per second passing through the corresponding computation or connection. The result is the throughput permitted by the declared capacities and placement.
That interpretation is important. The graph does not simulate every queue, cache fluctuation, or individual request length. It supplies an optimization abstraction whose practical relevance must be checked by runtime evaluation.
Choosing the layer interval on each node
The placement search uses an integer start position and binary choices for the number of layers held by each node. The binary representation makes it possible to associate each feasible layer count with its measured throughput.
eᵢ = sᵢ + Σⱼ₌₁ᵏ j · bᵢʲ
The index i identifies a compute node. The variable sᵢ is its first stored layer, and eᵢ is the exclusive end of its stored interval. The binary variable bᵢʲ indicates whether the node holds j layers. The upper limit k is the largest feasible layer count for that node.
The corresponding selection constraint is:
Σⱼ₌₁ᵏ bᵢʲ = 1
Exactly one feasible layer-count choice is selected for node i. Each bᵢʲ is binary, so the sum cannot represent a fractional mixture of different stored configurations.
The starting position must satisfy:
0 ≤ sᵢ < L
Here L is the model’s total layer count. The inequality keeps the beginning of the node’s interval inside the model.
The interval must also end within the model:
eᵢ ≤ L
Together, these conditions define a valid stored range from sᵢ up to, but excluding, eᵢ. The feasible values of j encode the node’s layer-holding limit instead of asking the solver to place an arbitrarily large segment.
Conserving work and limiting computation
Flow cannot disappear inside a worker or emerge without incoming work.
Σᵤ fᵤ,ᵢ = Σᵥ fᵢ,ᵥ
The variable fᵤ,ᵢ is flow arriving at node i from predecessor u. The variable fᵢ,ᵥ is flow leaving for successor v. The sums include the relevant predecessor and successor nodes, including source or sink connections where applicable.
The processing constraint then limits how much incoming flow the worker can support.
Σᵤ fᵤ,ᵢ ≤ Σⱼ₌₁ᵏ bᵢʲ · Tⱼ
The quantity Tⱼ is the profiled token throughput for the node when it holds j layers. The selected binary variable activates the corresponding measured capacity. Though the paper writes Tⱼ compactly, the capacity concerns the particular node being constrained.
This is why the layer count uses binary alternatives. A throughput profile need not be represented as a simple linear function of the number of layers. The formulation can select a measured configuration without inventing an interpolation between incompatible placements.
Determining whether a connection may carry work
A binary variable d marks whether a connection is enabled for flow. Source connections require the destination node to begin at the first layer.
sᵢ ≤ L · (1 − dsource,ᵢ)
When dsource,ᵢ is active, the constraint forces sᵢ to the beginning of the model. When it is inactive, this condition does not itself require the node to begin there.
The corresponding sink condition is:
L · dᵢ,sink ≤ eᵢ
When dᵢ,sink is active, the interval must reach the final model boundary. Together with the earlier end constraint, this makes the node suitable for sending completed work to the coordinator.
For communication between compute nodes, Helix allows the following continuation condition:
sⱼ ≤ eᵢ < eⱼ
Node i has completed computation through its end boundary eᵢ. Node j must contain the next required layers and extend beyond that boundary. Its stored interval can begin earlier than the unfinished work, provided it can execute the needed suffix.
The paper introduces binary auxiliary conditions to express this relation linearly. The first condition uses:
(L + 1)(1 − cond¹ᵢ,ⱼ) ≥ sⱼ − eᵢ
The variable cond¹ᵢ,ⱼ can be active only when node j’s interval begins no later than the boundary reached by node i. L supplies a bound based on the model’s layer count.
The second auxiliary condition uses:
eⱼ − eᵢ ≥ 1 − (L + 1)(1 − cond²ᵢ,ⱼ)
The variable cond²ᵢ,ⱼ can be active only when node j extends beyond node i’s completed boundary. Since layer positions are integral, the strict ordering can be expressed through the stated separation.
The enabled-edge variable is then constrained by:
dᵢ,ⱼ ≤ 0.5 · cond¹ᵢ,ⱼ + 0.5 · cond²ᵢ,ⱼ
Because dᵢ,ⱼ is binary, it can be active only when both auxiliary conditions are active. These conditions permit a connection carrying valid progress; they do not require every geometrically compatible connection to carry positive flow.
Partial inference and overlapping storage
If a receiving node stores layers that overlap the sender’s completed range, it need not repeat those layers. It can execute only the remaining suffix of its interval. The paper calls this partial inference.
This flexibility matters because stored ranges and executed stages need not coincide exactly. A machine can support different request routes that enter its stored interval at different valid positions. The runtime must nevertheless preserve correct ordering and avoid executing a layer twice for the same traversal.
When partial inference is disabled, adjacent stages must meet exactly. The paper gives a pair of linear constraints for that stricter condition.
L · dᵢ,ⱼ ≤ L + sⱼ − eᵢ
Here dᵢ,ⱼ again enables the connection, while sⱼ and eᵢ are the receiving start and sending end boundaries. If the connection is active, this inequality restricts one direction of their possible mismatch.
The other direction is constrained by:
L · dᵢ,ⱼ ≤ L − sⱼ + eᵢ
Together, the active-edge conditions require the two boundaries to coincide. The solver can therefore explore placements with or without the additional flexibility of partial inference.
Limiting transmission and maximizing useful flow
A valid connection still has finite capacity.
fᵢ,ⱼ ≤ dᵢ,ⱼ · Sᵢ,ⱼ
The variable fᵢ,ⱼ is the flow sent along the connection. The binary variable dᵢ,ⱼ determines whether that connection is enabled. Sᵢ,ⱼ is its profiled transmission capacity expressed in tokens per second. An inactive connection cannot carry flow; an active connection cannot exceed its capacity.
The optimization objective is:
maximize Σᵢ fsource,ᵢ
The sum measures total flow leaving the source. Flow conservation and valid layer transitions connect that quantity to completed source-to-sink work. The solver therefore searches for placement variables and feasible flows that support the largest objective under the abstraction.
The formulation has a variable and constraint count that grows linearly with the numbers of nodes and considered connections. This does not mean that solving time grows linearly. The underlying discrete search remains difficult, and the number of potential inter-node connections can grow quadratically with the node count.
Making the search practical
Helix uses several measures to improve search within a limited budget. It can remove slow connections, reducing the set of alternatives the solver must consider. It also supplies placements found by simpler methods as initial solutions.
A further stopping reference comes from an optimistic compute-capacity bound. The paper describes this as aggregating compute throughput and accounting for the total layer count. A solution close to that bound leaves limited room for improvement within the abstraction, even if the solver has not completed an exhaustive optimality proof.
The authors explain why ordinary linear relaxation followed by rounding is risky. Placement variables determine which connections exist. Those connections determine which flows are possible. Rounding the placement can therefore invalidate the routes that made the relaxed answer attractive. The issue is structural feasibility, not merely a small numerical change in the objective.
For much larger deployments, the paper suggests first dividing resources into smaller clusters and applying Helix within each. That is a possible scaling direction, not an evaluated result for deployments of that size.
Turning flow into request pipelines
The runtime scheduler uses a topology graph derived from the selected placement. For each graph vertex, it maintains an interleaved weighted round-robin policy over valid successor vertices. The successor weights come from flow on the corresponding edges.
This policy translates a global allocation into repeated discrete choices. A successor with greater assigned flow receives work more frequently. Interleaving is intended to avoid sending a long burst towards one destination before considering others.
For a new request, the coordinator follows these choices from the source through successive workers until it reaches the sink. The resulting pipeline specifies both the machines and the layer portions to execute. Different requests can share some workers and diverge at others.
Each worker forms its next batch from requests received while processing the previous batch. Helix does not deliberately wait to accumulate additional work. The execution engine is based on vLLM, with a unified page pool added to support partial inference.
Finally, the coordinator estimates cache occupancy using average output length. Workers above a high-water threshold are masked from new scheduling choices until running requests finish. This is an admission mechanism based on predicted state demand. It addresses a runtime limit absent from a simple steady-state flow picture.
Experiments and results
What was implemented and what was simulated
The prototype combines Python control logic with a C++ communication component. The paper reports 1.5k lines of Python and 1.7k lines of C++ for the multi-replica pipeline system. It uses vLLM version 0.4.0post1 for execution, ZeroMQ for communication, and Gurobi for the placement optimization.
A separate simulator contains 14k lines of Python. Its purpose is to explore network conditions and GPU configurations that are more difficult to assemble physically. The distinction matters throughout the evaluation: the single-region experiments include prototype measurements, while the geographically distributed and highly heterogeneous settings are simulated.
The artifact includes the simulator, prototype, experiment scripts, and conversation traces. Its description states that the prototype uses dummy weights and needs the architecture specification rather than downloaded trained weights. This supports architectural and performance experimentation; it does not establish the quality of generated answers.
Workloads and cluster configurations
The evaluated architectures are LLaMA variants: LLaMA-1 30B and LLaMA-2 70B. Inference uses FP16. The paper shortens their names to LLaMA 30B and LLaMA 70B in the result discussion.
The physical single-region configuration has 4 A100 nodes, 8 L4 nodes, and 12 T4 nodes. Connections are configured at 10 Gb/s, which the authors use to make GPU processing the principal capacity constraint rather than the network.
The simulated geographical configuration divides those resources among regional groups. One contains 4 A100 nodes. Another contains 2 L4 nodes and 8 T4 nodes. The remaining group contains 6 L4 nodes and 4 T4 nodes. Between groups, the configuration uses average bandwidth of 100 Mb/s and average latency of 50 ms.
The high-heterogeneity simulation uses 42 compute nodes and 7 node types. Its inventory contains A100, V100, L4, and T4 devices, together with configurations containing multiple L4 or T4 GPUs. This setting tests whether the approach remains effective when the resource mix is more complicated than the physical prototype.
Requests come from the Azure Conversation dataset. The authors exclude input lengths above 2048 and output lengths above 1024 to keep memory use manageable. The remaining workload contains 16,657 requests, with average input length of 763 and average output length of 232.
With the average arrival rate adjusted to 75% of the cluster’s peak throughput, online experiments reproduce the recorded arrival pattern. This is intended to prevent bursts from causing out-of-memory failures. Offline experiments instead supply enough work to keep the system occupied. These settings answer different questions: response behavior under an arrival process, and sustained processing capacity under demand.
Online runs use a warm-up of 30s followed by 30 minutes of testing. Offline runs warm up for 1 minute and measure for 10 minutes. The authors say they avoid longer runs to limit experimental expense.
Baselines and metrics
Separate pipelines, abbreviated SP, assigns model replicas to groups defined by GPU type. It represents a straightforward way to accommodate heterogeneity while keeping individual pipelines comparatively uniform.
The Swarm baseline adapts placement and scheduling ideas from a training system. The authors implement those policies within their own serving infrastructure because the original system is not an inference engine. They also implement SP within that shared infrastructure.
Petals appears in the placement comparison, where a common Helix scheduler is used. It is not an end-to-end serving baseline in this evaluation because its decentralized scheduling does not match the centralized experiment.
Offline results emphasize decode throughput: generated tokens per second. Online results additionally report prompt-processing latency and decode latency. The throughput objective should not be read as a guarantee that every latency statistic improves.
Placement search can consider partial inference and connection pruning, with initial solutions from heuristic methods. The maximum budget is 4 hours on a 14-core CPU. Search stops after 10 minutes without an improved solution. These are bounded optimization runs, so the practical results concern the best placement discovered under that procedure.
Single-region results
For LLaMA 30B, each GPU-type group can support a pipeline. Helix’s best placement therefore resembles SP’s basic arrangement, with separate replicas associated with the different device types. This is a useful result because the optimizer is not forced to produce a complicated mixed arrangement when a simpler one fits the resource structure.
Against SP, Helix improves offline decode throughput by 4% and online decode throughput by 14%. The authors attribute the difference to better cache utilization. Prompt latency is 2% lower, while decode latency is 10% higher. The comparison therefore includes a modest throughput advantage and a decode-latency cost.
Against Swarm, the LLaMA 30B throughput factors are 2.14× offline and 2.07× online. Prompt latency falls by 32%, and decode latency by 12%. The placement analysis later connects Swarm’s lower throughput to a bottleneck that prevents A100 resources from being fully used.
LLaMA 70B presents a different memory problem. Groups containing only one GPU type cannot each support the desired independent replica while retaining sufficient cache capacity. SP consequently uses the overall collection less effectively.
For that workload, Helix reaches throughput factors of 1.86× offline and 1.69× online against SP. Its average latency is higher because SP sends much of its work through A100 nodes while leaving slower resources less occupied.
Against Swarm, the corresponding throughput factors are 1.94× and 2.00×. Latency decreases by 15% for prompting but increases by 16% for decoding. The authors relate this increase to the greater utilization Helix achieves. A reader should therefore resist interpreting throughput improvement as synonymous with faster service for each token.
Checking the simulator
The authors repeat the single-region experiments in simulation. Decode-throughput error averages below 5%. For prompt latency, average error is also below 5%; for decode latency, it is below 4%.
This comparison gives a measured basis for using the simulator to compare methods. It is stronger than reporting simulated results without a prototype reference. Its scope remains the checked configurations and metrics, however. It does not directly validate every behavior that might emerge under more varied networks or resource mixtures.
The paper then uses simulation to investigate settings that are difficult to obtain physically. That progression is methodologically sensible, provided the distinction between measured and simulated deployment behavior remains explicit.
Geographically separated resources
With slower inter-region communication, all methods experience reduced throughput and increased latency relative to the fast-network configuration. Helix does not remove the network cost; it chooses placements and routes that manage it more effectively.
For LLaMA 30B, the best placement again separates pipelines by device type. Against SP, Helix improves offline decode throughput by 7% and online throughput by 10%. Prompt latency is 14% lower, while decode latency is 2% higher.
Against Swarm, the paper reports throughput factors of 2.41× and 2.33× for this workload, alongside prompt- and decode-latency reductions of 66% and 24%. Those latency reductions supply the headline best improvements. They belong to a specific simulated geographical setting, instead of describing every experiment.
The following comparison uses the same workload, baseline, and offline metric across network settings. The plotted values are the paper’s reported throughput factors, not reconstructed token rates.
LLaMA 30B offline decode throughput relative to Swarm
Helix's relative advantage is larger in the geographically separated setting.
The numbers
| System or setting | throughput factor × |
|---|---|
| Helix, single region | 2.14 |
| Helix, geo-distributed (this paper) | 2.41 |
For LLaMA 70B, the larger intermediate states and deeper computation make communication more consequential. Helix selects a placement with pipeline depth 28% lower than Swarm’s. Its geographical placement is also 19% shallower than its own fast-network placement.
This is evidence that the planner changes structure in response to communication costs. It accepts a different balance of work per machine to reduce the number of expensive boundaries crossed by requests.
Against SP, LLaMA 70B throughput factors are 1.61× offline and 1.79× online. SP retains lower average latency while underusing 12 T4 nodes because of memory constraints. Against Swarm, Helix achieves 1.92× offline and 1.97× online, with prompt latency lower by 21% and decode latency lower by 7%.
The offline congestion analysis is especially revealing. Swarm’s average prompt latency reaches 71s, described as 7.5× Helix’s value. This supports the authors’ argument that communication congestion can overwhelm a placement or scheduler that appears reasonable from a narrower perspective.
A more varied resource collection
In the 42-node simulation, some device groups cannot form independent serving pipelines. SP therefore excludes those machines from its main result. SP+ adds an attempted mixed pipeline using the otherwise stranded resources.
For offline serving, Helix’s throughput factors are 1.37× against Swarm, 2.91× against SP, and 2.24× against SP+. Under online arrivals, the factors are 1.48×, 3.29×, and 2.54× respectively.
Prompt latency is lower by 17% against Swarm, 1% against SP, and 7% against SP+. Average decode latency is slightly higher. The explanation again concerns resource use: the baselines serve a larger share of requests on faster devices while leaving slower capacity less occupied.
The comparison shows that adding a mixed pipeline to SP helps but does not close the reported gap. It also shows why aggregate throughput is an important metric for this problem. A policy can obtain attractive average latency partly by avoiding resources that would increase total completed work.
These results do not establish a universal preference for using every available GPU. They establish that, in the evaluated workloads and configurations, Helix coordinates a mixed collection more effectively than the implemented alternatives.
What the ablations show
Placement contributes independently of scheduling
The placement comparison runs the different placements with Helix’s scheduler. This removes a major source of ambiguity: a poor result cannot simply be blamed on each baseline’s original routing policy.
For offline LLaMA 70B serving in the single-region configuration, Helix’s placement provides throughput factors of 1.23× against Petals and 2.10× against Swarm. In the geographical configuration, the factors are 1.49× and 2.38×.
The accompanying case study identifies an end-stage bottleneck in Swarm’s placement. A group of 4 T4 nodes, each assigned 4 layers, limits progress through the final stage. Faster upstream devices therefore wait rather than contributing their full processing capacity.
Petals leaves 8 T4 nodes and 1 L4 node underused in the illustrated placement. Helix’s arrangement keeps nearly all nodes occupied. The case study connects the throughput measurement to a concrete resource imbalance, instead of treating the optimizer as an unexplained source of improvement.
Scheduling contributes independently of placement
The scheduling comparison reverses the control. Every policy uses Helix’s placement, so the experiment asks how well each scheduler exploits the same available routes.
Against Swarm scheduling, Helix improves offline LLaMA 70B decode throughput by 30% in the single-region setting and 22% in the geographical setting. Against random routing, the corresponding improvements are 29% and 15%. In the geographical comparison with Shortest Queue First, Helix improves decode throughput by 19%.
LLaMA 70B offline throughput gain over Swarm scheduling
Flow-weighted scheduling improves throughput under both network settings with placement held fixed.
The numbers
| System or setting | decode throughput improvement % |
|---|---|
| Helix scheduler, single region (this paper) | 30 |
| Helix scheduler, geo-distributed | 22 |
Runtime inspection reveals substantial congestion under the alternative schedulers. In the geographical case study, prompt requests wait on affected connections for averages reported within 5s - 16s.
One particularly useful observation is that a problematic scheduling decision occurs 3 hops before the congested link. The queue where a symptom appears is therefore not necessarily where the policy made its consequential mistake. This supports the need for a global allocation view, while remaining a case-study observation rather than a general proof about every local scheduler.
Pruning helps the bounded search
The pruning ablation removes slow connections until average node degree is 12. For the 24-node and 42-node settings, this removes 50% and 72% of network connections. The corresponding problem-size reductions are 36% and 46%.
Placements found with pruning yield decode-throughput improvements of 16% and 2%. The interpretation is not that removing network capacity physically accelerates execution. Pruning simplifies the optimizer’s search space, allowing it to find a better useful placement within the available computation budget.
The authors explain that serving routes are sparse and that several placements can offer equivalent throughput. Removing alternatives may therefore leave good solutions available while making them easier to discover. They explicitly note that the benefit depends on the particular optimization instance.
This result should not become a general guarantee that pruning is harmless. A different cluster might depend on a connection that a pruning rule removes. What the experiment demonstrates is favorable bounded-search behavior for the tested rule and settings.
Heuristic starts reduce time to the same placement
The initialization comparison uses heuristic placements instead of default starting values. The final best placements are the same, so the measured outcome is time to reach them.
Heuristic initialization takes 43% less time in the 24-node setting and 8% less time in the 42-node setting. This supports using heuristics as optimization infrastructure instead of dismissing them because they perform worse as final placement methods.
The distinction matters. A heuristic can be inadequate as the complete answer but valuable as an initial feasible point. The solver then uses explicit constraints and broader search to improve or certify that point.
Finding an optimum and proving it are different
The placement-quality analysis uses LLaMA 30B with 4 L4 machines and 6 T4 machines. The authors track both the best discovered placement and the solver’s upper bound.
Helix finds the optimal placement in less than 5 minutes. Confirming optimality requires more than one hour. This shows that useful search progress can precede the completed proof by a substantial interval.
The observation supports early stopping as an engineering choice, but only with careful language. An early placement may be excellent; unless the relevant bound closes, its optimality remains uncertified. The paper’s practical timeout policy and its formal optimization capability should therefore be understood as related but distinct contributions.
Limitations
Limits the authors explicitly acknowledge
The placement search can be expensive. For clusters containing more than 40 nodes, the paper says that obtaining a sufficiently good solution can take hours. Linear growth in the formulation’s variable and constraint counts does not remove the difficulty of discrete optimization.
Pruning, heuristic initialization, and stopping criteria make that search more practical, but their benefits vary by instance. The suggested strategy for substantially larger deployments is to divide them into smaller groups first. The paper does not evaluate the resulting quality or coordination cost at that scale.
The physical prototype evaluation focuses on single-GPU machines. The authors explain that acquiring multi-GPU instances was more difficult. Their implementation supports internal tensor parallelism through vLLM, but support in software is different from a broad physical evaluation of those configurations.
The authors also acknowledge latency increases. Helix sometimes serves more work by involving slower devices more heavily. The gain is in total capacity, while a request’s decode experience can become slower. The reported improvements therefore do not support a blanket claim of lower latency.
The trace is filtered to keep memory use manageable. Requests exceeding the stated input or output thresholds are excluded. Results consequently concern the retained workload rather than unrestricted conversation lengths.
Finally, the experiment durations are limited by cost. The authors judge them sufficient for their comparisons, but the paper does not present prolonged operational measurements over changing resource conditions.
Limits visible in the experimental design
A careful reader should distinguish the physical and simulated evidence. The geographical and high-heterogeneity findings come from the simulator. Single-region validation supports its use, but it does not independently establish that all cross-region contention, variability, or multi-GPU behavior is reproduced.
The model-placement abstraction relies on profiled capacities and average network bandwidth. Runtime performance can depend on batch composition, request lengths, cache occupancy, and interacting communication. The evaluation shows that the abstraction is useful in the tested settings; it does not make every maximum-flow value a guaranteed realized service rate.
The cache mechanism also depends on estimation. Output length is unknown, so average output length informs expected memory use. The paper presents masking as protection against oversubscription, but it does not provide a separate analysis of estimation error under changing output-length distributions. The distinction between an estimate and a worst-case reservation remains relevant.
Online arrivals are scaled relative to each cluster’s peak capacity. This is a deliberate way to avoid memory failures during bursts. It also means that the online experiment is not an unrestricted overload or admission-stability test. The paper does not establish behavior under arbitrary demand spikes.
The chosen metric emphasizes throughput. The flow objective does not directly optimize a latency percentile, a deadline satisfaction rate, or request fairness. The figures show latency distributions, but the article’s central numerical comparisons concern reported average latency and throughput. A deployment with strict response-time requirements would need additional evidence.
What optimality means here
The paper’s formal optimization claim concerns its mathematical formulation. If solved to optimality, the MILP identifies the best objective value among placements admitted by the constraints and supplied capacities. That is a meaningful guarantee within a declared search space.
It is narrower than claiming the best possible real-world serving system. The search assumes contiguous stored layer ranges, specified parallelism choices, profiled capacities, and a particular flow representation. Other execution architectures or resource models lie outside that formulation.
Practical runs also use time budgets and stopping conditions. The placement-quality experiment demonstrates a certified optimum in a particular smaller configuration. It does not establish that every larger evaluation placement receives an optimality certificate before search ends.
The paper’s rejection of straightforward relaxation and rounding is likewise specific. It explains why a simple conversion can break graph validity. It does not prove that no alternative approximation, repair method, or specialized optimization algorithm could work.
Baseline and scope boundaries
The Swarm baseline is an inference adaptation implemented by the Helix authors. That permits a comparison under common infrastructure, but it is not a measurement of an unchanged original training system serving requests. The distinction should remain visible when interpreting the result.
Petals contributes a placement baseline rather than a full end-to-end comparison. Its decentralized design targets a different participation setting. Helix’s advantage in a fixed coordinated cluster does not establish that the same design is preferable for a changing volunteer network.
HexGen is discussed as concurrent work but is not given a direct experimental comparison. The paper’s arguments about fixed pipelines and heuristic search should therefore be read as design distinctions rather than measured performance margins against that system.
Cost and energy help motivate heterogeneous resources, but the evaluation does not report a complete cost-per-request or energy-per-token comparison. Throughput improvements may support better use of an available inventory; they do not by themselves quantify a financial or environmental saving.
Similarly, the artifact’s dummy-weight execution concerns serving mechanics. It does not test answer correctness, factual reliability, or whether a deployment changes output quality. Helix is an infrastructure contribution, and its evidence should be assessed at that level.
The paper also does not supply a detailed treatment of failures, adversarial participants, resource churn, or rapid re-placement. Its principal setting is a known cluster whose placement can be calculated and reused. Extending the design to changing infrastructure would introduce questions beyond the evaluated scope.
What came after
The identified related citation is Towards Efficient Generative Large Language Model Serving, listed as a survey from algorithms through systems and dated 2023. Its title establishes a broad connection to efficient generative serving, but no account is given of how it uses Helix’s particular formulation or experiments.
That date does not establish a straightforward sequence after Helix, and the survey also appears among Helix’s own references. Without a description of the relevant citation context or version history, it would be misleading to call it a demonstrated technical successor. There is no supported basis for saying that it adopts Helix’s MILP, extends its routing policy, or reproduces its results.
The continuation that Helix itself makes explicit is architectural. The authors describe their heterogeneity-aware planning as compatible with serving improvements aimed at cache management, prompt–decode separation, and batch balancing. Those are proposed combinations, not later measurements.
Helix leaves a clear research question for such combinations: when a serving engine changes the work performed at each stage, how should the capacity graph and placement constraints change with it? Its contribution is a way to make those dependencies explicit. The evidence here establishes that contribution and its evaluated benefits, while leaving subsequent adoption and broader deployment outcomes unresolved.
Cite
Cite as Yixuan Mei, Yonghao Zhuang, Xupeng Miao, Juncheng Yang, Zhihao Jia and Rashmi Vinayak. 2024. Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow. arXiv:2406.01566.
@misc{mei2024helix,
title = {{Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow}},
author = {Yixuan Mei, Yonghao Zhuang, Xupeng Miao, Juncheng Yang, Zhihao Jia and Rashmi Vinayak},
year = {2024},
doi = {10.48550/arxiv.2406.01566},
eprint = {2406.01566},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2406.01566}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/mei-2024-helix-serving-large-language-models/
References
- Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774, 2023. our card
- Amey Agrawal, Ashish Panwar, Jayashree Mohan, Nipun Kwatra, Bhargav S Gulavani, and Ramachandran Ramjee. Sarathi: Efficient llm inference by piggybacking decodes with chunked prefills. arXiv preprint arXiv:2308.16369, 2023. our card
- Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón, and Sumit Sanghai. Gqa: Training generalized multi-query transformer models from multi-head checkpoints. arXiv preprint arXiv:2305.13245, 2023. our card
- Rashmi Bajaj and Dharma P Agrawal. Improving scheduling of tasks in a heterogeneous environment. IEEE Transactions on Parallel and Distributed Systems, 15(2):107–118, 2004. OpenAlex ↗ · Scholar ↗
- Alexander Borzunov, Dmitry Baranchuk, Tim Dettmers, Max Ryabinin, Younes Belkada, Artem Chumachenko, Pavel Samygin, and Colin Raffel. Petals: Collaborative inference and fine-tuning of large models. arXiv preprint arXiv:2209.01188, 2022. OpenAlex ↗ · Scholar ↗
- Alexander Borzunov, Max Ryabinin, Artem Chumachenko, Dmitry Baranchuk, Tim Dettmers, Younes Belkada, Pavel Samygin, and Colin A Raffel. Distributed inference and fine-tuning of large language models over the internet. Advances in Neural Information Processing Systems, 36, 2024. OpenAlex ↗ · Scholar ↗
- Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877–1901, 2020. our card
- Joseph Cheriyan and SN Maheshwari. Analysis of preflow push algorithms for maximum network flow. SIAM Journal on Computing, 18(6):1057–1086, 1989. OpenAlex ↗ · Scholar ↗
- Michael Diskin, Alexey Bukhtiyarov, Max Ryabinin, Lucile Saulnier, Anton Sinitsin, Dmitry Popov, Dmitry V Pyrkin, Maxim Kashirin, Alexander Borzunov, Albert Villanova del Moral, et al. Distributed deep learning in open collaborations. Advances in Neural Information Processing Systems, 34:7879–7897, 2021. OpenAlex ↗ · Scholar ↗
- Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. our card
- Google Cloud. Google cloud compute products. https://cloud.google.com/products/compute, 2024. Accessed: 2024-03-13. OpenAlex ↗ · Scholar ↗
- Tyler Griggs, Xiaoxuan Liu, Jiaxiang Yu, Doyoung Kim, Wei-Lin Chiang, Alvin Cheung, and Ion Stoica. M$\backslash$'elange: Cost efficient large language model serving by exploiting gpu heterogeneity. arXiv preprint arXiv:2404.14527, 2024. OpenAlex ↗ · Scholar ↗
- Arpan Gujarati, Reza Karimi, Safya Alzayat, Wei Hao, Antoine Kaufmann, Ymir Vigfusson, and Jonathan Mace. Serving $\{$DNNs$\}$ like clockwork: Performance predictability from the bottom up. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 20), pages 443–462, 2020. OpenAlex ↗ · Scholar ↗
- Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual, 2023. OpenAlex ↗ · Scholar ↗
- Sirui Hong, Xiawu Zheng, Jonathan Chen, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, et al. Metagpt: Meta programming for multi-agent collaborative framework. arXiv preprint arXiv:2308.00352, 2023. OpenAlex ↗ · Scholar ↗
- Kevin Hsieh, Aaron Harlap, Nandita Vijaykumar, Dimitris Konomis, Gregory R Ganger, Phillip B Gibbons, and Onur Mutlu. Gaia:$\{$Geo-Distributed$\}$ machine learning approaching $\{$LAN$\}$ speeds. In 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI 17), pages 629–647, 2017. OpenAlex ↗ · Scholar ↗
- Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Dehao Chen, Mia Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, Yonghui Wu, et al. Gpipe: Efficient training of giant neural networks using pipeline parallelism. Advances in neural information processing systems, 32, 2019. OpenAlex ↗ · Scholar ↗
- Xianyan Jia, Le Jiang, Ang Wang, Wencong Xiao, Ziji Shi, Jie Zhang, Xinyuan Li, Langshi Chen, Yong Li, Zhen Zheng, et al. Whale: Efficient giant model training over heterogeneous $\{$GPUs$\}$. In 2022 USENIX Annual Technical Conference (USENIX ATC 22), pages 673–688, 2022. OpenAlex ↗ · Scholar ↗
- Youhe Jiang, Ran Yan, Xiaozhe Yao, Yang Zhou, Beidi Chen, and Binhang Yuan. Hexgen: Generative inference of large language model over heterogeneous environment. In Forty-first International Conference on Machine Learning, 2024. OpenAlex ↗ · Scholar ↗
- Jack Kosaian, KV Rashmi, and Shivaram Venkataraman. Parity models: erasure-coded resilience for prediction serving systems. In Proceedings of the 27th ACM Symposium on Operating Systems Principles, pages 30–46, 2019. OpenAlex ↗ · Scholar ↗
- Jack Kosaian, KV Rashmi, and Shivaram Venkataraman. Learning-based coded computation. IEEE Journal on Selected Areas in Information Theory, 1(1):227–236, 2020. OpenAlex ↗ · Scholar ↗
- Woosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng, Lianmin Zheng, Cody Hao Yu, Joseph Gonzalez, Hao Zhang, and Ion Stoica. Efficient memory management for large language model serving with pagedattention. In Proceedings of the ACM SIGOPS 29th Symposium on Operating Systems Principles, 2023. our card
- Yaniv Leviathan, Matan Kalman, and Yossi Matias. Fast inference from transformers via speculative decoding. In International Conference on Machine Learning, pages 19274–19286. PMLR, 2023. our card
- Zhuohan Li, Lianmin Zheng, Yinmin Zhong, Vincent Liu, Ying Sheng, Xin Jin, Yanping Huang, Zhifeng Chen, Hao Zhang, Joseph E Gonzalez, et al. $\{$AlpaServe$\}$: Statistical multiplexing with model parallelism for deep learning serving. In 17th USENIX Symposium on Operating Systems Design and Implementation (OSDI 23), pages 663–679, 2023. our card
- Linux Kernel Documentation. Energy aware scheduling. https://docs.kernel.org/scheduler/sched-energy.html, 2024. Linux Kernel Documentation. OpenAlex ↗ · Scholar ↗
- Ziyang Luo, Can Xu, Pu Zhao, Qingfeng Sun, Xiubo Geng, Wenxiang Hu, Chongyang Tao, Jing Ma, Qingwei Lin, and Daxin Jiang. Wizardcoder: Empowering code large language models with evol-instruct. arXiv preprint arXiv:2306.08568, 2023. OpenAlex ↗ · Scholar ↗
- Zhiyu Mei, Wei Fu, Kaiwei Li, Guangju Wang, Huanchen Zhang, and Yi Wu. Realhf: Optimized rlhf training for large language models through parameter reallocation, 2024. OpenAlex ↗ · Scholar ↗
- Meta. Introducing Meta Llama 3: The most capable openly available LLM to date — ai.meta.com. https://ai.meta.com/blog/meta-llama-3/. [Accessed 07-05-2024]. OpenAlex ↗ · Scholar ↗
- Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Hongyi Jin, Tianqi Chen, and Zhihao Jia. Towards efficient generative large language model serving: A survey from algorithms to systems. arXiv preprint arXiv:2312.15234, 2023. our card
- Xupeng Miao, Gabriele Oliaro, Zhihao Zhang, Xinhao Cheng, Zeyu Wang, Zhengxin Zhang, Rae Ying Yee Wong, Alan Zhu, Lijie Yang, Xiaoxiang Shi, et al. Specinfer: Accelerating large language model serving with tree-based speculative inference and verification. In Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 3, pages 932–949, 2024. OpenAlex ↗ · Scholar ↗
- Hema Venkata Krishna Giri Narra, Zhifeng Lin, Ganesh Ananthanarayanan, Salman Avestimehr, and Murali Annavaram. Collage inference: Using coded redundancy for lowering latency variation in distributed image classification systems. In 2020 IEEE 40th International Conference on Distributed Computing Systems (ICDCS), pages 453–463. IEEE, 2020. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA A100 Tensor Core GPU. https://www.nvidia.com/content/dam/en-zz/Solutions/Data-Center/a100/pdf/nvidia-a100-datasheet-us-nvidia-1758950-r4-web.pdf. Accessed: 2024-10-28. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA H100 Tensor Core GPU. https://resources.nvidia.com/en-us-tensor-core/nvidia-tensor-core-gpu-datasheet. Accessed: 2024-10-28. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA L4 Tensor Core GPU. https://resources.nvidia.com/en-us-data-center-overview/l4-gpu-datasheet. Accessed: 2024-10-28. OpenAlex ↗ · Scholar ↗
- NVIDIA. NVIDIA T4 Tensor Core GPU. https://www.nvidia.com/content/dam/en-zz/Solutions/Data-Center/tesla-t4/t4-tensor-core-datasheet-951643.pdf. Accessed: 2024-10-28. OpenAlex ↗ · Scholar ↗
- NVIDIA. Triton Inference Server. OpenAlex ↗ · Scholar ↗
- Christopher Olston, Noah Fiedel, Kiril Gorovoy, Jeremiah Harmsen, Li Lao, Fangwei Li, Vinu Rajashekhar, Sukriti Ramesh, and Jordan Soyke. Tensorflow-serving: Flexible, high-performance ml serving. arXiv preprint arXiv:1712.06139, 2017. OpenAlex ↗ · Scholar ↗
- OpenAI. ChatGPT, 2023. OpenAlex ↗ · Scholar ↗
- Jay H Park, Gyeongchan Yun, M Yi Chang, Nguyen T Nguyen, Seungmin Lee, Jaesik Choi, Sam H Noh, and Young-ri Choi. $\{$HetPipe$\}$: Enabling large $\{$DNN$\}$ training on (whimpy) heterogeneous $\{$GPU$\}$ clusters through integration of pipelined model parallelism and data parallelism. In 2020 USENIX Annual Technical Conference (USENIX ATC 20), pages 307–321, 2020. OpenAlex ↗ · Scholar ↗
- Pratyush Patel, Esha Choukse, Chaojie Zhang, Aashaka Shah, Íñigo Goiri, Saeed Maleki, and Ricardo Bianchini. Splitwise: Efficient generative llm inference using phase splitting. In 2024 ACM/IEEE 51st Annual International Symposium on Computer Architecture (ISCA), pages 118–132. IEEE, 2024. our card
- Reiner Pope, Sholto Douglas, Aakanksha Chowdhery, Jacob Devlin, James Bradbury, Jonathan Heek, Kefan Xiao, Shivani Agrawal, and Jeff Dean. Efficiently scaling transformer inference. Proceedings of Machine Learning and Systems, 5, 2023. our card
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. OpenAlex ↗ · Scholar ↗
- Andrei Radulescu and Arjan JC Van Gemund. Fast and effective task scheduling in heterogeneous systems. In Proceedings 9th heterogeneous computing workshop (HCW 2000)(Cat. No. PR00556), pages 229–238. IEEE, 2000. OpenAlex ↗ · Scholar ↗
- Baptiste Roziere, Jonas Gehring, Fabian Gloeckle, Sten Sootla, Itai Gat, Xiaoqing Ellen Tan, Yossi Adi, Jingyu Liu, Tal Remez, Jérémy Rapin, et al. Code llama: Open foundation models for code. arXiv preprint arXiv:2308.12950, 2023. our card
- Max Ryabinin, Tim Dettmers, Michael Diskin, and Alexander Borzunov. Swarm parallelism: Training large models can be surprisingly communication-efficient. In International Conference on Machine Learning, pages 29416–29440. PMLR, 2023. OpenAlex ↗ · Scholar ↗
- Max Ryabinin and Anton Gusev. Towards crowdsourced training of large neural networks using decentralized mixture-of-experts. Advances in Neural Information Processing Systems, 33:3659–3672, 2020. OpenAlex ↗ · Scholar ↗
- Noam Shazeer. Fast transformer decoding: One write-head is all you need. arXiv preprint arXiv:1911.02150, 2019. OpenAlex ↗ · Scholar ↗
- Haichen Shen, Lequn Chen, Yuchen Jin, Liangyu Zhao, Bingyu Kong, Matthai Philipose, Arvind Krishnamurthy, and Ravi Sundaram. Nexus: A gpu cluster engine for accelerating dnn-based video analysis. In Proceedings of the 27th ACM Symposium on Operating Systems Principles, pages 322–337, 2019. OpenAlex ↗ · Scholar ↗
- Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper, and Bryan Catanzaro. Megatron-lm: Training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053, 2019. our card
- Foteini Strati, Paul Elvinger, Tolga Kerimoglu, and Ana Klimovic. Ml training with cloud gpu shortages: Is cross-region the answer? In Proceedings of the 4th Workshop on Machine Learning and Systems, pages 107–116, 2024. OpenAlex ↗ · Scholar ↗
- Seyed Mohammadhossein Tabatabaee, Jean-Yves Le Boudec, and Marc Boyer. Interleaved weighted round-robin: A network calculus analysis. IEICE Transactions on Communications, 104(12):1479–1493, 2021. OpenAlex ↗ · Scholar ↗
- The ZeroMQ authors. ZeroMQ An open-source universal messaging library, 2024. OpenAlex ↗ · Scholar ↗
- John Thorpe, Pengzhan Zhao, Jonathan Eyolfson, Yifan Qiao, Zhihao Jia, Minjia Zhang, Ravi Netravali, and Guoqing Harry Xu. Bamboo: Making preemptible instances resilient for affordable training of large DNNs. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pages 497–513, Boston, MA, April 2023. USENIX Association. OpenAlex ↗ · Scholar ↗
- Haluk Topcuoglu, Salim Hariri, and Min-You Wu. Performance-effective and low-complexity task scheduling for heterogeneous computing. IEEE transactions on parallel and distributed systems, 13(3):260–274, 2002. OpenAlex ↗ · Scholar ↗
- Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023. our card
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, et al. Llama 2: Open foundation and fine-tuned chat models. arXiv preprint arXiv:2307.09288, 2023. our card
- Jue Wang, Yucheng Lu, Binhang Yuan, Beidi Chen, Percy Liang, Christopher De Sa, Christopher Re, and Ce Zhang. Cocktailsgd: Fine-tuning foundation models over 500mbps networks. In International Conference on Machine Learning, pages 36058–36076. PMLR, 2023. OpenAlex ↗ · Scholar ↗
- Bingyang Wu, Zili Zhang, Zhihao Bai, Xuanzhe Liu, and Xin Jin. Transparent $\{$GPU$\}$ sharing in container clouds for deep learning workloads. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pages 69–85, 2023. OpenAlex ↗ · Scholar ↗
- x.ai. Annocing grok. OpenAlex ↗ · Scholar ↗
- Zongheng Yang, Zhanghao Wu, Michael Luo, Wei-Lin Chiang, Romil Bhardwaj, Woosuk Kwon, Siyuan Zhuang, Frank Sifei Luan, Gautam Mittal, Scott Shenker, et al. $\{$SkyPilot$\}$: An intercloud broker for sky computing. In 20th USENIX Symposium on Networked Systems Design and Implementation (NSDI 23), pages 437–455, 2023. OpenAlex ↗ · Scholar ↗
- Gyeong-In Yu, Joo Seong Jeong, Geon-Woo Kim, Soojeong Kim, and Byung-Gon Chun. Orca: A distributed serving system for $\{$Transformer-Based$\}$ generative models. In 16th USENIX Symposium on Operating Systems Design and Implementation (OSDI 22), pages 521–538, 2022. our card
- Binhang Yuan, Yongjun He, Jared Davis, Tianyi Zhang, Tri Dao, Beidi Chen, Percy S Liang, Christopher Re, and Ce Zhang. Decentralized training of foundation models in heterogeneous environments. Advances in Neural Information Processing Systems, 35:25464–25477, 2022. OpenAlex ↗ · Scholar ↗
- Chengliang Zhang, Minchen Yu, Wei Wang, and Feng Yan. $\{$MArk$\}$: Exploiting cloud services for $\{$Cost-Effective$\}$,$\{$SLO-Aware$\}$ machine learning inference serving. In 2019 USENIX Annual Technical Conference (USENIX ATC 19), pages 1049–1062, 2019. OpenAlex ↗ · Scholar ↗
- Shiwei Zhang, Lansong Diao, Chuan Wu, Zongyan Cao, Siyu Wang, and Wei Lin. Hap: Spmd dnn training on heterogeneous gpu clusters with automated program synthesis. In Proceedings of the Nineteenth European Conference on Computer Systems, pages 524–541, 2024. OpenAlex ↗ · Scholar ↗
- Yinmin Zhong, Shengyu Liu, Junda Chen, Jianbo Hu, Yibo Zhu, Xuanzhe Liu, Xin Jin, and Hao Zhang. $\{$DistServe$\}$: Disaggregating prefill and decoding for goodput-optimized large language model serving. In 18th USENIX Symposium on Operating Systems Design and Implementation (OSDI 24), pages 193–210, 2024. our card