ANVIL: Analogies and Videos for Lecturers
Yuri Noviello, Anastasiia Birillo, Gosia Migut · 2026
Read ANVIL: Analogies and Videos for Lecturers by Yuri Noviello, Anastasiia Birillo, Gosia Migut (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-16295.txt.
Introduction
Noviello, Birillo, and Migut present ANVIL, a mixed-media system that turns concept meanings into teaching videos for CS. ANVIL writes a textual analogy, builds it into a set visual screenplay, and writes working manim code to render the video, with auto repair for toughness. Teacher testing grounds quality grading, an LLM grader screens analogy drafts at scale, and screenplay match proxies video quality. Teachers in a user study rated lessons often good enough and replied warmly to felt value and ease of use.
Catalog record
| CREATOR | Yuri Noviello, Anastasiia Birillo, Gosia Migut |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 33971 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.16295
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
ANVIL: Analogies and Videos for Lecturers Yuri Noviello, Anastasiia Birillo, Gosia Migut Abstract We present ANVIL , a multimodal generative system that automates the production of analogy-based instructional animations for computer science topics. Given a concept definition, ANVIL generates a textual analogy, compiles it into a structured visual screenplay, and produces executable manim code to render an animation, with an automated repair mechanism to improve robustness. Evaluating such systems at scale requires balancing pedagogical validity with scalability. We begin with a teacher evaluation to ground the quality assessment and use its findings to guide automated screening. For textual analogies, we introduce an LLM-based evaluator for scalable quality screening; for videos, where subjective judgments are difficult to automate, we instead assess fidelity to the intended screenplay using an automated proxy for auditing and error analysis. We further conduct a user study with educators to examine adoption requirements and risks. Our findings suggest that ANVIL can produce materials that are frequently rated as adequate, and that educators respond positively to its perceived value and usability. 1 Introduction Traditional educational methods often struggle to engage learners and convey abstract concepts effectively [ 9 ] , particularly in Computer Science (CS) and Software Engineering (SE), where topics such as algorithms and data structures, require high-level abstract reasoning. A well-established approach to addressing this challenge is the use of analogies to map abstract concepts onto familiar domains [ 11 ] , supporting comprehension, recall, and engagement [ 10 ] . When combined with multimodal visual explanations, analogies can further enhance conceptual understanding and motivation [ 5 ] . However, creating high-quality multimodal analogy-based educational materials remains resource-intensive and requires substantial pedagogical and multimedia expertise [ 32 ] . Recent advances in Artificial Intelligence (AI), particularly in Large Language Models (LLMs), offer new possibilities for automating scalable educational content generation [ 22 ] , including the systematic creation of instructional analogies and visualizations for CS education. In this paper, we present ANVIL ( AN alogies and VI deos for L ecturers), a multimodal generative system that automates the end-to-end production of multimodal, analogy-based instructional content for CS concepts. ANVIL employs a staged pipeline that generates an analogy ( Textual Layer ), compiles it into a structured visual screenplay ( Screenplay Layer ), and generates executable Python manim code ( Code Layer ). To improve robustness, ANVIL integrates a self-repair loop that combines static analysis and iterative automatic repair to recover from code-generation failures without human intervention. Such a system must be thoroughly evaluated before it can be deployed in teaching [ 16 ] . While expert judgment remains essential for assessing the instructional adequacy of analogies and animations, it does not scale to large numbers of artifacts. We therefore adopt an evaluation approach in which teacher assessment serves as an initial grounding step, establishing how generated analogies and animations are perceived and revealing where reliable automation is feasible. These findings guide the design of automated evaluation methods with modality-specific roles: (i) for analogies we investigate scalable screening via an LLM-based evaluator validated against expert judgments; (ii) for animations we evaluate whether rendered animations faithfully realize their intended intermediate representations through automated screenplay-to-video fidelity proxy . This framing treats automated evaluation as a mechanism for pre-selection and auditing, rather than as a substitute for expert review. In addition, we conducted two focus groups with educators to examine requirements and guardrails for classroom deployment. These discussions focused on expectations around instructor control, editability, and risk mitigation when AI-generated materials may introduce misconceptions. This paper makes four contributions: 1. System: ANVIL , an open-source system that generates analogical animations via intermediate representations, including an agentic repair mechanism to increase robustness. 2. Human evaluation: A rubric-based evaluation of both generated analogies and rendered animations with 11 CS/SE educators. 3. Automated Evaluation: An LLM-based analogy evaluator validated against expert judgments, and a screenplay-to-video fidelity proxy used for screening and error analysis. 4. User study: A qualitative user study with 9 CS/SE educators, characterizing perceived usefulness, risks, and integration requirements for deploying analogy-to-video generation in teaching workflows. 2 Related Work Analogies are a well-established instructional strategy for supporting understanding of abstract concepts by mapping them to familiar domains, with strong foundations in cognitive and educational theory [ 25 , 11 ] . Prior work in CS education shows that analogy-based instruction can reduce cognitive load and improve conceptual understanding, particularly for novice learners [ 28 , 14 ] . However, effective analogies are typically handcrafted by instructors, requiring substantial pedagogical and domain expertise, resulting in limiting scalability [ 32 ] . Recent work shows LLMs can assist students in crafting analogies on demand [ 4 , 2 , 18 , 17 ] . Bhavya et al. [ 4 ] released a benchmark of analogy prompts with the correlated human judgments, and Bernstein et al. [ 2 ] demonstrated that LLMs could produce engaging and memorable analogies for recursion, especially when prompted with personal context. While these results are promising, the reliability of LLM-generated analogies for educational purposes remains a key challenge. Shao et al. [ 30 ] found that LLMs may produce flawed analogies, violating commonsense relations or introducing inconsistencies. We address this risk by designing ANVIL around a staged generation pipeline. Educators can review and revise the analogy before rendering, avoiding that incorrect analogies propagate into instructional materials. Visualizations have long been used to teach computing concepts. Tools like Online Python Tutor [ 13 ] and Jeliot [ 23 ] , effectively animate program execution to aid student comprehension. However, these tools are designed to visualize the concrete execution of code, not the abstract models that analogies can provide. The manim [ 34 ] Python library has been widely adopted to create explanatory animations for computing courses, but as noted by Marković and Kastelan [ 20 ] , producing high-quality content requires considerable authoring effort and multimedia expertise. Furthermore, a systematic review by Sibia et al. [ 31 ] highlights that most visualization tools focus narrowly on specific content (e.g., particular data structures or algorithms), limiting their flexibility. ANVIL contributes by automating the manim authoring process, making video animations accessible to educators without specialized multimedia expertise. Moreover, our approach is topic-agnostic, allowing visualizations for a wide range of concepts. Advancements in LLMs have inspired research into automatically generating visual content from natural language. The system developed by Sehgal et al. [ 29 ] combines LLM-generated analogies with static images produced by text-to-image models. While they demonstrate the potential of fusing visual elements with analogical explanations for science education, their focus remains on generating static images. For many CS topics, dynamic animations can be useful for explaining processes, sequences, and state changes [ 20 ] . Community tools have begun to explore LLM-to- manim generation ( e.g. , the generative-manim repository [ 1 ] ), reflecting growing practitioner interest. Concurrently, Manimator [ 24 ] and Code2Video [ 7 ] leverage LLMs to generate manim animations, automating the rendering of mathematical concepts. Our work adapts this technology specifically for CS education, with a focus on generating animations of conceptual analogies rather than only mathematical or algorithmic representations. By integrating both analogy generation and dynamic animation into a single workflow, ANVIL provides a novel