Deep material priors
Multimodal vision transformer foundation models for electron microscopy, with Toyota Research Institute.
Current project. A $1.2M program with the Toyota Research Institute to build physics-aware foundation models for materials characterization.
Most machine learning in electron microscopy is still built one task at a time: a network for strain, another for orientation, another for thickness, each trained on its own small dataset. Deep material priors aims to replace that with a single pretrained foundation model that has learned what diffraction from real materials looks like, enabling fast-training of output heads for many downstream tasks or to be used as a prior inside physics-based reconstructions.
The model is a multimodal transformer:
- A vision transformer (ViT) encodes 4D-STEM diffraction patterns, alongside encoders for crystal structure, chemical composition, X-ray diffraction data, etc.
- A fusion backbone that combines the modalities into a shared representation.
- Self-supervised pretraining with masked autoencoding and super-resolution objectives, followed by supervised heads for physical quantities such as sample thickness and crystal orientation.
Training data comes from large-scale multi-slice simulations across crystalline and amorphous structures, passed through a detailed augmentation pipeline that models real detectors, noise, backgrounds, and experimental geometry, so that the model transfers directly to experimental data. Training uses DDP/FSDP and is performed on the Perlmutter system at NERSC.
Early results
Small pretaining runs are promising and already produce a model that can fill in missing information in sparse, low-dose diffraction data. Initial testing uses the pre-trained backbone and a simple output head to center diffraction patterns (a non-trivial task because the brightest beam is not always the central beam), which is an instrumental step in pre-processing multi-angle precession electron diffraction (MAPED) data.
Pretrained models as priors
The longer-term goal of this project is to use the pretrained representation as a deep material prior inside physics-based reconstructions, in the same way my deep generative priors for ptychography regularize the object. The difference is that the prior is learned once, across many materials, and will help regularize the reconstruction towards only physically-plausible objects given information that is known about the material.