Abstract
Modern scientific experiments generate data at rates that outpace traditional analysis methods. While machine learning (ML) surrogate models offer a solution, they suffer from model degradation when experimental conditions shift. We present fairDMS, a framework that accelerates model retraining by intelligently reusing historical data and pre-trained models. By leveraging self-supervised learning for data indexing and a "Model Zoo" for fine-tuning, fairDMS achieves up to 100x faster labeling and 200x faster training, significantly reducing the bottleneck in real-time scientific discovery.
Introduction
High-speed scientific instruments, such as the Advanced Photon Source (APS), produce data at terabytes per second. Researchers increasingly rely on ML surrogate models to process this information in real-time. However, these models are often brittle; slight changes in experimental parameters—like beam intensity or sample deformation—can lead to significant accuracy drops. Traditionally, correcting this requires manual labeling via slow physics simulations and retraining models from scratch, creating a major bottleneck. fairDMS addresses this by treating data and models as reusable assets, following FAIR (Findable, Accessible, Interoperable, and Reusable) principles to maintain model performance in dynamic experimental environments.
Methodology: The fairDMS Framework
The fairDMS (FAIR Data and Model Service) architecture consists of two primary components designed to minimize computational overhead during model updates.
fairDS: Data Service
fairDS focuses on accelerating the labeling process. Instead of executing expensive physics-based simulations for every new data point, it employs self-supervised learning to generate compact "embeddings" or mathematical fingerprints of the data. These embeddings are clustered to represent the data distribution. When new, unlabeled data is encountered, fairDS identifies similar historical data with existing labels and applies "pseudo-labeling," bypassing the "physics tax" typically associated with data preparation.
fairMS: Model Service
fairMS manages a "Zoo of Models," a repository of models trained under various historical conditions. When a performance drop is detected, fairMS calculates the Jensen-Shannon Divergence (JSD) between the current data distribution and the training distributions of models in the Zoo. It selects the most similar model as a starting point for fine-tuning. This approach is significantly more efficient than starting from random weights.
Uncertainty Quantification
To automate the system, fairDMS utilizes an Uncertainty Quantification (UQ) trigger. By monitoring the confidence of data placement within existing clusters, the system can detect "drift" in experimental conditions. When uncertainty exceeds a predefined threshold, it triggers a background update of embeddings and models.
Evaluation and Results
The framework was tested on three scientific datasets: BraggPeaks (X-ray diffraction), CookieBox (electron spectroscopy), and Tomography (3D reconstruction). A case study using the BraggNN model highlighted the following performance gains:
- Labeling Efficiency: fairDS provided a 100x speedup in data labeling compared to conventional physics codes.
- Training Speed: Fine-tuning a recommended model from the Zoo reached convergence 200x faster than training from scratch.
- End-to-End Performance: fairDMS was 92x faster than a high-performance baseline using 1,440 CPU cores and 600x faster than a single-workstation approach.
Conclusion
fairDMS demonstrates that treating ML components as FAIR assets can drastically improve the agility of scientific workflows. By indexing models by their training data distributions and using self-supervised embeddings for rapid labeling, the system maintains high accuracy even as experimental conditions shift. Future work will focus on expanding the framework to non-image data types and optimizing its scalability in cloud environments.
Summary updated