SGA: Plug&Play Geometric Verification for Educational Video Synthesis
Abstract
Recent work leverages Large Language Models (LLMs) to generate executable code for pedagogical animations using libraries such as Manim. However, ensuring spatial correctness and visual legibility remains challenging, as existing frameworks emphasize pedagogical content while overlooking geometric occlusions. We propose the Symbolic Geometric Agent (SGA), a plug-and-play module for code-centric animation pipelines that intercepts LLM-generated code, performs partial execution to extract symbolic scene graphs, and applies targeted refinement when spatial conflicts are detected. We further introduce the Manim Visual Quality Score (MVQS), a deterministic rendering-free proxy for spatial integrity. Experiments on the MMMC-Code benchmark across four LLM backbones and two agentic pipelines show that SGA achieves a peak MVQS of 73.11 (Code2Video + GPT-5.1), corresponding to a 16.1% relative improvement over the raw baseline, and improves MVQS in 7 of 8 backbone x pipeline configurations. Additionally, we conduct a human evaluation showing that these improvements translate into human preference, with raters preferring SGA over the raw baseline in 84.4% of comparisons and over a VLM-based critic in 65.0%.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CV, cs.GR, cs.MA, cs.MM
Related papers
Coding4Games: Can Modern Coding Agents Play Modern Video Games?
Shared title terminologycs.AIShifang Zhao, Haoyu Wang, Yuyang Yin et al.
REFORGE: LLM-Assisted RTL Bug Repair with Structured Context and Verification Feedback
Shared title terminologycs.AITanvir Hossain, Sudipta Paria, Aidan Gleason Myers et al.
KeyDeck: Multi-Paper-to-Slide Generation via Cross-Paper Synthesis and Reference-Guided Personalization
Shared title terminologycs.AITarik Can Ozden, Sachidanand VS, Ram Prakash Reddy Motati et al.
Reading Decisions Before Spans: Efficient Generative Verification
Shared title terminologycs.AIYanbin Gong, Lei Chen
PoseVLN: Learning Geometric State Evolution for Vision-Language Navigation
Shared title terminologycs.AIPengyu Hou, Mingfei Han, Haihong Hao et al.
Cheap Memory Costs Future Compute: Co-Designing Persistent KV and GPU Execution for Efficient Streaming Video Diffusion
Shared title terminologycs.AIJian Yang, Zhizhuo Kou, Qiyuan Zhu et al.