showlab/Code2Video

[ICML 2026] Video generation via code

What it solves

Code2Video addresses the limitations of traditional pixel-based video generation models, which often struggle with the precision and structural requirements of educational content. By using executable code instead of raw pixels, it ensures that generated videos are clear, coherent, and reproducible.

How it works

The framework uses a modular tri-agent system to convert knowledge points into video:

  • Planner: Expands the initial topic into a structured storyboard.
  • Coder: Synthesizes and debugs Manim code to create the visual elements.
  • Critic: Uses a Vision-Language Model (VLM) to refine the layout and aesthetics of the generated frames.

Who it’s for

This tool is designed for researchers and educators who need to programmatically generate high-quality, mathematically accurate educational animations, similar in style to the work of 3Blue1Brown.

Highlights

  • Code-Centric Paradigm: Uses Manim code as the unified medium for temporal and spatial organization.
  • Modular Tri-Agent Design: Employs specialized agents for planning, coding, and critiquing to ensure high-quality output.
  • MMMC Benchmark: Includes a dedicated benchmark with 117 curated learning topics for evaluating educational video generation.
  • Multi-Dimensional Evaluation: Provides systematic assessment tools for knowledge transfer, aesthetic quality, and generation efficiency.

Related

  • Project
  • Project
  • Project
  • Project
  • Project