MathGen: Revealing the Illusion of Mathematical Competence through Text-to-Image Generation

Ruiyao Liu, Hui Shen, Ping Zhang, Yunta Hsieh, Yifan Zhang +14 more
3/30/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Modern generative models have demonstrated the ability to solve challenging mathematical problems. In many real-world settings, however, mathematical solutions must be expressed visually through diagrams, plots, geometric constructions, and structured symbolic layouts, where correctness depends on precise visual composition.

Show full abstract

This naturally raises the question of whether generative models can still do so when the answer must be rendered visually rather than written in text? To study this problem, we introduce MathGen, a rigorous benchmark of 420 problems spanning seven core domains, including 350 Clean-Scene problems and 70 paired Open-Scene problems. Each problem is evaluated under a Script-as-a-Judge protocol with problem-specific verification criteria implemented through reusable executable scripts for deterministic and reproducible evaluation. Experiments on representative open-source and proprietary text-to-image models show that mathematical fidelity remains a major bottleneck: even the best closed-source model reaches only 53.7% overall accuracy, while open-source models achieve just 1--11%, often near 0% on structured tasks, particularly those requiring precise geometric and functional rendering. Overall, current T2I models remain far from reliable at even elementary mathematical visual generation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2026mathgen,
  title  = {MathGen: Revealing the Illusion of Mathematical Competence through Text-to-Image Generation},
  author = {Ruiyao Liu and Hui Shen and Ping Zhang and Yunta Hsieh and Yifan Zhang and Jing Xu and Qi Han and Junchen Li and Jiawei Lu and Jianing Ma and Jiaqi Mo and Sicheng Chen and Zhen Zhang and Zhongwei Wan and Jing Xiong and Xin Wang and Ziyuan Liu and Hangrui Cao and Ngai Wong},
  year   = {2026},
  eprint = {2603.27959},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.27959v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.27959.svg)](https://codeofpaper.com/paper/2603.27959)

Discussion