PtyRAD: A High-performance and Flexible Ptychographic Reconstruction Framework with Automatic Differentiation

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lee, Chia-Hao, Zeltmann, Steven E., Yoon, Dasol, Ma, Desheng, Muller, David A.
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916882939904000
author Lee, Chia-Hao
Zeltmann, Steven E.
Yoon, Dasol
Ma, Desheng
Muller, David A.
author_facet Lee, Chia-Hao
Zeltmann, Steven E.
Yoon, Dasol
Ma, Desheng
Muller, David A.
contents Electron ptychography has recently achieved unprecedented resolution, offering valuable insights across diverse material systems, including in three dimensions. However, high-quality ptychographic reconstruction is computationally expensive and time consuming, requiring a significant amount of manually tuning even for experts. Additionally, essential tools for ptychographic analysis are often scattered across multiple software packages, with some advanced features available only in costly commercial software like MATLAB. To address these challenges, we introduce PtyRAD, an open-source software framework offers a comprehensive, flexible, and computationally efficient solution for electron ptychography. PtyRAD provides seamless optimization of multiple parameters--such as sample thickness, local tilts, probe positions, and mixed probe and object modes--using gradient-based methods with automatic differentiation (AD). By utilizing PyTorch's highly optimized tensor operations, PtyRAD achieves up to a 17x speedup in reconstruction time compared to existing packages without compromising image quality. In addition, we propose a real-space depth regularization, which avoids wrap-around artifacts and can be useful for twisted two-dimensional (2D) material datasets and vertical heterostructures. Moreover, PtyRAD integrates a Bayesian optimization workflow that streamlines hyperparameter selection. We hope the open-source nature of PtyRAD will foster reproducibility and community-driven development for future advances in ptychographic imaging.
format Preprint
id arxiv_https___arxiv_org_abs_2505_07814
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle PtyRAD: A High-performance and Flexible Ptychographic Reconstruction Framework with Automatic Differentiation
Lee, Chia-Hao
Zeltmann, Steven E.
Yoon, Dasol
Ma, Desheng
Muller, David A.
Materials Science
Optics
Electron ptychography has recently achieved unprecedented resolution, offering valuable insights across diverse material systems, including in three dimensions. However, high-quality ptychographic reconstruction is computationally expensive and time consuming, requiring a significant amount of manually tuning even for experts. Additionally, essential tools for ptychographic analysis are often scattered across multiple software packages, with some advanced features available only in costly commercial software like MATLAB. To address these challenges, we introduce PtyRAD, an open-source software framework offers a comprehensive, flexible, and computationally efficient solution for electron ptychography. PtyRAD provides seamless optimization of multiple parameters--such as sample thickness, local tilts, probe positions, and mixed probe and object modes--using gradient-based methods with automatic differentiation (AD). By utilizing PyTorch's highly optimized tensor operations, PtyRAD achieves up to a 17x speedup in reconstruction time compared to existing packages without compromising image quality. In addition, we propose a real-space depth regularization, which avoids wrap-around artifacts and can be useful for twisted two-dimensional (2D) material datasets and vertical heterostructures. Moreover, PtyRAD integrates a Bayesian optimization workflow that streamlines hyperparameter selection. We hope the open-source nature of PtyRAD will foster reproducibility and community-driven development for future advances in ptychographic imaging.
title PtyRAD: A High-performance and Flexible Ptychographic Reconstruction Framework with Automatic Differentiation
topic Materials Science
Optics
url https://arxiv.org/abs/2505.07814