TL;DR
While synthetic text has supercharged LLM reasoning, multimodal models remain held back by a "visual-logic divergence"—Text-to-Image models generate visually stunning scientific diagrams that are factually and mathematically wrong. This paper introduces ImgCoder, a code-driven image synthesis framework, and SciGenBench, a rigorous evaluation benchmark, proving that fine-tuning Large Multimodal Models (LMMs) on verified synthetic scientific diagrams unlocks predictable, scalable reasoning gains.
What Problem Does This Paper Address?
State-of-the-art Text-to-Image (T2I) diffusion models are incredibly good at generating realistic art, but they fail miserably at satisfying strict geometric, physical, and relational constraints. A diagram might look like a textbook illustration at a glance, but contain five capacitors instead of the specified four, or plot a mathematical function with incorrect intercepts.
Furthermore, standard computer vision metrics like FID or CLIP only measure perceptual similarity and coarse semantic alignment; they completely miss these critical logical errors. This lack of reliable, structurally accurate scientific imagery creates a massive data bottleneck for training multimodal models in STEM fields.
Methods
The authors systematically investigate two distinct paradigms for scientific image generation:
- Pixel-based Synthesis: Direct end-to-end generation using state-of-the-art T2I models (like Flux2 and Nanobanana-Pro) combined with a custom "constraint-injection" prompting strategy to enforce information fidelity and textbook style.
- Code-based Synthesis (ImgCoder): A novel, logic-driven framework that decouples structural planning from visual rendering. Instead of generating pixels directly, ImgCoder uses an explicit "Understand $\rightarrow$ Plan $\rightarrow$ Code" workflow. It prompts an LLM to first outline the geometric entities, coordinate systems, and labels, and then translate that plan into executable Python code (e.g., using Matplotlib) to render the image deterministically.
Datasets
The authors introduce SciGenBench, a specialized benchmark containing 1.4K problems spanning 5 subjects (Mathematics, Physics, Chemistry, Biology, and Universal cross-domain structures) and 25 distinct image types (e.g., circuit diagrams, molecular structures, function plots).
To evaluate these images rigorously, SciGenBench uses a hybrid protocol:
- Multi-dimensional LMM-as-Judge: Evaluates images across five dimensions: Correctness & Fidelity, Layout & Precision, Readability & Occlusion, Scientific Plausibility, and Expressiveness & Richness.
- Inverse Quiz Validation ($R_{inv}$): An automated pipeline that generates atomic, visually grounded multiple-choice questions based on the original problem text. A separate VQA model must answer these questions correctly solely by looking at the generated image. If it fails, the image lacks the necessary information utility.
Additionally, SciGenBench-SeePhys is introduced as a human-authored reference set derived from real-world physics problems to evaluate the distributional gap between real and synthetic data.
Key Insights and Ideas
- The Expressiveness-Precision Trade-off: There is a fundamental divide between generation paradigms. Pixel-based models offer rich visual expressiveness (textures, organic shapes) but lack precision. Code-based models guarantee mathematical and geometric exactness but result in "flat" or schematic visuals.
- Visual-Logic Divergence: Perceptual fidelity does not equal scientific correctness. Models with excellent FID or CLIP scores often score poorly on structural accuracy, proving that traditional vision metrics are blind to scientific logic.
- Domain-Specific Strengths: Highly structured domains like Math and Physics heavily favor code-based approaches. Conversely, visually rich domains like Biology benefit more from the organic shapes and textures generated by pixel-based diffusion models.
Key Results
- ImgCoder Dominates Precision:
Gemini-3-Pro-ImgCoderachieved the highest overall Inverse Validation Rate ($R_{inv}$) of 77.87%, outperforming the best pixel-based model,Nanobanana-Pro(73.41%), and open-source pixel baselines likeQwen-Image(38.86%). - Downstream Reasoning Boost: Fine-tuning an LMM (
Qwen3-VL-8B-Instruct) on rigorously verified synthetic scientific images yielded consistent performance gains on downstream benchmarks like GEO3K and MathVision. The filteredNanobanana-Pro (Filt)dataset achieved a 3.7-point absolute gain over the baseline. - Predictable Scaling Laws: The utility of synthetic scientific data follows a clear log-linear growth trend as data volume scales, mirroring the "Data Engine" trends well-established in the text domain.
Limitations and Future Work
While code-based methods excel at precision, they struggle to generate complex textures or organic shapes (e.g., detailed anatomical diagrams in biology). On the flip side, pixel-based models still suffer from "dense data collapse" when trying to render complex tables or matrices.
The authors suggest that the ultimate path forward lies in hybrid approaches—co-evolving code-based structure planning with pixel-based texture rendering to achieve both perfect scientific precision and rich visual expressiveness.
Summary updated