Network architecture search of X-ray based scientific applications (2404.10689v1)
Abstract: X-ray and electron diffraction-based microscopy use bragg peak detection and ptychography to perform 3-D imaging at an atomic resolution. Typically, these techniques are implemented using computationally complex tasks such as a Psuedo-Voigt function or solving a complex inverse problem. Recently, the use of deep neural networks has improved the existing state-of-the-art approaches. However, the design and development of the neural network models depends on time and labor intensive tuning of the model by application experts. To that end, we propose a hyperparameter (HPS) and neural architecture search (NAS) approach to automate the design and optimization of the neural network models for model size, energy consumption and throughput. We demonstrate the improved performance of the auto-tuned models when compared to the manually tuned BraggNN and PtychoNN benchmark. We study and demonstrate the importance of the exploring the search space of tunable hyperparameters in enhancing the performance of bragg peak detection and ptychographic reconstruction. Our NAS and HPS of (1) BraggNN achieves a 31.03\% improvement in bragg peak detection accuracy with a 87.57\% reduction in model size, and (2) PtychoNN achieves a 16.77\% improvement in model accuracy and a 12.82\% reduction in model size when compared to the baseline PtychoNN model. When inferred on the Orin-AGX platform, the optimized Braggnn and Ptychonn models demonstrate a 10.51\% and 9.47\% reduction in inference latency and a 44.18\% and 15.34\% reduction in energy consumption when compared to their respective baselines, when inferred in the Orin-AGX edge platform.
- Nanoscale x-ray imaging of circuit features without wafer etching. Physical Review B, 95(10):104111, 2017.
- Imaging of biological materials and cells by x-ray scattering and diffraction. ACS nano, 11(9):8542–8559, 2017.
- Correlated x-ray 3d ptychography and diffraction microscopy visualize links between morphology and crystal structure of lithium-rich cathode materials. IScience, 11:356–365, 2019.
- Far-field high-energy diffraction microscopy: a non-destructive tool for characterizing the microstructure and micromechanical state of polycrystalline materials. Microscopy Today, 25(5):36–45, 2017.
- Three-dimensional bragg coherent diffraction imaging of an extended zno crystal. Journal of applied crystallography, 45(4):778–784, 2012.
- Braggnn: fast x-ray bragg peak analysis using deep learning. IUCrJ, 9(1):104–113, 2022.
- Ai-enabled high-resolution scanning coherent diffraction imaging. Applied Physics Letters, 117(4):044103, 2020.
- Autotune: A derivative-free optimization framework for hyperparameter tuning. In Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 443–452, 2018.
- Optuna: A next-generation hyperparameter optimization framework. In Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery & data mining, pages 2623–2631, 2019.
- Deephyper: Asynchronous hyperparameter search for deep neural networks. In 2018 IEEE 25th international conference on high performance computing (HiPC), pages 42–51. IEEE, 2018.
- Taking human out of learning applications: A survey on automated machine learning. arXiv preprint arXiv:1810.13306, 2018.
- Particle swarm model selection. Journal of Machine Learning Research, 10(2), 2009.
- An overview of evolutionary algorithms for parameter optimization. Evolutionary computation, 1(1):1–23, 1993.
- Optimizing deep learning hyper-parameters through an evolutionary algorithm. In Proceedings of the workshop on machine learning in high-performance computing environments, pages 1–5, 2015.
- Hyperband: A novel bandit-based approach to hyperparameter optimization. Journal of Machine Learning Research, 18(185):1–52, 2018.
- Hyperopt: a python library for model selection and hyperparameter optimization. Computational Science & Discovery, 8(1):014008, 2015.
- Methods for multi-objective optimization: An analysis. Information Sciences, 293:338–350, 2015.
- Deap: Evolutionary algorithms made easy. The Journal of Machine Learning Research, 13(1):2171–2175, 2012.
- Hyperband: A novel bandit-based approach to hyperparameter optimization. J. Mach. Learn. Res., 18:185:1–185:52, 2016.