QuPAINT: Physics-Aware Multimodal Reasoning for Quantum Material Characterization

Sankalp Pandey, Xuan-Bac Nguyen, Hoang-Quan Nguyen, Tim Faltermeier, Nicholas Borys, Hugh Churchill, Khoa LuuarXiv 2026

TL;DR

QuPAINT introduces a physics-aware multimodal large language model (MLLM) framework designed to automate the characterization of 2D quantum materials from optical microscopy images. By combining a physics-based data synthesis pipeline (Synthia) with a novel visual attention mechanism that highlights substrate-relative optical cues, QuPAINT accurately identifies and localizes rare monolayer flakes, significantly outperforming conventional vision models and general-purpose LLMs.

What Problem Does This Paper Address?

Two-dimensional (2D) quantum materials like graphene and transition-metal dichalcogenides (TMDs) exhibit extraordinary electronic and photonic properties that depend entirely on their layer thickness. A monolayer sheet behaves completely differently from a bilayer or trilayer sheet. To build devices out of these materials, researchers must manually hunt through optical microscopy images to find flakes of the exact right thickness.

This process is a massive bottleneck. The visual differences between adjacent layer counts are incredibly subtle, relying on minute changes in reflected color and intensity produced by thin-film interference. Furthermore, absolute colors change drastically depending on microscope illumination, camera white balance, and substrate oxide thickness. While standard computer vision models (like YOLO) excel at finding distinct objects, they fail to capture these delicate, context-dependent optical variations. Meanwhile, commercial general-purpose vision-language models often hallucinate or fail at precise spatial grounding in specialized scientific domains.

Methods

The authors introduce QuPAINT, a framework that reframes flake characterization as a grounded multimodal reasoning task. It consists of three core innovations:

  1. Synthia (Synthetic Materials Framework): To combat the scarcity of labeled monolayer data, Synthia generates realistic synthetic flakes. Instead of simple cut-and-paste augmentation, it uses the physics-based Transfer Matrix Method (TMM) to simulate true thin-film interference based on the material's refractive index. It maps these spectra to RGB space using the CIE 1931 standard and applies white-balance and substrate-aware calibration to seamlessly blend synthetic flakes onto real backgrounds without overlapping existing structures.
  2. Image-Grounded Reasoning Supervision (QMat-Instruct): The authors built an instruction-tuning dataset where an annotator VLM generates image-specific reasoning traces. Crucially, the model is trained to describe flakes using relative optical cues (e.g., "faint contrast relative to the substrate," "soft edges") rather than absolute colors, and is strictly barred from using unobservable data like AFM or Raman measurements.
  3. Physics-Informed Attention (PIA): Integrated directly into the visual pathway of the MLLM, the PIA module computes the Euclidean distance in CIELAB color space between each image patch and the dominant background substrate. This injects a strong physical prior into the model, forcing it to focus on subtle, substrate-relative optical deviations rather than just high-contrast, thick flakes.
Overview of the QuPAINT framework, showing data synthesis via Synthia, instruction generation, and the physics-informed architecture.

Datasets

  • Training Data: A hybrid dataset consisting of real microscopy images mixed with 400,000 synthetic samples generated by Synthia across seven distinct material systems (BN, Graphene, $\text{MoS}_2$, $\text{MoSe}_2$, $\text{MoWSe}_2$, $\text{WS}_2$, $\text{WSe}_2$).
  • QF-Bench: The authors introduced the largest real-world benchmark for this problem, containing 280,526 annotated flakes across eight material systems. Crucially, tungsten ditelluride ($\text{WTe}_2$) was completely excluded from the training corpus to serve as a strict test for zero-shot cross-material generalization.

Key Insights and Ideas

  • Relative Cues Over Absolute Colors: Absolute color is a trap in scientific microscopy due to lab-to-lab variations. Forcing the model to reason about how a flake looks relative to its surrounding substrate is the key to cross-domain generalization.
  • Textual Reasoning Calibrates Visual Confidence: Replacing static text templates with dynamic, image-specific reasoning traces doesn't necessarily help the model find more flakes, but it drastically sharpens its localization precision and confidence calibration. The model becomes much better at ranking its own predictions reliably.
  • Complementary Modalities: Physics-Aware Description (textual supervision) and Physics-Informed Attention (visual modulation) provide complementary gains. The visual prior tells the model where to look based on thin-film optics, while the text supervision teaches it how to interpret the subtle contrast.

Key Results

  • State-of-the-Art Detection: QuPAINT-8B achieved a general flake detection Average Precision (AP) of 45.6 and a monolayer detection AP of 37.3 on QF-Bench, substantially outperforming standard object detectors like YOLOv11-x (AP 29.6 / 19.8) and specialized baselines like MaskTerial.
  • Improved Grounding and Calibration: Switching from template-based text to image-grounded reasoning raised strict localization accuracy (IoU @ 0.75) from 13.8 to 15.5 and increased the confidence Area Under the Curve (AUC) for monolayers from 0.820 to 0.846.
  • Zero-Shot Material Transfer: When tested on the completely unseen material ($\text{WTe}_2$), QuPAINT maintained robust detection performance, proving that it successfully mastered transferable physical principles of thin-film optics rather than just memorizing dataset-specific textures.
Failure modes of conventional models versus QuPAINT's successful physics-aware grounding.

Limitations and Future Work

Despite its strong performance, the authors note several limitations:

  • Synthetic-to-Real Gap: While physics-grounded, synthetic data still cannot perfectly capture every real-world artifact, microscope defect, or complex flake stacking behavior.
  • Intrinsic Ambiguity: Determining the exact layer count from a single optical image remains fundamentally ambiguous under certain extreme illumination or substrate variations.
  • Severe Class Imbalance: Real-world datasets (including QF-Bench) are heavily dominated by thick flakes because monolayers are physically rare during exfoliation. This makes extreme few-layer identification an ongoing challenge that future work must address, perhaps through active learning loops or multi-modal data integration.

Summary updated

Abstract

Characterizing two-dimensional (2D) quantum materials by optical microscopy requires localizing exfoliated flakes and determining their layer thickness from subtle optical contrast and interference color to select suitable flakes for device fabrication. However, models face synthetic-to-real domain shifts and variation across materials, substrates, laboratories, and imaging conditions. We present QuPAINT, a physics-aware multimodal framework for transferable quantum flake characterization. The Synthetic Materials Framework (Synthia) generates diverse synthetic microscopy images while preserving layer-dependent optical behavior. Using these images, we construct QMat-Instruct, a multimodal instruction dataset with image-specific reasoning traces generated from verified annotations and constrained to observable optical cues. QuPAINT integrates these signals through Physics-Informed Attention (PIA), which injects substrate-relative optical priors into the visual representation to support grounded multimodal reasoning. For evaluation, we introduce QF-Bench, to our knowledge, the largest real-world benchmark for this problem, spanning diverse microscopy and substrate conditions. Using its verified annotations, we study counting, visual grounding, reasoning quality, confidence calibration, and transfer to an unseen material. QuPAINT-8B substantially outperforms prior methods and establishes state-of-the-art performance for both general and monolayer flake detection. Additional experiments show that image-grounded supervision improves strict spatial grounding and confidence calibration while preserving robust general flake detection on the unseen material.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
QF-BenchQuPAINT-8BAP45.6params=8B
Source quote
L726: 45.6
QF-BenchQuPAINT-8BAP37.3params=8B
Source quote
L729: 37.3
QF-BenchQuPAINT extension model, Template-Based supervisionGrnd.@7513.8Reduced-budget extension experiment; grounding accuracy at IoU 0.75 on the 1,186 QF-Ben…
Source quote
L764: 13.8
QF-BenchQuPAINT extension model, Image-Grounded supervisionGrnd.@7515.5Reduced-budget extension experiment; grounding accuracy at IoU 0.75 on the 1,186 QF-Ben…
Source quote
L770: 15.5
QF-BenchQuPAINT extension model, Template-Based supervisionConf. AUC0.820Reduced-budget extension experiment; mono-layer task on the 1,186 QF-Bench images commo…
Source quote
L766: 0.820
QF-BenchQuPAINT extension model, Image-Grounded supervisionConf. AUC0.846Reduced-budget extension experiment; mono-layer task on the 1,186 QF-Bench images commo…
Source quote
L772: 0.846
BibTeX
@misc{pandey2026qupaint,
  author = {Sankalp Pandey and Xuan-Bac Nguyen and Hoang-Quan Nguyen and Tim Faltermeier and Nicholas Borys and Hugh Churchill and Khoa Luu},
  title = {{QuPAINT: Physics-Aware Multimodal Reasoning for Quantum Material Characterization}},
  year = {2026},
  eprint = {2609.12202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.12202},
}
Figure