Testing Multimodal LLMs for Technical Diagram Generation

    This article examines how multimodal large language models can generate technical diagrams from natural language descriptions. Through two practical scenarios—a data processing pipeline for a computational materials tool and an interpretive structural model in safety engineering—it shows a reusable four-stage workflow, a prompt template, and common pitfalls to avoid. Readers will learn how to structure inputs, constrain layouts, apply targeted revisions, and export version-controlled vector assets, along with the current capability boundaries and cloud-based engineering options.

    1. Why Technical Diagrams Are Hard to Produce

    In engineering practice, flowcharts, data flow diagrams, and structural model diagrams are standard components of technical documentation. Yet their production cost remains high. Diagramming tools have a learning curve, and layout alignment, consistent color schemes, and legend conventions all require manual upkeep. Worse still, when an upstream process changes, the diagram and the document can easily fall out of sync, creating a situation where the documentation is outdated the moment it is finished.

    The shift brought by multimodal large language models is that they turn diagramming from an operational problem into a descriptive one. Users simply describe the inputs, processing steps, outputs, and branching logic in natural language, and the model produces a structurally complete schematic. Subsequent adjustments are also made through natural language instructions. It is worth emphasizing that model capabilities vary widely, so this article only covers general capabilities common across the industry and does not address proprietary features of any specific product.

    2. Scenario 1: A Data Processing Pipeline Diagram for Computational Software

    The first scenario is a technical flowchart for a material thermodynamic parameter calculation tool. The typical pipeline for such a tool is: read raw data in tabular form, identify key information such as crystal structure through pattern matching, then proceed to numerical solving and regression fitting, and finally output characteristic values, phase fractions, and vector plots.

    The first-round prompt only needs to describe the backbone, for example:

    1. Draw a horizontal four-column technical flowchart:
    2. Input data (table files) -> Parsing and phase identification (regex matching FCC/BCC)
    3. -> Core algorithms (Newton's method forward difference, Gaussian process regression) -> Output (characteristic quantities, phase fractions, vector plots)
    4. Requirement: color-code the sections, keep arrow directions one-way, and label key intermediate variables

    The first draft is usually already presentable: clear columns, section-based coloring, and technical details abstracted into document and code symbols. What truly determines usability is the second round of revisions. Common issues fall into three categories: missing key intermediate variables, modules that do not exist in the process, and improper use of branding and identifiers. The corresponding feedback should be specific to node names and positions, for example:

    1. 1) Add a "Parameter calculation (characteristic quantities, phase transition temperature difference)" node after the algorithm stage;
    2. 2) Remove the redundant segregation trajectory module;
    3. 3) Remove the external tool identifier, standardize English capitalization, and replace it with the in-house identifier in the attachment.

    The ideal result is that the new node is inserted accurately, the redundant module is removed, and the overall color scheme and layout do not break due to the edits. This shows that the model can not only translate technical documentation into a visual language but also accept structured, locatable iterative instructions.

    3. Scenario 2: An Analysis Diagram for an Interpretive Structural Model

    The second scenario is interpretive structural model analysis, commonly used in safety engineering. Its input is a pairwise relationship matrix, and its output is a hierarchical skeleton diagram: factors are divided into a driving layer, an intermediate layer, and a surface layer, with arrows expressing the direction of influence. The difficulty of this type of diagram lies not in aesthetics but in semantic correctness—if the layer assignment or the direction of relationships is drawn incorrectly, the conclusion will be misread.

    There are three practical points: first, explicitly provide the basis for layer division and the meaning of relationship symbols in the prompt; second, require the model to output a verifiable list of elements before generating the graphic; third, inline the matrix data as table text to prevent the model from filling in relationships out of thin air.

    4. A Reusable Four-Stage Workflow

    1. Structured input: first write out the three parts—input, processing, and output—then add branches and exception paths.
    2. First-draft generation: constrain the canvas orientation, number of columns, color semantics, and arrow rules.
    3. Targeted revision: issue instructions item by item under the categories of “add / remove / modify,” solving only one type of problem at a time.
    4. Asset consolidation: after finalizing, export to a vector format, place it under version control, and maintain it in the same repository as the documentation.

    5. Prompt Template and Pitfall Checklist

    1. Role: technical documentation diagram assistant
    2. Input: {data / matrix / API specification}
    3. Processing: {step 1..n, including algorithm names and key variables}
    4. Output: {result items}
    5. Constraints: one-way arrows; same color for the same layer; no more than 5 legend items; no modules that were not provided

    Common pitfalls include the model adding modules that do not exist, writing abbreviations with incorrect capitalization, inconsistency between the legend and the terminology in the text, and bitmap images becoming blurry when enlarged. The way to avoid them is to put a glossary up front, make the “do not add” constraint explicit, and prioritize vector output.

    6. Capability Boundaries and Engineering Recommendations

    A rational view is needed: models are good at generating structurally clear first drafts and executing precisely located modifications, but very large node counts, strict automatic layout, and formal verification still require manual review. To integrate this capability into a pipeline, a combination of general cloud services can be used—object storage to hold diagram sources and attachments, a message queue to decouple generation tasks, a container platform to host inference services, and logging plus monitoring alerts to track success rate and latency—thereby turning a one-off demonstration into a sustainable documentation production capability.