Prompt Engineering for Scientific Figures with Multimodal LLMs: A Practical Guide
This guide explains how to use general-purpose multimodal large language models to create scientific figures for research and academic communication. It covers the core requirements and challenges of scientific illustration, a structured prompt engineering framework, a reusable prompt template, and practical strategies for iterative refinement and post-processing so that AI-generated figures can better support rigorous academic use.
In research work and academic communication, high-quality figures are essential for conveying complex logic and core findings. Traditional scientific illustration often depends on professional vector graphics or 3D modeling tools. These tools have steep learning curves, and for researchers without a design background, building a figure that combines scientific rigor with visual clarity from scratch can take considerable time. In recent years, multimodal large language models have made significant progress in image generation and understanding, offering a new path to automate scientific figure creation with lower cost and higher efficiency. This article discusses how to use general-purpose multimodal models to generate scientific figures, with a focus on prompt construction logic and best practices.
1. Core Requirements and Generation Challenges for Scientific Figures
Before using large models to generate scientific figures, it is important to distinguish scientific figures from ordinary artistic illustrations. Scientific figures have three core requirements:
- Scientific rigor: Every element, connection, and hierarchical relationship in the figure must accurately reflect objective scientific facts or experimental mechanisms. There should be no logical gaps or reversed causal relationships.
- Standardization and consistency: Academic journals have strict requirements for figure resolution, color mode (often CMYK), font format, and labeling conventions. Figures should remain highly clean and avoid redundant decoration.
- Visual readability: While maintaining information density, appropriate color choices, white space, and element layout should help readers quickly identify the key points of the figure.
The main challenge for large models in generating such images is how to translate abstract scientific mechanisms into concrete visual elements while ensuring that the generated image does not contain redundant “hallucinated” elements, such as meaningless garbled text or distorted biological structures. This requires users to master highly structured prompt engineering techniques.
2. A Prompt Engineering Framework for Scientific Figures
To make a large model output figures that meet academic standards, prompts should not be casual conversational descriptions. They should follow a rigorous logical framework. An effective scientific figure prompt usually contains the following four core modules:
2.1 Role and Background Setting
Assigning a specific expert role to the model can activate knowledge distributions related to academic publishing in its parameter space. For example, setting the model as a “top academic journal illustration designer” or “senior scientific visualization expert” can encourage a restrained, rigorous academic style rather than an overly exaggerated artistic style.
2.2 Core Subject and Composition Logic
Clearly state the core concept to be drawn. For a mechanism diagram, describe the spatial relationships and logical flow among components in detail. For example: “From left to right, show substance A entering the cell membrane, binding to receptor B, and then activating the downstream C pathway.” Structured spatial descriptions can effectively reduce arbitrary composition choices by the model.
2.3 Visual Style and Color Constraints
Scientific figures should avoid overly colorful or decorative designs. Color specifications should be enforced in the prompt. Common constraints include: “use a low-saturation academic color palette,” “use blue, white, and gray as the main colors,” “flat vector style,” and “white background for layout convenience.” The model can also be asked to reference the layout style of widely recognized top journals, but avoid directly requesting imitation of a specific single image to prevent infringement or style overfitting.
2.4 Detail Avoidance and Negative Prompts
Large models often add meaningless English letters or distorted symbols when generating images. Explicit negative constraints should be included in the prompt, such as “avoid any text and letters,” “do not include meaningless noise,” and “avoid plastic-like lighting and shadows from 3D rendering.”
3. A Complete Practical Prompt Template
The following is a general and structured prompt template for scientific figures. Readers can replace the variables in brackets according to specific needs:
# RoleYou are a senior academic visualization expert who specializes in drawing mechanism diagrams for top scientific journals.# TaskPlease generate a scientific diagram about 【[insert the specific scientific mechanism here, for example: targeted delivery of nanomedicine]】.# Spatial Layout & Logic- The overall composition is divided into three horizontal stages: [Stage 1: blood circulation], [Stage 2: penetration through vascular endothelium], and [Stage 3: intracellular release].- In Stage 1, show round nanoparticles flowing in blood vessels.- In Stage 2, show the nanoparticles leaking through gaps in the vessel wall.- In Stage 3, show the nanoparticles disassembling in the cytoplasm and releasing their internal payload.- Use minimal arrows between stages to indicate the passage of time or space.# Style & Color Constraints- Style: minimalist flat 2D illustration, clear lines, sharp edges.- Color palette: use a low-saturation scheme, with dark blue and light gray as the main colors. Use semi-transparent light colors for blood vessels and cell structures to highlight the main particles.- Background: pure white background with sufficient white space.- Material: no gradients, no 3D lighting or shadows, no plastic-like appearance; purely graphic characteristics.# Negative Prompts- Strictly prohibit any letters, words, numbers, or text symbols.- Avoid distorted lines, blurred edges, and unnecessary decorative elements.
4. Iterative Refinement and Post-Processing of Generated Results
Even with a well-designed prompt, a large model may produce minor flaws in a single generation. In practical research work, a workflow of “model-generated skeleton, manual refinement” is recommended:
- Stepwise generation strategy: For extremely complex system diagrams, do not try to generate the entire figure at once. Split it into several local modules, generate them separately, and then assemble and lay them out using standard image processing software.
- Post-editing text and labels: Because most general-purpose multimodal models still have limitations in accurate text rendering, the safest approach is to let the model generate a text-free graphic structure, then manually add technical term labels and axis information in vector graphics software. This ensures font standardization and improves figure readability.
- Multi-round interactive fine-tuning: If the first generated image has structural deviations, there is no need to discard the prompt and start over. Additional instructions can be used for fine-tuning, for example: “Keep the overall style unchanged, but reduce the number of nanoparticles in Stage 2 and make them slightly larger.”
5. Conclusion
Using multimodal large models to generate scientific figures essentially frees researchers from tedious software operations so they can focus more on expressing scientific logic. Through structured prompt engineering, developers and researchers can significantly improve the efficiency of academic figure production. Mastering the prompt framework and iteration strategies described above can make large models an indispensable and efficient assistant in research work.
