arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.07429cs.AI
收藏

从文本到视觉:利用大语言模型生成带矢量图形的数学图表

From Text to Visuals: Using LLMs to Generate Math Diagrams with Vector Graphics

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Jaewook Lee, Jeongah Lee, Wanyong Feng, Andrew Lan

AI总结:

本文研究利用大语言模型通过SVG中间表示自动生成数学提示图表,提出提示流水线和关键策略,并引入视觉问答评估方法,以提升数学教育中的可视化支持。

摘要:

大语言模型(LLMs)的进展为数学教育带来了新的可能性,可以通过自动化为教师和学生提供支持。尽管先前的工作侧重于生成数学问题和高质量的干扰项,但可视化在数学学习中的作用仍未得到充分探索。图表对于数学思维和问题解决至关重要,然而手动创建图表耗时且需要领域专业知识,限制了可扩展性。最近关于使用LLMs生成可缩放矢量图形(SVG)的研究为自动化图表创建提供了一种有前景的方法。与基于像素的图像不同,SVG使用XML表示几何图形,允许无缝缩放和适应性调整。Khan Academy和IXL等教育平台已经使用SVG来显示数学问题和提示。在本文中,我们探索使用LLMs通过中间SVG表示来生成与文本提示配套的数学相关图表。我们解决三个研究问题:(1)如何在问题解决提示中自动生成数学图表并评估其质量,(2)SVG是否是数学图表的有效中间表示,以及(3)LLMs生成准确的基于SVG的图表需要哪些提示策略和格式。我们的贡献包括定义自动生成基于SVG的数学提示图表任务,开发基于LLM提示的流水线,并确定改进图表生成的关键策略。此外,我们引入了一个基于视觉问答的评估设置,并进行消融研究以评估不同的流水线变体。通过自动化数学图表创建,我们旨在为学生和教师提供准确、概念相关的视觉辅助工具,以增强问题解决和学习体验。

英文摘要:

Advances in large language models (LLMs) offer new possibilities for enhancing math education by automating support for both teachers and students. While prior work has focused on generating math problems and high-quality distractors, the role of visualization in math learning remains under-explored. Diagrams are essential for mathematical thinking and problem-solving, yet manually creating them is time-consuming and requires domain-specific expertise, limiting scalability. Recent research on using LLMs to generate Scalable Vector Graphics (SVG) presents a promising approach to automating diagram creation. Unlike pixel-based images, SVGs represent geometric figures using XML, allowing seamless scaling and adaptability. Educational platforms such as Khan Academy and IXL already use SVGs to display math problems and hints. In this paper, we explore the use of LLMs to generate math-related diagrams that accompany textual hints via intermediate SVG representations. We address three research questions: (1) how to automatically generate math diagrams in problem-solving hints and evaluate their quality, (2) whether SVG is an effective intermediate representation for math diagrams, and (3) what prompting strategies and formats are required for LLMs to generate accurate SVG-based diagrams. Our contributions include defining the task of automatically generating SVG-based diagrams for math hints, developing an LLM prompting-based pipeline, and identifying key strategies for improving diagram generation. Additionally, we introduce a Visual Question Answering-based evaluation setup and conduct ablation studies to assess different pipeline variations. By automating the math diagram creation, we aim to provide students and teachers with accurate, conceptually relevant visual aids that enhance problem-solving and learning experiences.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑