arXiv:2609.04417cs.NISep 2026

Manuscript Offprint

arXiv:2609.04417

Tuning Collective Patterns to Alleviate Congestion in Shared AI Clusters

Eashan Gupta, Yongzhou Chen, Apoorve Mohan, Pavlos Maniotis, Abdullah Kayi, Radhika Mittal

Abstract

Distributed AI training involves recurring rounds of data exchange between multiple pairs of GPU nodes. Slowdown in even one flow due to congestion can cause the entire communication round to slowdown. Current approaches for evading congestion in AI clusters assume global control over the entire workload (e.g. coordinating the schedule of all jobs) or assume infrastructural support (e.g. adaptive routing in switches). They are thus ill-suited in a shared cloud setting where AI jobs belonging to one user can face external congestion from other users' jobs or background traffic beyond its own control. In this paper, we build a system, REACT, that tunes the recurring pattern of data exchange between GPU nodes (known as communication collectives) in response to congestion. REACT works at the application (communication library) layer, where it detects congestion at runtime using readily available flow stats, and tunes the collective pattern to alleviate congestion – changing the set of incident flows while retaining the semantics of information exchange (e.g. selecting which node aggregates data in an AllReduce tree). REACT requires no explicit support from the underlying network infrastructure and can be unilaterally deployed by individual users in a shared cloud setting. We prototype REACT as a shim layer over NCCL, and evaluate it on a shared academic GPU cluster – enabling REACT improves communication performance (algorithm bandwidth) by 13%–38% under network congestion. Our simulations across a range of congestion scenarios further reveal up to 75% performance improvement, highlighting the effectiveness of our approach.

1 Introduction

Scaling machine learning (ML) and AI training jobs to increasingly larger amounts of data and model sizes requires distributing them across multiple nodes. A typical distributed training job runs as a series of recurring epochs, where each epoch is composed of a computation phase (where each node performs a local computation), followed by a communication phase (where relevant data, e.g., gradients and parameters, are exchanged among the nodes). The communication phase involves multiple flows (data exchange between multiple pairs of nodes). Due to synchronization barriers, slow down in even one flow (e.g. due to localized congestion) can slow down the entire

communication phase. With the communication phase making up 10-90% of the epoch duration [39], delays in communication directly translate to increase in epoch duration and the overall training time, and may even lead to underutilization of expensive GPU resources [17, 18]. As a result, developing mechanisms to minimize (or evade) in-network congestion for AI training jobs, in order to speed up their communication phase, has emerged as an active area of research [5, 9, 10, 34, 47, 51, 52, 65].

However, most prior work in this area focus on dedicated clusters that are used and managed by a single entity, and where one can assume complete knowledge and control over all jobs running in the cluster, and also control over the underlying network infrastructure. An often overlooked setting is where distributed training jobs belonging to different users (or tenants) simultaneously run on a shared cluster (e.g. a large public cloud or a small-scale academic cluster). In such settings, network flows for a given training job can experience congestion from external sources (e.g. jobs belonging to other tenants, background data-transfers and storage tasks, etc) [27]. Schemes designed for dedicated clusters (e.g. evading congestion by coordinating the temporal schedules of different jobs [47] or the paths and priorities assigned to their flows [10]) are ill-suited in such shared settings: an individual tenant managing their own job has no control over other jobs belonging to a different tenant, or over the network infrastructure that is managed by the cloud operator. We also cannot rely on infrastructural mechanisms to dynamically route around congestion (e.g. adaptive routing in switches [12]), as they may or may not be supported by the shared cloud (the tenant has no visibility or control over it).

So what can an individual tenant, running their own distributed AI training job, do to evade congestion from external sources in a shared cloud? Motivated by this question, we build a system, REACT (short for Runtime Epoch-Adaptive Collective Tuning) that tunes the recurring pattern of communication among nodes in an AI job in order to alleviate congestion – changing the specific set of incident flows (source and destination nodes) while retaining the semantics of the required information exchange. REACT can be unilaterally deployed by an individual tenant to improve their own job's performance – it works solely at the application (communication library) layer, and requires no explicit support from the network infrastructure and no control over external workload. It also makes no assumptions about the underlying network protocols (e.g. RDMA, TCP, etc), and is complementary to any transport-level congestion control mechanisms and routing strategies (e.g. ECMP, adaptive routing, etc) deployed by the cloud operator.

Before explaining how REACT works, we provide some relevant context. Communication among the nodes in a distributed training job is specified through collective operations that capture the high-level semantics of information exchange between nodes. Examples of such a collective operation include “AllGather” where a piece of information (e.g. model weight or gradients) at each node must be sent to all other nodes, and “AllReduce” where the piece of information at all nodes must be aggregated and the result must be disseminated to all nodes. AI training jobs commonly use a collective communication library or CCL (e.g. NCCL [11], Gloo [15], OpenMPI [1]) that executes the specified collective operation as a concrete sequence of data exchange steps among the participating nodes. We refer to this sequence of steps as the collective pattern. A given collective operation can be realized using different collective patterns. For example, an AllReduce between three nodes (N0, N1, and N2) can be realized using a tree pattern, where data from N0 and N1 is aggregated at N2 and the result is sent back to N0 and N1. The same operation can also be realized using a ring pattern where N0 sends its data to N1, which then aggregates it with its own data and sends the result to N2; N2 then aggregates the result with its data and sends the final result to N0 which then relays it to N1.

The CCL computes the collective patterns once at the start of the job (typically based on parameters such as number of nodes, message sizes, underlying transport protocols, etc) and uses the same pattern repeatedly in each epoch throughout the training run. Recent work proposes using additional information (e.g. profiled link characteristics, global knowledge of workload etc [5, 9, 52, 62]) to optimally compute the collective pattern at the start of the job. However, this initial collective pattern starts deviating from optimality as the network state changes over time (e.g. due to congestion caused by unforeseen arrival of external traffic).

Our system, REACT, tunes the collective pattern at runtime in response to congestion. As a simple example, for the tree-based AllReduce with three nodes, if the incoming link at N2 is congested, rather than aggregating all data at N2, we can aggregate at N0 or N1. In the ring-based AllReduce example, if the path from N0 to N1 faces congestion, we can swap the positions of N1 and N2 in the ring, to avoid that path. In contrast to adaptive routing mechanisms that tune flow paths to evade congestion, REACT changes the set of incident flows themselves (i.e. changes the source and destination nodes). It can therefore even help evade congestion on links that have no re-routing alternatives (e.g. the link from a ToR switch to a server [38]).

REACT runs a feedback loop at the CCL level, where it collects the completion times of all flows after a small set of epochs, analyzes them to detect presence of congestion, and then tunes the collective pattern in response to the detected congestion. Realizing such a feedback loop in practice requires tackling

multiple challenges:

(1) How do we reliably detect congestion using only flow-level stats? For this, REACT incorporates a mechanism for strategically comparing the completion time of various flows in a collective pattern with one another, and across epochs, to identify flows that potentially experience congestion, without assuming any knowledge about the underlying network topology or link capacities.

(2) Upon identifying the flows that experience congestion, REACT iteratively picks such flows that lie on the critical path of the collective pattern, and attempts to swap their source and destination nodes with other nodes in the collective pattern in order to alleviate congestion. How do we determine which nodes can be swapped in a given collective pattern, such that we retain semantic correctness? For this, we outline a mechanism for computing viable transforms for any given collective, that provides a set of viable nodes that any given node can be swapped with in the collective pattern without violating semantic correctness. We further prune this set to eliminate nodes that would not help alleviate congestion.

(3) How do we ensure that REACT can update the collective pattern fast, within a few epochs? REACT tests each transform to check whether it helps improve performance (and must be retained) or whether it should be reverted. Doing so one at a time by re-running the updated collective pattern in the next epoch after each transform will increase convergence time. To speed up convergence, REACT uses an analytical model to estimate the performance impact of a transform without actually running the updated collective pattern. This allows REACT to iterate through a batch of multiple transforms within the same epoch. We provide more details on each of these design aspects in §5.

Note that REACT can only respond to congestion that lasts for a few training epochs (i.e. for a duration of a few hundreds of milliseconds), e.g. from long-running data transfer tasks or other competing AI jobs. It is not meant to react to ephemeral congestion that dissipates within an epoch. Further note that our contributions are orthogonal and complementary to how the initial collective pattern is generated in the first place. Finally, it may not always be possible to eliminate all congestion by swapping nodes – REACT is a best-effort system that attempts to alleviate congestion to the best extent possible.

We prototype REACT, implementing it as a shim layer over PyTorch and NCCL. We evaluate it on a national academic shared GPU cluster, and show how enabling REACT improves the communication time by 13%-38% under different degrees of congestion. We further evaluate REACT by simulating a wide variety of congestion and network failure scenarios in ns3 [49] to show up to 75% improvement in algorithm bandwidth. Our evaluation spans a variety of popularly used collective patterns: NCCL's dual binary tree based AllReduce [26, 50], Ring AllReduce [43, 58], and AllGather with recursive doubling [42, 58].

References (51)