arXiv:2605.01299cs.LG2026-05被引 1

用多智能体系统帮用户自动生成几何代数代码并可视化,准确率提升70%。

GA-VisAgent: A Multi-Agent application for code generation and visualization in interactive learning

论文配图:GA-VisAgent: A Multi-Agent application for code generation and visualization in interactive learning
图 1 · 摘自论文原文
  • 分五步拆解复杂运算,结合自然语言与公式输入生成代码
  • 在40个典型任务中代码生成成功率达90%,比GPT-4o高70%
  • 适合数学、物理及编程初学者快速理解几何代数的可视化应用

几何代数(GA)因高度抽象的数学结构和复杂的运算规则,给学习者带来挑战。将代数运算转化为具体的几何解释在编码过程中缺乏直观性。现有软件包依赖手动编写脚本进行代码生成与可视化,学习门槛高;而基于大语言模型(LLM)的方法在生成特定GA脚本(如GAALOPScript)时常出现逻辑错误,整体准确率较低。为此,本文提出GA-VisAgent——一个基于几何代数大语言模型(GAGPT)的多智能体交互式学习应用。该系统融合任务规划机制与ReAct推理策略,可将复杂操作分解为五类标准化子任务,包括几何积、旋转、反射等核心操作。支持自然语言与数学公式作为输入,自动生成可执行代码,并配套交互式可视化以增强理解。实验结果显示,GA-VisAgent在40个典型共形几何代数任务中达到90%的代码生成成功率,较GPT-4o提升70%。该应用为几何代数教学与相关数学概念可视化工具开发提供可扩展的新范式。项目在线服务地址:http://gagis.cn/gacrac。

原文摘要 · Abstract (English)

Geometric Algebra (GA) presents challenges to learners due to its highly abstract mathematical structure and complex operational rules, as translating algebraic manipulations into concrete geometric interpretations is a non-intuitive process when developing related code. Currently, some existing GA software packages rely on manually written scripts for code generation and visualization, but their high learning curve hinders widespread adoption. Meanwhile, methods based on Large Language Models (LLMs) often produce logical errors when generating specific GA scripts, such as GAALOPScript, resulting in generally low accuracy. To address these issues, this study proposes GA-VisAgent -- a multi-agent interactive learning application for GA code generation and visualization -- building upon a Geometric algebra large language model (GAGPT). Integrating task planning mechanisms with ReAct reasoning strategies, GA-VisAgent can decompose complex operations into five standardized subtasks, including core operations like geometric products, rotations, and reflections. It supports natural language and mathematical formulas as input to automatically generate executable code, accompanied by interactive visualizations to aid user comprehension. Experimental results show that GA-VisAgent achieved a 90% code generation success rate across 40 typical Conformal GA tasks, representing a 70% improvement over GPT-4o. This application introduces an extensible new paradigm for teaching GA and developing visualization tools for related mathematical concepts. The online service for this project will be available at http://gagis.cn/gacrac.

几何代数代码生成多智能体可视化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。