DeToNATION: Decoupled Torch Network-Aware Training on Interlinked Online Nodes

Mogens Henrik From, Jacob Nielsen, Lukas Galke, Peter Schneider-Kamp

TL;DR

The paper introduces FlexDeMo, a distributed training strategy that combines Fully Sharded Data Parallel (FSDP) training with decoupled momentum updates to train massive AI models across multiple nodes without network bottlenecks. By sharding model parameters locally within a node and synchronizing only the most critical, fast-moving gradient components between nodes, FlexDeMo achieves a ~2.6x training speedup over standard methods while maintaining comparable model performance.

What Problem Does This Paper Address?

Training state-of-the-art deep learning models requires massive computational power distributed across multiple nodes and accelerators (GPUs). However, the network communication between these nodes quickly becomes a major bottleneck, as traditional distributed data parallel (DDP) training requires exchanging full gradients across the entire network.

Recent methods like Decoupled Momentum (DeMo) alleviate this by accumulating momentum locally and only exchanging fast-moving gradient components. However, DeMo suffers from two major limitations:

  1. Memory constraints: It assumes the entire model fits onto a single GPU, making it unusable for modern Large Language Models (LLMs).
  2. Poor scaling: Its communication overhead scales linearly with the total number of individual accelerators, creating a bottleneck at scale.

This paper introduces FlexDeMo and the broader DeToNATION framework to overcome these hurdles, allowing low-communication distributed training for models that exceed single-GPU memory capacities.

Methods

FlexDeMo introduces a hybrid-sharding strategy:

  • Intra-node Sharding: Within a single node (where communication bandwidth is high, e.g., NVLink/Infinity Fabric), the model and optimizer states are fully sharded across accelerators using FSDP.
  • Inter-node Replication: Between different nodes (where bandwidth is limited), the model shards are replicated. Instead of synchronizing full gradients across nodes, FlexDeMo compresses and synchronizes only selected gradient components.

The authors evaluate several replication schemes within their new DeToNATION framework:

  • DeMo: Uses a Discrete Cosine Transform (DCT-II) to extract and synchronize fast-moving momentum components.
  • Random: Randomly selects a subset of gradient indices to synchronize. By using a synchronized random seed across nodes, it eliminates the need to transmit the indices themselves, effectively halving the metadata bandwidth.
  • Striding: Selects every $n$-th gradient index.
  • DiLoCo: Performs periodic global averaging after multiple local optimization steps.

Additionally, they implement a Decoupled AdamW variant that avoids synchronizing the first and second moments entirely, further reducing data transfer.

Datasets

The framework was validated across language and vision domains using three distinct setups:

  1. T5-base/Large: Evaluated on the French-to-English translation subset of the Opus Books dataset.
  2. Vision Transformer (ViT-B): Evaluated on the CIFAR-100 dataset for image classification.
  3. OLMo2 (1B parameters): A decoder-only language model trained on the Dolma v1.6 dataset for causal language modeling.

Key Insights and Ideas

  • The Power of the Sign: Across all replication schemes, synchronizing only the sign of the gradients (reducing communication to a ternary system) rather than full-precision values significantly improves loss convergence while drastically lowering data footprints.
  • No "One Size Fits All" Replicator: The optimal replication scheme is highly dependent on the architecture and task. Random replication performs best for encoder-decoder translation tasks (T5), whereas the original DeMo (DCT-based) scheme excels in vision (ViT) and causal language modeling (OLMo2).
  • Index-Free Communication: The Random scheme's ability to calculate indices locally via a shared seed makes it incredibly bandwidth-efficient, allowing it to transfer twice as much actual gradient data as DeMo for the same network cost.

Key Results

  • Speedups: On a two-node setup, FlexDeMo achieved training speeds approximately 2.6 times faster than conventional Hybrid-FSDP with AdamW while matching its validation loss.
  • Resilience to Network Congestion: In simulated highly congested networks (down to 10 Mbps), the Random replication scheme ran 3.33x faster than DeMo and 18x faster than full replication (see Figure 5).
Average time per optimizer step for ViT-B under varying bandwidth limits.
  • Scalability Bottlenecks: When scaling up to 64 nodes (256 GPUs) for the OLMo2 model, DeMo's reliance on the blocking all_gather operation caused it to scale poorly. Conversely, the Random replicator maintained high efficiency, running 64% faster than the conventional baseline (see Figure 7).
OLMo2 1B training loss vs. wall-clock time on 64 nodes, highlighting DeMo's scaling bottleneck versus Random's efficiency.

Limitations and Future Work

While FlexDeMo shows impressive communication savings, the current implementation disables automatic gradient synchronization during the backward pass (no_sync), meaning the initial reduce_scatter operation within FSDP isn't yet overlapped with computation.

The authors note that future work will focus on implementing custom hooks and streams to enable asynchronous communication with CUDA streams. Additionally, exploring architecture-optimized replicators could help automatically select the best synchronization strategy based on the model type.

Summary updated

BibTeX
@inproceedings{from2026detonation,
  author = {Mogens Henrik From and Jacob Nielsen and Lukas Galke and Peter Schneider-Kamp},
  title = {{DeToNATION: Decoupled Torch Network-Aware Training on Interlinked Online Nodes}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i25.39256},
}
Figure