Vision Transformer for Multi-Domain Phase Retrieval in Coherent Diffraction Imaging
Jialun Liu, David Yang, Ian Robinson
TL;DR
This work tackles the challenging strong-phase, multi-domain phase retrieval problem in Bragg coherent diffraction imaging by introducing an unsupervised Fourier ViT that performs global spectral token mixing directly on diffraction magnitudes. The model combines a shallow CNN front-end, multiscale Fourier attention, and a CNN decoder to reconstruct complex real-space density (amplitude and phase) within a fixed support, trained with a hybrid Fourier-space loss. On synthetic Voronoi-domain data, Fourier ViT achieves low or near-zero reciprocity-space error and can resolve up to 19 domains, while maintaining robustness under realistic noise; experiments on STO and La$_{2-x}$Ca$_x$MnO$_4$ demonstrate competitive to superior performance relative to iterative and CNN baselines, with comparable or better chi-squared and high fidelity to domain structures. Overall, Fourier ViT provides a fast, unsupervised pathway to reliable multi-domain BCDI reconstructions, offering robustness to initialization and practical utility for in situ analyses, with future directions including explicit partial-coherence modeling and uncertainty quantification.
Abstract
Bragg coherent diffraction imaging (BCDI) phase retrieval becomes rapidly difficult in the strong-phase regime, where a crystal contains distortions beyond half a lattice spacing. An important special case is the phase domain problem, where blocks of a crystal are displaced with sharp jumps at domain walls. The strong-phase, here defined as beyond $\pm π/2$, generates split Bragg peaks and dense fringe structure for which classical iterative solvers often stagnate or return different solutions from different initialisations. Here, we introduce an unsupervised Fourier Vision Transformer (Fourier ViT) to solve this block-phase, multi-domain phase-retrieval problem directly from measured 2D Bragg diffraction intensities. Fourier ViT couples reciprocal-space information globally through multiscale Fourier token mixing, while shallow convolutional front and back-ends provide local filtering and reconstruction. We validate the approach on large-scale synthetic datasets of Voronoi multi-domain crystals with strong-phase contrast under realistic noise corruptions, and on experimental diffraction from a $\mathrm{La}_{2-x}\mathrm{Ca}_x\mathrm{MnO}_4$ nanocrystal. Across the regimes considered, Fourier ViT achieves the lowest reciprocal-space mismatch ($χ^2$) among the compared methods and preserves domain-resolved phase reconstructions for increasing numbers of domains. On experimental data, with the same real-space support, Fourier ViT matches the iterative benchmark $χ^2$ while improving robustness to random initialisations, yielding a higher success rate of low-$χ^2$ reconstructions than the complex convolutional neural network baseline.
