Network architecture search of X-ray based scientific applications

Adarsha Balaji, Ramyad Hadidi, Gregory Kollmer, Mohammed E. Fouda, Prasanna BalaprakasharXiv 2024 · DOI

Introduction

High-resolution scientific imaging, particularly X-ray and electron diffraction microscopy, is fundamental to material science at the atomic level. However, these techniques produce a "data deluge"—massive volumes of information that traditionally require computationally expensive offline processing. While Deep Neural Networks (DNNs) like BraggNN (for peak detection) and PtychoNN (for 3D reconstruction) have revolutionized this field, they are typically designed manually. This manual approach often leads to "overweight" models that are inefficient for "edge" deployment—directly on devices connected to microscopes.

To address these inefficiencies, researchers applied automated Neural Architecture Search (NAS) using the DeepHyper framework. By moving beyond manual tuning, the study explored a vast search space including architecture types (MLP vs. CNN), structural parameters (layer depth, filter counts), and training hyperparameters.

A key advantage of the DeepHyper framework is its search efficiency. As shown in Figure 1, DeepHyper reaches optimal validation loss solutions faster and more consistently than other state-of-the-art tools like Optuna.

Validation loss convergence comparing DeepHyper and Optuna across different quantiles.

Multi-Objective Optimization and the Pareto Front

The researchers employed multi-objective optimization to find the ideal balance between scientific accuracy (Mean Absolute Error) and model complexity (number of parameters). This approach identifies a "Pareto front"—a set of models where no single objective can be improved without degrading another.

The results, visualized in Figure 5, demonstrate that the manually designed baseline models were significantly sub-optimal. The automated search identified architectures that were simultaneously more accurate and substantially smaller.

Comparison of single and multi-objective optimization showing the Pareto front relative to the baseline model.

Key Results and Edge Performance

The "auto-tuned" models delivered impressive gains across both primary scientific tasks:

  • BraggNN Optimization: Achieved a 31.03% improvement in peak detection accuracy while reducing model size by 87.57%. On the Nvidia Jetson AGX Orin edge platform, this translated to 10.51% faster inference and a 44.18% reduction in energy consumption.
  • PtychoNN Optimization: Improved reconstruction accuracy by 16.77% with a 12.82% reduction in model size, leading to 15.34% lower energy consumption on edge hardware.

Conclusion

This research proves that AutoML can significantly outperform human experts in designing neural networks for specialized scientific domains. By optimizing for both accuracy and hardware efficiency, NAS enables real-time, energy-efficient processing at the edge, paving the way for more responsive and sustainable high-resolution imaging laboratories. Future work will expand the search space to include more complex operators and broader scientific imaging modalities.

Summary updated

BibTeX
@misc{balaji2024network,
  author = {Adarsha Balaji and Ramyad Hadidi and Gregory Kollmer and Mohammed E. Fouda and Prasanna Balaprakash},
  title = {{Network architecture search of X-ray based scientific applications}},
  year = {2024},
  eprint = {2404.10689},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.10689},
}
Figure