UniSTEM: A Unified Multimodal Model for Electron-Microscopy Understanding and Generation

Linghao Kong, Yunfan Yang, Hanling Zhang, Zixuan Hu, Guanyu Chen, Ben Fei, Shixiang Tang, Xiaopeng Hong, Wangmeng ZuoarXiv 2026

TL;DR

General-purpose multimodal AI models can chat about everyday photos, but they stumble when asked to pinpoint a single missing atom or reconstruct an electric field in an electron microscope image. UniSTEM solves this by unifying six atomic-scale materials-science tasks—spanning both structured prediction and image generation—into a single 7B-parameter model. Using a clever "train-in-sequence, finish-in-parallel" recipe guided by task-specific expert models, UniSTEM beats specialized single-task experts on 9 out of 13 benchmark metrics.

What Problem Does This Paper Address?

Scanning transmission electron microscopy (STEM) lets materials scientists see individual columns of atoms, spot crystal defects, and even map local electric fields. Analyzing these micrographs requires a mix of very different skills:

  • Understanding tasks: Localizing atomic vacancies or dislocations, identifying crystal structures, and predicting material properties like electrical conductivity.
  • Generation tasks: Reconstructing differential phase contrast (DPC) direction fields and denoising grainy, low-dose micrographs.

Right now, scientists face a frustrating split. General-purpose vision-language models (like Qwen3-VL or InternVL3.5) lack atomic-scale grounding and score near zero on defect detection. Meanwhile, specialized deep-learning tools handle only one narrow step at a time. Trying to jam all these discrete text outputs and continuous image outputs into one model via standard joint training causes task interference—improving one capability often degrades another.

Figure 1. Six STEM tasks spanning structured prediction (U1–U4) and image generation (G1–G2).

Methods

The authors adapt BAGEL-7B-MoT, a pretrained dual-tower foundation model that has separate "understanding" and "generation" parameter paths sitting above shared multimodal attention. Rather than redesigning the architecture, they focus on how to train it without the tasks stepping on each other's toes:

  1. Expert Preparation & Warm-Start: First, they train five frozen "expert" models via supervised fine-tuning (SFT) on individual tasks (plus one shared expert for conductivity and DPC). They pick the vacancy-detection expert as the warm-start checkpoint so the unified model begins with strong atomic-localization skills.
  2. Stage 1 — Serial Dual-Tower Training: Because image generation depends on text prompts and image features encoded by the understanding path, they train the understanding tower first using mixed SFT. Whenever a task lags behind its expert (in this case, crystal structure prediction), they add targeted on-policy distillation (OPD) from that frozen expert. Next, they freeze the understanding tower and train the generation tower using flow-matching SFT plus state-space OPD on denoising rollouts.
  3. Stage 2 — Parallel Completion & Assembly: To polish both towers without gradient competition, they fork the model into two parallel branches. Branch A freezes generation and replays understanding tasks (weighted toward vacancy detection). Branch B freezes understanding and continues generation training. Finally, they simply snap together Branch A's understanding tower and shared modules with Branch B's generation tower—no weight averaging or extra joint training required.
Figure 2. UniSTEM training through expert-guided preparation, Stage 1 serial dual-tower training, and Stage 2 parallel completion and assembly.

Datasets

To evaluate everything fairly, the authors introduce a six-task STEM benchmark built from a public first-principles crystal and transport database:

  • Simulations: STEM images and DPC signals are generated using PRISM multislice calculations across varied detector modes (BF, ABF, ADF, HAADF), voltages (200/300 kV), and defocus settings.
  • Splits: Training and test sets are strictly disjoint by crystal-structure identifier, ensuring no views or noise realizations of the same crystal leak across splits. 1% of the training pool is held out for validation.

Key Insights and Ideas

  • Order matters: Adapting the understanding tower before the generation tower gives the generator a stable, domain-adapted representation to read from. Reversing the order hurts final performance across several metrics.
  • Targeted feedback beats brute force: Adding expert distillation only to lagging tasks—and keeping it paired with ground-truth supervision—prevents the model from forgetting earlier skills. Distillation alone, by contrast, severely degrades generation quality.
  • Parallel assembly avoids tug-of-war: Forking the towers in Stage 2 and merging them at the end outperforms joint fine-tuning on 11 of 13 metrics, proving that separate optimization followed by assembly is a practical way to unify conflicting modalities.
  • Better images don't always mean better predictions: In a serial pipeline (denoising $\rightarrow$ DPC reconstruction $\rightarrow$ conductivity prediction), denoising dramatically boosts DPC image quality, yet it doesn't always lower downstream conductivity error.

Key Results

UniSTEM outperforms the specialized task experts on 9 of 13 reported metrics while handling all six tasks in one model:

  • Dislocation detection (U3): F1@20px improves by 6.7% over the expert (0.720 vs. 0.675).
  • Conductivity prediction (U4): $\sigma_p$ log-MAE drops by 15.8% (0.650 vs. 0.772).
  • DPC field reconstruction (G1): Direction-angle error drops by 12.8% ($15.20^\circ$ vs. $17.44^\circ$).
  • Denoising (G2): Reaches 33.03 dB PSNR (beating the 32.47 dB expert), cleanly preserving atomic-column rings where competing models leave noise or hallucinate false atoms.
G1 DPC direction-field reconstruction comparison
G2 denoising comparison

Limitations and Future Work

UniSTEM isn't a clean sweep: it still trails the task experts on fixed-pixel vacancy F1 (11.0% lower) and whole-map DPC SSIM (3.8% lower). Additionally, while the authors show qualitative denoising examples on real micrographs in the appendix, the main benchmark relies on simulated data. Testing serial error propagation on registered experimental measurements is a key next step to prove scientific reliability in the lab.

Summary updated

BibTeX
@misc{kong2026unistem,
  author = {Linghao Kong and Yunfan Yang and Hanling Zhang and Zixuan Hu and Guanyu Chen and Ben Fei and Shixiang Tang and Xiaopeng Hong and Wangmeng Zuo},
  title = {{UniSTEM: A Unified Multimodal Model for Electron-Microscopy Understanding and Generation}},
  year = {2026},
  eprint = {2611.40639},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40639},
}
Figure