Towards Physics-Faithful Generation of Scientific Diagrams

Minghui Zhang, Jinxin Shi, Yifan Chang, Liangliang Zhao, Yuandong Pu, Qian Yu, Ming Hu, Hanxiao Zhang, Yun Gu, Yirong Chen, Yu Qiao, Bo Zhang, Xiangchao Yan, Bin Fu, Yihao LiuarXiv 2026

TL;DR

Current text-to-image models excel at photorealism but fail miserably at generating physically accurate scientific diagrams. This paper introduces Princigram, a framework that uses a Structured Physical Chain-of-Thought (SP-CoT) schema to inject explicit physical reasoning into multimodal models, resulting in diagrams that are not just visually plausible, but scientifically correct.

What Problem Does This Paper Address?

While state-of-the-art text-to-image (T2I) generators can render stunningly realistic scenes, they struggle with scientific diagrams where correctness depends on strict physical laws rather than aesthetics. For instance, generic models routinely draw forces pointing the wrong way, broken circuit topologies, or incorrect light refraction angles.

The authors identify two compounding gaps causing this failure:

  1. The Data Gap: Web-scale datasets contain few high-quality physics diagrams, and their alt-text captions are physically shallow (e.g., "a diagram of a pendulum").
  2. The Supervision Gap: Standard captioning describes appearance rather than the underlying reasoning or constraints (like governing equations) that dictate why a diagram must look a certain way.

Furthermore, standard evaluation metrics like CLIP alignment or open-vocabulary detection cannot verify the geometric and physical relationships that determine a diagram's correctness.

State-of-the-art models fail to generate physically accurate diagrams, and standard evaluators cannot detect these errors.

Methods

Instead of altering model architectures, the authors close the supervision gap using data engineering. Their core contribution is Structured Physical Chain-of-Thought (SP-CoT), a per-subdiscipline JSON schema that decomposes a physics diagram into a five-step reasoning chain:

  1. Scenario: Scene and object identification.
  2. Parameters: State or parameterization.
  3. Structure: Interaction or structural analysis (e.g., force analysis in mechanics, circuit topology in electromagnetism).
  4. Laws: Coordinate systems and governing physical laws.
  5. Synthesis: Key physical relationships and idealizing assumptions.

Crucially, SP-CoT enforces strict fidelity rules that separate visually grounded facts (what is explicitly drawn) from physically inferred reasoning (what can be logically deduced). All mathematical expressions are typed symbolically in valid $\LaTeX$.

The authors train unified multimodal backbones (specifically BAGEL and Lumina-DiMOO) using a two-stage pipeline:

  • Pre-training: Broad training on millions of images with machine-generated SP-CoT annotations.
  • Supervised Fine-Tuning (SFT): Refining the model on a high-quality, expert-verified dataset.

At inference, a language model expands a user's raw prompt into the populated SP-CoT schema, which then conditions the image generator to draw the diagram.

Datasets

The authors curated a massive corpus of 4.3 million physics images spanning six subdisciplines: mechanics, electromagnetism, physical optics, thermodynamics, acoustics, and quantum mechanics.

From this corpus, they developed two key datasets:

  • Expert-Level SFT Subset: A high-quality tier of 115,037 image-annotation pairs verified and corrected by human experts.
  • VeriphyT2IBench: A new evaluation benchmark consisting of 1,283 held-out diagrams. Instead of using generic holistic scoring, each diagram's structured annotation is compiled into an item-specific bank of binary (yes/no) questions. A vision-language model judge (GPT-4o) answers these questions based on the generated image, decomposing the final score into specific physical facts.
Overview of the dataset curation, training pipeline, and evaluation framework.

Key Insights and Ideas

  • Supervision Over Architecture: Physical faithfulness is primarily a data problem. Training the exact same model architecture with structured physical annotations instead of flat text descriptions yields massive performance leaps.
  • The Power of Unified Backbones: Training a single network to handle both multimodal understanding (reasoning over the physics) and image generation (rendering the diagram) is highly effective because the network that "thinks" about the physics is the same network that draws it.
  • Reasoning vs. Appearance: Decomposing the evaluation by SP-CoT steps reveals that Princigram's primary advantage over strong closed models lies in the intermediate reasoning steps (Parameters, Structure, and Laws) rather than the purely visual endpoints.

Key Results

Princigram was evaluated against a broad suite of open and closed models on both the public GenExam benchmark and the new VeriphyT2IBench.

  • VeriphyT2IBench (Local Scoring): Princigram-BAGEL achieved the highest overall score of 75.69%, outperforming its unmodified backbone baseline (BAGEL) by 29.31 points. It also comfortably beat leading closed-source models like Gemini 2.5 Flash Image (69.98%) and GPT-Image-1 (68.32%).
  • Hard Tasks: In thermodynamics—the hardest subject for all models—Princigram reached 66.95%, while the best open-weight baseline scored below 33%.
  • Qualitative Improvements: Qualitatively, Princigram successfully renders correct force directions, accurate light refractions, and legible, physically meaningful symbols, whereas baseline models generate illegible gibberish or physically impossible layouts.
Qualitative comparison in mechanics showing Princigram correctly rendering connected blocks and force vectors.

Limitations and Future Work

  • Domain Scope: The current framework is strictly limited to physics and its six defined subdisciplines. Expanding to other quantitative sciences like chemistry or biology would require designing entirely new structured templates.
  • Pre-training Quality: The large-scale pre-training corpus relies on unverified, machine-generated annotations, meaning the quality of inferred fields still depends on the annotating model's baseline reasoning.
  • Room for Growth: Under strict evaluation metrics (requiring 100% of local physical checks to pass), all models—including Princigram—score near zero. Fully faithful diagram generation remains an open and challenging problem.

Summary updated

BibTeX
@misc{zhang2026towards,
  author = {Minghui Zhang and Jinxin Shi and Yifan Chang and Liangliang Zhao and Yuandong Pu and Qian Yu and Ming Hu and Hanxiao Zhang and Yun Gu and Yirong Chen and Yu Qiao and Bo Zhang and Xiangchao Yan and Bin Fu and Yihao Liu},
  title = {{Towards Physics-Faithful Generation of Scientific Diagrams}},
  year = {2026},
  eprint = {2608.13112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.13112},
}
Figure