ManiBench:一个用于测试Manim代码生成中视觉-逻辑漂移和语法幻觉的基准测试
ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generation
AI总结:
ManiBench旨在评估LLM在生成Manim CE代码时的性能,针对语法幻觉和视觉-逻辑漂移两种关键失败模式,包含150-200个问题,涵盖微积分、线性代数、概率、拓扑和AI等领域。
摘要:
传统基准如HumanEval和MBPP在测试逻辑和语法方面有效,但当代码需要生成动态、教育性的视觉时会失效。我们引入ManiBench,一个专门评估LLM生成Manim CE代码性能的基准测试,其中时间保真度和版本感知的API正确性至关重要。ManiBench针对两种关键失败模式:语法幻觉(有效的Python引用不存在或已弃用的Manim API)和视觉-逻辑漂移(生成的视觉与预期的数学逻辑通过时间错误或缺失的因果关系而偏离)。该基准包含150-200个问题,涵盖五个难度级别,涵盖微积分、线性代数、概率、拓扑和AI,基于对3Blue1Brown的ManimGL源码的分析(53,000行,143个场景类别)。评估使用四层框架测量可执行性、版本冲突错误率、对齐分数和覆盖率分数。一个开源框架自动化评估多个模型和提示策略。代码、数据和基准套件可在https://github.com/nabin2004/ManiBench获取,数据集托管在https://huggingface.co/datasets/nabin2004/ManiBench。
英文摘要:
Traditional benchmarks like HumanEval and MBPP test logic and syntax effectively, but fail when code must produce dynamic, pedagogical visuals. We introduce ManiBench, a specialized benchmark evaluating LLM performance in generating Manim CE code, where temporal fidelity and version-aware API correctness are critical. ManiBench targets two key failure modes: Syntactic Hallucinations (valid Python referencing non-existent or deprecated Manim APIs) and Visual-Logic Drift (generated visuals diverging from intended mathematical logic through timing errors or missing causal relationships). The benchmark comprises 150-200 problems across five difficulty levels spanning calculus, linear algebra, probability, topology, and AI, grounded in analysis of 3Blue1Brown's ManimGL source (53,000 lines, 143 scene classes). Evaluation uses a four-tier framework measuring Executability, Version-Conflict Error Rate, Alignment Score, and Coverage Score. An open-source framework automates evaluation across multiple models and prompting strategies. Code, data and benchmark suite are available at https://github.com/nabin2004/ManiBench. and the dataset is hosted on https://huggingface.co/datasets/nabin2004/ManiBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。