TL;DR
DataMagic is a new end-to-end system that transforms raw tabular data into polished data videos using a multi-agent "Generate-then-Orchestrate" framework. By introducing a declarative specification called DVSpec, the system ensures perfect audio-visual synchronization and data accuracy, outperforming state-of-the-art LLMs like GPT-5 by over 80% in video quality while reducing human authoring time by nearly 80%.
What Problem Does This Paper Address?
Data videos—which combine dynamic charts, voice narration, and synchronized animations—are powerful storytelling tools, but they are notoriously difficult to produce. Creation typically requires a "triple threat" of expertise: data analysis, narrative design, and video editing.
Current solutions fall short in three ways:
- Static Tools: Automate charts but lack the temporal "flow" of a story.
- Authoring Tools: Help with editing but require users to provide pre-made charts and manually sync audio to keyframes.
- Generative AI (e.g., Sora): Can create impressive pixels but suffer from "numerical hallucinations" and lack data provenance—you can't easily trace a visual highlight back to a specific row in a CSV.
The authors identify two core technical hurdles: creating a uniform representation for multimodal content (charts + voice + motion) and searching the massive design space to ensure a video feels like a coherent story rather than a disjointed slideshow.
Methods
The researchers developed DataMagic, which relies on two primary innovations:
1. DVSpec: The Declarative "Glue"
Instead of hardcoding timestamps or DOM identifiers, the authors designed DVSpec, a JSON-based declarative grammar.
- Data-Bound References: Animations target data values (e.g., "highlight the bar where
product='Laptop Pro X'") rather than specific pixels. This makes the video robust; if the data updates, the highlights stay accurate. - Narration-Indexed Triggers: Rather than saying "start animation at 5.2 seconds," DVSpec says "start animation when the second sentence of the script begins." The renderer calculates the exact timing at runtime based on the Text-to-Speech (TTS) duration.
2. "Generate-then-Orchestrate" Multi-Agent Pipeline
The system uses specialized LLM agents to handle different parts of the workflow:
- Stage 1 (Generation): A Story Planner decomposes the user query into subtasks; a Data Manager writes Python/Pandas code to extract relevant data slices; and a Visual Designer creates the chart specifications. These agents work in parallel to build a pool of candidate scenes.
- Stage 2 (Orchestration): A Narration Director selects the best scenes, orders them according to narrative patterns (like Freytag’s Pyramid), and writes context-aware scripts to bridge transitions. Finally, an Animation Coordinator binds the visual effects to the script.
Datasets
The system was evaluated using 109 real-world samples derived from two major benchmarks:
- DAComp-DA: Enterprise-level data covering business scenarios like sales and HR.
- T2R-bench: Public statistics across 19 domains, including environmental and management data. The datasets ranged from small (<100 rows) to large (>150,000 rows), testing the system's ability to handle scale and diverse query types (trends, correlations, distributions).
Key Insights and Ideas
- Decoupling is Essential: By separating scene generation from global orchestration, DataMagic avoids the "greedy" errors common in single-pass LLM generation, where the model might repeat information or lose the narrative thread halfway through.
- Declarative > Procedural: Moving away from absolute timelines to semantic triggers (narration-indexed) makes the system incredibly resilient to human edits. If a user changes one word in the script, the entire video re-syncs automatically.
- LLMs Struggle with Video Code: The study found that direct generation (asking an LLM to write raw rendering code) fails frequently due to syntax errors, layout clipping, or "blind narration" (where the audio and visuals are completely out of sync).
Key Results
- Superior Quality: In a head-to-head comparison, DataMagic achieved an average quality score of 3.89/5, significantly higher than GPT-5 (2.13/5) and Claude-Sonnet-4 (2.18/5).
- Robustness: DataMagic maintained a 95%+ execution success rate, whereas direct LLM generation fluctuated between 48% and 86% due to code errors.
- Human Efficiency: In a user study (N=12), participants using DataMagic completed tasks 79.7% faster (8 minutes vs. 39 minutes for the baseline) with significantly lower cognitive load.
Limitations and Future Work
The authors acknowledge several areas for growth:
- Data Complexity: The current version primarily targets single-table inputs; supporting multi-table joins is a logical next step.
- Creative Diversity: To ensure stability, the system uses somewhat conservative animation patterns. The authors suggest that future versions could use "soft constraints" to allow for more expressive, artistic motion.
- Visual Assets: Integrating image-generation models (like DALL-E or Midjourney) could help provide non-data assets like custom illustrations to further enrich the storytelling.
Summary updated