Manuscript Offprint
arXiv:2610.12954MathVis: Can AI Reason through Drawing? A Benchmark for Mathematical Figure Generation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
This paper introduces MathVis, a benchmark designed to evaluate LLMs' ability to visualize frontier mathematical problems and perform diagram-assisted reasoning. The benchmark consists of 512 tasks, each comprising a mathematical statement, a reference diagram, executable TikZ/SVG code, a Gold Intermediate Representation (IR), atomic rubrics, and error codes. Through rigorous evaluation, GPT-6-astra, Claude Fable 5, and Gemini 3.1 Pro achieve Pass@1 scores of merely 31.25%, 26.56%, and 22.85%, respectively. We found that although the tasks require visualization, LLMs still reason primarily through formal languages and symbols, rarely relying on visual diagrams. Furthermore, while the solutions generated by LLMs may contain all the necessary elements, they are often visually confusing to humans. Ultimately, this benchmark aims to visualize mathematical problems and promote research on enabling LLMs to simplify their reasoning via visual diagrams.
Keywords: Evaluation Benchmark · MathVis · Large Language Models · Advanced Mathematical Figure Generation · Executable Graphics · TikZ/SVG
1 Introduction
Formal language is central to modern mathematics, but diagrams and constructive methods remain useful for developing and communicating mathematical ideas.
MATHVIS-2026-09
PREPRINT
prove: every simple closed curve divides the plane into two regions for which it is the common boundary
(a) Diagram → intuition
(b) Formal proof → rigor


Figure 1: Visualizing the Jordan Curve Theorem. While the formal topological proof of this theorem is complex, a precise diagram delineating the inner and outer regions can make the reasoning process more intuitive.
In advanced research, text-based symbols can struggle to convey complex structural information directly, such as high-dimensional topological relations, morphism compositions (e.g., commutative diagrams), or manifold coordinate transformations. Precise mathematical figures can help compress these abstract relations, reduce symbolic ambiguity, and clarify proof strategies. Producing dependable academic figures, however, is demanding. It requires creators to understand mathematical abstractions and to control code construction precisely, since even small topological or metric deviations can derail the deductive process.
As illustrated in Figure 1, the Jordan Curve Theorem provides a compact example of how formal statements relate to visual intuition.
This need for “math-to-figure conversion” exposes a weakness of current Large Language Models (LLMs). Requiring large models to generate precise mathematical figures (such as TikZ/SVG code) acts as a stress test, challenging four core capabilities:
-
Cross-modal spatial alignment. Can the model correctly translate discrete, abstract mathematical symbols into continuous, concrete spatial topologies and coordinate geometries?
-
Global implicit geometric reasoning. Without explicit coordinate prompts, can it autonomously solve implicit geometric constraints (e.g., relative positions of points, lines, and surfaces, tangency, orthogonality, or projection) and avoid spatial conflicts?
-
High-precision structured code generation. Can it generate syntactically complete, logically self-consistent, and directly compilable vector graphics programs?
-
Semantic-level diagram verification. In long-chain constructions, can it maintain strict consistency between local diagram elements and global mathematical theorems?
MATHVIS-2026-09
PREPRINT
Cross-modal spatial alignment
Complex Analysis (Conformal Mapping):

symbols → spatial topology
Implicit geometric reasoning
Differential Geometry (Tangent Space)

infer hidden constraints
Structured code generation
Homological Algebra (Snake Lemma)

{tikz-cd
tikz-cd (n → a)
{z an = homomorphisms}
δ | en(z) ← (f(z)
elst en (n → z)
δ | 'snake' homomorphism}
end
`\tikz-cd}
complete · consistent · editable
Semantic diagram
auditing
Topology
(Möbius Strip & Orientability)

local global consistency
Figure 2: The four core capabilities required for mathematical figure generation.
Most existing mathematical evaluations focus on scalar calculations or elementary geometry. As a result, they offer limited evidence about spatial construction in advanced mathematics and do not readily separate code errors from errors in geometric interpretation.
A small number of benchmarks study visual recognition and generation, but most focus on school-level material such as Euclidean geometry and elementary functions. MathVis instead covers 27 mathematical subdisciplines, including differential geometry and complex analysis. Here, “advanced” refers to tasks whose mathematical objects or relations normally appear in upper-level undergraduate, graduate, or research-facing material and whose figures require more than elementary planar construction. Executable code and a Gold Intermediate Representation (Gold IR) help separate programming errors from errors in mathematical interpretation. On this benchmark, the evaluated LLMs still have difficulty with spatial and geometric construction. MathVis is intended as a common test bed for studying how models connect symbolic and visual representations in advanced mathematics.
Does AI-generated visualization help LLMs reason more effectively? The present evaluation does not establish a causal improvement in reasoning from access to diagrams. Instead, the results show that models often continue to rely on formal language and symbols even when a task calls for visual construction, and that a generated figure may contain the requested elements without organizing them into a representation that supports reliable reasoning. One plausible bottleneck is the limited amount of systematically paired training material that links advanced mathematical statements, executable diagrams, and diagram-assisted reasoning traces. MathVis does not audit model training corpora, so this explanation remains a research hypothesis rather than a measured conclusion. The benchmark provides tasks and evaluation signals for testing whether richer visual supervision can help future models use diagrams as part of the reasoning process rather than merely as final illustrations.
MATHVIS-2026-09
PREPRINT
Formal Geometry and Constraint Solving. MagicGeo parses natural language into geometric constructions and generates figures using geometric constraints; its MagicGeoBench contains 220 planar geometry descriptions [Wang et al., 2025b]. Similarly, GeoLoom and its accompanying dataset GeoNF automatically formalize natural language into GeoLingua. They then use a coordinate solver to satisfy length, angle, and construction dependencies, evaluating the generated results with structural deviation metrics [Wei et al., 2026]. This approach offers a practical division of labor: language models parse the description, while formal languages and constraint solvers enforce geometric feasibility. However, the research scope of these works remains focused on elementary planar geometry. This makes it difficult to directly express advanced concepts, such as branches and winding numbers in complex analysis, curvature and coordinate transformations in differential geometry, or genus and homotopy relations in topology. MathVis borrows the idea of using intermediate representations and constraint verification. However, it extends the scope of these constraints to a cross-disciplinary Gold IR, evaluating them through question-level hard and soft atomic predicates.
Theorem Explanation and Scientific Figure Program Synthesis. TheoremExplainAgent takes theorems as input and uses a planning agent alongside a coding agent to generate long-form theorem explanation videos based on Manim. It evaluates both factual and visual quality using 240 theorems from TheoremExplainBench and five types of automatic metrics [Ku et al., 2025]. Like MathVis, it emphasizes theorem structures and verifiable visual expressions. However, its outputs do not specifically focus on static figures for advanced fields such as complex analysis, differential geometry, and topology.
In the realm of static graphics, AutomaTikZ learns text-to-TikZ scientific vector graphic synthesis from paper figures and their surrounding contexts, releasing approximately 120,000 captioned TikZ figure pairs [Belouadi et al., 2024a]. DeTikZify focuses on recovering TikZ programs from scientific figures or sketches [Belouadi et al., 2024b], while TikZero uses image representations to bridge unaligned graphic programs and image caption data, achieving zero-shot text-guided graphic program synthesis [Belouadi et al., 2025]. These works provide data-construction pipelines based on figures and surrounding text from papers and arXiv preprints.
Several recent works are also directly relevant to the present scope. Visual Sketchpad studies sketching as a visual chain of thought for multimodal reasoning [Hu et al., 2024]. SGP-Bench asks whether language models can understand symbolic graphics programs without relying on vision encoders [Qiu et al., 2025]. VGBench evaluates both understanding and generation of vector graphics across formats such as SVG
MATHVIS-2026-09
PREPRINT
and TikZ [Zou et al., 2024]. On the visual-mathematics side, MathVerse and MATH-Vision study whether multimodal systems truly use diagrams in mathematical reasoning [Zhang et al., 2024, Wang et al., 2024]. These works are complementary to MathVis: they study visual mathematical reasoning or general vector-graphics competence, whereas MathVis focuses on generating executable, verifiable figures from advanced mathematical statements. To avoid name confusion, we distinguish MATH-Vision [Wang et al., 2024] from the later diagram-generation benchmark Math-Vision Diagrams [Kashyap et al., 2026].

Year = formal publication or first public preprint; vertical placement is a qualitative task-scope classification.
Figure 3: Representative benchmarks positioned by first public-release date and qualitative research scope.
Relative to the target setting of MathVis, existing resources leave two practical gaps; this comparison concerns task coverage rather than the overall value of those resources.
-
Educational level. Research on mathematical figure generation has largely focused on K–12 and middle school geometry (e.g., AutoGeo, MagicGeo, GeoLoom, MathemaTikZ, Math2Visual) [Huang et al., 2025, Wang et al., 2025b, Wei et al., 2026, Malik et al., 2025, Wang et al., 2025a].
-
Disciplinary depth. Works that do cover “theorems” or “advanced scientific figures” (e.g., Theorem-ExplainBench, the AutomaTikZ series, SridBench, Penrose) may include non-mathematical material, may not be organized by mathematical branch, or may offer limited coverage of advanced fields such as complex analysis, differential geometry, and topology [Ku et al., 2025, Belouadi et al., 2024a, Chang et al., 2025, Ye et al., 2020].
MATHVIS-2026-09
PREPRINT
3 Method
3.2 Benchmark Construction
Figure 4 summarizes the three-stage curation pipeline and the verification architecture that together produce the frozen task packages.

(a) Curation and Quality Control Pipeline

(b) Verification Architecture & Predicate Design
Figure 4: Curation pipeline and verification architecture.
3.3 Evaluation Set Coverage
The benchmark contains 512 questions from 14 source collections and 27 mathematical sub-disciplines; 201 of these currently have task-family metadata, covering 19 families in total, including local geometric relations, proof auxiliary constructions, mappings and coordinate transformations, parametric curves and limits, set inclusion and coverings, commutative diagrams, quotient spaces, fiber bundles, vector field panels, and counterexample constructions. Before freezing, the questions underwent source tracking, sub-discipline coverage, task-package completeness, and automatic/expert auditing to form a frozen evaluation-only set with hidden evaluator assets. In this paper, the task-family labels are descriptive metadata only; they are not used to define train/dev/test splits, because the current benchmark release does not define training or development splits. This evaluation set covers a variety of mathematical structures but is not claimed to represent the overall difficulty distribution. The sub-discipline composition is summarized in Figure 5.
3.4 Task Packages and Annotation Quality
We establish a ground-truth evaluation framework, as detailed in Section F.
Task-package and annotation quality is managed through a division of expert responsibilities. Task authors select mathematical objects, define the target capabilities, write the problem statements, and construct the figures. Domain reviewers then examine the geometric relations, the correspondence between the mathematics and the figure, question difficulty, and solution uniqueness. Formal verification experts
MATHVIS-2026-09
PREPRINT

Figure 5: Dataset composition.
convert accepted solutions into Gold IR, atomic predicates, and automated checks, while adjudicators resolve disagreements and edge cases before the final version is frozen.
Quality control spans candidate generation from traceable sources, independent problem solving, assessment of whether a figure is necessary, Gold IR construction, predicate and validator testing, independent dual-expert review, adjudication, model trial runs, and final freezing. Eliminated questions and the reasons for revision are retained. Questions may be removed because of ambiguous prompts, unnecessary figures, non-unique answers, incomplete proofs, insufficient validation evidence, or mismatched difficulty; recording these decisions makes the review process auditable.
3.5 Evaluation Protocol
The repeated-generation metrics pass@3 and pass^3 describe two possible deployment policies. pass@3 counts a question as successful when at least one of its three outputs strictly passes and is relevant when a validator can select among candidates. pass^3 counts a question as successful only when all three outputs strictly pass and measures repeated-generation stability. Their definitions are retained in Section F.
Rubric coverage is defined using the question-specific number of atomic rubrics and their weights , rather than assuming a fixed number of rubrics for every task. The normalized score preserves partial diagnostic information, whereas strict delivery requires the technical gate, every mathematical hard predicate, and complete soft-constraint satisfaction. Aggregate rubric coverage is not tabulated in this version because it is not included in the retained workbook.
4 Experiments
4.1 Models and Runs
This paper defines a Harness as a fixed execution protocol that wraps model calls. A Harness simultaneously specifies prompt templates, models and providers, sampling parameters, output formats, code extraction methods, compilers and renderers, validators, timeout limits, retry strategies, and run log fields. The evaluation includes the 16 model configurations listed in Table 6; no other model result is included in the scorecard or ranking figure. All models receive the same task prompts and output contracts, without reference figures provided.
MATHVIS-2026-09
PREPRINT
TASK PROMPT
Do not search the internet or call other existing drawing tools; rely solely on the model's capabilities to complete this question. Generate a mathematical diagram based on the following mathematical description, ensuring mathematical accuracy; output only the figure; do not add objects conflicting with the problem meaning; all specified labels must be clearly legible. The result must be delivered as a code file, choose one of two: (1) a complete TikZ standalone document that can be directly saved as .tex and compiled; (2) a complete SVG document that can be directly saved as .svg and rendered.
4.2 Main Results
Figure 6 visualizes the observed strict deliverability rates, and Table 6 reports six metrics from the retained evaluation data: pass@1, D-PSR, the technical gate rate , S-PSR, pass@3, and pass^3. Comparisons are made under the same 512 tasks, prompts, renderers, and three-rollout protocol.
The top three configurations by pass@1 are summarized below for quick reference in the main text.
Top three configurations extracted from Table 6.
| MODEL | pass@1 | D-PSR | S-PSR | pass@3 | pass^3 | |
|---|---|---|---|---|---|---|
| GPT-6-Astra | 31.25 | 30.73 | 94.40 | 31.20 | 38.28 | 24.22 |
| Claude Fable 5 | 26.56 | 25.13 | 84.11 | 26.07 | 29.30 | 19.14 |
| Gemini 3.1 Pro Preview | 22.85 | 20.70 | 78.13 | 20.70 | 27.34 | 15.23 |

Figure 6: Observed strict -PSR rates for the 16 evaluated model configurations, ordered from highest to lowest. Only models listed in the accompanying evaluation workbook are shown.
MATHVIS-2026-09
PREPRINT
The scorecard should not be read as establishing a stable global model ranking. The comparison is limited to the frozen prompts, renderers, and run settings used in this evaluation. By construction, S-PSR is no lower than -PSR because every strict delivery has , whereas partial soft credit can also be retained when . Across the 16 evaluated models, the observed -PSR ranges from 9.18% to 30.73%; GPT-6-Astra has the highest observed rate, followed by Claude Fable 5 at 25.13%. These are descriptive results for this evaluation set, not a universal ranking.
4.6 Harness and Agent Challenge Examples
The data in Table 6 come from non-agent baselines: single-round code generation with zero tool calls, aiming to test the model's own diagram-generation capability under the benchmark constraints. To examine a more tool-augmented usage setting, this paper treats agent and direct baseline as two independent experimental configurations, fixing a set of challenge examples for subsequent review under the same budget. Only if the agent's final artifact still satisfies after the pre-registered three-round budget is it recorded as “agent still fails”, retaining all intermediate drafts for auditing.
Table 1: Agent challenge examples. Direct baselines and independently evaluated agent runs are recorded separately under the same tasks, prompts, and budget definitions.
| QUESTION | MATHEMATICAL BOTTLENECK | DIRECT BASELINE EVIDENCE |
|---|---|---|
| DG-FIG-01 | Coordinate image arrows, transformation directions, and inverse mapping labels | Archived outputs reverse or omit required mappings; displayed artifacts fail the strict delivery gate |
| DG-FIG-02 | Four open semi-circular domains, quadrant intersections, and radical signs | Archived outputs include rendering failures and incomplete domain constructions |
| CV2-FIG-13-01 | Disk interior angles, symmetry axes, and the relation | Archived outputs include missing angle relations and rendering failures |
These cases target errors that may not be resolved solely by renderer repairs: syntactically valid figures may still reverse mappings, place intersections in the wrong quadrants, or miss geometric constraints.
4.7 Detailed Case Analysis
To make the evidence directly visible in the main text, we include two detailed agent test instances below: an application of Rouché's Theorem and a Mandelbrot set construction. Together, these two cases suggest that current agent settings do not yet yield stable gains over the direct baselines. In the Rouché case, even a tool-augmented run still misses hard mathematical constraints and does not produce a reliable strict pass; in the Mandelbrot case, the archived outputs remain vulnerable to truncation, incomplete external-ray structure, and missing co-landing relations. The common pattern is that extra steps or tooling do not reliably repair the core mathematical semantics once the construction itself is already off track.
4.8 Agent Test Instance: Application of Rouché's Theorem
Rouché's Theorem is a standard result in complex analysis for determining the number of zeros of an analytic function within a region; it also follows from the Argument Principle. The theorem states that if an analytic function is perturbed while the dominant term remains larger on the boundary, then the total number of zeros is unchanged.
Let be a simple closed curve, and let functions and satisfy the following conditions:
MATHVIS-2026-09
PREPRINT
-
analytic inside and on (or is meromorphic inside and continuous to the boundary);
-
satisfy on the boundary .
Then the functions and have the same number of zeros (counting multiplicities) inside , that is, .
This theorem has an intuitive geometric interpretation, informally known as the "Dog-Walking Theorem":
- Imagine a tree at the origin, and a person (representing ) walking a dog (representing ) around the tree.
• The length of the leash represents , and the distance from the person to the tree represents .
- If the leash length is always less than the distance from the person to the tree (), then the number of times the dog circles the tree is the same as the number of times the person circles the tree.
• This means their winding numbers around the origin are identical, thus the number of zeros is the same.
PROMPT
Generate an executable figure to illustrate the application of Rouché's Theorem for and on .
The expert reference construction is shown in Figure 7.

Figure 7: Expert reference figure for the Rouché's Theorem task: the images of and on wind three times around the origin, so both have three zeros inside .
For each of CA-S1 to CA-S4, the atomic score means that the condition is fully satisfied, means that the intended mathematical association remains recoverable but requires extra effort to discern, and
MATHVIS-2026-09
PREPRINT
Table 2: Atomic constraint card for the Rouché's Theorem task. Hard constraints gate delivery; soft-constraint scores are credited only once every hard constraint passes.
| ID | TYPE | ATOMIC DECISION QUESTION | EVIDENCE AND ALLOWED EQUIVALENT FORMS | WEIGHT / CODE |
|---|---|---|---|---|
| CA-H1 | Hard | Is correctly specified as the circle centered at 0 with radius 2? | A labeled equation or domain-plane circle, allowing global translation and uniform scaling when geometry is shown | DOMAIN |
| CA-H2 | Hard | Are the images of under and correctly drawn and labeled? | Curve geometry and function-curve binding, allowing equivalent color schemes and line styles | FUNCTION |
| CA-H3 | Hard | Does the figure or its associated formula give the correct boundary comparison, for ? | Boundary evaluation on , accepting equivalent algebraic presentations of the same inequality chain | BOUNDARY |
| CA-H4 | Hard | Does the figure indicate that has exactly three zeros inside , either by marking the three zeros or by showing a winding number of three? | Count and region membership of zero markers, or the winding number of the image curve about the origin; exact root coordinates are not required | ZEROCOUNT |
| CA-H5 | Hard | Regardless of the graphical perspective, does the conclusion state that and have the same number of zeros inside , both being three counting multiplicities? | Text or formula extraction, accepting equivalent phrasing | CONCLUSION |
| CA-S1 | Soft | Are the chosen contours, regions, winding cues, and any zero markers easy to distinguish? | Scored as 0, 0.5, or 1 by experts based on public anchors | 0.30 |
| CA-S2 | Soft | Are coordinate axes, function names, contour labels, and formulas clear, with no incorrect spatial bindings? | Text recognition and overlap check, confirmed by experts | 0.25 |
| CA-S3 | Soft | Do inequalities form clear visual associations with contours, rather than pointing to irrelevant regions? | Spatial binding or leader line evidence | 0.25 |
| CA-S4 | Soft | Does the layout avoid non-critical intersections, clipping, and label collisions? | Bounding box detection and expert readability check | 0.20 |
means that the association is missing or misleading. Their weighted aggregate is the task-level soft score . The strict delivery indicator uses the same definition as the rest of the benchmark:
Thus, if CA-H3 fails, and regardless of ; technical validity and complete presentation-constraint satisfaction are also required for strict delivery. The word “soft” refers to the graded diagnostic scale, not to optionality in the full-specification delivery gate: partial credit remains diagnostic and does not create a strict pass.
This rubric rewards clarity only once the theorem-related mathematical content is viable.
As shown in Figure 8, the archived GPT-5.6-sol output contains the following errors.
GPT-5.6-sol deductions.
- is not a simple circle centered at 0 with radius 2, violating CA-H1, so the score is 0.
MATHVIS-2026-09
PREPRINT
Rouché's Theorem Illustration: , and

Rouché's Theorem
Let f, g be analytic on and inside C. If
, ,
Then f and f+g have the same number of zeros inside C (counting mult.)
For all z on C:
Thus
Application to Example
Let , , .
On C, we have ,
Thus f and f+g have the same number of zeros inside .
Since has 3 zeros inside ( , mult. 3).
Hence has 3 zeros inside (counting multiplicities).
Solid blue: contour
Dashed red: contour
Blue circle: (CCW)
Light blue region:
Green dots: zeros of
Gold IR (Hidden Record)
- Circle C
Center:
Radius: 2
Dit: CCW
- Functions
- Boundary Ineq. (on )
Thus
- Zeros of (inside )
- Zero Count Conclusion
Thus inside
has exactly 3 zeros (counting mult.).
Figure 8: GPT-5.6-sol error diagram for the Rouché's Theorem task. All labels in the archived artifact are presented in English.

Rouché's theorem on C
Boundary comparison
For every ,
.
Hence on the whole contour.
Zero-count conclusion
has three zeros in , counting multiplicity. Therefore also has exactly three zeros inside C.
Figure 9: Error diagram for the Rouché's Theorem task generated by Claude Fable 5 through the Claude Code agent environment. Claude Fable 5 is the underlying model; Claude Code identifies the agent Harness.
MATHVIS-2026-09
PREPRINT
-
The rendered curves do not correctly depict and label both images and , violating CA-H2, so the score is 0.
-
The figure neither marks the three zeros of correctly inside nor provides a valid winding-number representation with three turns, violating CA-H4, so the score is 0.
The output in Figure 9 was generated by the Claude Fable 5 model through the Claude Code agent Harness and has a different set of errors.
Claude Fable 5 deductions. The figure does not correctly draw and label both images and , violating CA-H2, so the score is 0. It also does not state, through the figure or an associated formula, that and have the same number of zeros inside , namely three when counted with multiplicity, violating CA-H5, so the score is 0.
SUMMARY
The agent + Harness configuration did not yield a consistent improvement. Step-by-step guidance that first asks the model to draw the images of and on , then identify the loops and relate them to the zeros, appeared to improve some outputs. This observation is qualitative and should not be interpreted as a measured effect size.
4.9 Agent Test Instance: Mandelbrot Set
PROMPT
Draw equipotential lines and rational external rays outside the Mandelbrot set according to parametric Böttcher coordinates, and correctly express the period 1–4 branches and the co-landing points such as 1/7, 2/7, 3/15, and 4/15.
Mandelbrot set external rays are defined by parametric Böttcher coordinates; rational angle rays with periods 1, 2, 3, and 4 land at specific root points of and encode hyperbolic components. The figure simultaneously presents the Mandelbrot set, several concentric equipotential lines, and rational external rays arranged counterclockwise; the co-landing point pairs like 1/7, 2/7, 3/15, 4/15 and their period classifications must be correct. The graphical relations should support the stated conclusion rather than merely replicating the visual appearance.
The expert reference is shown in Figure 10.
Gemini 3.5 Flash. Insufficient iteration and boundary precision; equipotential lines are not Böttcher equipotential lines; the period ray family is incomplete, and the topological position of the period-4 branch is drawn incorrectly.
GPT-5.6-sol. Insufficient iteration precision; the Mandelbrot set is drawn as a combination of a disk and a thick annulus, missing the true fractal boundary; co-landing points are not strict enough; equipotential lines are not calculated from parametric Böttcher coordinates, and only partial characteristic rays of periods 3 and 4 are drawn, which cannot be called a complete construction.
Figure 11 compares the two archived model outputs side by side for direct inspection.
MATHVIS-2026-09
PREPRINT

Figure 10: Expert reference figure for the Mandelbrot set task: the set with several concentric equipotential lines and rational external rays arranged counterclockwise.

(a) Gemini 3.5 Flash

(b) GPT-5.6-sol
Figure 11: Side-by-side comparison of model outputs for the Mandelbrot set task. Gemini 3.5 Flash (left) misses the required Böttcher equipotentials and misplaces the period-4 branch; GPT-5.6-sol (right) produces an inaccurate boundary and incomplete characteristic rays.
MATHVIS-2026-09
PREPRINT
Claude Opus 4.8. The generation process was truncated after exceeding the 128,000-token budget, returning only thinking; the final code was empty, triggering TECH_NO_OUTPUT.
5 Discussion
The results suggest potential implications for both training and deployment. For training, the observed failure separation suggests that compilation-only objectives may be insufficient; future systems could use supervision that jointly targets mathematical relations, label binding, global constraint consistency, and readable spatial organization. Gold IR and atomic predicates make these failure modes observable, enabling curriculum design, hard-negative construction, verifier-guided fine-tuning, and targeted repair rather than undifferentiated image-level optimization.
For deployment studies, the appropriate metric may depend on the operating mode. Systems that can generate several candidates and run a trusted validator may benefit from candidate selection, whereas systems that deliver a single artifact directly need a strict output-level gate. In the retained results, T diagnoses technical executability, S-PSR retains partial soft information, and D-PSR measures strict delivery. Soft scores can help prioritize repairs, but they should not override mathematical or technical hard gates.
The gap between relatively high rendering success and lower strict D-PSR motivates evaluating a layered deployment architecture in future work: compile and render first, verify mathematical predicates second, and assess readability only after hard correctness is established. The present experiments do not measure the latency, cost, or user-level benefit of such an architecture. Repair budgets, validator access, latency, and cost should therefore be treated as explicit deployment parameters rather than hidden implementation details. Direct and tool-augmented Harnesses should be reported separately so that improvements can be attributed to model capability, verification, or iterative repair.
6 Limitations and Responsible Use
Current evidence supports transparent comparisons among the evaluated frozen configurations, but it does not support unbiased population-level claims about all mathematical problems, model families, or agent settings. The 512 tasks are not a random sample of the full difficulty distribution, source coverage varies across sub-disciplines, and expert-authored predicates may reflect the available notation and verification conventions. Results may also change with prompts, providers, sampling parameters, renderer versions, tool permissions, and repair budgets. Accordingly, conclusions should be restricted to the documented task set and Harnesses, and broader generalization requires additional sources, independent expert calibration, and replication under new configurations.
Agent and direct baselines are independent experimental conditions, so Table 1 provides challenge examples rather than evidence that an agent will inherit a direct baseline's outcome. Automatic validators can also miss mathematically equivalent forms or accept visually legible but pedagogically misleading artifacts. Educational and research users should therefore verify figures against the underlying propositions, especially for unfamiliar notation, new theorems, or settings where an incorrect diagram could materially affect a proof or explanation.
MATHVIS-2026-09
PREPRINT
7 Conclusion
This paper proposes MathVis, a benchmark for generating mathematical figures as executable TikZ/SVG programs. Its core design separates technical validity, mathematical predicates, graded presentation scores, and full-specification strict delivery through Gold IR and atomic rubrics. On the test set, the observed strict D-PSR values of the 16 evaluated configurations range from 9.18% to 30.73%. Future work should expand independent expert calibration, complete model-family and agent runs, and report efficiency trajectories.
AI Usage Declaration
Generative AI tools were used to assist in literature discovery, paper drafting and language editing, LaTeX typesetting, benchmark document organization, and some dataset and evaluation organization work. The authors independently verified the statistics, mathematical definitions, citations, and final artifacts reported in this paper. The authors reviewed all AI-assisted text, citations, statistics, and artifacts and take responsibility for the final paper, dataset, code, and all statements.
Ethics Statement
This research does not involve human subjects or personal data. Benchmark materials record sources and rights statuses and are redistributed to the extent permitted by the relevant licenses. Passing the automatic evaluation is not sufficient to ensure that a figure is suitable for classroom or research use; teachers and mathematical experts should still verify figures according to the underlying propositions. The current paper documents the calibration protocol and review workflow, but it does not report a finalized inter-rater summary table.
Reproducibility Statement
The main text defines the task format, Gold IR, technical and semantic gates, strict delivery indicator, and the six metrics reported in the scorecard. The current artifact contains question-level logs for three frozen configurations and aggregate scorecard rows for the other configurations. It therefore supports output-level recomputation only for those three frozen configurations; the remaining rows can be checked for consistency with their stated denominators but cannot be independently reconstructed from this artifact.
Artifact Inventory
Analysis artifacts include frozen strict run and rubric JSONL files, Gold IR records, question-level and model-level TSV summaries, official question lists, and XLSX scorecards. Identity-related metadata are removed from the released artifact, and the rights status of source figures is preserved in the source records.
Model Family Scorecard Notes
Table 6 and Figure 6 report the same 16 evaluated model configurations. Each row identifies a model configuration and uses the metric definitions in Section F. Question-level logs are retained for three frozen configurations. The other 13 configurations are represented only by aggregate scorecard rows in the current artifact and therefore do not support question-level or paired reanalysis. Qualitative examples name the full model configuration and, when applicable, distinguish the underlying model from the agent Harness. Provider routes, temperature settings, and output budgets belong to the archived Harness definitions, but
MATHVIS-2026-09
PREPRINT
they are not fully tabulated for every configuration in this paper. Missing token, latency, cost, tool-call, rendering, and output-level fields remain NA and are not inferred.
References
Rizwaan Malik, Rebecca Li Hao, Ritika Kacholia, and Dorottya Demszky. MathemaTikZ: A dataset and benchmark for mathematical diagram generation. In Proceedings of the Twelfth ACM Conference on Learning @ Scale, pages 95–104, 2025. doi:10.1145/3698205.3729558.
Jaewook Lee, Jeongah Lee, Wanyong Feng, and Andrew Lan. From text to visuals: Using LLMs to generate math diagrams with vector graphics. In Artificial Intelligence in Education, volume 15880 of Lecture Notes in Computer Science, pages 336–349, 2025. doi:10.1007/978-3-031-98459-4_24.
Junling Wang, Anna Rutkiewicz, April Wang, and Mrinmaya Sachan. Generating pedagogically meaningful visuals for math word problems: A new benchmark and analysis of text-to-image models. In Findings of the Association for Computational Linguistics: ACL 2025, pages 11229–11257, 2025a. doi:10.18653/v1/2025.findings-acl.586.
Junxiao Wang, Ting Zhang, Heng Yu, Jingdong Wang, and Hua Huang. MagicGeo: Training-free text-guided geometric diagram generation. arXiv preprint arXiv:2502.13855, 2025b. doi:10.48550/arXiv.2502.13855. URL https://arxiv.org/abs/2502.13855.
Xiaojing Wei, Ting Zhang, Wei He, Jingdong Wang, and Hua Huang. GeoLoom: High-quality geometric diagram generation from textual input. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, 2026. URL https://arxiv.org/abs/2512.08180.
Max Ku, Cheuk Hei Chong, Jonathan Leung, Krish Shah, Alvin Yu, and Wenhu Chen. TheoremExplainAgent: Towards video-based multimodal explanations for LLM theorem understanding. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 6663–6684, 2025. doi:10.18653/v1/2025.acl-long.332.
Jonas Belouadi, Anne Lauscher, and Steffen Eger. AutomaTikZ: Text-guided synthesis of scientific vector graphics with TikZ. In International Conference on Learning Representations, 2024a. URL https://arxiv.org/abs/2310.00367.
Jonas Belouadi, Simone Paolo Ponzetto, and Steffen Eger. DeTikZify: Synthesizing graphics programs for scientific figures and sketches with TikZ. In Advances in Neural Information Processing Systems, 2024b. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/9a8d52eb05eb7b13f54b3d9eada667b7-Abstract-Conference.html.
Jonas Belouadi, Eddy Ilg, Margret Keuper, Hideki Tanaka, Masao Utiyama, Raj Dabre, Steffen Eger, and Simone Paolo Ponzetto. TikZero: Zero-shot text-guided graphics program synthesis. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 17793–17806, 2025. doi:10.1109/ICCV51701.2025.01653.
Yushi Hu, Weijia Shi, Xingyu Fu, Dan Roth, Mari Ostendorf, Luke Zettlemoyer, Noah A. Smith, and Ranjay Krishna. Visual sketchpad: Sketching as a visual chain of thought for multimodal language models. In Advances in Neural Information Processing Systems, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/fb82011040977c7712409fbdb5456647-Abstract-Conference.html.
MATHVIS-2026-09
PREPRINT
Zeju Qiu, Weiyang Liu, Haiwen Feng, Zhen Liu, Tim Xiao, Katherine Collins, Joshua B. Tenenbaum, Adrian Weller, Michael J. Black, and Bernhard Sch"olkopf. Can large language models understand symbolic graphics programs? In International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/41bd71e7bf7f9fe68f1c936940fd06bd-Abstract-Conference.html.
Bocheng Zou, Mu Cai, Jianrui Zhang, and Yong Jae Lee. VGBench: Evaluating large language models on vector graphics understanding and generation. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024. URL https://aclanthology.org/2024.emnlp-main.213/.
Renrui Zhang, Dongzhi Jiang, Yichi Zhang, Haokun Lin, Ziyu Guo, Pengshuo Qiu, Aojun Zhou, Pan Lu, Kai-Wei Chang, Peng Gao, and Hongsheng Li. MathVerse: Does your multi-modal LLM truly see the diagrams in visual math problems? In European Conference on Computer Vision, 2024. URL https://www.ecva.net/papers/eccv_2024/papers_ECCV/html/1270_ECCV_2024_paper.php.
Ke Wang, Junting Pan, Weikang Shi, Zimu Lu, Houxing Ren, Aojun Zhou, Mingjie Zhan, and Hongsheng Li. Measuring multimodal mathematical reasoning with MATH-Vision dataset. In Advances in Neural Information Processing Systems, 2024. URL https://proceedings.neurips.cc/paper_files/paper/2024/hash/ad0edc7d5fa1a783f063646968b7315b-Abstract-Datasets_and_Benchmarks_Track.html.
Harish Kashyap, Kiran Byadarhaly, Sriram Chakaravarthy, Sanyukta Tuti, and Aryan Mistry. Math-Vision diagrams: A comprehensive benchmark for evaluating LLM mathematical diagram generation capabilities. arXiv preprint arXiv:2608.08964, 2026. doi:10.48550/arXiv.2608.08964. URL https://arxiv.org/abs/2608.08964.
Zihan Huang, Tao Wu, Wang Lin, Shengyu Zhang, Jingyuan Chen, and Fei Wu. AutoGeo: Automating geometric image dataset creation for enhanced geometry understanding. IEEE Transactions on Multimedia, 27:3105–3116, 2025. doi:10.1109/TMM.2025.3557720.
Yifan Chang, Yukang Feng, Jianwen Sun, Jiaxin Ai, Chuanhao Li, S. Kevin Zhou, and Kaipeng Zhang. Srid-Bench: Benchmark of scientific research illustration drawing of image generation model. arXiv preprint arXiv:2505.22126, 2025. doi:10.48550/arXiv.2505.22126.
Katherine Ye, Wode Ni, Max Krieger, Dor Ma'ayan, Jenna Wise, Jonathan Aldrich, Joshua Sunshine, and Keenan Crane. Penrose: From mathematical notation to beautiful diagrams. ACM Transactions on Graphics, 39(4), 2020. doi:10.1145/3386569.3392375.
Ruiyao Liu, Hui Shen, Ping Zhang, Yunta Hsieh, Yifan Zhang, Jing Xu, Sicheng Chen, Junchen Li, Jiawei Lu, Jianing Ma, Jiaqi Mo, Qi Han, Zhen Zhang, Zhongwei Wan, Jing Xiong, Xin Wang, Ziyuan Liu, Hangrui Cao, and Ngai Wong. MathGen: Revealing the illusion of mathematical competence through text-to-image generation. arXiv preprint arXiv:2603.27959, 2026. doi:10.48550/arXiv.2603.27959. URL https://arxiv.org/abs/2603.27959.
Weihao Bo, Shan Zhang, Yanpeng Sun, Jie Liu, Yongke Yao, Jinhao Du, Wei He, Kai Zou, Zechao Li, and Jingdong Wang. Diagram-MMU: A multi-modal benchmark for scientific diagrams. arXiv preprint arXiv:2608.12262, 2026. doi:10.48550/arXiv.2608.12262. URL https://arxiv.org/abs/2608.12262.
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Raul Puri, Gretchen Krueger, Michael Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021. doi:10.48550/arXiv.2107.03374. URL https://arxiv.org/abs/2107.03374.
Emily M. Bender and Batya Friedman. Data statements for natural language processing: Toward mitigating system bias and enabling better science. Transactions of the Association for Computational Linguistics, 2018. doi:10.1162/tacl_a_00041.
MATHVIS-2026-09
PREPRINT
Timnit Gebru, Jamie Morgenstern, Briana Vecchione, Jennifer Wortman Vaughan, Hanna Wallach, Hal Daumé, and Kate Crawford. Datasheets for datasets. Communications of the ACM, 2021. doi:10.1145/3458723.
A Contributions
A more detailed, artifact-oriented contribution inventory follows:
-
Introduced an evaluation-only benchmark for advanced mathematical figure generation, extending coverage beyond predominantly K-12 settings to 27 mathematical sub-disciplines (e.g., differential geometry, complex analysis, linear algebra, analytic geometry).
-
Released a structured task design containing prompts, reference materials, Gold IR, atomic rubrics, source information, error codes, and acceptable equivalent transformations of figures.
-
Formalized mathematical reasoning figure generation as constrained executable programs, and separately verified the correctness of program execution, the correctness of mathematical semantics, and the quality of visual expression.
-
Separated technical validity, mathematical hard predicates, soft-constraint diagnostics, and strict deliverability in a unified metric definition, while retaining formal definitions of repeated-generation and rubric diagnostics for reproducibility.
-
Reported the observed scorecard metrics for the 16 evaluated model configurations under the same 512 official questions and three-rollout protocol, with explicit notes on which configurations retain question-level logs in the current artifact.
B Method-Related Work
Executable Judges and Automated Verification. MathGen uses a script-as-a-judge approach to evaluate whether text-to-image models preserve charts, geometric constructions, and symbol layouts in mathematical answers [Liu et al., 2026]. Math-Vision Diagrams integrates both text-to-code and text-to-image tasks into a unified evaluation framework for mathematical figure generation, while Diagram-MMU focuses on parsing, editing, and question answering based on existing scientific figures [Kashyap et al., 2026, Bo et al., 2026]. These works indicate that code compilation, scripting, or structured QA can provide verification signals that go beyond simple image similarity. Building on this idea, MathVis uses code executability as a technical gate and Gold IR with atomic predicates as semantic gates.
Following the HumanEval setup for repeated sampling in code generation [Chen et al., 2021], our paper reports single-sample success rates, at least one success statistic (suitable for scenarios with multi-candidate generation and verification), and all success statistics (suitable for strict, direct-use scenarios). We also record data sources and model/Harness configurations in line with established data and model documentation practices [Bender and Friedman, 2018, Gebru et al., 2021].
C Benchmark Construction Process
C.1 Question Screening Process Statistics
Dataset construction began with 8,114 candidate propositions with potential value for mathematical graphical expression. Candidate questions were sequentially screened based on source completeness, mathematical
MATHVIS-2026-09
PREPRINT
visualizability, instance unique determinability, and validator auditability. The first stage eliminated 432 questions with incomplete source information, retaining 7,682; the second stage eliminated 1,710 questions lacking stable mathematical figure semantics, retaining 5,972; the third stage eliminated 5,345 questions with multiple indistinguishable legal instances, retaining 627; the fourth stage eliminated 115 questions unable to establish sufficient verification evidence, and the process then froze 512 official questions. Each question records only the reason for its first triggered elimination in order to avoid double counting across stages.
This pipeline can be written as the funnel in Equation (2).
C.2 Stage 1: Theorem Screening and Instance Specification
Candidate propositions come from textbooks, published research papers, and exercise books with traceable origins. For example, complex analysis, differential geometry, and topology are treated as non-interchangeable task assignments because standard graphical conventions and common errors differ across these three fields. The coverage quantity for each field is determined by the observed density of auditable visual propositions, without forcing an even distribution.
Candidate propositions first undergo a five-level judgment of visualizability. This triage is used to allocate question-construction effort on the candidate pool rather than to summarize the released 512 questions. Levels 1 and 2 are not admitted to the benchmark; among admissible candidates, Levels 3–5 describe increasing stability of auditable visual structure:
Level 1 The planar figure only serves a decorative purpose; lines, colors, and shapes in the figure have no clear correspondence with objects, conditions, or conclusions in the proposition, so it can neither assist in explaining the proposition nor be used to judge whether the proposition is expressed correctly. Such figures are discarded.
Level 2 Only schematic diagrams can be drawn to aid understanding, but elements in the figure cannot be mapped item by item to mathematical objects and relations in the proposition, so the figure cannot be used to verify whether the proposition is correctly expressed. Such candidates are not admitted to the benchmark.
Level 3 The proposition has no unique standard illustration and requires pre-defined visual conventions such as colors, directions, projections, or line styles; once conventions are fixed, mathematical objects and relations in the figure can still be verified item by item.
Level 4 The proposition has relatively stable illustration methods widely adopted by the mathematical community. Key objects, relations, and quantitative properties in the figure can directly correspond to explicit mathematical invariants, formulas, or decision conditions. Even if different illustrators use different layouts, they will retain the same core mathematical structure. For example, an Argument Principle diagram needs to show closed curves, zeros, poles, and winding numbers, which can be verified through point-in-region judgments, zero/pole counting, and winding number calculations.
Level 5 The proposition not only has a stable typical construction but can also form multiple controlled variants by changing parameters, functions, regions, or representations. Each variant maintains the same core theorem structure while producing different visual results. Such tasks can test whether the model understands the proposition rather than memorizing a specific standard figure. For example, in a Rouché's Theorem task, functions or circle radii can be changed; as long as the new parameters still satisfy the boundary inequality, the zero count and figure structure are updated accordingly.
Question constructors then fix a specific instance . General statements about regions, surfaces, bundles, or knots are translated into explicit objects, parameters, directions, and conventions. This instantiation step
MATHVIS-2026-09
PREPRINT
is applied only when the source and accepted conventions support a canonical benchmarkable instance. Candidates that still admit multiple materially different legal realizations without such a source-supported canonicalization are excluded at Stage 3 rather than being resolved by an arbitrary post-hoc choice. If the same proposition allows meaningful parameter or representation changes, a standard instance can be accompanied by one or two controlled variants. Each variant is assigned an independent question number. All variants originating from the same proposition or standard instance share the same task family number for internal bookkeeping. This paper releases an evaluation-only set with hidden evaluator assets and does not define or report family-based train/dev/test splits.
Constructors write public specifications and hidden specifications separately. Public prompts explain the mathematical environment and required artifacts but do not enumerate evaluation checklists. Hidden specifications decompose the instantiated proposition into atomic constraints, map constraints to Gold IR fields, declare hard or soft types, freeze soft constraint weights, record acceptable equivalent forms, and specify allowed evidence. Constraint types and weights must be frozen before any benchmark model is run.
C.3 Stage 2: Candidate Reference Figure Generation and Automatic Pre-check
The reference figure generation path is determined by the mathematical content. Functions and complex analysis tasks can use deterministic sampling, contour calculation, or domain coloring tools. Parametric geometry tasks can use numerical surface and projection programs. Topology and diagrammatic tasks may require verified off-the-shelf libraries or manually written vector programs. Each path exports a complete TikZ or SVG artifact and records the renderer and numerical settings. Unified canvases, fonts, line widths, and coordinate conventions are used to reduce visual shortcuts formed by rendering paths. When complete unification is impossible, path labels are retained for stratified analysis.
Model-assisted drafting can speed up reference artifact writing but cannot define ground truth. The pipeline records the draft model, prompt, and original output. Constructors modify or regenerate the artifacts to align them with the source proposition and Gold IR before submitting to Stage 3. When conditions permit, the draft model is kept separate from the formal evaluation configuration. Whether a question is admitted is still determined by expert verification.
Automatic pre-checking forms the first layer of the verification funnel. General checks verify schema completeness, independent compilation or rendering, resource bounds, and non-empty outputs. Sub-discipline checks calculate quantities that can be judged at low cost, including contour membership, zero and pole positions, directions, conformal non-degeneracy on sampling grids, metric consistency, or curvature values. Passing the automatic pre-check does not mean the question is admitted. Pre-checks are used to eliminate data entry and execution errors and to attach quantitative evidence so that expert time can focus on semantic judgments. Questions lacking reliable automatic checks proceed to expert review without receiving a default pass value.
C.4 Stage 3: Expert Verification and Arbitration
Stage 3 distinguishes between task package admission and model output scoring. Sub-discipline experts first verify source tracking, instance validity, public prompts, reference programs, rendering results, Gold IR, hidden constraints, hard and soft types, weights, and allowed equivalent forms. Every decision is recorded down to the predicate level. When prompts are ambiguous, no source-supported canonical instance can be frozen, reference artifacts violate propositions, IR lacks necessary relations, or constraints reward a source-specific layout rather than mathematically equivalent forms, the task is sent back for revision or removed from the benchmark candidate pool.
MATHVIS-2026-09
PREPRINT
The full release protocol designates a 5% calibration subset stratified by source, sub-discipline, rendering path, and difficulty for independent dual-person review. When there is a disagreement on whether a task can be admitted or on any hard constraint, it is arbitrated by a third qualified expert. Binary correctness is intended to be summarized by raw agreement rates and Cohen's on the dual-reviewed subset. Ordinal soft judgments use a frozen scale and are intended to be summarized by weighted agreement rates together with intra-class correlation coefficients or Krippendorff's . The present paper documents this protocol but does not report final aggregated calibration coefficients.
Initially, 8,114 questions were collected. The four recorded elimination stages retain 512 questions in the final set. The third elimination stage refers to candidate propositions for which no source-supported canonical benchmark instance could be frozen after revision; it does not mean that every proposition with more than one legal drawing is automatically excluded. The funnel can be written as
Every return in Stage 3 records structured reasons and target stages, including source recovery, instance revision, prompt revision, reference figure repair, IR completion, constraint revision, and renderer repair. The revision ledger records rounds and actual expert time, without inferring work hours from file metadata. The current paper records the existence of these audit fields but does not report aggregate expert hours, return rates, or inter-rater statistics.
Professional work, risks, and archived records at each stage.
| STAGE | PROFESSIONAL WORK | MAIN RISKS | ARCHIVED RECORDS |
|---|---|---|---|
| Proposition screening | Recover visualizable propositions from traceable sources and assign to corresponding math sub-disciplines | Forcing illustrations for theorems lacking stable 2D semantics | Source page, local context, rights status, sub-discipline, and visualizability rationale |
| Instance specification | Fix regions, functions, parameters, manifolds, knots, directions, and conventions | Multiple legal instances having different visual meanings | Specific instance , public prompt , allowed equivalent forms, and prohibited conditions |
| Reference figure generation | Generate executable candidate figures using numerical, parametric, off-the-shelf libraries, or manual vector paths | Renderer style becoming a shortcut to identify questions | Source program, renderer version, path label, rendering results, and editing records |
| Automatic pre-check | Check schema, compilation, non-empty rendering, numerical invariants, and mechanically verifiable IR relations | Mistaking successful rendering as evidence of mathematical correctness | Machine logs, measured quantities, failed check items, and evidence confidence |
| Expert verification | Verify source consistency, instance validity, Gold IR coverage, constraint types, reference figure correctness, and ambiguous outputs | Figure appearance reasonably masking subtle semantic errors | Predicate-level decisions, evidence, reviewer sub-discipline, return reasons, and arbitration records |
Each question contains a self-contained prompt and output contract, a reference figure and an executable TikZ/SVG program, Gold IR, atomic predicates belonging to five dimensions, and error codes with evidence priority. IR focuses on expressing relations: for example, a coordinate chart task requires not only two
MATHVIS-2026-09
PREPRINT
ellipses that look similar, but also intersecting coordinate domains, a specified intersection, coordinate images in , and mutually inverse transformation mappings between coordinate images.
Predicates concretize the “understanding to action” chain as: Language Parsing → Relation Extraction → Implicit Condition Inference → Spatial Planning and Calculation → Program Synthesis → Rendering → Verification. The evaluation allows alternative layouts but does not allow visually similar approximations to replace the mathematical propositions. Error codes locate object omissions, topological errors, missing or reversed relations, formula mapping errors, label misboundings, incomplete content, and unreadable deliveries, turning a single leaderboard score into an interpretable error profile.
The current version uses automatic auditing and escalates cases with weak automatic evidence or high downstream impact for expert review, with an independent dual-expert calibration protocol. Aggregate calibration statistics are not reported in this version.
D Complex Analysis Predicate Family
Each question instantiates only the predicates that are mathematically applicable.
Table 3: Complex analysis predicate family.
| PREDICATE FAMILY | TYPICAL HARD JUDGMENT | TYPICAL SOFT JUDGMENT | PRIORITY EVIDENCE |
|---|---|---|---|
| Regions and boundaries | Do regions, holes, boundary branches, inclusion relations, and interior/exterior markers have correct topology? | Are different branches easy to distinguish? | Vector paths, point-in-region tests, and expert review |
| Directions and traversals | Are contour directions mathematically correct and consistent with arrow or parameter directions? | Are direction hints clear and not overly crowded? | Path ordering, arrow extraction, and local tangent checks |
| Functions and images | Are pre-image domains, image domains, branch selections, and boundary correspondences correct? | Is the visual correspondence between pre-image and image clear? | Gold IR edge matching, function sample values, and label recognition |
| Zeros, poles, and critical points | Are multiplicities, positions relative to contours, and point type symbols correct? | Are different point types easy to distinguish? | Numerical roots or pole checks and region membership judgments |
| Quantitative invariants | Are modulus, argument, winding number, residue relations, or inequalities on specified sets correct? | Do invariants establish clear visual connections with relevant objects? | Symbol or numerical checks and formula parsing |
| Branches and branch cuts | Are branch cuts, Riemann surfaces, discontinuities, and analytic continuation paths mathematically compatible? | Are different layers or sides of branch cuts easy to distinguish? | Topological adjacency, sampled arguments, and expert review |
| Labels and formulas | Is each formula bound to the correct object without altering signs, ranges, or function names? | Are non-critical labels clear and non-overlapping? | Structured text extraction and spatial binding |
MATHVIS-2026-09
PREPRINT
E Expert Verification Rubric Template
Stage 3 uses two related forms. The task admission form verifies the benchmark question itself. The model output scoring form is only used to evaluate model artifacts after the task package is frozen. This separation helps avoid misjudging errors in reference programs or Gold IR as model failures.
Table 4: Task admission rubric.
| FIELD | ADMISSION DECISION QUESTION | REQUIRED EVIDENCE |
|---|---|---|
| Source consistency | Does the instantiated question maintain the source proposition, notation, assumptions, and directions? | Source page or original figure, local context, and constructor's verification notes |
| Instance validity | Are regions, functions, parameters, objects, and conventions clear and mutually consistent? | Symbol table, parameter check, and executable or numerical witness |
| Prompt sufficiency | Can a qualified solver reconstruct the required artifact without knowing the evaluation-side information? | Independent reconstruction record based solely on the prompt |
| Gold IR coverage | Does the IR contain all objects, relations, formulas, invariants, equivalent forms, and prohibited conditions required by the instance? | Item-by-item correspondence from source proposition to IR fields |
| Constraint validity | Is each atomic constraint decidable, non-redundant, linked to IR evidence, and correctly classified as hard or soft? | Constraint card with type rationale, weight rationale, and failure codes |
| Reference artifact correctness | Does the executable reference artifact satisfy all hard constraints and expected soft specifications? | Compilation logs, rendering results, automatic measurements, and expert sign-off |
| Equivalent form policy | Does the question accept mathematically equivalent layouts while rejecting transformations that alter the proposition? | Positive and negative examples of allowed transformations |
Each output predicate card contains the fields id, Gold-IR path, decision question, type, weight, allowed equivalence, evidence method, satisfaction, error code, and reviewer confidence. Hard constraints use and have no compensatory weights. Soft constraints use , with their positive weights normalized within the question. Experts can choose insufficient evidence, which triggers an escalated review and cannot be converted to a pass.
F Metric Definitions
F.1 Task Definition and Output Contract
Each sample is represented as
where is a self-contained natural language description, is the reference figure and executable reference program, is the Gold IR, is the list of atomic rubrics, and is the error code and evidence specification.
MATHVIS-2026-09
PREPRINT
The model can only see and the output contract, and must generate a complete, independent TikZ document or a directly renderable SVG document. The reference figure and reference program are held out from the model and used only for evaluation.
The benchmark follows a problem-driven pipeline: Source Problem → Self-contained Prompt and Gold IR → Construction Planning and Executable Code → Compilation and Rendering → Technical, Structural, Visual, and Expert Verification. Verification feedback is reserved for separately budgeted repair experiments; direct baselines do not receive feedback. Therefore, MathVis measures not image imitation, but the ability to translate problem understanding into executable, verifiable, and editable artifacts.
This paper defines mathematical figures as 2D visual representations in which objects, spatial relations, labels, and formulas encode propositions that can be verified against structured specifications. As long as mathematical relations remain unchanged, global translation, uniform scaling, and explicitly permitted line-style changes are acceptable.
“Mathematical reasoning” in this paper does not refer to the unobservable internal chain of thought of the model, nor does it require the model to submit a Chain-of-Thought. We operationalize it as: can the model extract mathematical objects and relations from natural language, synchronously update the graphic structure when parameters or relations undergo controlled changes, and maintain the consistency of unchanged constraints? This operational definition is implemented through Gold-IR comparison and explicit/implicit constraint checks in the reported evaluation.
Let the model be m and the number of questions be N = 512. Each question has three rollouts, giving model outputs. For each rollout, define the technical gate
Let denote whether all mandatory mathematical hard predicates pass. Let each atomic soft constraint take a value in , and let be the normalized weighted aggregate. The strict deliverability indicator is
This definition keeps technical and mathematical failures non-compensatory while preserving partial soft scores for diagnostics. It implies and . The current workbook supports aggregate reporting of , -PSR, and -PSR. It does not contain the output-level predicate records required to report a separate aggregate rate.
F.2 Technical Gate T
The observed technical gate pass rate is
Here is the number of outputs that pass all four technical checks, so the reported value is .
MATHVIS-2026-09
PREPRINT
F.3 S-PSR
The soft-constraint per-sample rate is defined as
This diagnostic averages the aggregate soft-constraint score and thereby preserves partial credit across atomic soft constraints. It does not override the technical or mathematical hard gates. The table reports the observed rate computed over all questions and rollouts for each model. By construction, S-PSR is no lower than D-PSR.
F.4 D-PSR
The observed strict deliverability rate is defined as
It represents the proportion of outputs that satisfy the technical gate, all mandatory mathematical hard predicates, and complete soft-constraint satisfaction. With , the reported value is .
F.5 Rubric Coverage
Let the -th question contain atomic rubrics, let represent the satisfaction degree of the -th rubric, and let be its importance weight. The question-level rubric score is
Converting this to a score from 0 to 10:
If binary rubrics are used, then , where 1 means the item is fully satisfied, and 0 means it is not satisfied or evidence is insufficient.
F.6 pass@3
Generate three independent outputs for each question. As long as at least one output strictly passes, the question is counted as successful. Here N = 512, so the denominator is the number of questions rather than the number of rollouts.
MATHVIS-2026-09
PREPRINT
This metric is suitable for settings in which multiple candidate results can be generated, and the best result is selected by a validator, teacher, or agent.
F.7 pass^3
Generate three independent outputs for each question. A question is counted as successful only if all three strictly pass. Here , so the denominator is the number of questions rather than the number of rollouts:
This metric measures the stability of repeated generation: as long as at least one of the three rollouts fails, the question is scored as 0 in pass^3.
We consider two application settings rather than making causal claims about downstream user outcomes. Education is the primary application setting, including textbooks, lecture notes, assignments, and tutoring materials; incorrect arrows or labels may directly mislead learners. Research communication is a secondary setting, including research notes, paper sketches, and theoretical communication in fields such as topology, differential geometry, algebra, and analysis, where higher-order relations and notation must remain auditable. The published metadata records these settings separately; for educational use, we recommend the full rubric hard gate. The current paper does not claim that benchmark scores directly predict teacher or student outcomes; such validity still requires separate educational studies.
G Result Statistics
G.1 Model Scorecard
MATHVIS-2026-09
PREPRINT
Table 6: Scorecard for the 16 evaluated model configurations on the 512 official questions. All rates are observed percentages. pass@1, pass@3, and pass^3 each use 512 question-level outcomes; -PSR, , and -PSR use rollout-level outcomes. pass@3 measures whether at least one of three outputs strictly passes, whereas pass^3 measures whether all three strictly pass.
| MODEL | pass@1 | -PSR | -PSR | pass@3 | pass^3 | |
|---|---|---|---|---|---|---|
| GPT-6-Astra | 31.25 | 30.73 | 94.40 | 31.20 | 38.28 | 24.22 |
| Claude Fable 5 | 26.56 | 25.13 | 84.11 | 26.07 | 29.30 | 19.14 |
| Gemini 3.1 Pro Preview | 22.85 | 20.70 | 78.13 | 20.70 | 27.34 | 15.23 |
| GPT-5.6-sol | 21.48 | 19.99 | 92.32 | 20.05 | 24.22 | 16.60 |
| Claude Opus 4.8 | 20.90 | 19.92 | 78.91 | 20.12 | 24.80 | 15.04 |
| Doubao Seed 2.1 Pro | 20.90 | 19.14 | 81.05 | 20.03 | 24.22 | 14.84 |
| GLM 5.2 (Direct) | 18.95 | 17.12 | 82.23 | 18.07 | 22.27 | 13.09 |
| Doubao Seed 2.0 Pro | 18.16 | 16.15 | 77.54 | 17.12 | 21.29 | 12.30 |
| GLM 5.2 (OpenRouter) | 17.58 | 16.08 | 78.13 | 17.06 | 21.09 | 12.11 |
| Claude Sonnet 4.6 | 16.80 | 15.56 | 79.88 | 16.47 | 20.12 | 11.91 |
| DeepSeek V4 Flash 0731 | 17.19 | 15.04 | 78.06 | 16.12 | 20.31 | 11.13 |
| Doubao Seed 2.1 Turbo | 16.21 | 14.58 | 76.56 | 15.47 | 19.14 | 9.57 |
| Gemini 3.5 Flash | 16.02 | 14.06 | 75.13 | 15.11 | 18.95 | 10.74 |
| Hunyuan HY3 | 15.82 | 13.67 | 76.11 | 14.53 | 18.16 | 10.16 |
| Doubao Seed 2.0 Lite | 11.33 | 10.09 | 72.07 | 11.08 | 13.28 | 7.23 |
| Claude Haiku 4.5 | 10.35 | 9.18 | 71.55 | 10.06 | 12.30 | 6.05 |
G.2 Additional Result Analysis
G.2.1 Metric Separation
The five predicate groups—objects and structures, relations and quantities, labels and formulas, completeness and consistency, and readability and layout—remain useful for error diagnosis. We do not report aggregate “full satisfaction rates” for these groups in this version because the retained workbook does not contain the output-level predicate records needed to reproduce those rates. Technical validity is reported separately as ; its values range from 71.55% to 94.40% and must not be interpreted as mathematical hard-predicate accuracy.
G.2.2 Questions and Observed Scores
The questions in the benchmark provide unified prompts, renderers, Gold IR, and delivery gates while maintaining source and mathematical sub-discipline coverage. On this question set, the observed strict -PSR values across the 16 evaluated configurations range from 9.18% to 30.73%.
G.2.3 Qualitative Error Analysis
Gold IR enables errors to be checked at the mathematical proposition level. Common errors include: relation errors, such as missing or reversed arrows, inclusions, associations, directions, or inverse mappings; mapping and formula errors, such as incorrect signs, value ranges, branches, or label bindings; completeness errors, meaning some objects exist but the conjunction of required facts is incomplete; and technical errors, such as blank outputs, incomplete source code, compilation failures, or rendering failures.
MATHVIS-2026-09
PREPRINT
Table 2: Reproducibility checklist: fields recorded for evaluation.
| FIELD | DEFINITION | CURRENT STATUS |
|---|---|---|
| Questions | Question ID, source, prompt, reference materials, and Gold IR | 512 official questions |
| Output contract | Complete independent TikZ or SVG, output code only | Executed |
| Technical gate | Parsing / compilation / rendering / non-empty output | Audited |
| Semantic gate | Rubrics | Diagnostic report |
| Delivery gate | Technical gate, rubrics, readability | Main strict results |
| Repeated runs | Outputs per question under the same prompt and Harness | All 16 configurations: 3 reported rollouts; question-level logs retained for 3 configurations |
| Statistics | Point estimates and uncertainty intervals | Observed point estimates reported; bootstrap intervals not reported in this version |
| Sampling configuration | Provider route, temperature, and output budget | Partially documented in Harness metadata; not tabulated for all 16 configurations in this artifact |
| Family coverage | Model ID, provider, repetition count | Listed in unified scorecard |
| Calibration statistics | Agreement coefficients, labor, and return rates | Protocol defined; aggregate statistics not reported in this version |
| Agent auditing | Planning, compilation, verification, and repair trajectories | Protocol defined; recorded separately from direct baseline |
| Efficiency | Tokens, latency, cost, calls, and rendering counts | Rounds = 1, calls = 0; rest NA |
| Test governance | Held-out references, programs, and hidden constraints | Implemented |
MATHVIS-2026-09