MagicGeo: Training-Free Text-Guided Geometric Diagram Generation

Junxiao Wang, Ting Zhang, Heng Yu, Jingdong Wang, Hua Huang
2/19/2025
cs.CV

No confident code implementation found for this paper.

Abstract

Geometric diagrams are critical in conveying mathematical and scientific concepts, yet traditional diagram generation methods are often manual and resource-intensive. While text-to-image generation has made strides in photorealistic imagery, creating accurate geometric diagrams remains a challenge due to the need for precise spatial relationships and the scarcity of geometry-specific datasets. This paper presents MagicGeo, a training-free framework for generating geometric diagrams from textual descriptions. MagicGeo formulates the diagram generation process as a coordinate optimization problem, ensuring geometric correctness through a formal language solver, and then employs coordinate-aware generation. The framework leverages the strong language translation capability of large language models, while formal mathematical solving ensures geometric correctness. We further introduce MagicGeoBench, a benchmark dataset of 220 geometric diagram descriptions, and demonstrate that MagicGeo outperforms current methods in both qualitative and quantitative evaluations. This work provides a scalable, accurate solution for automated diagram generation, with significant implications for educational and academic applications.

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{wang2025magicgeo,
  title  = {MagicGeo: Training-Free Text-Guided Geometric Diagram Generation},
  author = {Junxiao Wang and Ting Zhang and Heng Yu and Jingdong Wang and Hua Huang},
  year   = {2025},
  eprint = {2502.13855},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.13855v1}
}

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/2502.13855.svg)](https://codeofpaper.com/paper/2502.13855)

Discussion