See Before You Code: Learning Visual Priors for Spatially Aware Educational Animation Generation

Yuejia Li, Ke He, Junheng Li, Shutong Chen, Jingkang Xia +3 more
5/15/2026
cs.AIcs.CV

No confident code implementation found for this paper.

Abstract

Large language models can generate executable code for educational animations, but the resulting renders often exhibit visual defects, including element overlap, misalignment, and broken animation continuity. These defects cannot be reliably detected from the code alone and become apparent only after execution.

Show full abstract

We formalize this problem as render-feedback-aware constrained code generation: given a natural language specification, the model must generate executable code whose rendered output satisfies structured quality criteria that can be evaluated only after rendering. To address this problem, we introduce OmniManim, a render-feedback-aware educational animation generation framework built around a shared scene state, explicit visual planning, structured post-render diagnostics, and localized repair. Within OmniManim, the Vision Agent is a task-specific visual planning module: it predicts sparse keyframe layouts with coarse-to-fine bounding-box denoising and optimizes an interpolation-aware objective to reduce intermediate-frame failures induced by downstream animation interpolation. We further construct two datasets, ManimLayout-1K and EduRequire-500, and provide a reproducible evaluation protocol covering executability, instructional quality, visual quality, and efficiency. On EduRequire-500, OmniManim improves measured render quality over both single-model baselines and existing multi-agent frameworks. Systematic ablation studies further verify that explicit visual planning, especially its coarse spatial prior, bounding-box refinement, and interpolation-aware optimization, is central to these gains.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{li2026before,
  title  = {See Before You Code: Learning Visual Priors for Spatially Aware Educational Animation Generation},
  author = {Yuejia Li and Ke He and Junheng Li and Shutong Chen and Jingkang Xia and Zhiyue Su and Junchi Zhang and Mang Ye},
  year   = {2026},
  eprint = {2605.15585},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15585v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.15585.svg)](https://codeofpaper.com/paper/2605.15585)

Discussion