Elamur Research

Pathways: Asynchronous Distributed Dataflow for ML

Paper · 2022 · Paul Barham, Aakanksha Chowdhery, Jeff Dean et al.

Summary

A training job can keep many accelerators busy when they all run the same program and exchange data over a fast, dedicated network. The arrangement becomes harder to use when different groups of devices have different jobs, when several users need the same hardware, or when a computation must cross between groups connected by the datacenter network. Pathways is a system for coordinating those workloads. It gives a client one place to describe the whole computation and gives the runtime responsibility for placing work, moving data, and deciding the order in which shared devices execute it.

The challenge is to make that centralized view affordable. In a system where the user's code already runs on every accelerator host, each host can submit work directly to its devices. A remote controller has more communication to do. Pathways reduces the cost by representing a distributed operation as one node in a graph, even when it runs across many devices. It also lets nodes pass futures, which are references to results whose contents will become available later. When the size and placement of a downstream operation are known in advance, the runtime can prepare its buffers and coordinate its launch while earlier operations are still being prepared or executed. The accelerators continue to respect the dependencies between the actual results.

On the training workloads tested, Pathways matched the throughput of multi-controller JAX for encoder–decoder Transformers of up to 11 billion parameters. The paper reports roughly 100% accelerator utilization for single-program, multiple-data work over 2048 TPUs. In a separate decoder-only training experiment, a pipeline with 16 stages sustained 131.4k tokens/sec on 128 cores. It reached the same reported throughput when the cores were grouped into 4 islands connected by the datacenter network. The authors also trained larger decoder-only networks across two islands. Those runs achieved roughly 97% of the throughput of runs on an equally large collection of devices within one island.

The measurements show where the design pays off. Very small operations submitted one at a time still expose the cost of a remote controller. Grouping submissions, preparing dependent stages in parallel, and drawing work from concurrent clients can each hide some of that cost under different conditions. The paper also shows that clients can take turns on the same devices with little observable switching overhead when their working data fit in accelerator memory together. Efficient routing based on individual examples and richer policies for sharing memory and network bandwidth remain open research problems.

Deep dive: Pathways: Asynchronous Distributed Dataflow for ML

Pathways coordinates distributed machine learning across accelerator islands, keeping training throughput close to that of systems with local dispatch. · about 38 minutes to read

The problem and its context

Why run the same program everywhere?

The paper addresses a coordination problem in distributed machine learning. A host is a computer that prepares work for attached accelerators. An accelerator runs the numerical operations that make up much of a training step. When a network is too large for one device, its computation and storage can be divided into shards, with different devices responsible for different pieces. That division creates communication. A device may finish its part of an operation and then need values computed elsewhere before it can proceed. Training speed depends on how well the system schedules those exchanges and how much arithmetic the devices can carry out while other work is being arranged.

A common arrangement is single program, multiple data, or SPMD. Each participant executes the same program on its own share of the data or state. The program calls collective operations when participants need to communicate as a group. An AllReduce, for example, combines contributions from the participants and makes the combined value available to each of them. A collection of devices can use it to combine quantities calculated from separate portions of a batch. The same general execution pattern also accommodates computations that divide the network's parameters across devices. SPMD describes how the distributed program is organized. It does not prescribe which tensors must be replicated or divided.

Several systems in the paper use a multi-controller architecture for this pattern. Each host runs a copy of the client executable and can submit work to its own accelerators over the local PCIe connection. When accelerators need to exchange data, they can use a dedicated interconnect such as the TPU's ICI or the GPU's NVLink, without staging the exchange in host memory. Host software can submit operations asynchronously, which means the submission returns before the accelerator has finished. A host that keeps enough work queued can overlap the preparation of later operations with the execution of earlier ones. These are important properties of the JAX baseline that Pathways has to match.

The paper distinguishes a dedicated accelerator interconnect from the datacenter network, abbreviated DCN. The interconnect ties together a group of devices that the authors call an island. The DCN connects hosts and also provides a route between islands. A local submission, an exchange over the accelerator interconnect, and a message over the DCN have different costs. Sending every launch decision through a remote controller would risk putting those costs between successive pieces of useful accelerator work. The choice of who controls a computation therefore affects device utilization even when the arithmetic is identical.

Where replicas of the client become awkward

A pipeline partitions a network into stages and assigns each stage to a different group of devices. During training, a batch can be divided into smaller groups of examples called micro-batches. As one stage works on a later micro-batch, another stage can process the output from an earlier one. The stages perform different operations, and the outputs from each stage must be delivered to whichever group runs its successor. In the paper's terminology, this is a multiple program, multiple data computation, or MPMD. A stage can itself be SPMD, with several devices cooperating to run that stage's program.

Prior systems had already made pipelines work. The authors discuss GPipe and PipeDream, as well as work that uses DeepSpeed and Megatron-LM. Those examples motivate the execution patterns Pathways should support. Its particular concern is where the coordination code lives. With a copy of the user program on every host, ordinary collectives fit the execution structure well. Once groups run different programs and need to exchange intermediate values, users can face additional work to specify which group sends, which receives, and how their actions stay consistent. The paper takes the distributed graph of those stage-to-stage dependencies as something a system should be able to execute directly. Efficient Large-Scale Language Model Training Using Megatron-LM

Sparse computation creates a related problem. In a mixture of experts, an expert is a portion of the network that processes selected inputs. A routing computation determines which expert receives an example or part of an example. If different groups of devices hold different weights, a routing decision determines where data must go and which work should follow. The authors discuss implementations that fit homogeneous experts into the conventions of SPMD systems. They want to make room for cases where the receiving groups perform heterogeneous work or where the participants in an exchange depend on the data. This motivation concerns the expressive capacity of the infrastructure. GShard

The authors also describe a physical reason to loosen the connection between one program and one island. The clusters they discuss increasingly contain different kinds of accelerators. A large, uniform island may be expensive to reserve exclusively, and a job can leave parts of its allocation idle. A computation expressed as several cooperating parts could use smaller available groups of devices. Related research addresses placement across heterogeneous clusters and fairness across jobs. In the scheduling approaches discussed in the paper, exclusive allocations at relatively long timescales remain common. The Pathways design is motivated in part by the possibility of sharing devices at the much shorter timescale of individual computations. Heterogeneity-Aware Cluster Scheduling Policies for Deep Learning

The resource question also applies when different jobs have some computation in common. The authors give the example of researchers adapting the same pretrained network to different tasks using fine-tuning. If the shared layers are fixed, the jobs might use the same devices to hold those layers. Where the operations are compatible, examples from separate tasks might also be combined in a batch so the shared computation processes them together. This gives the system a reason to keep track of common resources and their use across clients. It is one of the workloads the authors use to motivate the design. On the Opportunities and Risks of Foundation Models

What a single controller makes possible and costly

A single-controller architecture gives one client a view of its whole computation. A client can submit a graph whose nodes represent operations and whose edges tell the runtime which outputs are needed at which inputs. The runtime can then place those operations and coordinate their execution across workers. TensorFlow v1 already had a general distributed dataflow design of this kind. A Python client built a graph, a coordinator partitioned it into worker subgraphs, and the workers exchanged data and control messages. Its support for control flow inside a graph made it possible to express programs with more varied behavior than repeated executions of the same accelerator program on every host. TensorFlow

In the implementation the authors describe, a cross-host transfer could hold up preparation for the receiving operation. The destination worker would begin relevant host-side launch work after the transfer finished. Host overhead could consequently appear at every boundary in a long pipeline. A further difficulty arose when several devices had to cooperate on one computation. The older graph system could encode ordering constraints within a job using control edges. Across separate jobs, consistent ordering required a scheduler with a view of the work submitted by all clients using the same devices.

Consistent ordering matters because the TPUs in the paper execute non-preemptible work. Suppose competing computations both need the same devices to participate in a collective. If one device begins one computation and another device begins the other, each may wait for a peer that is busy waiting in a different collective. Neither computation can make progress. Gang scheduling arranges the work of the participating devices together so that the orders they observe are compatible. It is a correctness requirement for these TPU computations. The authors also describe coordinated scheduling as a way to run collectives efficiently on devices that can support concurrent execution.

There is a cost even before any operation runs if every shard appears as a separate graph node. A producer spread over many devices can feed a consumer spread over many others, potentially creating an explicit edge for every pair of shards. The graph can then become expensive to serialize and operate on. In the paper's account, TensorFlow v1 materializes this expanded graph. A system aimed at running over thousands of devices needs to describe shared dependencies compactly and leave the runtime to handle the actual shard-level exchanges.

The authors therefore treat programming, scheduling, and data movement as distinct design problems. The application describes related computations in one place. A resource manager knows which devices can host them, and a scheduler can establish a common launch order. Executors still issue work close to the accelerators, and suitable transfers can still use the dedicated interconnect. The engineering question is how to give each part enough advance information to do its work without adding a wait at every graph edge.

The method, step by step

How Pathways prepares and runs a distributed program

The steps in order.

How Pathways prepares and runs a distributed programStep 1: Trace calls to compiled functions1. Trace calls to compiled functionsStep 2: Assign functions to virtual devices2. Assign functions to virtual devicesStep 3: Resolve placement and insert transfers3. Resolve placement and insert transfersStep 4: Build a sharded execution graph4. Build a sharded execution graphStep 5: Schedule participating devices in a consistent order5. Schedule participating devices in a consistent orderStep 6: Prepare buffers and exchange futures6. Prepare buffers and exchange futuresStep 7: Execute functions as their inputs become available7. Execute functions as their inputs become available

From Python calls to accelerator work

In a JAX program, a user can mark a portion of Python code for compilation. Pathways uses the resulting XLA computation as the work represented by a graph node. XLA is the compiler and execution machinery the system uses for TPU computations. One node may stand for a function running on many devices. For example, a whole pipeline stage could be a node even if it contains collective operations among the accelerators assigned to it. The graph describes dependencies between stages at a coarser scale than the operations inside each compiled function.

The important property of a regular compiled function is that the runtime can know its resource requirements before it sees the input values. The types and shapes of input and output tensors are available in advance. A loop has a known bound or a maximum number of iterations, possibly with an early exit. A conditional can depend on input values while still producing the same output type in either branch, with enough resources reserved in advance to execute either one. These conditions distinguish a decision that changes the values produced from a decision that changes how much memory or which devices a later operation will need.

This regularity fits the accelerator design described by the authors. TPUs can execute long XLA computations that include control flow and collectives with little host involvement during execution. The compiler can choose data layouts and assign buffers in advance. Fusion, which puts several operations inside a single compiled computation, gives the compiler scope to optimize them together. Pathways adds orchestration between compiled functions, using the shapes, device requirements, and communication needs that are visible at their boundaries. The paper situates this design in a broader tradition of tracing high-level code and compiling the performance-sensitive parts. TVM

Pathways can serve as the backend for existing JAX code, and the authors also implemented support for TensorFlow programs. In the JAX configuration discussed by the paper, multi-controller execution ordinarily uses XLA collectives for transfers among devices. On the TPUs used there, those collectives run over ICI, so their ordinary reach is one pod. The Pathways backend can make devices on multiple pods available and has ways to coordinate transfers using both ICI and the DCN. A client that wants to make effective use of the layout can explicitly request virtual devices and decide which functions should run on them.

A single compiled function can be submitted as a program by itself. Consecutive calls made this way each incur a Python call and communication with the remote coordinator. The authors add a tracer for a block of Python that invokes several compiled functions. The tracer records the calls and how their inputs and outputs are connected, then submits the resulting graph as one program. This preserves the boundaries between functions, so each function can have a different placement. It also gives the runtime information about several upcoming operations from a single client submission.

That distinction matters in a pipeline. Fusion can reduce the overhead of a sequence that runs on one group of devices. Tracing also reduces repeated submissions when the work needs to remain separated into stages. Since a traced program records which stage feeds which, the user can express the passage of intermediate data through ordinary function calls. Once the stages have placements, the runtime can determine what transfers are needed. The authors also describe a library that takes a layered Flax network and converts it to a pipelined program, an example of using a transformation to construct this graph.

From virtual meshes to physical routes

The resource manager has a view of the system's islands and their available accelerators. A client can request a virtual slice: a collection of virtual devices with a particular topology, such as a 2D or 3D mesh. A mesh describes how the devices are arranged for communication. The client uses those virtual identities to express a layout for a compiled function. Requests can impose constraints on device type or location as well as connectivity, and physical assignments must satisfy requirements such as memory capacity.

The initial allocation heuristic spreads work across available devices to try to balance load. The mapping pairs each virtual device with one physical device at a time. This provides an indirection between program placement and a physical address, while the manager keeps track of resources as devices are added or removed. The distinction between a virtual device and its current physical assignment is useful even when placements are stable. It lets the user describe a function in terms of the devices it needs, and it gives the runtime a place to resolve the concrete route when it prepares execution.

For a traced program, the client library first assigns virtual devices to functions that need them and registers new computations with the resource manager. The servers can begin compiling those computations in the background. The client constructs an intermediate representation, or IR, using a custom dialect of MLIR. An IR records the program in a form that compiler passes can transform. The initial version describes the computation without fixing physical device locations. The passes progressively produce a lower-level program that knows where the device shards live and how they are connected.

This lower-level program contains operations to move data. A producer and consumer may be assigned to different devices, and they may divide a tensor differently. Changing the division is called resharding. As an illustration, a source shard's output may have to be split among several destinations, while a destination may need to gather portions from different sources to assemble its input. The compiler can insert the relevant scatter, gather, and transfer operations. If placement stays the same, the prepared low-level program can be run repeatedly. If the resource manager changes the mapping, the program can be lowered again to reflect the new locations.

The client also needs a compact description of the objects these functions manipulate. A logical buffer represents one value to the program even when portions of it occupy memory on many devices. Pathways gives the client a sharded buffer abstraction, so bookkeeping such as reference counting can be organized around that logical value. Without it, the client would have to manage the lifetimes of a large number of individual pieces whenever it kept or released a value. The workers still have to handle the pieces that actually reside on their devices.

A graph that stays compact when devices are added

The paper illustrates the overhead of explicitly expanding the graph with an edge between two sharded computations. The count of computation nodes for the pair in such a representation is:

M + N

M is the number of shards of the producing computation, and N is the number of shards of the consuming computation. The plus sign adds the two counts because this representation puts each individual shard in its own node.

When the representation describes a connection from each producer shard to each consumer shard, its edge count is:

M × N

M and N have the same meanings. The multiplication sign counts each possible pairing of a producer shard with a consumer shard. This is a count of explicitly represented edges in the example. The actual work of moving values depends on which shard pairs need to communicate.

Pathways gives each sharded operation one graph node. The paper illustrates the consequence with a chain of 2 computations, each with N shards:

Arg → Compute(A) → Compute(B) → Result

Arg is the graph's argument node. A and B are the source and successor computations, and Compute(…) identifies the node for the named computation. Result denotes the output node. Each arrow indicates that data flows from the node on its left to the node on its right. There are 4 logical nodes for any N, where N counts the shards per computation. For matched data-parallel partitions, N tuples can flow along a sharded edge, with a destination shard recorded on each tuple. A compact graph and parallel execution are compatible because the runtime interprets those shard tags.

The coordination engine executes this graph and handles cross-host coordination over the DCN. The authors build on an existing closed-source production dataflow system. It supports high fan-out, where work or information is distributed to many recipients, and high fan-in, where contributions from many sources are brought together. It can transmit scheduling messages and buffer handles with low latency and batch messages bound for the same host when throughput matters. The same engine is used for tasks such as distributing configuration, monitoring and cleaning up jobs, and delivering errors.

A sharded edge can also carry a sparse exchange. If a computation determines that only some destinations need data, the engine can send messages to that subset. Progress tracking lets a receiver determine when it has received all the contributions meant for it. This matters because a receiver needs a reliable way to recognize completion even when the participants vary across executions. The paper describes this as an enabling mechanism for data-dependent traffic. The programming and performance challenge of using such exchanges to route individual examples through accelerator computations is broader than providing the message primitive.

Scheduling the group and preparing the successor

A centralized scheduler on each island orders the accelerator computations that use that island. The dataflow program communicates with it, and the per-shard executors submit the relevant compiled functions to their local accelerators. This arrangement brings together a global view of the work competing for the island and local submission to individual devices. The scheduler can establish an order consistent across participating shards even when the work comes from separate clients. The basic dispatch policy described by the authors is first in, first out. The paper also explores proportional sharing and discusses more elaborate ways to decide which work should run when.

The dataflow program handles more than scheduling requests. It enqueues accelerator functions with buffer futures and arranges network sends for results that will be needed remotely. A future lets a consumer refer to an output while the producer is still working on it. The reference can be used for coordination immediately. Reading the contents or executing an operation that depends on them still requires the value to arrive. If the future identifies a tensor whose shape is known, the destination can allocate suitable storage well before it knows the values that will occupy that storage.

Consider a producer and a consumer on different hosts. In sequential asynchronous dispatch, the source host enqueues the producer and obtains a future for its result. It passes the reference to the destination host, which prepares the consumer's input buffers and communicates their locations. When the producer finishes, the interconnect can move its output into those buffers. If the producer runs long enough, the destination's preparation fits inside that interval. The time from the producer's completion to the consumer's start can then be dominated by the transfer itself.

Short device computations expose a dependency in this sequence. The destination starts preparing once the source has reached the point of enqueueing the producer and sending its future. In a chain of brief computations, host scheduling, allocation, and coordination can take longer than the device work that would otherwise hide them. The accelerator may be ready while its host is still arranging the next step. This problem can occur even when every individual launch uses an asynchronous interface.

Parallel asynchronous dispatch relaxes that dependency in the control plane, the part of the system that arranges resources and launches. If the successor's input shape and requirements are known, its host can do most of the preparation while the predecessor's host is preparing its own operation. The data plane, which carries the actual accelerator values, still follows the program's dependencies. A consumer runs when its inputs are available. The practical advance is that an arriving value can meet a consumer whose memory and launch arrangements are already in place.

For a stretch of graph that can be scheduled using advance information, Pathways can send the scheduler a single message describing the subgraph. This reduces the traffic needed to request a sequence of launches and lets the scheduler order the active shards together. The scheduler is free to interleave computations from other programs between them. If a successor's resource needs depend on a value that an earlier node must compute, the runtime falls back to waiting for that information. Parallel preparation is thus available for regular stretches of a graph even when other parts require decisions during execution.

Keeping intermediate data on the devices that use it

Each host maintains part of an object store that tracks values in host memory and in the high-bandwidth memory, or HBM, of attached accelerators. Clients and servers identify remote objects through opaque handles, which are identifiers that need not reveal where the bytes are stored. An intermediate result can stay on a device awaiting transfer or reuse by another operation. The client can keep a reference to it without first copying the contents into its own memory. For results spread across devices, the client sees the logical buffer and the stores track its constituent buffers.

The runtime also tags objects with ownership information so they can be collected if a program or client fails. If an operation needs accelerator memory that other live buffers are temporarily occupying, the runtime can delay it using back-pressure. Back-pressure prevents the system from admitting an operation whose buffers it cannot currently allocate. This memory condition is important for sharing. Two clients can take turns submitting accelerator work with little switching cost if their state stays resident. Moving substantial state to host memory and back would introduce a different cost, even if the scheduling messages themselves were cheap.

How inputs reach a training step

Pathways uses existing input-processing machinery. The authors note that JAX programs commonly use TensorFlow Datasets, and the runtime instantiates a CPU-based TensorFlow executor on each worker host. A program can serialize its input processing as a TensorFlow graph and distribute it to these executors. This makes data preparation part of the work workers can do while the accelerator functions run on their assigned devices. The authors propose streaming support as a future way to put CPU input processing on an independently managed set of servers.

The execution structure depends on the training configuration. In the pipelined experiment, the batch is divided into micro-batches, and each group of devices handles its assigned stage. The graph carries intermediate outputs between stages. In the large data-parallel cross-island experiment, each island computes gradients from its work, and reduction within an island uses the fast interconnect. The islands then exchange gradient data over the DCN. In the trace described by the authors, each applies the received gradients before starting the next step. Both cases rely on moving values between computations, but the items moved and the points at which later work needs them differ.

Experiments and results

What the measurements compare

The evaluation asks whether taking control away from the individual user processes creates a visible throughput loss, and whether the resulting system can deal efficiently with pipelines and shared devices. The dispatch experiments count completed computations per second on the accelerators. The training experiments measure tokens processed per second. The paper also uses execution traces to inspect how client programs alternate on the devices and how transfers fit into training schedules. The training workloads are specified by their network configurations, batch settings where reported, and device layouts. The paper supplies no named training corpus or dataset split for the throughput comparisons.

The TPU experiments use configurations with different device densities and interconnect layouts. Configuration A has 4 TPUs per host. In the largest reported instance, ICI links 2048 TPUs across 512 hosts. Configuration B has 8 TPUs per host, with up to 64 hosts and 512 TPUs in the reported experiments. Configuration C has 4 islands, each containing 4 hosts and 32 TPUs. Some measurements use a subset of a configuration. The host count matters because host-side coordination can change with scale even when the computation on each device remains simple.

Multi-controller JAX is the principal baseline. The authors can run the same JAX source for several measurements and use identical TPU hardware for the direct comparison. TensorFlow provides an additional comparison for graph-based coordination. Ray is tested with PyTorch on GPU hosts connected by the datacenter network and scheduled with Amazon placement groups. These runs use Ray v1.3 and PyTorch 1.8.1 on p3.2xlarge VMs with V100 accelerators. That baseline represents a different runtime and hardware stack, so its results can help locate sources of overhead while leaving a matched accelerator comparison open.

Dispatching small operations

The first workload repeats a deliberately tiny computation. It performs an AllReduce on a scalar and then adds a scalar, passing the result forward as the next input. A scalar is a single numerical value. Keeping the payload and arithmetic small exposes the cost of scheduling a collective and submitting it from the host. Repetition lets the authors compare throughput under different ways of presenting the same sequence to the system. The chain also prevents treating the sequence as an arbitrary collection of unrelated jobs because each computation needs the previous result.

In OpByOp, the client makes a separate call for each execution. In Chained, one call submits a graph of 128 nodes, each containing the small computation. In Fused, one call submits a single node containing a sequence of 128 computations. The authors use the same JAX source for the JAX and Pathways versions of OpByOp and Fused. Chained uses the Pathways program tracer, with no direct multi-controller JAX counterpart. The TensorFlow variant uses a TensorFlow graph. Ray uses actor methods and PyTorch collectives, with futures passed among methods for Chained and a loop inside one method for Fused.

Multi-controller JAX has a clear throughput advantage when the client submits the tiny operations individually, especially as more devices are involved. In Pathways, the client waits for the coordinator to enqueue a computation and return its output handles before asking for the next. That wait repeats on a time scale at which the work on the devices is very short. The result is a stress test of the client interface. The authors identify overlapping client execution with the enqueue request and opportunistically batching submissions as possible ways to reduce that overhead.

With enough work in a Fused node, Pathways matches JAX throughput up to 1000 TPU cores in the reported comparison. Chained Pathways exceeds the throughput of OpByOp JAX up to 256 cores. The second comparison changes how calls enter the runtime. Pathways can issue successive accelerator operations from C++ for the traced chain, while the JAX baseline returns to Python for each OpByOp call. This accounts for how a remote controller can win that particular comparison while still losing to JAX when both submit their work individually.

TensorFlow and Ray both incur additional result-handling costs in these tests. Before handing the object handle back to the client, Ray moves the results out of GPU memory and into host DRAM. The data is sent back to the client by TensorFlow. Submitting a chain or a fused computation spreads those costs across more work. At larger core counts, the TensorFlow implementation also serializes gang-scheduled work using a centralized barrier implemented with control edges. Ray's actor execution and Pathways' specialized TPU launch path differ substantially. The authors treat the Ray results as evidence about the value of certain fast paths and discuss what a GPU implementation might need to add.

How much device work hides remote dispatch?

In a follow-up benchmark, the authors vary the amount of work in each computation and look for the shortest duration at which Pathways reaches JAX's throughput on each hardware configuration. A smaller threshold means the remote submission costs can be covered by less device work in that setting. It is a threshold for matching throughput, so it should be read in conjunction with the scale of the experiment. It gives neither a per-step latency for a training job nor a constant dispatch time for every program on that cluster.

Minimum computation duration for Pathways to match JAX throughput in the dispatch microbenchmark

The smaller tested deployment reaches parity with shorter computations.

Minimum computation duration for Pathways to match JAX throughput in the dispatch microbenchmarkPathways on 16 hosts and 128 TPUs (this paper): 2.3Pathways on 16 hosts and 128 TPUs (thispaper)2.3Pathways on 512 hosts and 2048 TPUs: 35Pathways on 512 hosts and 2048 TPUs35
The numbers
System or settingms per computation
Pathways on 16 hosts and 128 TPUs (this paper)2.3
Pathways on 512 hosts and 2048 TPUs35

On configuration B, with 16 hosts and 128 TPUs, the reported threshold is 2.3 ms. In configuration A, which uses 512 hosts and 2048 TPUs, the overhead is hidden in throughput measurements when computation takes 35 ms or longer. The configurations differ in both scale and device density per host. The thresholds illustrate the amount of accelerator work needed in two concrete deployments. They do not isolate the contribution of any individual hardware or coordination parameter.

The authors next place the simple computations in a pipeline on configuration B. Every stage runs on its own host and uses a distinct group of four TPU cores. A stage's output moves to its successor over ICI. The comparison uses the same Pathways system with parallel preparation enabled or with asynchronous dispatch forced to proceed in dependency order. This makes the critical distinction a question of when the host work can start. The parallel version amortizes fixed client and scheduling costs as pipeline stages are added, while additional transfers also create costs. The different effects are visible in the measured throughput pattern.

What happens when clients share the devices?

The multi-tenancy benchmark on configuration B has independent clients submit programs that use the same accelerators. Throughput is aggregated across programs. Under the condition that the clients' resources fit in HBM concurrently, Pathways achieves at least the aggregate throughput of the JAX comparison. The measurements show little observable cost for switching among the resident programs. The authors explain that longer computations require less concurrent submission to fill the device queues, because each accepted job provides more accelerator work.

The appendix gives an example where the computation per program takes 0.33 ms. With one client, the accelerators do not saturate. With multiple clients, the authors report utilization of roughly 100%. The traces show the programs interleaving at a millisecond timescale or less while their accelerator groups remain gang-scheduled. For sufficiently small computations, the maximum aggregate throughput exceeds the JAX baseline. The authors attribute this to workers accepting submissions from remote clients faster than the local Python dispatch in the tested JAX arrangement can supply them.

The authors also show a trace sampling 128 cores with competing programs from 4 clients. One allocation uses proportional shares of 1:1:1:1, and another uses 1:2:4:8. These are ratios of accelerator time allocated among clients. They demonstrate that the scheduler can order work consistently while intentionally giving the clients different shares. Throughput and sharing policy answer different questions in this experiment. A high total rate indicates that the devices stay busy, while the trace indicates how the available time is divided.

Encoder–decoder training on the same TPU hardware

For a comparison on substantial training workloads, the authors use encoder–decoder configurations from the text-to-text Transformer study. An encoder computes a representation of the input, and a decoder uses it to produce the output sequence. The reviewed configurations run on TPUv3 devices with 16GB of memory per accelerator. The largest network in this set has 11 billion parameters. The measure is training throughput in tokens/s over the tested configurations and device counts.

The authors report matching throughput between Pathways and multi-controller JAX across the tested sizes. With both systems using identical training code, they also verify that reaching the same perplexity takes an equal number of steps on both. Perplexity measures how well the network predicts the sequence of tokens, so agreement at equal step counts checks that the backend change preserves the training behavior being timed. The authors report identical numerical results when comparing the JAX and TensorFlow programs on their native systems with the corresponding Pathways runs. The speed result concerns the orchestration of the existing computations.

These runs are the practical counterpart to the dispatch threshold experiment. Training submits considerably more substantial work than a scalar AllReduce with a scalar addition. When the devices have enough to do, sending requests through a single controller need not show up as lower sustained throughput. The paper's headline SPMD result is approximately 100% accelerator utilization on 2048 TPUs. The encoder–decoder comparison supplies evidence for parity on real training workloads, while the small-operation experiment shows where that parity can break down.

Pipeline training on one island and several islands

They compare the pipelines using a decoder-only TensorFlow network that has 3 billion parameters and 62 Transformer layers, with model and hidden dimensions of 2048 and 8192, respectively. The first stage performs an embedding lookup in addition to its Transformer work. The last stage performs a softmax, which converts output scores into a distribution. The authors assign one fewer Transformer layer to each of these end stages to balance the work. Each stage has its own devices across multiple hosts. The pipeline follows a GPipe-like schedule, with micro-batches moving through the stages.

The authors vary the stage count and the number of micro-batches. The paper uses S for stages, M for micro-batches, and C for the total number of TPU cores in the training configuration. Here M denotes micro-batches, independently of the notation for counting graph shards. Each micro-batch contains 4 examples. The global batch is 2048 examples per step in the 128-core cases and 8192 examples per step in the 512-core case. For the layout comparisons, the authors control training settings and compare against an SPMD sharding scheme similar to GShard, whose communication does not increase in proportion to batch size in the manner discussed for Megatron.

Training throughput by pipeline depth for the 3B decoder-only Transformer

The deeper pipeline sustains close to the throughput of the shallower setting.

Training throughput by pipeline depth for the 3B decoder-only TransformerPathways with 4 stages (this paper): 133.7Pathways with 4 stages (this paper)133.7Pathways with 16 stages: 131.4Pathways with 16 stages131.4
The numbers
System or settingk tokens/sec
Pathways with 4 stages (this paper)133.7
Pathways with 16 stages131.4

The reported throughput moves from 133.7k tokens/sec with 4 stages to 131.4k tokens/sec with 16 stages. The authors also observe that, across the configurations they tested, throughput scales in direct proportion to how many TPU cores a stage receives. The pipeline is competitive with the equivalent SPMD arrangement. A pipeline can leave some stages waiting for micro-batches to arrive or for other stages to finish. The paper calls these gaps pipeline bubbles. In this experiment, the authors find that the collective communication overhead of the SPMD computation is greater than the overhead from those gaps.

For the pipeline with 16 stages, 64 micro-batches and 128 cores, the authors compare one island in configuration B with 4 islands of 32 cores each in configuration C. Both layouts achieve 131.4k tokens/sec. The layout across islands requires sending intermediate data over the DCN at boundaries between groups of stages. The authors interpret the trace as showing that those transfers overlap computation. The throughput result establishes that any cost from the island boundaries did not lower the measured rate in this configuration.

Larger networks across two islands

The final training measurements use decoder-only Transformers with 64B and 136B parameters. The 64B network is trained across two islands of 512 cores each, and the 136B network across two islands of 1024 cores each. The system performs reduction over the fast ICI within each island and uses the DCN to exchange data between islands for global reduction. The paper reports 457GB for this reduction in the 64B case and 1030GB in the 136B case. These experiments concern the exchange of training gradients across islands, a different traffic pattern from forwarding intermediate values between pipeline stages.

The authors report approximately 97% of the throughput achieved with the same total number of devices in a single island. For the 64B experiment, the appendix reports 97.2% training throughput relative to the SPMD configuration using ICI across the equivalent total device count. Its trace follows several training steps and shows the islands computing gradients, enqueueing the exchanges, then applying the received gradients before continuing. That ordering explains why cross-island communication can still affect step time in a design that reduces the amount of work exposed to the slower network.

What the ablations show

Changing when host work can begin

The closest experiment to an ablation is the forced sequential-dispatch comparison. Both cases use asynchronous accelerator execution and the same kind of inter-host pipelines. In the sequential case, preparation advances along the chain as earlier computations are enqueued. In the parallel case, a successor can begin host-side preparation before its predecessor reaches that point. Since the device data dependencies and the use of ICI between stages remain, the comparison focuses on parallelizing control work.

The authors describe several regimes as the pipeline grows. Initially, more work spreads the cost of a client submission over more stages. Additional inter-stage transfers then become a larger part of the cost. With a longer sequence, the implementation also begins to amortize fixed scheduling work. The authors expect the transfer costs eventually to dominate again. The comparison explains why parallel dispatch can help substantially without making throughput independent of communication. It exposes a host-side critical path that the runtime can shorten and leaves the cost of moving the device data in the experiment.

This mechanism is especially relevant when stages are short. A predecessor that keeps an accelerator busy for a long time already gives its successor's host an interval in which to prepare. Very brief predecessors offer almost no such interval. Parallel dispatch allows preparation to use time earlier than the predecessor's execution. This is the specific benefit the paper attributes to knowing the requirements of regular compiled functions in advance.

Changing the unit of submission

The OpByOp, Chained, and Fused comparison varies where the runtime crosses a submission boundary. OpByOp repeats the trip through the client for every tiny computation. Chained moves the loop of submissions into the graph runtime while still representing separate nodes. Fused moves the sequence into one compiled computation. This progression helps distinguish client overhead from the cost of coordinating separate nodes once a program is submitted.

The results also show how to interpret comparisons with JAX. The Fused tests use the same user source and expose the cost of dispatching the resulting larger unit of work. The Chained result uses a feature particular to the single-controller graph, so its JAX comparison is against repeated calls through Python. It supports the conclusion that graph execution can drive dependent operations efficiently from the runtime. It does not assign the full observed advantage to the control architecture alone. The TensorFlow and Ray runs change further ingredients, including object handling and, in Ray's case, the underlying hardware.

The duration sweep varies a different quantity: how much time the device spends on each computation. Its parity thresholds show that the overhead matters relative to the available accelerator work, and that the amount required to hide it can grow with deployment scale. Together, the granularity and duration experiments explain why the individual scalar-operation result and the real training result can coexist. They exercise different ratios of host coordination to accelerator execution.

Changing the number and shares of clients

The concurrent submission tests hold the small accelerator work fixed while varying the supply of client programs. A near-empty queue under one client becomes a fuller queue when several clients can submit. Since the programs and buffers can remain resident, the traces show the effect of switching accelerator work among clients without a large memory migration at each switch. The numerical results support the use of concurrency to cover gaps in submission for the tested workloads.

The proportional-share traces add another control. Changing the requested shares changes the division of accelerator time even though the devices remain shared and their computations still need consistent ordering. This is evidence that the runtime has a point at which it can impose a policy over competing programs. The experiment measures time sharing among the jobs in the trace. Whether a more complex policy could provide predictable service under memory or bandwidth contention is a separate question.

Changing topology and pipeline depth

Within the decoder-only training experiment, the comparison of pipeline depths probes the cost of dividing essentially the same training workload into more stages. Throughput remains close across the reported shallow and deep settings. The result depends on the stage balance, the number of micro-batches, and the communication behavior of the workload. It provides evidence that a deep Pathways pipeline can stay productive under those settings. The SPMD comparison supplies a reason to consider the layout at all: collectives inside a same-program computation can cost more time than the idle intervals introduced by a pipeline.

The comparison across islands is most direct where the authors keep the 16-stage, 64-micro-batch, 128-core setup and change the network layout. The same reported throughput and the trace support their explanation that the pipeline hides the cross-island transfers in that case. The larger data-parallel runs place the network on the path to completing a global reduction. Their measured throughput relative to a single island indicates how much of the overall rate is retained under that related but different pattern. The two results are best understood through the timing of the data dependencies: a pipeline can overlap selected boundary transfers with other stage work, and a training step with a gradient exchange eventually needs the incoming contributions before it proceeds.

Limitations

Limits the authors identify

The implementation and its main results are tuned to TPUs. The paper explains how TPU kernels can incorporate substantial computation and communication, reducing the frequency with which the host has to intervene. In the GPU systems described by the authors, hosts usually launch smaller kernels and initiate collective communication. The authors argue that high-level choices such as a compact distributed graph and coordinated scheduling can carry over to GPU clusters. That is an architectural expectation. The Ray experiment evaluates an existing GPU stack, and a GPU implementation of the full Pathways design remains to be measured. GPU & parallel computing

The authors give an explicit condition for effective parallel dispatch. It applies when the runtime can establish the relevant requirements before it sees predecessor values. Where those values determine resource needs, Pathways falls back to sequential preparation. The sparse exchange mechanisms give the runtime a way to communicate with data-dependent destinations. Efficient vectorized control flow, where different examples or parts of examples follow different routes through accelerator work, remains future work. It is one of the motivations for the design and one of the capabilities least directly tested by the dense training runs.

The initial resource manager uses a simple placement heuristic, and its virtual-to-physical mapping provides a place to implement richer policies. The authors discuss transparent suspension, resumption, and migration as future uses of this design. They point to four more topics for future work on multi-tenant workloads, covering access control, resource accounting, priorities, and performance isolation. Device time is only one resource a policy must manage. Host memory, accelerator memory, and transfer capacity over ICI, the DCN, and PCIe can also be contested. The successful sharing experiment applies when the clients' data fit in accelerator memory together.

The authors leave room to reduce the cost of very small sequential submissions further. The client in the measured implementation still waits for the coordinator to return output handles in OpByOp. Moving more work past that wait and batching small submissions are prospective improvements. Tracing and fusion already make the overhead small enough for the reported training runs. An application that frequently needs individual fine-grained launches would operate closer to the stress-test conditions.

Limits apparent from the experiments

The matched JAX comparisons establish parity on the tested TPU workloads. The paper gives much less direct evidence for workloads with irregular execution or heterogeneous device types. The topology comparisons use specific devices, network layouts, and training schedules, and the workloads have different patterns of communication between islands. As a consequence, the equal rate for the 3B pipeline and the approximate parity of the large data-parallel runs characterize those arrangements. A workload with more frequent cross-island dependencies or fewer opportunities to overlap communication could encounter a different bottleneck.

The performance claims concern sustained computation and training throughput. The reported numerical agreement and equal step counts to the same perplexity are checks on training compatibility. The paper supplies no dataset-level quality comparison across tasks, and it lacks the detail needed to judge a general effect on convergence across workloads. It also gives no complete accounting of metrics such as per-client tail latency under contention. The short-operation benchmarks and traces explain selected execution costs, while the token rates establish how those costs appear under the tested training setups.

The dispatch experiments attribute parts of the measured behavior to several mechanisms, including sharded graph representation, parallel preparation, object storage in HBM, and scheduling. Only some of these are isolated experimentally. For instance, the parallel-versus-sequential test varies dispatch within Pathways, whereas the comparisons with TensorFlow and Ray change several implementation details together. The graph-size argument explains why an expanded graph can grow quickly, but it does not separately quantify the contribution of graph compression to end-to-end training throughput. Similarly, the reported traces are evidence about the schedules in those runs. They need no assumption that all workloads can maintain the same degree of overlap.

Finally, the low-level coordination engine is closed-source. The paper outlines how an alternative might use long-running Ray actors with additional primitives for efficient device storage and interconnect transfers. The claim that such an implementation could reproduce the TPU system's performance is a proposal. The measured Ray comparison provides clues about where engineering effort would go, with the different execution and networking stacks limiting what can be inferred about an equivalent implementation.

What came after

Scaling training and choosing where work runs

PaLM provides the most explicit connection from the paper's orchestration design to a later training project. Its title identifies Pathways as the system used to scale language modeling. The Pathways paper had explained how one client can drive distributed accelerator work and how training can extend across islands. PaLM takes that infrastructure as a means of scaling the language-modeling workload itself. That is a different research emphasis from timing the controller and comparing device layouts. PaLM

The PaLM 2 Technical Report continues the PaLM line and cites Pathways. Gemini's family paper takes up a related application context by focusing on multimodal systems. These reports put the citation in the setting of developing large trained systems, where efficient coordination is an infrastructure question alongside the learning problem. PaLM names Pathways as part of its scaling approach. A citation in the later reports establishes the connection to the systems work while leaving the details of dispatch, placement, and inter-island traffic unspecified here. PaLM 2 Technical Report · Gemini

The Gemma paper connects open releases to Gemini research and technology. The next Gemma report frames the objective as improving performance at a practical size. Both cite Pathways, though their stated subjects concern what is built and released rather than the cost of a graph launch. Their connection can be read at the level of research context: the Pathways paper studies infrastructure for running distributed computations, while Gemma and Gemma 2 address the resulting family and the practical scale at which it can be offered. Gemma · Gemma 2

Parallelism, heterogeneous workflows, and sparse work

Alpa addresses the automation of parallelism inside operations and across operations. The distinction corresponds to two levels visible in Pathways. A compiled node can execute across several devices, and several nodes can be placed in different parts of the cluster and exchange their results. Pathways chiefly explains how to execute such a description efficiently once the compiled functions and graph are available. Alpa's stated subject is how to automate parallelization across those levels. Its citation connects the work of deciding how to divide a program with the work of coordinating the resulting distributed execution. Alpa

HybridFlow focuses on flexible and efficient reinforcement learning from human feedback, abbreviated RLHF. The link to Pathways is through workload orchestration. Pathways presents a graph as a way to describe different computations that need to share resources or exchange intermediate results. HybridFlow takes up efficiency for a particular training framework. Its citation places Pathways among the relevant distributed systems, while the description of HybridFlow's scope leaves the exact points of implementation reuse open. HybridFlow

Lina takes up distributed mixture-of-experts training and inference directly. That workload is one of the reasons the Pathways authors want to express dynamic exchanges and place different computations on different devices. Pathways supplies a general coordination design with support for sparse messages and identifies efficient routing as a research direction. Lina narrows the subject to accelerating distributed expert execution in training and inference. The citation connects a general architectural motivation to work centered on the concrete workload that motivated it. Lina

Efficiency as a wider research question

Efficient Methods for Natural Language Processing cites Pathways in a survey whose scope is broader than distributed accelerator orchestration. The connection is that efficiency can come from organizing when and where an existing computation runs. The Pathways experiments illustrate this with the same training code dispatched by different controllers, and with pipelines placed across different network layouts. Challenges and Applications of Large Language Models cites it from an even broader treatment of the field. In these works, Pathways serves as systems context for studying language technology at scale. The controllers, transfer paths, and placement choices studied in the paper give that context a concrete meaning: they are parts of how a training program turns available devices into sustained work. Efficient Methods for Natural Language Processing · Challenges and Applications of Large Language Models

Cite

Cite as Paul Barham, Aakanksha Chowdhery, Jeff Dean, Sanjay Ghemawat, Steven Hand, Dan Hurt, Michael Isard, Hyeontaek Lim, Ruoming Pang, Sudip Kumar Roy, Brennan Saeta, Parker Schuh, Ryan Sepassi, Laurent El Shafey, Chandramohan A. Thekkath and Yonghui Wu. 2022. Pathways: Asynchronous Distributed Dataflow for ML. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2203.12533 · arXiv 2203.12533

@misc{barham2022pathways,
  title = {{Pathways: Asynchronous Distributed Dataflow for ML}},
  author = {Paul Barham, Aakanksha Chowdhery, Jeff Dean, Sanjay Ghemawat, Steven Hand, Dan Hurt, Michael Isard, Hyeontaek Lim, Ruoming Pang, Sudip Kumar Roy, Brennan Saeta, Parker Schuh, Ryan Sepassi, Laurent {El Shafey}, Chandramohan A. Thekkath and Yonghui Wu},
  year = {2022},
  doi = {10.48550/arxiv.2203.12533},
  eprint = {2203.12533},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2203.12533}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/barham-2022-pathways-asynchronous-distributed-dataflow-ml/

References

78 references, from the paper's own bibliography.

  1. Martín Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, Manjunath Kudlur, Josh Levenberg, Rajat Monga, Sherry Moore, Derek G. Murray, Benoit Steiner, Paul Tucker, Vijay Vasudevan, Pete Warden, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: A system for large-scale machine learning. In 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI), Savannah, GA, November 2016. USENIX Association. our card
  2. Akshay Agrawal, Akshay Naresh Modi, Alexandre Passos, Allen Lavoie, Ashish Agarwal, Asim Shankar, Igor Ganichev, Josh Levenberg, Mingsheng Hong, Rajat Monga, et al. TensorFlow Eager: A multi-stage, Python-embedded DSL for machine learning. arXiv preprint arXiv:1903.01855, 2019. OpenAlex ↗ · Scholar ↗
  3. Tyler Akidau, Alex Balikov, Kaya Bekiroğlu, Slava Chernyak, Josh Haberman, Reuven Lax, Sam McVeety, Daniel Mills, Paul Nordstrom, and Sam Whittle. MillWheel: Fault-tolerant stream processing at internet scale. Proc. VLDB Endow., 60 (11):0 1033–1044, August 2013. OpenAlex ↗ · Scholar ↗
  4. Sebastian Angel, Hitesh Ballani, Thomas Karagiannis, Greg O’Shea, and Eno Thereska. End-to-end performance isolation through virtual datacenters. In 11th USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2014. OpenAlex ↗ · Scholar ↗
  5. Rohan Anil, Vineet Gupta, Tomer Koren, Kevin Regan, and Yoram Singer. Scalable second order optimization for deep learning. arXiv preprint arXiv:2002.09018, 2021. OpenAlex ↗ · Scholar ↗
  6. Rachata Ausavarungnirun, Vance Miller, Joshua Landgraf, Saugata Ghose, Jayneel Gandhi, Adwait Jog, Christopher J Rossbach, and Onur Mutlu. Mask: Redesigning the GPU memory hierarchy to support multi-application concurrency. ACM SIGPLAN Notices, 530 (2):0 503–518, 2018. OpenAlex ↗ · Scholar ↗
  7. Zhihao Bai, Zhen Zhang, Yibo Zhu, and Xin Jin. PipeSwitch: Fast pipelined context switching for deep learning applications. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI). USENIX Association, November 2020. OpenAlex ↗ · Scholar ↗
  8. Paul Barham and Michael Isard. Machine learning systems are stuck in a rut. In Proceedings of the Workshop on Hot Topics in Operating Systems (HotOS), New York, NY, USA, 2019. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  9. Andrew Baumann, Paul Barham, Pierre-Evariste Dagand, Tim Harris, Rebecca Isaacs, Simon Peter, Timothy Roscoe, Adrian Schüpbach, and Akhilesh Singhania. The multikernel: A new OS architecture for scalable multicore systems. In Proceedings of the ACM SIGOPS 22nd symposium on Operating systems principles, 2009. OpenAlex ↗ · Scholar ↗
  10. Rishi Bommasani and Drew A. Hudson et. al. On the opportunities and risks of foundation models. arXiv preprint arXiv:2108.07258, 2021. our card
  11. James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: Composable transformations of Python+NumPy programs. http://github.com/google/jax, 2018. OpenAlex ↗ · Scholar ↗
  12. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. Language models are few-shot learners. In Advances in Neural Information Processing Systems, volume 33, 2020. our card
  13. Shubham Chaudhary, Ramachandran Ramjee, Muthian Sivathanu, Nipun Kwatra, and Srinidhi Viswanatha. Balancing efficiency and fairness in heterogeneous GPU clusters for deep learning. In Proceedings of the Fifteenth European Conference on Computer Systems (EuroSys). Association for Computing Machinery, 2020. OpenAlex ↗ · Scholar ↗
  14. Tianqi Chen, Thierry Moreau, Ziheng Jiang, Lianmin Zheng, Eddie Yan, Haichen Shen, Meghan Cowan, Leyuan Wang, Yuwei Hu, Luis Ceze, Carlos Guestrin, and Arvind Krishnamurthy. TVM: An automated end-to-end optimizing compiler for deep learning. In 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI), Carlsbad, CA, October 2018. USENIX Association. our card
  15. Lyndon Clarke, Ian Glendinning, and Rolf Hempel. The MPI message passing interface standard. In Programming Environments for Massively Parallel Distributed Systems, 1994. OpenAlex ↗ · Scholar ↗
  16. Daniel Crankshaw, Xin Wang, Guilio Zhou, Michael J Franklin, Joseph E Gonzalez, and Ion Stoica. Clipper: A low-latency online prediction serving system. In 14th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2017. OpenAlex ↗ · Scholar ↗
  17. Jeff Dean. Introducing Pathways: A next-generation AI architecture. https://blog.google/technology/ai/introducing-pathways-next-generation-ai-architecture/, 2021. [Online; accessed October-2021]. OpenAlex ↗ · Scholar ↗
  18. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. our card
  19. William Fedus, Barret Zoph, and Noam Shazeer. Switch Transformers: Scaling to trillion parameter models with simple and efficient sparsity. arXiv preprint arXiv:2101.03961, 2021. OpenAlex ↗ · Scholar ↗
  20. Dror G. Feitelson and Larry Rudolph. Gang scheduling performance benefits for fine-grain synchronization. Journal of Parallel and Distributed Computing, 160 (4):0 306–318, 1992. OpenAlex ↗ · Scholar ↗
  21. Denis Foley and John Danskin. Ultra-performance Pascal GPU and NVLink interconnect. IEEE Micro, 370 (2):0 7–17, March 2017. OpenAlex ↗ · Scholar ↗
  22. Google. Cloud TPU. https://cloud.google.com/tpu, 2021. [Online; accessed March-2021]. OpenAlex ↗ · Scholar ↗
  23. Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research. PMLR, 10–15 Jul 2018. OpenAlex ↗ · Scholar ↗
  24. Vishakha Gupta, Karsten Schwan, Niraj Tolia, Vanish Talwar, and Parthasarathy Ranganathan. Pegasus: Coordinated scheduling for virtualized accelerator-based systems. In 2011 USENIX Annual Technical Conference (USENIX ATC), volume 31, 2011. OpenAlex ↗ · Scholar ↗
  25. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016. our card
  26. Jonathan Heek, Anselm Levskaya, Avital Oliver, Marvin Ritter, Bertrand Rondepierre, Andreas Steiner, and Marc van Zee. Flax: A neural network library and ecosystem for JAX. http://github.com/google/flax, 2020. OpenAlex ↗ · Scholar ↗
  27. Geoffrey E Hinton, Sara Sabour, and Nicholas Frosst. Matrix capsules with EM routing. In International conference on learning representations, 2018. OpenAlex ↗ · Scholar ↗
  28. Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin De Laroussilhe, Andrea Gesmundo, Mona Attariyan, and Sylvain Gelly. Parameter-efficient transfer learning for NLP. In International Conference on Machine Learning. PMLR, 2019. our card
  29. 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. In Advances in neural information processing systems, 2019. OpenAlex ↗ · Scholar ↗
  30. Myeongjae Jeon, Shivaram Venkataraman, Junjie Qian, Amar Phanishayee, Wencong Xiao, and Fan Yang. Multi-tenant GPU clusters for deep learning workloads: Analysis and implications. Technical report, Microsoft Research, 2018. OpenAlex ↗ · Scholar ↗
  31. Myeongjae Jeon, Shivaram Venkataraman, Amar Phanishayee, Junjie Qian, Wencong Xiao, and Fan Yang. Analysis of large-scale multi-tenant GPU clusters for DNN training workloads. In 2019 USENIX Annual Technical Conference (USENIX ATC), Renton, WA, July 2019. USENIX Association. our card
  32. Zhihao Jia, Sina Lin, Mingyu Gao, Matei Zaharia, and Alex Aiken. Improving the accuracy, scalability, and performance of graph neural networks with Roc. Proceedings of Machine Learning and Systems, 2:0 187–198, 2020. OpenAlex ↗ · Scholar ↗
  33. Norman P. Jouppi, Doe Hyun Yoon, George Kurian, Sheng Li, Nishant Patil, James Laudon, Cliff Young, and David A. Patterson. A domain-specific supercomputer for training deep neural networks. Commun. ACM, 630 (7):0 67–78, 2020. OpenAlex ↗ · Scholar ↗
  34. David Kirk. NVIDIA CUDA software and GPU parallel computing architecture. In Proceedings of the 6th International Symposium on Memory Management (ISMM), New York, NY, USA, 2007. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  35. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. ImageNet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems, volume 25. Curran Associates, Inc., 2012. our card
  36. Woosuk Kwon, Gyeong-In Yu, Eunji Jeong, and Byung-Gon Chun. Nimble: Lightweight and parallel GPU task scheduling for deep learning. In Advances in Neural Information Processing Systems, 2020. OpenAlex ↗ · Scholar ↗
  37. Jack Lanchantin, Arshdeep Sekhon, and Yanjun Qi. Neural message passing for multi-label classification. In Ulf Brefeld, Elisa Fromont, Andreas Hotho, Arno Knobbe, Marloes Maathuis, and Céline Robardet, editors, Machine Learning and Knowledge Discovery in Databases, Cham, 2020. Springer International Publishing. OpenAlex ↗ · Scholar ↗
  38. Chris Lattner, Mehdi Amini, Uday Bondhugula, Albert Cohen, Andy Davis, Jacques Pienaar, River Riddle, Tatiana Shpeisman, Nicolas Vasilache, and Oleksandr Zinenko. MLIR: Scaling compiler infrastructure for domain specific computation. In 2021 IEEE/ACM International Symposium on Code Generation and Optimization (CGO), 2021. OpenAlex ↗ · Scholar ↗
  39. Dmitry Lepikhin, HyoukJoong Lee, Yuanzhong Xu, Dehao Chen, Orhan Firat, Yanping Huang, Maxim Krikun, Noam Shazeer, and Zhifeng Chen. GShard: Scaling giant models with conditional computation and automatic sharding. arXiv preprint arXiv:2006.16668, 2020. our card
  40. Gangmuk Lim, Jeongseob Ahn, Wencong Xiao, Youngjin Kwon, and Myeongjae Jeon. Zico: Efficient GPU memory sharing for concurrent DNN training. In 2021 USENIX Annual Technical Conference (USENIX ATC). USENIX Association, July 2021. OpenAlex ↗ · Scholar ↗
  41. Jiaqi Ma, Zhe Zhao, Xinyang Yi, Jilin Chen, Lichan Hong, and Ed H Chi. Modeling task relationships in multi-task learning with multi-gate mixture-of-experts. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, 2018. OpenAlex ↗ · Scholar ↗
  42. Kshiteej Mahajan, Arjun Balasubramanian, Arjun Singhvi, Shivaram Venkataraman, Aditya Akella, Amar Phanishayee, and Shuchi Chawla. Themis: Fair and efficient GPU cluster scheduling. In 17th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2020. our card
  43. Peter Mattson, Vijay Janapa Reddi, Christine Cheng, Cody Coleman, Greg Diamos, David Kanter, Paulius Micikevicius, David Patterson, Guenther Schmuelling, Hanlin Tang, Gu-Yeon Wei, and Carole-Jean Wu. MLPerf: An industry standard benchmark suite for machine learning performance. IEEE Micro, 400 (2):0 8–16, 2020. OpenAlex ↗ · Scholar ↗
  44. Philipp Moritz, Robert Nishihara, Stephanie Wang, Alexey Tumanov, Richard Liaw, Eric Liang, Melih Elibol, Zongheng Yang, William Paul, Michael I. Jordan, and Ion Stoica. Ray: A distributed framework for emerging AI applications. In Proceedings of the 13th USENIX Conference on Operating Systems Design and Implementation (OSDI). USENIX Association, 2018. OpenAlex ↗ · Scholar ↗
  45. Derek Murray, Frank McSherry, Rebecca Isaacs, Michael Isard, Paul Barham, and Martin Abadi. Naiad: A timely dataflow system. In Proceedings of the 24th ACM Symposium on Operating Systems Principles (SOSP). ACM, November 2013. OpenAlex ↗ · Scholar ↗
  46. Deepak Narayanan, Aaron Harlap, Amar Phanishayee, Vivek Seshadri, Nikhil Devanur, Greg Granger, Phil Gibbons, and Matei Zaharia. PipeDream: Generalized pipeline parallelism for DNN training. In ACM Symposium on Operating Systems Principles (SOSP), October 2019. OpenAlex ↗ · Scholar ↗
  47. Deepak Narayanan, Keshav Santhanam, Fiodar Kazhamiaka, Amar Phanishayee, and Matei Zaharia. Heterogeneity-aware cluster scheduling policies for deep learning workloads. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2020. our card
  48. Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley, Mostofa Patwary, Vijay Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee, and Matei Zaharia. Efficient large-scale language model training on GPU clusters using Megatron-LM. arXiv preprint arXiv:2104.04473, 2021. our card
  49. Maxim Naumov, John Kim, Dheevatsa Mudigere, Srinivas Sridharan, Xiaodong Wang, Whitney Zhao, Serhat Yilmaz, Changkyu Kim, Hector Yuen, Mustafa Ozdal, et al. Deep learning training in Facebook data centers: Design of scale-up and scale-out systems. arXiv preprint arXiv:2003.09518, 2020. OpenAlex ↗ · Scholar ↗
  50. NVIDIA. NVIDIA GPUDirect technology. http://developer.download.nvidia.com/devzone/devcenter/cuda/docs/GPUDirect_Technology_Overview.pdf, 2021. [Online; accessed February-2021]. OpenAlex ↗ · Scholar ↗
  51. Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. our card
  52. Hieu Pham, Melody Guan, Barret Zoph, Quoc Le, and Jeff Dean. Efficient neural architecture search via parameters sharing. In International Conference on Machine Learning. PMLR, 2018. OpenAlex ↗ · Scholar ↗
  53. Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text Transformer. arXiv preprint arXiv:1910.10683, 2019. our card
  54. Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, and Yuxiong He. ZeRO-Infinity: Breaking the GPU memory wall for extreme scale deep learning. arXiv preprint arXiv:2104.07857, 2021. our card
  55. Jeff Rasley, Samyam Rajbhandari, Olatunji Ruwase, and Yuxiong He. DeepSpeed: System optimizations enable training deep learning models with over 100 billion parameters. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining (KDD), New York, NY, USA, 2020. Association for Computing Machinery. OpenAlex ↗ · Scholar ↗
  56. Xiaoqi Ren, Ganesh Ananthanarayanan, Adam Wierman, and Minlan Yu. Hopper: Decentralized speculation-aware cluster scheduling at scale. In Proceedings of the 2015 ACM Conference on Special Interest Group on Data Communication, 2015. OpenAlex ↗ · Scholar ↗
  57. Minsoo Rhu, Natalia Gimelshein, Jason Clemons, Arslan Zulfiqar, and Stephen W Keckler. vDNN: Virtualized deep neural networks for scalable, memory-efficient neural network design. In 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO). IEEE, 2016. our card
  58. Mohammad Shahrad and David Wentzlaff. Availability knob: Flexible user-defined availability in the cloud. In Proceedings of the Seventh ACM Symposium on Cloud Computing, 2016. OpenAlex ↗ · Scholar ↗
  59. Christopher J Shallue, Jaehoon Lee, Joseph Antognini, Jascha Sohl-Dickstein, Roy Frostig, and George E Dahl. Measuring the effects of data parallelism on neural network training. arXiv preprint arXiv:1811.03600, 2018. OpenAlex ↗ · Scholar ↗
  60. Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, and Jeff Dean. Outrageously large neural networks: The sparsely-gated mixture-of-experts layer. In ICLR (Poster), 2017. OpenAlex ↗ · Scholar ↗
  61. Noam Shazeer, Youlong Cheng, Niki Parmar, Dustin Tran, Ashish Vaswani, Penporn Koanantakool, Peter Hawkins, HyoukJoong Lee, Mingsheng Hong, Cliff Young, et al. Mesh-TensorFlow: Deep learning for supercomputers. In Advances in Neural Information Processing Systems, 2018. our card
  62. 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
  63. TensorFlow. XLA: Optimizing compiler for TensorFlow. https://www.tensorflow.org/xla, 2019. [Online; accessed September-2019]. OpenAlex ↗ · Scholar ↗
  64. TensorFlow. TensorFlow Datasets: A collection of ready-to-use datasets. https://www.tensorflow.org/datasets, 2021. [Online; accessed May-2021]. OpenAlex ↗ · Scholar ↗
  65. Nandita Vijaykumar, Kevin Hsieh, Gennady Pekhimenko, Samira Khan, Ashish Shrestha, Saugata Ghose, Adwait Jog, Phillip B Gibbons, and Onur Mutlu. Zorua: A holistic approach to resource virtualization in GPUs. In 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO). IEEE, 2016. OpenAlex ↗ · Scholar ↗
  66. Guanhua Wang, Kehan Wang, Kenan Jiang, Xiangjun Li, and Ion Stoica. Wavelet: Efficient DNN training with Tick-Tock scheduling. In Proceedings of Machine Learning and Systems, 2021. OpenAlex ↗ · Scholar ↗
  67. Qizhen Weng, Wencong Xiao, Yinghao Yu, Wei Wang, Cheng Wang, Jian He, Yong Li, Liping Zhang, Wei Lin, and Yu Ding. MLaaS in the wild: Workload analysis and scheduling in large-scale heterogeneous GPU clusters. In 19th USENIX Symposium on Networked Systems Design and Implementation (NSDI), Renton, WA, April 2022. USENIX Association. OpenAlex ↗ · Scholar ↗
  68. David Wentzlaff, Charles Gruenwald III, Nathan Beckmann, Kevin Modzelewski, Adam Belay, Lamia Youseff, Jason Miller, and Anant Agarwal. An operating system for multicore and clouds: Mechanisms and implementation. In Proceedings of the 1st ACM symposium on Cloud computing, 2010. OpenAlex ↗ · Scholar ↗
  69. Wencong Xiao, Romil Bhardwaj, Ramachandran Ramjee, Muthian Sivathanu, Nipun Kwatra, Zhenhua Han, Pratyush Patel, Xuan Peng, Hanyu Zhao, Quanlu Zhang, et al. Gandiva: Introspective cluster scheduling for deep learning. In 13th USENIX Symposium on Operating Systems Design and Implementation (OSDI), 2018. OpenAlex ↗ · Scholar ↗
  70. Wencong Xiao, Shiru Ren, Yong Li, Yang Zhang, Pengyang Hou, Zhi Li, Yihui Feng, Wei Lin, and Yangqing Jia. Antman: Dynamic scaling on GPU clusters for deep learning. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI). USENIX Association, November 2020. OpenAlex ↗ · Scholar ↗
  71. Bowen Yang, Jian Zhang, Jonathan Li, Christopher Ré, Christopher Aberger, and Christopher De Sa. Pipemare: Asynchronous pipeline parallel DNN training. In Proceedings of Machine Learning and Systems, 2021. OpenAlex ↗ · Scholar ↗
  72. Yang You, Igor Gitman, and Boris Ginsburg. Large batch training of convolutional networks. arXiv preprint arXiv:1708.03888, August 2017. our card
  73. Hangchen Yu, Arthur Michener Peters, Amogh Akshintala, and Christopher J Rossbach. AvA: Accelerated virtualization of accelerators. In Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, 2020. OpenAlex ↗ · Scholar ↗
  74. Peifeng Yu and Mosharaf Chowdhury. Fine-grained GPU sharing primitives for deep learning applications. Proceedings of Machine Learning and Systems, 2:0 98–111, 2020. OpenAlex ↗ · Scholar ↗
  75. Yuan Yu, Martin Abadi, Paul Barham, Eugene Brevdo, Mike Burrows, Andy Davis, Jeff Dean, Sanjay Ghemawat, Tim Harley, Peter Hawkins, Michael Isard, Manjunath Kudlur, Rajat Monga, Derek Murray, and Xiaoqiang Zheng. Dynamic control flow in large-scale machine learning. In Proceedings of EuroSys 2018, 2018. OpenAlex ↗ · Scholar ↗
  76. Biao Zhang, Ankur Bapna, Rico Sennrich, and Orhan Firat. Share or not? learning to schedule language-specific capacity for multilingual translation. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
  77. Shixiong Zhao, Fanxin Li, Xusheng Chen, Xiuxian Guan, Jianyu Jiang, Dong Huang, Yuhao Qing, Sen Wang, Peng Wang, Gong Zhang, Cheng Li, Ping Luo, and Heming Cui. vPipe: A virtualized acceleration system for achieving efficient and scalable pipeline parallel DNN training. IEEE Transactions on Parallel and Distributed Systems, 330 (3), 2022. OpenAlex ↗ · Scholar ↗
  78. Zhe Zhao, Lichan Hong, Li Wei, Jilin Chen, Aniruddh Nath, Shawn Andrews, Aditee Kumthekar, Maheswaran Sathiamoorthy, Xinyang Yi, and Ed Chi. Recommending what video to watch next: A multitask ranking system. In Proceedings of the 13th ACM Conference on Recommender Systems, 2019. OpenAlex ↗ · Scholar ↗