mlsanityData to 24 Nov 2026

ManimCode: Learning Visual Self-Correction for Educational Animation

arXiv 2611.08294 ↗Submitted 5 Nov 2026cs.CVcited by 0

Not on the map. Why?

Abstract (arXiv)

Manim supports precise, programmatic video generation, but a successfully rendered educational animation can still have visual defects, missing explanations, or incorrect content. Rendering does not directly identify the code changes needed to correct these visual failures, so feedback-driven revision is needed. Existing agentic frameworks use iterative rendering and revision but typically rely on large models, often proprietary. Existing Manim datasets primarily contain final programs and often lack quality verification and the trajectories of feedback and revisions needed to learn this refinement process. We introduce ManimData and ManimCode, a data and training framework for feedback-driven educational animation generation. We construct ManimData through a render-guided pipeline that iteratively generates, executes, reviews, and revises Manim programs with retrieved API documentation. Its 24,034 render-verified, quality-filtered records preserve intermediate programs, execution errors, visual critiques, and corrective revisions. We use role-conditioned supervised fine-tuning on these trajectories to train ManimCode, a single 4B model, to write, review, and revise animation programs. To improve correction of errors that differ from those in the collected trajectories, we then train the Reviser with reinforcement learning on self-generated states, using rendering outcomes and reference-free quality feedback. ManimCode achieves 96.6% and 97.0% render success on ManimData-test and ManimBench, compared with 52.6% and 82.0% for the untrained 4B model under the same inference setup, while also improving video quality scores from 2.48 to 2.94 and from 3.00 to 3.44. Integrating ManimCode into two long-form educational video generation systems increases completed videos from 19/117 to 107/117 and from 53/239 to 239/239, alongside improvements in educational effectiveness and visual quality.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 35 of its 39 references that are in the map. Submitted 5 Nov 2026.

Builds on

35 of 39 references.

References · 35

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 15,591
  2. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
  3. 2024GPT-4o System Cardcited by 4,895
  4. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  5. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
  6. 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,507
  7. 2023Teaching Large Language Models to Self-Debugcited by 1,049
  8. 2024Training Language Models to Self-Correct via Reinforcement Learningcited by 456
  9. 2023Is Self-Repair a Silver Bullet for Code Generation?cited by 222
  10. 2024RLEF: Grounding Code LLMs in Execution Feedback with Reinforcement Learningcited by 166
  11. 2024Back to Basics: Revisiting REINFORCE Style Optimization for Learning from Human Feedback in LLMscited by 162
  12. 2024LLM Critics Help Catch LLM Bugscited by 157
23 more
  1. 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 102
  2. 2025Teaching Language Models to Critique via Reinforcement Learningcited by 45
  3. 2025Rendering-Aware Reinforcement Learning for Vector Graphics Generationcited by 45
  4. 2024CYCLE: Learning to Self-Refine the Code Generationcited by 44
  5. 2025Code2Video: A Code-centric Paradigm for Educational Video Generationcited by 40
  6. 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 34
  7. 2024UICoder: Finetuning Large Language Models to Generate User Interface Code through Automated Feedbackcited by 30
  8. 2025TheoremExplainAgent: Towards Video-based Multimodal Explanations for LLM Theorem Understandingcited by 30
  9. 2025VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generationcited by 21
  10. 2025UI2Code^N: UI-to-Code Generation as Interactive Visual Optimizationcited by 19
  11. 2025ReLook: Vision-Grounded RL with a Multimodal LLM Critic for Agentic Web Codingcited by 18
  12. 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligencecited by 13
  13. 2026VisRefiner: Learning from Visual Differences for Screenshot-to-Code Generationcited by 13
  14. 2026AeSlides: Incentivizing Aesthetic Layout in LLM-Based Slide Generation via Verifiable Rewardscited by 13
  15. 2026ManimAgent: Self-Evolving Multimodal Agents for Visual Educationcited by 7
  16. 2025Manimator: Transforming Research Papers into Visual Explanationscited by 6
  17. 2025SciEducator: Scientific Video Understanding and Educating via Deming-Cycle Multi-Agent Systemcited by 5
  18. 2026Training and Benchmarking Code Generation for Physics-Inspired Animationscited by 5
  19. 2026Training and Agentic Inference Strategies for LLM-based Manim Animation Generationcited by 4
  20. 2026ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generationcited by 3
  21. 2026See Before You Code: Learning Visual Priors for Spatially Aware Educational Animation Generationcited by 2
  22. 2026SGA: Plug&Play Geometric Verification for Educational Video Synthesiscited by 2
  23. 2026Learning the Loop, Not Just the Page: Execution-Grounded Loop Learning for Web Generationcited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 20263DCodeEdit: Benchmarking Instruction-Guided 3D Program Editing
  2. 2026GenEvolve: Self-Evolving Image Generation Agents via Tool-Orchestrated Visual Experience Distillation
  3. 2026MaLiang-Harness: A Programmable Path to Image and Video Generation
  4. 2026MotionGraphicsBench: Evaluating Motion Graphics Generation with Programmatic Verification
  5. 2026Animation2Code: Evaluating Temporal Visual Reasoning in Video-to-Code Generation
  6. 2026RSIgen: Reciprocal Self-Improvement for Agentic Visual Generation
  7. 2023GenHowTo: Learning to Generate Actions and State Transformations from Instructional Videos
  8. 2026LEDGE: Separating Critic and Editor Failures in Text-to-Image Self-Correction