arXiv:2610.12954cs.AIOct 2026

Manuscript Offprint

arXiv:2610.12954

MathVis: Can AI Reason through Drawing? A Benchmark for Mathematical Figure Generation

Jingjing Wei, Hao Zhao, Xinke Li, Linxi Yu, Xiaosong Gao, Shanshan Xiao

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

Figure

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:

  1. Cross-modal spatial alignment. Can the model correctly translate discrete, abstract mathematical symbols into continuous, concrete spatial topologies and coordinate geometries?

  2. 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?

  3. High-precision structured code generation. Can it generate syntactically complete, logically self-consistent, and directly compilable vector graphics programs?

  4. 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):

Figure

symbols → spatial topology

Implicit geometric reasoning

Differential Geometry (Tangent Space)

Figure

infer hidden constraints

Structured code generation

Homological Algebra (Snake Lemma)

Figure

{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)

Figure

local ↔\leftrightarrow 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