arXiv:2610.17091cs.NIOct 2026

Manuscript Offprint

arXiv:2610.17091

MCCL: Measurement-based Collective Communication Library

Michele Ferrero, Gabriele Castellano, Paolo Medagliani, Sebastien Martin, Roberto Morabito, Massimo Gallo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

MICHELE FERRERO, EURECOM, France

GABRIELE CASTELLANO, Independent Researcher, France

PAOLO MEDAGLIANI, Independent Researcher, France

SEBASTIEN MARTIN, LCOMS, Université de Lorraine, France

ROBERTO MORABITO, EURECOM, France

MASSIMO GALLO, Independent Researcher, France

Collective communication is a critical performance bottleneck in large-scale distributed training. Existing libraries and synthesis frameworks compute open-loop schedules once, assuming a static topology and peak link capacities. In production, however, persistent gray failures can silently degrade link throughput and latency for hours, causing pre-computed schedules to lose much of their efficiency during execution. In this paper, we present Measurement-based Collective Communication Library (MCCL), a collective communication library that closes the loop between runtime network measurement and dynamic schedule synthesis. MCCL passively measures GPU-to-GPU throughput, detects persistent degradation, re-synthesizes the affected communication-intensive schedules with warm-started synthesizers, and hot-swaps them without interrupting training. We validate the complete loop on a multi-node hardware prototype and use simulations to evaluate cluster-scale scenarios. In our experiments, MCCL incurs negligible overhead (<2%) while maintaining high measurement accuracy (<1.2% error) and low schedule hot-swap time ( ≈\approx12 ms). Notably, under gray failures, MCCL reduces training time by up to 4.99× over static schedules on simulated training workloads for state-of-the-art LLMs such as Llama and DeepSeek.

CCS Concepts: • Networks → Network measurement; Network monitoring; Traffic engineering algorithms; Data center networks; • Computing methodologies → Distributed algorithms; Distributed artificial intelligence.

Additional Key Words and Phrases: Collective Communication, Optimization Algorithms, Network Measurements, Runtime Adaptation, Distributed LLM Training

ACM Reference Format:

Michele Ferrero, Gabriele Castellano, Paolo Medagliani, Sebastien Martin, Roberto Morabito, and Massimo Gallo. 2026. MCCL: Measurement-based Collective Communication Library. Proc. ACM Netw. 4, CoNEXT4, Article 55 (December 2026), 25 pages. https://doi.org/10.1145/3856969

1 Introduction

Large-scale distributed training has become the foundation of modern deep learning, powering state-of-the-art models in natural language processing, computer vision, and recommendation systems. As model parameters and dataset scales continue to grow, the end-to-end efficiency of

Authors' Contact Information: Michele Ferrero, EURECOM, Biot, France, ferrerom@eurecom.fr; Gabriele Castellano, Independent Researcher, Paris, France, gcastellano.phd@gmail.com; Paolo Medagliani, Independent Researcher, Paris, France, paolomeda@gmail.com; Sebastien Martin, LCOMS, Université de Lorraine, Metz, France, martin13@univ-lorraine.fr; Roberto Morabito, EURECOM, Biot, France, roberto.morabito@eurecom.fr; Massimo Gallo, Independent Researcher, Paris, France, gallomassimo3@gmail.com.

Figure

This work is licensed under a Creative Commons Attribution 4.0 International License.

© 2026 Copyright held by the owner/author(s).

ACM 2834-5509/2026/12-ART55

https://doi.org/10.1145/3856969

55:2

Ferrero et al.

distributed training increasingly depends on the performance of collective communications. Primitives such as ALLGATHER, ALLTOALL, ALLREDUCE, and REDUCESCATTER directly influence training time, often accounting for a substantial fraction of the overall iteration latency. Consequently, significant research has focused on optimizing these primitives, with efforts largely concentrated on communication-computation overlap, reduction algorithms, and static topology-aware scheduling.

Hardware accelerator vendors provide Collective Communication Libraries (CCLs) such as Nvidia CCL (NCCL) [26], AMD ROCm CCL (RCCL) [35], Huawei CCL (HCCL) [15], and Intel OneCCL [31], with highly optimized collective communication schedules tailored to common cluster topologies and hardware configurations. These vendor libraries increasingly leverage specialized hardware, such as in-network computing [39], to accelerate REDUCE-intensive collectives. In parallel, schedule synthesizers [3, 5, 23, 34, 36, 43, 48] have demonstrated substantial speedups on communication-intensive primitives such as ALLGATHER and ALLTOALL. However, existing synthesis tools share a critical limitation: they operate in an open-loop, relying on static topology assumptions and peak link capacities that rarely hold in production environments.

Datacenter networks typically exhibit complex and dynamic behavior. A critical yet pervasive challenge is the prevalence of gray failures [14, 17], where components remain functionally operational but experience severe performance degradation due to thermal throttling, PCIe or Network Interface Card (NIC) symbol errors, and optical link decay. Unlike hard failures, which typically trigger alarms, gray failures can silently reduce link performance, sometimes substantially, for several minutes or even hours [14, 46]. Consequently, optimal collective communication schedules at the beginning of training can become increasingly inefficient as system conditions evolve, significantly slowing training processes and leading to suboptimal resource utilization across the distributed infrastructure. This mismatch is particularly pronounced in iterative training because the exact same collectives repeat for thousands of iterations; any localized performance degradation becomes persistent and cumulative.

Our key observation is that the repetitive nature of distributed training turns every collective into a free measurement opportunity. Because identical GPU-to-GPU transfers repeat across thousands of iterations, their progress can be passively monitored at path granularity, without injecting any traffic. This insight enables a fundamentally different operating model for collective communication. Instead of synthesizing a schedule once under static topology assumptions and peak capacities (open-loop), the library can continuously measure the paths it uses, decide when the deployed schedule diverges from actual network conditions, re-synthesize it for observed capacities, and deploy the new schedule dynamically during training (closed-loop).

Realizing this closed-loop architecture introduces three fundamental challenges. First, the system requires path-level visibility without perturbing training. Existing monitoring approaches either rely on synthetic probes, which compete with training traffic, or on aggregate collective completion time, which can detect slowdown but cannot localize the degraded paths. Second, to avoid triggering spurious re-synthesis cycles, the system must reliably distinguish persistent degradations from short-lived fluctuations and pinpoint the affected collectives. Finally, re-synthesis time is the primary barrier to rapid runtime adaptation. Tree-packing synthesizers such as ForestColl [48] can quickly generate ALLGATHER and REDUCESCATTER schedules, yet they lack support for warm-starting; even after an isolated, single-link degradation, they discard structurally valid subtrees and recompute schedules from scratch. The barrier is even higher for ALLTOALL: existing synthesizers [23] solve heavyweight Linear Program (LP) formulations that take hours to converge, too slow for online adaptation. While recent approaches accelerate search times by exploiting network symmetry [5, 37], gray failures inherently break topological symmetry, invalidating their core performance assumptions.

55:3

In this paper, we present Measurement-based Collective Communication Library (MCCL) 1^{1}, a collective communication library that integrates a closed optimization loop directly into the communication stack. MCCL employs a controller-executor architecture: distributed executors run collectives and passively collect GPU-to-GPU telemetry on the fast path, while a centralized controller detects persistent performance drift, selectively re-synthesizes the affected collectives, and deploys the resulting schedules through a hot-swap mechanism adapted from MCCS [47]. Each new component of MCCL is designed around the requirements of the loop rather than as a standalone optimization. MCCL targets communication-intensive collectives, namely ALLGATHER and ALLToALL. Reduction-centric collectives such as REDUCESCATTER keep their existing highly optimized implementations, avoiding interference with in-network computing. ALLREDUCE remains compatible with MCCL through its standard decomposition into REDUCESCATTER and ALLGATHER, optimizing its ALLGATHER phase while leaving the reduction phase unchanged.

In summary, this work makes the following contributions:

  • We design and implement MCCL, the first collective communication library that closes the loop between path-level measurements and schedule synthesis, continuously adapting communication-intensive schedules to live network conditions without interrupting ongoing training processes (Section 3).

  • To fill the gap of existing synthesizers, we present a warm-started version of ForestColl that reuses the structure of deployed ALLGATHER schedules, and a column-generation formulation for ALLToALL whose rounding gap stays within 2.13 % across tested topologies (Section 4).

  • To enable reliable path-level visibility, we design a passive telemetry framework that captures GPU-to-GPU bandwidth metrics at the thread-block level, with <2%<2\% overhead and <1.2%<1.2\% measurement error (Section 5).

  • We validate the complete loop (telemetry, failure detection, re-optimization, and hot-swapping) on an 8-GPU, 2-node prototype, where a schedule swap completes in ≈\approx 12 ms without impacting training-related collective communication scheduling (Section 6).

  • We evaluate MCCL at cluster-scale simulating state-of-the-art LLM trainings, demonstrating up to 4.99×4.99\times faster training under gray failures compared to static schedules (Section 6).

The remainder of this paper is organized as follows. We provide background in Section 2, Sections 3–5 detail the system architecture, optimization formulation, and measurement framework. Finally, we evaluate MCCL in Section 6, discuss related work in Section 7, and conclude in Section 8.

References (31)