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

Efficient Data-Parallel Continual Learning with Asynchronous Distributed Rehearsal Buffers

Thomas Bouvier, Bogdan Nicolae, Hugo Chaugier, Alexandru Costan, Ian T. Foster, Gabriel Antoniu · DOI

Abstract

Deep learning models frequently encounter "catastrophic forgetting" when trained incrementally on non-stationary data distributions. While rehearsal-based methods mitigate this by storing and replaying past samples, scaling these techniques to multi-GPU data-parallel environments often introduces significant communication bottlenecks. This paper presents a novel distributed rehearsal buffer architecture that leverages asynchronous RDMA-enabled sampling to hide communication overheads. Our approach achieves near-optimal accuracy on ImageNet-1K while maintaining training throughput comparable to naive incremental baselines.

Introduction

In many real-world applications, training data arrives continuously rather than all at once. Standard deep learning models trained on such streams suffer from catastrophic forgetting, where new information rapidly overwrites previously learned knowledge. While retraining from scratch on the entire accumulated dataset is a robust solution, its computational cost is prohibitive for large-scale datasets and modern models.

Continual Learning (CL) aims to enable models to learn from new data while preserving performance on old tasks. Rehearsal, or experience replay, is a leading CL strategy that maintains a small buffer of representative samples from previous tasks to mix into new training batches. However, implementing rehearsal in high-performance computing (HPC) environments poses a challenge: how to efficiently share and sample from a global buffer across hundreds of GPUs without stalling the training loop due to communication overhead.

Methodology: Distributed and Asynchronous Rehearsal

We propose a Distributed Rehearsal Buffer designed specifically for multi-GPU data-parallel training. Instead of a central bottleneck, each GPU maintains a local portion of the buffer in pinned host memory, collectively forming a logical global buffer.

RDMA-Enabled Global Sampling

To maintain an unbiased training process, each GPU must sample uniformly from the entire global buffer. We utilize low-overhead, RDMA-enabled point-to-point RPCs (via the Mochi/Thallium framework) to allow direct memory access between nodes, bypassing traditional network stack bottlenecks and allowing GPUs to fetch samples from each other's memory directly.

Asynchronous Management

The core innovation lies in overlapping buffer operations with GPU computation. As illustrated in Figure 1, while the GPU performs forward and backward passes for the current iteration, the CPU and network concurrently update the local buffer and pre-fetch rehearsal samples for the subsequent iteration. This design ensures that the data-parallel training loop is never blocked by rehearsal-related communication.

Workflow of the asynchronous distributed rehearsal buffer system showing the overlap of training and buffer management.

Experimental Results

We evaluated our system on the ImageNet-1K dataset using a class-incremental setup (4 tasks of 250 classes each) across up to 128 NVIDIA A100 GPUs on the ThetaGPU supercomputer.

Accuracy and Performance

Our distributed rehearsal approach achieved a final top-5 accuracy of 80.55% on ResNet-50, significantly outperforming the naive incremental baseline, which collapsed to 23.3% due to catastrophic forgetting. As shown in Figure 2, our method (green solid line) closely tracks the accuracy of the theoretical upper bound (retraining from scratch, purple dashed line) while maintaining a training time nearly identical to the naive baseline (blue dotted line). The only added time comes from the mathematically necessary processing of the extra augmented samples, not from data fetching.

Top-5 validation accuracy (left) and training time (right) comparing the proposed method against naive incremental training and the retraining upper bound.

Scalability

The asynchronous architecture successfully hid communication overheads at all tested scales (up to 128 GPUs). By distributing the buffer, we also leveraged the aggregate host RAM of the cluster, allowing for larger rehearsal buffers (up to 30% of ImageNet) which further improved the model's ability to remember old tasks without running out of memory.

Conclusion

This work demonstrates that distributed rehearsal can be scaled to large HPC clusters without sacrificing training efficiency. By hiding communication behind the training loop, we provide a practical path for training massive models on continuous data streams. Future work will explore applying this architecture to generative models and large-scale fine-tuning tasks where catastrophic forgetting remains a significant hurdle.

Summary updated

BibTeX
@inproceedings{bouvier2024efficient,
  author = {Thomas Bouvier and Bogdan Nicolae and Hugo Chaugier and Alexandru Costan and Ian T. Foster and Gabriel Antoniu},
  title = {{Efficient Data-Parallel Continual Learning with Asynchronous Distributed Rehearsal Buffers}},
  booktitle = {CCGrid},
  year = {2024},
  doi = {10.1109/ccgrid59990.2024.00036},
}
Figure