Introduction
In modern scientific facilities, such as the Advanced Photon Source, sensors generate massive, high-velocity data streams. To maximize the utility of these experiments, researchers need real-time analysis to "steer" the process—adjusting parameters on the fly based on incoming results. However, standard Deep Learning (DL) models face a significant hurdle in this environment.
If a model is trained incrementally on new data, it suffers from catastrophic forgetting, where new information overwrites previously learned patterns. The traditional solution—retraining the model from scratch on the entire accumulated dataset—is computationally "cubic." As the dataset grows, training time increases exponentially, eventually making real-time feedback impossible. This paper proposes a "middle way" that maintains high accuracy without the prohibitive time cost of full retraining.
Methodology: The Distributed Rehearsal Buffer
The authors address these challenges through rehearsal-based continual learning. This technique involves maintaining a small "rehearsal buffer" of representative samples from past tasks and mixing them into current training batches to preserve old knowledge.
Key Innovations
- Distributed Rehearsal Buffer (DRB): Rather than each GPU maintaining an isolated local memory, the system creates a global, aggregated buffer spread across the entire cluster. This allows the model to draw from a much more diverse set of historical samples.
- Asynchronous Management: Buffer updates and sampling occur in the background. By overlapping the global sampling of the next batch with the computation of the current batch, the system effectively "hides" communication overhead.
- RDMA-enabled Sampling: Utilizing the Mochi/Thallium framework, the system leverages Remote Direct Access Memory (RDMA) to pull samples from remote nodes with extremely low latency.
- Generative Support: The system supports annotated tuples, enabling it to handle complex generative tasks like image reconstruction using advanced strategies such as Dark Experience Replay (DER++).
Experimental Evaluation
The system was evaluated using two distinct benchmarks to test both classification and generative capabilities:
- ImageNet-1K: A standard image classification dataset split into four disjoint tasks of 250 classes each to simulate a shifting data stream.
- PtychoNN: A real-world scientific application for ptychographic image reconstruction using data from Argonne National Laboratory. This represents a generative, domain-incremental learning challenge.
Key Results
- Accuracy Preservation: On ImageNet, naive incremental training accuracy collapsed to 23.1% due to forgetting. The DRB approach achieved 80.55%, nearing the 91% upper bound of retraining from scratch.
- Linear Scalability: While retraining costs grow over time, the DRB approach maintains a linear runtime. The system demonstrated excellent scaling on the ThetaGPU supercomputer, maintaining efficiency even when scaled to 128 GPUs.
- Scientific Impact: In the ptychography use-case, the DER++ strategy produced sharper, more accurate image reconstructions significantly faster than traditional iterative algorithms, proving its viability for real-time experimental steering.
Conclusion and Future Work
By treating the spare RAM of every node in a cluster as a unified aggregated memory, the authors have developed a system that provides the stability of full retraining with the speed of incremental learning. While a ~10% accuracy gap remains compared to training from scratch on ImageNet, the DRB provides a scalable foundation for real-time scientific AI. Future work will explore more sophisticated sampling policies, such as gradient-based selection, to further bridge the accuracy gap and fully integrate the edge-to-HPC closed-loop system.
Summary updated