Saved in:
Bibliographic Details
Main Authors: Joshi, Aastha, Ke, Hongyi, Gajjar, Meet, Christian, Aaron, Wang, Qi, Chen, Jun
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.05266
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918430621302784
author Joshi, Aastha
Ke, Hongyi
Gajjar, Meet
Christian, Aaron
Wang, Qi
Chen, Jun
author_facet Joshi, Aastha
Ke, Hongyi
Gajjar, Meet
Christian, Aaron
Wang, Qi
Chen, Jun
contents High-quality STEM animations can be useful for learning, but they are still not common in daily teaching, mostly because they take time and special skills to make. In this paper, we present a semi-automated, human-in-the-loop (HITL) pipeline that uses a large language model (LLM) to help convert math and physics concepts into narrated animations with the Python library Manim. The pipeline also tries to follow multimedia learning ideas like segmentation, signaling, and dual coding, so the narration and the visuals are more aligned. To keep the outputs stable, we use constrained prompt templates, a symbol ledger to keep symbols consistent, and we regenerate only the parts that have errors. We also include expert review before the final rendering, because sometimes the generated code or explanation is not fully correct. We tested the approach with 100 undergraduate students in a within-subject A-B study. Each student learned two similar STEM topics, one with the LLM-generated animations and one with PowerPoint slides. In general, the animation-based instruction gives slightly better post-test scores (83% vs.78%, p < .001), and students show higher learning gains (d=0.67). They also report higher engagement (d=0.94) and lower cognitive load (d=0.41). Students finished the tasks faster, and many of them said they prefer the animated format. Overall, these results suggest LLM-assisted animation can make STEM content creation easier, and it may be a practical option for more classrooms.
format Preprint
id arxiv_https___arxiv_org_abs_2604_05266
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LLM2Manim: Pedagogy-Aware AI Generation of STEM Animations
Joshi, Aastha
Ke, Hongyi
Gajjar, Meet
Christian, Aaron
Wang, Qi
Chen, Jun
Multimedia
High-quality STEM animations can be useful for learning, but they are still not common in daily teaching, mostly because they take time and special skills to make. In this paper, we present a semi-automated, human-in-the-loop (HITL) pipeline that uses a large language model (LLM) to help convert math and physics concepts into narrated animations with the Python library Manim. The pipeline also tries to follow multimedia learning ideas like segmentation, signaling, and dual coding, so the narration and the visuals are more aligned. To keep the outputs stable, we use constrained prompt templates, a symbol ledger to keep symbols consistent, and we regenerate only the parts that have errors. We also include expert review before the final rendering, because sometimes the generated code or explanation is not fully correct. We tested the approach with 100 undergraduate students in a within-subject A-B study. Each student learned two similar STEM topics, one with the LLM-generated animations and one with PowerPoint slides. In general, the animation-based instruction gives slightly better post-test scores (83% vs.78%, p < .001), and students show higher learning gains (d=0.67). They also report higher engagement (d=0.94) and lower cognitive load (d=0.41). Students finished the tasks faster, and many of them said they prefer the animated format. Overall, these results suggest LLM-assisted animation can make STEM content creation easier, and it may be a practical option for more classrooms.
title LLM2Manim: Pedagogy-Aware AI Generation of STEM Animations
topic Multimedia
url https://arxiv.org/abs/2604.05266