NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model Parallelism With Subnetwork Data Parallelism

Vaibhav Singh, Zafir Khalid, Edouard Oyallon, Eugene Belilovsky · DOI

Abstract

Subnetwork Data Parallelism (SDP) is a novel distributed training framework designed to overcome the memory and communication bottlenecks of traditional deep learning at scale. By training structured model subsets across different workers, SDP reduces per-device memory usage by 30% to 75%. Unlike standard model parallelism, SDP eliminates the high-bandwidth requirement for activation exchange between GPUs and can improve final model performance by acting as a form of structured regularization.

Introduction

Training massive neural networks is a constant battle against hardware limits. Currently, researchers rely on two main strategies: Distributed Data Parallelism (DDP), which replicates the entire model on every GPU, and Model Parallelism, which splits the model across devices.

DDP is simple but suffers from massive memory overhead because every GPU must store a full copy of the weights, gradients, and optimizer states. Model parallelism (such as pipelining) mitigates memory pressure but introduces "pipeline bubbles" (idle time) and requires expensive, high-bandwidth interconnects to constantly swap activations between devices. SDP serves as a "third way" that captures the memory benefits of model parallelism without the communication overhead of activation exchange.

Methodology

The core innovation of SDP is assigning each worker a subnetwork—a structurally complete portion of the model that preserves a full path from input to loss. This architecture allows each worker to compute gradients independently.

Subnetwork Construction

The authors explore two primary methods for building these subnetworks:

  1. Neuron-Level SDP (N-SDP): Selectively removing neurons in fully connected layers or channels in convolutional layers, functioning similarly to a fixed, structured dropout.
  2. Block-Level SDP (B-SDP): Removing entire layers or "blocks" from the network. This is particularly effective for residual architectures like ResNets and Transformers.

Masking Regimes

Two masking strategies were evaluated to balance memory efficiency and stability:

  • Forward Masking: The subnetwork is used for both forward and backward passes. This maximizes memory savings (parameters, activations, and gradients are all reduced) and provides a regularization effect.
  • Backward Masking: The full model is used in the forward pass, but gradients are only computed for a subnetwork. This maintains unbiased gradient estimates while still saving memory on gradients and optimizer states.

Synchronization is handled via stepwise averaging, where workers periodically average the parameters they share to maintain global model coherence.

Comparison of standard Data Parallelism (left) where every GPU has a full replica, versus Subnetwork Data Parallelism (right) where GPUs train overlapping subsets of the model.

Experimental Setup

The researchers evaluated SDP across diverse architectures and tasks:

  • Computer Vision: ResNet-18 and WideResNet-18 on CIFAR-10 and CIFAR-100, and Swin-T on ImageNet-1k.
  • Language Modeling: A 134M parameter LLaMA-style model pre-trained on the FineWeb dataset.

Key Insights

  • The "Free" Regularizer: Forward-masked subnetworks often outperformed the full-model DDP baseline. This suggests a regularization effect similar to ensembling or dropout, where training diverse, overlapping subnetworks prevents overfitting.
  • Communication Efficiency: Because SDP synchronizes parameters rather than activations, it is significantly more robust to low-bandwidth environments than traditional pipeline or tensor parallelism.
  • FLOP-Matching: While training a subnetwork may converge more slowly per iteration, each iteration is faster and uses less compute. When compared on a "FLOP-matched" basis, SDP often demonstrates superior efficiency.
  • Stability vs. Sparsity: Backward masking remains stable at extreme levels of sparsity (e.g., keeping only 3/8 of the model), whereas forward masking is most effective at moderate sparsity levels due to its regularization benefits.

Results

Experimental results demonstrate that SDP can significantly reduce resource requirements without sacrificing accuracy:

  • Memory Savings: SDP consistently reduced per-device memory by 30% to 75%.
  • Performance Gains: On CIFAR-100 with a WideResNet-18, B-SDP with a coverage ratio of 7/8 (87.5% parameters) achieved 70.97% accuracy, surpassing the DDP baseline of 69.12%.
  • LLM Scaling: In LLM pre-training on FineWeb, a subnetwork configuration using only 67% of the memory achieved a lower validation loss (3.41) and better perplexity (30.4) than the full DDP baseline (Loss: 3.57, PPL: 35.4).
Table showing Top-1 accuracy for WideResNet-18. Blue cells indicate where SDP matched or exceeded the DDP baseline.

Conclusion and Future Work

Subnetwork Data Parallelism offers a scalable alternative to traditional distributed training. While highly effective at moderate sparsity, the authors note that at extreme sparsity (e.g., $C=3/8$), forward masking can lead to performance collapse. Future work may involve exploring dynamic or learnable masks and further tuning hyperparameters to unlock the full potential of subnetwork-based training.

Summary updated

BibTeX
@inproceedings{singh2025model,
  author = {Vaibhav Singh and Zafir Khalid and Edouard Oyallon and Eugene Belilovsky},
  title = {{Model Parallelism With Subnetwork Data Parallelism}},
  booktitle = {ES-FoMo-III @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=Y3D5roVofI},
}
Figure